monomind 1.16.8 → 1.16.10
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monomind",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.10",
|
|
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",
|
|
@@ -54,7 +54,7 @@ const buildCommand = {
|
|
|
54
54
|
options: [
|
|
55
55
|
{ name: 'path', short: 'p', type: 'string', description: 'Root path to index (default: cwd)' },
|
|
56
56
|
{ name: 'code-only', type: 'boolean', description: 'Index only code files, skip documents' },
|
|
57
|
-
{ name: 'llm', type: 'boolean', description: 'Enable Claude-powered semantic extraction (
|
|
57
|
+
{ name: 'llm', type: 'boolean', description: 'Enable Claude-powered semantic extraction (uses Claude Code CLI)' },
|
|
58
58
|
{ name: 'llm-sections', type: 'number', description: 'Max sections to enrich with LLM (default 50)', default: '50' },
|
|
59
59
|
{ name: 'force', short: 'f', type: 'boolean', description: 'Force full rebuild even if index is fresh' },
|
|
60
60
|
],
|
|
@@ -70,10 +70,11 @@ const buildCommand = {
|
|
|
70
70
|
const force = ctx.flags.force === true;
|
|
71
71
|
const llmFlag = ctx.flags.llm === true;
|
|
72
72
|
const llmSections = parseInt(ctx.flags['llm-sections'] || '50', 10);
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
const { isClaudeCodeAvailable } = await import('../routing/llm-caller.js');
|
|
74
|
+
const claudeAvailable = isClaudeCodeAvailable();
|
|
75
|
+
const llmMaxSections = (llmFlag && claudeAvailable) ? llmSections : 0;
|
|
76
|
+
if (llmFlag && !claudeAvailable) {
|
|
77
|
+
output.printWarning('--llm passed but Claude Code CLI not found — LLM extraction disabled');
|
|
77
78
|
}
|
|
78
79
|
output.writeln();
|
|
79
80
|
output.writeln(output.bold('Monograph — Knowledge Graph Build'));
|
|
@@ -140,7 +141,7 @@ const wikiCommand = {
|
|
|
140
141
|
description: 'Scan all docs and PDFs in the project and build a searchable knowledge graph',
|
|
141
142
|
options: [
|
|
142
143
|
{ name: 'path', short: 'p', type: 'string', description: 'Root path (default: cwd)' },
|
|
143
|
-
{ name: 'llm', type: 'boolean', description: 'Enrich with Claude semantic extraction (
|
|
144
|
+
{ name: 'llm', type: 'boolean', description: 'Enrich with Claude semantic extraction (uses Claude Code CLI)' },
|
|
144
145
|
{ name: 'llm-sections', type: 'number', description: 'Max sections for LLM enrichment (default 100)', default: '100' },
|
|
145
146
|
{ name: 'force', short: 'f', type: 'boolean', description: 'Force full rebuild' },
|
|
146
147
|
],
|
|
@@ -154,10 +155,11 @@ const wikiCommand = {
|
|
|
154
155
|
const force = ctx.flags.force === true;
|
|
155
156
|
const llmFlag = ctx.flags.llm === true;
|
|
156
157
|
const llmSections = parseInt(ctx.flags['llm-sections'] || '100', 10);
|
|
157
|
-
const
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
const { isClaudeCodeAvailable } = await import('../routing/llm-caller.js');
|
|
159
|
+
const claudeAvailable = isClaudeCodeAvailable();
|
|
160
|
+
const llmMaxSections = (llmFlag && claudeAvailable) ? llmSections : 0;
|
|
161
|
+
if (llmFlag && !claudeAvailable) {
|
|
162
|
+
output.printWarning('--llm passed but Claude Code CLI not found — LLM extraction disabled');
|
|
161
163
|
}
|
|
162
164
|
// Pre-scan docs
|
|
163
165
|
const docs = walkDocs(root, []);
|
|
@@ -384,7 +386,7 @@ const watchCommand = {
|
|
|
384
386
|
description: 'Watch for file changes and incrementally rebuild the knowledge graph',
|
|
385
387
|
options: [
|
|
386
388
|
{ name: 'path', short: 'p', type: 'string', description: 'Root path (default: cwd)' },
|
|
387
|
-
{ name: 'llm', type: 'boolean', description: 'Enable LLM enrichment on rebuild (
|
|
389
|
+
{ name: 'llm', type: 'boolean', description: 'Enable LLM enrichment on rebuild (uses Claude Code CLI)' },
|
|
388
390
|
],
|
|
389
391
|
examples: [
|
|
390
392
|
{ command: 'monomind monograph watch', description: 'Watch and rebuild on changes' },
|
|
@@ -392,8 +394,8 @@ const watchCommand = {
|
|
|
392
394
|
action: async (ctx) => {
|
|
393
395
|
const root = resolve(ctx.flags.path ?? process.cwd());
|
|
394
396
|
const llmFlag = ctx.flags.llm === true;
|
|
395
|
-
const
|
|
396
|
-
const llmMaxSections = (llmFlag &&
|
|
397
|
+
const { isClaudeCodeAvailable } = await import('../routing/llm-caller.js');
|
|
398
|
+
const llmMaxSections = (llmFlag && isClaudeCodeAvailable()) ? 50 : 0;
|
|
397
399
|
output.writeln();
|
|
398
400
|
output.writeln(output.bold('Monograph — Watch Mode'));
|
|
399
401
|
output.writeln(output.dim(` Watching: ${root}`));
|
|
@@ -1487,18 +1487,20 @@ mcp:
|
|
|
1487
1487
|
path.join(__dirname, '..', '..', 'package.json'), // src/init/ in dev
|
|
1488
1488
|
path.join(__dirname, '..', '..', '..', 'package.json'), // dist/src/init/ in prod
|
|
1489
1489
|
];
|
|
1490
|
-
let cliVersion =
|
|
1490
|
+
let cliVersion = null;
|
|
1491
1491
|
for (const p of pkgCandidates) {
|
|
1492
1492
|
if (fs.existsSync(p)) {
|
|
1493
1493
|
const pkg = JSON.parse(fs.readFileSync(p, 'utf-8'));
|
|
1494
|
-
if (typeof pkg.version === 'string') {
|
|
1494
|
+
if (typeof pkg.version === 'string' && pkg.version) {
|
|
1495
1495
|
cliVersion = pkg.version;
|
|
1496
1496
|
break;
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
|
|
1501
|
-
|
|
1500
|
+
if (cliVersion) {
|
|
1501
|
+
atomicWriteFile(versionPath, cliVersion);
|
|
1502
|
+
result.created.files.push('.monomind/version');
|
|
1503
|
+
}
|
|
1502
1504
|
}
|
|
1503
1505
|
catch { /* non-fatal — sync check will degrade gracefully */ }
|
|
1504
1506
|
// Write .monomind/.gitignore — commit config/knowledge/metrics, exclude sensitive data
|
|
@@ -1296,7 +1296,7 @@ const monographWikiTool = {
|
|
|
1296
1296
|
// ── monograph_wiki_build ──────────────────────────────────────────────────────
|
|
1297
1297
|
const monographWikiBuildTool = {
|
|
1298
1298
|
name: 'monograph_wiki_build',
|
|
1299
|
-
description: 'Generate
|
|
1299
|
+
description: 'Generate wiki pages for code communities using Claude Code CLI (no API key needed — reuses Claude Code auth).',
|
|
1300
1300
|
inputSchema: {
|
|
1301
1301
|
type: 'object',
|
|
1302
1302
|
properties: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoes/monomindcli",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.10",
|
|
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",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"ws": "^8.21.0",
|
|
89
89
|
"@noble/ed25519": "^2.1.0",
|
|
90
|
-
"@monoes/monograph": "^1.2.
|
|
90
|
+
"@monoes/monograph": "^1.2.4",
|
|
91
91
|
"@monoes/monobrowse": "^1.0.1",
|
|
92
92
|
"@monomind/security": "workspace:*"
|
|
93
93
|
},
|