monomind 1.15.6 → 1.15.7
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/github/repo-architect.md +1 -1
- package/.claude/agents/specialists/integration-architect.md +6 -6
- package/.claude/commands/hive-mind/hive-mind-init.md +1 -1
- package/.claude/commands/hive-mind/hive-mind-memory.md +1 -1
- package/.claude/commands/mastermind/brain.md +11 -11
- package/.claude/commands/mastermind/master.md +4 -4
- package/.claude/commands/mastermind/memory.md +6 -6
- package/.claude/commands/memory/README.md +4 -4
- package/.claude/commands/truth/start.md +3 -3
- package/.claude/helpers/extras-registry.json +2 -2
- package/.claude/helpers/skill-registry.json +26 -26
- package/.claude/helpers/statusline.cjs +8 -8
- package/.claude/skills/agentic-jujutsu/SKILL.md +3 -3
- package/.claude/skills/mastermind/_protocol.md +8 -8
- package/README.md +6 -6
- package/package.json +2 -2
- package/packages/@monomind/cli/README.md +6 -6
- package/packages/@monomind/cli/dist/src/__tests__/browse-analyzer.test.js +18 -1
- package/packages/@monomind/cli/dist/src/commands/agent.js +2 -2
- package/packages/@monomind/cli/dist/src/commands/autopilot.js +1 -1
- package/packages/@monomind/cli/dist/src/commands/completions.js +2 -21
- package/packages/@monomind/cli/dist/src/commands/config.js +1 -1
- package/packages/@monomind/cli/dist/src/commands/hive-mind.js +1 -1
- package/packages/@monomind/cli/dist/src/commands/hooks-coverage-commands.js +31 -31
- package/packages/@monomind/cli/dist/src/commands/hooks-routing-commands.js +1 -1
- package/packages/@monomind/cli/dist/src/commands/hooks.js +1 -1
- package/packages/@monomind/cli/dist/src/commands/index.d.ts +0 -1
- package/packages/@monomind/cli/dist/src/commands/index.js +0 -4
- package/packages/@monomind/cli/dist/src/commands/init.js +8 -8
- package/packages/@monomind/cli/dist/src/commands/memory.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/commands/memory.js +25 -25
- package/packages/@monomind/cli/dist/src/commands/migrate.js +2 -2
- package/packages/@monomind/cli/dist/src/commands/neural.js +1 -1
- package/packages/@monomind/cli/dist/src/commands/swarm.js +1 -1
- package/packages/@monomind/cli/dist/src/config-adapter.js +8 -8
- package/packages/@monomind/cli/dist/src/index.js +1 -1
- package/packages/@monomind/cli/dist/src/init/claudemd-generator.js +2 -2
- package/packages/@monomind/cli/dist/src/init/executor.js +16 -16
- package/packages/@monomind/cli/dist/src/init/shared-instructions-generator.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/init/shared-instructions-generator.js +1 -1
- package/packages/@monomind/cli/dist/src/init/statusline-generator.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/init/statusline-generator.js +8 -8
- package/packages/@monomind/cli/dist/src/init/types.d.ts +3 -3
- package/packages/@monomind/cli/dist/src/init/types.js +3 -3
- package/packages/@monomind/cli/dist/src/mcp-client.js +1 -8
- package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.js +3 -3
- package/packages/@monomind/cli/dist/src/mcp-tools/daa-tools.js +13 -13
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.js +4 -4
- package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.js +4 -4
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-intelligence.js +1 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-routing.js +23 -23
- package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +0 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/index.js +0 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.d.ts +22 -6
- package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.js +553 -505
- package/packages/@monomind/cli/dist/src/mcp-tools/progress-tools.js +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/system-tools.js +5 -5
- package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.js +1 -156
- package/packages/@monomind/cli/dist/src/memory/embedding-operations.js +3 -3
- package/packages/@monomind/cli/dist/src/memory/hnsw-operations.js +5 -5
- package/packages/@monomind/cli/dist/src/memory/intelligence.js +2 -2
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.d.ts +86 -234
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +455 -1702
- package/packages/@monomind/cli/dist/src/memory/memory-crud.js +3 -3
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.js +5 -5
- package/packages/@monomind/cli/dist/src/memory/memory-read.js +4 -4
- package/packages/@monomind/cli/dist/src/suggest.js +0 -1
- package/packages/@monomind/cli/dist/src/types.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/ui/dashboard.html +41 -5
- package/packages/@monomind/cli/dist/src/ui/orgs.html +91 -5
- package/packages/@monomind/cli/dist/src/ui/server.mjs +44 -0
- package/packages/@monomind/cli/dist/src/update/validator.js +1 -3
- package/packages/@monomind/cli/package.json +4 -4
- package/scripts/verify-appliance.sh +1 -1
- package/packages/@monomind/cli/dist/src/commands/plugins.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/plugins.js +0 -799
- package/packages/@monomind/cli/dist/src/plugins/manager.d.ts +0 -133
- package/packages/@monomind/cli/dist/src/plugins/manager.js +0 -498
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.d.ts +0 -88
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.js +0 -650
- 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 -231
- 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/services/registry-api.d.ts +0 -58
- package/packages/@monomind/cli/dist/src/services/registry-api.js +0 -199
|
@@ -189,7 +189,7 @@ export const hooksPostCommand = {
|
|
|
189
189
|
command: typeof command === 'string' ? command.slice(0, 200) : String(command).slice(0, 200),
|
|
190
190
|
exitCode,
|
|
191
191
|
});
|
|
192
|
-
// Persist command outcome via
|
|
192
|
+
// Persist command outcome via memory backend
|
|
193
193
|
let _storedIn = 'none';
|
|
194
194
|
try {
|
|
195
195
|
const bridge = await import('../memory/memory-bridge.js');
|
|
@@ -199,10 +199,10 @@ export const hooksPostCommand = {
|
|
|
199
199
|
namespace: 'commands',
|
|
200
200
|
tags: [success ? 'success' : 'error'],
|
|
201
201
|
});
|
|
202
|
-
_storedIn = '
|
|
202
|
+
_storedIn = 'lancedb';
|
|
203
203
|
}
|
|
204
204
|
catch {
|
|
205
|
-
//
|
|
205
|
+
// memory backend unavailable — store in JSON
|
|
206
206
|
try {
|
|
207
207
|
const store = loadMemoryStore();
|
|
208
208
|
const key = `cmd-${Date.now()}`;
|
|
@@ -255,16 +255,16 @@ export const hooksRoute = {
|
|
|
255
255
|
? rawContext.slice(0, MAX_ROUTE_CTX_LEN)
|
|
256
256
|
: rawContext;
|
|
257
257
|
const useSemanticRouter = params.useSemanticRouter !== false;
|
|
258
|
-
// Phase 5: Try
|
|
258
|
+
// Phase 5: Try memory backend SemanticRouter / LearningSystem first
|
|
259
259
|
if (useSemanticRouter) {
|
|
260
260
|
try {
|
|
261
261
|
const bridge = await import('../memory/memory-bridge.js');
|
|
262
|
-
const
|
|
263
|
-
if (
|
|
264
|
-
const agents =
|
|
262
|
+
const memoryRoute = await bridge.bridgeRouteTask({ task, context });
|
|
263
|
+
if (memoryRoute && memoryRoute.confidence > 0.5) {
|
|
264
|
+
const agents = memoryRoute.agents.length > 0 ? memoryRoute.agents : ['coder', 'researcher'];
|
|
265
265
|
const complexity = task.length > 200 ? 'high' : task.length < 50 ? 'low' : 'medium';
|
|
266
|
-
const
|
|
267
|
-
const
|
|
266
|
+
const memoryMethod = `memory-${memoryRoute.controller}`;
|
|
267
|
+
const memoryConfidence = Math.round(memoryRoute.confidence * 100) / 100;
|
|
268
268
|
// Record the route recommendation so post-task can join the actual outcome
|
|
269
269
|
const routeId = randomUUID();
|
|
270
270
|
await recordRoute(getRouteOutcomesBaseDir(), {
|
|
@@ -272,33 +272,33 @@ export const hooksRoute = {
|
|
|
272
272
|
ts: Date.now(),
|
|
273
273
|
task,
|
|
274
274
|
recommendedAgent: agents[0],
|
|
275
|
-
routingMethod:
|
|
276
|
-
confidence:
|
|
275
|
+
routingMethod: memoryMethod,
|
|
276
|
+
confidence: memoryConfidence,
|
|
277
277
|
learningMode: 'js',
|
|
278
278
|
});
|
|
279
279
|
return {
|
|
280
280
|
routeId,
|
|
281
281
|
task,
|
|
282
282
|
routing: {
|
|
283
|
-
method:
|
|
284
|
-
backend:
|
|
283
|
+
method: memoryMethod,
|
|
284
|
+
backend: memoryRoute.controller,
|
|
285
285
|
latencyMs: 0,
|
|
286
286
|
throughput: 'N/A',
|
|
287
287
|
},
|
|
288
|
-
matchedPattern:
|
|
289
|
-
semanticMatches: [{ pattern:
|
|
288
|
+
matchedPattern: memoryRoute.route,
|
|
289
|
+
semanticMatches: [{ pattern: memoryRoute.route, score: memoryRoute.confidence }],
|
|
290
290
|
primaryAgent: {
|
|
291
291
|
type: agents[0],
|
|
292
|
-
confidence: Math.round(
|
|
293
|
-
reason: `
|
|
292
|
+
confidence: Math.round(memoryRoute.confidence * 100) / 100,
|
|
293
|
+
reason: `memory:${memoryRoute.controller}: "${memoryRoute.route}" (${Math.round(memoryRoute.confidence * 100)}%)`,
|
|
294
294
|
},
|
|
295
295
|
alternativeAgents: agents.slice(1).map((agent, i) => ({
|
|
296
296
|
type: agent,
|
|
297
|
-
confidence: Math.round((
|
|
298
|
-
reason: `Alternative from ${
|
|
297
|
+
confidence: Math.round((memoryRoute.confidence - (0.1 * (i + 1))) * 100) / 100,
|
|
298
|
+
reason: `Alternative from ${memoryRoute.controller}`,
|
|
299
299
|
})),
|
|
300
300
|
estimatedMetrics: {
|
|
301
|
-
successProbability: Math.round(
|
|
301
|
+
successProbability: Math.round(memoryRoute.confidence * 100) / 100,
|
|
302
302
|
estimatedDuration: complexity === 'high' ? '2-4 hours' : complexity === 'medium' ? '30-60 min' : '10-30 min',
|
|
303
303
|
complexity,
|
|
304
304
|
},
|
|
@@ -307,7 +307,7 @@ export const hooksRoute = {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
catch {
|
|
310
|
-
//
|
|
310
|
+
// memory router not available — fall through to local routing
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
// Deterministic keyword routing is the baseline (and only) local path.
|
|
@@ -1004,7 +1004,7 @@ export const hooksPretrain = {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
scan(repoPath, 0);
|
|
1006
1006
|
const elapsed = Math.round(performance.now() - startTime);
|
|
1007
|
-
// Store extracted patterns in
|
|
1007
|
+
// Store extracted patterns in memory backend
|
|
1008
1008
|
let patternsStored = 0;
|
|
1009
1009
|
try {
|
|
1010
1010
|
const bridge = await import('../memory/memory-bridge.js');
|
|
@@ -1016,7 +1016,7 @@ export const hooksPretrain = {
|
|
|
1016
1016
|
});
|
|
1017
1017
|
patternsStored = patterns.length;
|
|
1018
1018
|
}
|
|
1019
|
-
catch { /*
|
|
1019
|
+
catch { /* memory backend unavailable */ }
|
|
1020
1020
|
// Feed extracted import patterns into the neural training system so
|
|
1021
1021
|
// pretrain actually trains, not just scans.
|
|
1022
1022
|
let neuralPatternsLearned = 0;
|
|
@@ -10,7 +10,6 @@ export { systemTools } from './system-tools.js';
|
|
|
10
10
|
export { neuralTools } from './neural-tools.js';
|
|
11
11
|
export { performanceTools } from './performance-tools.js';
|
|
12
12
|
export { githubTools } from './github-tools.js';
|
|
13
|
-
export { agentdbTools } from './agentdb-tools.js';
|
|
14
13
|
export { memoryTools } from './memory-tools.js';
|
|
15
14
|
export { configTools } from './config-tools.js';
|
|
16
15
|
export { hooksTools } from './hooks-tools.js';
|
|
@@ -10,8 +10,6 @@ export { systemTools } from './system-tools.js';
|
|
|
10
10
|
export { neuralTools } from './neural-tools.js';
|
|
11
11
|
export { performanceTools } from './performance-tools.js';
|
|
12
12
|
export { githubTools } from './github-tools.js';
|
|
13
|
-
// Phase 6: AgentDB v1 controller tools
|
|
14
|
-
export { agentdbTools } from './agentdb-tools.js';
|
|
15
13
|
export { memoryTools } from './memory-tools.js';
|
|
16
14
|
export { configTools } from './config-tools.js';
|
|
17
15
|
export { hooksTools } from './hooks-tools.js';
|
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Memory MCP Tools
|
|
2
|
+
* Memory MCP Tools — Phase 6 of ADR-053
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* Exposes Memory backend operations as MCP tools.
|
|
5
|
+
* Provides direct access to ReasoningBank, CausalGraph, SkillLibrary,
|
|
6
|
+
* AttestationLog, and bridge health through the MCP protocol.
|
|
7
|
+
*
|
|
8
|
+
* Security: All handlers validate input types, enforce length bounds,
|
|
9
|
+
* and sanitize error messages before returning to MCP callers.
|
|
9
10
|
*
|
|
10
11
|
* @module v1/cli/mcp-tools/memory-tools
|
|
11
12
|
*/
|
|
12
13
|
import type { MCPTool } from './types.js';
|
|
14
|
+
export declare const memoryHealth: MCPTool;
|
|
15
|
+
export declare const memoryControllers: MCPTool;
|
|
16
|
+
export declare const memoryPatternStore: MCPTool;
|
|
17
|
+
export declare const memoryPatternSearch: MCPTool;
|
|
18
|
+
export declare const memoryFeedback: MCPTool;
|
|
19
|
+
export declare const memoryCausalEdge: MCPTool;
|
|
20
|
+
export declare const memoryRoute: MCPTool;
|
|
21
|
+
export declare const memorySessionStart: MCPTool;
|
|
22
|
+
export declare const memorySessionEnd: MCPTool;
|
|
23
|
+
export declare const memoryHierarchicalStore: MCPTool;
|
|
24
|
+
export declare const memoryHierarchicalRecall: MCPTool;
|
|
25
|
+
export declare const memoryConsolidate: MCPTool;
|
|
26
|
+
export declare const memoryBatch: MCPTool;
|
|
27
|
+
export declare const memoryContextSynthesize: MCPTool;
|
|
28
|
+
export declare const memorySemanticRoute: MCPTool;
|
|
13
29
|
export declare const memoryTools: MCPTool[];
|
|
14
30
|
//# sourceMappingURL=memory-tools.d.ts.map
|