monomind 1.16.9 → 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.9",
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 (requires ANTHROPIC_API_KEY)' },
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 hasApiKey = !!process.env.ANTHROPIC_API_KEY;
74
- const llmMaxSections = (llmFlag && hasApiKey) ? llmSections : 0;
75
- if (llmFlag && !hasApiKey) {
76
- output.printWarning('--llm passed but ANTHROPIC_API_KEY is not set — LLM extraction disabled');
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 (requires ANTHROPIC_API_KEY)' },
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 hasApiKey = !!process.env.ANTHROPIC_API_KEY;
158
- const llmMaxSections = (llmFlag && hasApiKey) ? llmSections : 0;
159
- if (llmFlag && !hasApiKey) {
160
- output.printWarning('--llm passed but ANTHROPIC_API_KEY is not set — LLM extraction disabled');
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 (requires ANTHROPIC_API_KEY)' },
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 hasApiKey = !!process.env.ANTHROPIC_API_KEY;
396
- const llmMaxSections = (llmFlag && hasApiKey) ? 50 : 0;
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}`));
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoes/monomindcli",
3
- "version": "1.16.9",
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.3",
90
+ "@monoes/monograph": "^1.2.4",
91
91
  "@monoes/monobrowse": "^1.0.1",
92
92
  "@monomind/security": "workspace:*"
93
93
  },