monomind 1.11.3 → 1.11.4
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/package.json +1 -1
- package/packages/@monomind/cli/dist/src/commands/benchmark.js +2 -2
- package/packages/@monomind/cli/dist/src/config-adapter.js +2 -15
- package/packages/@monomind/cli/dist/src/index.d.ts +0 -2
- package/packages/@monomind/cli/dist/src/index.js +0 -4
- package/packages/@monomind/cli/dist/src/mcp-server.js +3 -6
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +3 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.js +3 -4
- package/packages/@monomind/cli/dist/src/types.d.ts +1 -7
- package/packages/@monomind/cli/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monomind",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.4",
|
|
4
4
|
"description": "Monomind - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@ import { BenchmarkRunner } from '../benchmarks/benchmark-runner.js';
|
|
|
13
13
|
// ============================================================================
|
|
14
14
|
const pretrainCommand = {
|
|
15
15
|
name: 'pretrain',
|
|
16
|
-
description: 'Benchmark
|
|
16
|
+
description: 'Benchmark pattern-learning pre-training system',
|
|
17
17
|
options: [
|
|
18
18
|
{ name: 'iterations', short: 'i', type: 'number', description: 'Benchmark iterations', default: '100' },
|
|
19
19
|
{ name: 'warmup', short: 'w', type: 'number', description: 'Warmup iterations', default: '10' },
|
|
@@ -554,7 +554,7 @@ export const benchmarkCommand = {
|
|
|
554
554
|
output.writeln(output.dim('─'.repeat(50)));
|
|
555
555
|
output.writeln();
|
|
556
556
|
output.writeln('Available subcommands:');
|
|
557
|
-
output.writeln(` ${output.highlight('pretrain')} - Benchmark
|
|
557
|
+
output.writeln(` ${output.highlight('pretrain')} - Benchmark pattern-learning pre-training`);
|
|
558
558
|
output.writeln(` ${output.highlight('neural')} - Benchmark neural operations (embeddings, WASM)`);
|
|
559
559
|
output.writeln(` ${output.highlight('memory')} - Benchmark memory operations (HNSW, store, search)`);
|
|
560
560
|
output.writeln(` ${output.highlight('all')} - Run all benchmark suites`);
|
|
@@ -55,16 +55,10 @@ export function systemConfigToMonomindConfig(systemConfig) {
|
|
|
55
55
|
autoExecute: false,
|
|
56
56
|
hooks: [],
|
|
57
57
|
},
|
|
58
|
-
// Neural
|
|
58
|
+
// Neural pattern-learning configuration
|
|
59
59
|
neural: {
|
|
60
60
|
enabled: systemConfig.neural?.enabled ?? true,
|
|
61
61
|
disableNative: systemConfig.neural?.disableNative ?? false,
|
|
62
|
-
sona: {
|
|
63
|
-
mode: systemConfig.neural?.sona?.mode ?? 'balanced',
|
|
64
|
-
learningRate: systemConfig.neural?.sona?.learningRate,
|
|
65
|
-
ewcLambda: systemConfig.neural?.sona?.ewcLambda,
|
|
66
|
-
embeddingDim: systemConfig.neural?.sona?.embeddingDim,
|
|
67
|
-
},
|
|
68
62
|
},
|
|
69
63
|
};
|
|
70
64
|
}
|
|
@@ -143,19 +137,12 @@ export function configToSystemConfig(config) {
|
|
|
143
137
|
logging: true,
|
|
144
138
|
},
|
|
145
139
|
},
|
|
146
|
-
// Neural
|
|
147
|
-
// synthesize a neural block for configs that never had one.
|
|
140
|
+
// Neural pattern-learning configuration — only emit when present
|
|
148
141
|
...(config.neural
|
|
149
142
|
? {
|
|
150
143
|
neural: {
|
|
151
144
|
enabled: config.neural.enabled ?? true,
|
|
152
145
|
disableNative: config.neural.disableNative ?? false,
|
|
153
|
-
sona: {
|
|
154
|
-
mode: config.neural.sona?.mode ?? 'balanced',
|
|
155
|
-
learningRate: config.neural.sona?.learningRate,
|
|
156
|
-
ewcLambda: config.neural.sona?.ewcLambda,
|
|
157
|
-
embeddingDim: config.neural.sona?.embeddingDim,
|
|
158
|
-
},
|
|
159
146
|
},
|
|
160
147
|
}
|
|
161
148
|
: {}),
|
|
@@ -66,8 +66,6 @@ export * from './commands/index.js';
|
|
|
66
66
|
export { MCPServerManager, createMCPServerManager, getServerManager, startMCPServer, stopMCPServer, getMCPServerStatus, type MCPServerOptions, type MCPServerStatus, } from './mcp-server.js';
|
|
67
67
|
export { initializeMemoryDatabase, generateEmbedding, generateBatchEmbeddings, storeEntry, searchEntries, getHNSWIndex, addToHNSWIndex, searchHNSWIndex, getHNSWStatus, clearHNSWIndex, quantizeInt8, dequantizeInt8, quantizedCosineSim, getQuantizationStats, batchCosineSim, softmaxAttention, topKIndices, flashAttentionSearch, type MemoryInitResult, } from './memory/memory-initializer.js';
|
|
68
68
|
export { initializeIntelligence, recordStep, recordTrajectory, findSimilarPatterns, getIntelligenceStats, getSonaCoordinator, getReasoningBank, clearIntelligence, benchmarkAdaptation, endTrajectoryWithVerdict, distillLearning, getAllPatterns, getPatternsByType, flushPatterns, deletePattern, clearAllPatterns, getNeuralDataDir, getPersistenceStatus, type SonaConfig, type TrajectoryStep, type Pattern, type IntelligenceStats, } from './memory/intelligence.js';
|
|
69
|
-
export { EWCConsolidator, getEWCConsolidator, resetEWCConsolidator, consolidatePatterns, recordPatternOutcome, getEWCStats, type PatternWeights, type EWCConfig, type ConsolidationResult, type EWCStats, } from './memory/ewc-consolidation.js';
|
|
70
|
-
export { SONAOptimizer, getSONAOptimizer, resetSONAOptimizer, processTrajectory, getSuggestion, getSONAStats, type TrajectoryOutcome, type LearnedPattern, type RoutingSuggestion, type SONAStats, } from './memory/sona-optimizer.js';
|
|
71
69
|
export { ErrorHandler, withErrorHandling, } from './production/error-handler.js';
|
|
72
70
|
export type { ErrorContext, ErrorHandlerConfig, } from './production/error-handler.js';
|
|
73
71
|
export { RateLimiter, createRateLimiter, } from './production/rate-limiter.js';
|
|
@@ -565,10 +565,6 @@ export { initializeIntelligence, recordStep, recordTrajectory, findSimilarPatter
|
|
|
565
565
|
endTrajectoryWithVerdict, distillLearning,
|
|
566
566
|
// Pattern persistence API
|
|
567
567
|
getAllPatterns, getPatternsByType, flushPatterns, deletePattern, clearAllPatterns, getNeuralDataDir, getPersistenceStatus, } from './memory/intelligence.js';
|
|
568
|
-
// EWC++ Consolidation (Prevents Catastrophic Forgetting)
|
|
569
|
-
export { EWCConsolidator, getEWCConsolidator, resetEWCConsolidator, consolidatePatterns, recordPatternOutcome, getEWCStats, } from './memory/ewc-consolidation.js';
|
|
570
|
-
// SONA Optimizer (Adaptive Routing via Trajectory Learning)
|
|
571
|
-
export { SONAOptimizer, getSONAOptimizer, resetSONAOptimizer, processTrajectory, getSuggestion, getSONAStats, } from './memory/sona-optimizer.js';
|
|
572
568
|
// Production Hardening
|
|
573
569
|
export { ErrorHandler, withErrorHandling, } from './production/error-handler.js';
|
|
574
570
|
export { RateLimiter, createRateLimiter, } from './production/rate-limiter.js';
|
|
@@ -900,12 +900,9 @@ export function getServerManager(options) {
|
|
|
900
900
|
* Quick start MCP server
|
|
901
901
|
*/
|
|
902
902
|
export async function startMCPServer(options) {
|
|
903
|
-
//
|
|
904
|
-
//
|
|
905
|
-
//
|
|
906
|
-
// threshold and is discarded on process exit — is skipped to avoid wasted
|
|
907
|
-
// ONNX/embedding overhead. Across MCP calls the registry singleton persists, so
|
|
908
|
-
// trajectories accumulate and DO reach threshold here.
|
|
903
|
+
// Mark as long-lived host so the intelligence/trajectory system stays enabled.
|
|
904
|
+
// In one-shot CLI mode trajectories are discarded on process exit; across
|
|
905
|
+
// MCP calls the registry singleton persists so patterns accumulate correctly.
|
|
909
906
|
process.env.MONOMIND_PERSISTENT_HOST = '1';
|
|
910
907
|
const manager = getServerManager(options);
|
|
911
908
|
return await manager.start();
|
|
@@ -1475,7 +1475,7 @@ export const hooksBuildAgents = {
|
|
|
1475
1475
|
const format = formatRaw;
|
|
1476
1476
|
const persist = params.persist !== false; // Default to true
|
|
1477
1477
|
const agents = [
|
|
1478
|
-
{ type: 'coder', configFile: join(outputDir, `coder.${format}`), capabilities: ['code-generation', 'refactoring', 'debugging'], optimizations: ['
|
|
1478
|
+
{ type: 'coder', configFile: join(outputDir, `coder.${format}`), capabilities: ['code-generation', 'refactoring', 'debugging'], optimizations: ['token-reduction', 'context-caching'] },
|
|
1479
1479
|
{ type: 'architect', configFile: join(outputDir, `architect.${format}`), capabilities: ['system-design', 'api-design', 'documentation'], optimizations: ['context-caching', 'memory-persistence'] },
|
|
1480
1480
|
{ type: 'tester', configFile: join(outputDir, `tester.${format}`), capabilities: ['unit-testing', 'integration-testing', 'coverage'], optimizations: ['parallel-execution'] },
|
|
1481
1481
|
{ type: 'security-architect', configFile: join(outputDir, `security-architect.${format}`), capabilities: ['threat-modeling', 'vulnerability-analysis', 'security-review'], optimizations: ['pattern-matching'] },
|
|
@@ -1971,7 +1971,8 @@ export const hooksIntelligence = {
|
|
|
1971
1971
|
partial: [],
|
|
1972
1972
|
notImplemented: [],
|
|
1973
1973
|
removed: [
|
|
1974
|
-
'
|
|
1974
|
+
'moe-routing', 'flash-attention', 'lora-adapter',
|
|
1975
|
+
'native-sona-engine', 'native-router', 'native-attention',
|
|
1975
1976
|
],
|
|
1976
1977
|
},
|
|
1977
1978
|
version: '3.0.0-alpha.102',
|
|
@@ -229,10 +229,9 @@ export function detectMonographChanges(db, opts, repoPath) {
|
|
|
229
229
|
const affectedSymbols = [];
|
|
230
230
|
const seenIds = new Set();
|
|
231
231
|
for (const rel of changedFiles) {
|
|
232
|
-
// DB stores relative paths; try
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
: getNodesForFile(db, join(repoPath, rel));
|
|
232
|
+
// DB stores relative paths; try relative first, fall back to absolute
|
|
233
|
+
const relNodes = getNodesForFile(db, rel);
|
|
234
|
+
const nodes = relNodes.length > 0 ? relNodes : getNodesForFile(db, join(repoPath, rel));
|
|
236
235
|
for (const n of nodes) {
|
|
237
236
|
if (!seenIds.has(n.id)) {
|
|
238
237
|
seenIds.add(n.id);
|
|
@@ -56,16 +56,10 @@ export interface MonomindConfig {
|
|
|
56
56
|
neural?: NeuralConfig;
|
|
57
57
|
}
|
|
58
58
|
export interface NeuralConfig {
|
|
59
|
-
/** Enable
|
|
59
|
+
/** Enable pattern learning (default: true) */
|
|
60
60
|
enabled?: boolean;
|
|
61
61
|
/** Force pure-JS fallback, skip all native @monoes packages (default: false) */
|
|
62
62
|
disableNative?: boolean;
|
|
63
|
-
sona?: {
|
|
64
|
-
mode?: 'real-time' | 'balanced' | 'research' | 'edge' | 'batch';
|
|
65
|
-
learningRate?: number;
|
|
66
|
-
ewcLambda?: number;
|
|
67
|
-
embeddingDim?: number;
|
|
68
|
-
};
|
|
69
63
|
}
|
|
70
64
|
export interface AgentConfig {
|
|
71
65
|
defaultType: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoes/monomindcli",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Monomind CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|