@monoes/monomindcli 1.10.24 → 1.10.25
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": "@monoes/monomindcli",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.25",
|
|
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",
|
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
* --no-llm Heuristic-only mode (layers + tags from paths, no API calls)
|
|
23
23
|
* --layers-only Skip per-file analysis, only (re-)detect layers
|
|
24
24
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
25
|
+
* Designed to be invoked by the /monomind:understand slash command. The
|
|
26
|
+
* slash command runs the script in --no-llm mode and orchestrates the
|
|
27
|
+
* per-file summarization through the active Claude Code session.
|
|
27
28
|
*/
|
|
28
29
|
|
|
29
30
|
import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'node:fs';
|
|
@@ -181,7 +182,7 @@ async function callClaude(systemPrompt, userPrompt, maxTokens = 1024) {
|
|
|
181
182
|
if (ANTHROPIC_API_KEY) {
|
|
182
183
|
return callClaudeViaApi(systemPrompt, userPrompt, maxTokens);
|
|
183
184
|
}
|
|
184
|
-
throw new Error('No LLM path available:
|
|
185
|
+
throw new Error('No LLM path available. Use /monomind:understand from inside Claude Code — the slash command orchestrates LLM work through the active session.');
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
function parseJson(text) {
|
|
@@ -678,19 +679,13 @@ async function main() {
|
|
|
678
679
|
const batch = toAnalyze.slice(0, limit);
|
|
679
680
|
console.log(`[understand] Analyzing ${batch.length} files (${toAnalyze.length - batch.length} skipped/already enriched)`);
|
|
680
681
|
|
|
681
|
-
// LLM path
|
|
682
|
-
//
|
|
683
|
-
// nested CLI sessions aren't supported. For LLM enrichment without an API
|
|
684
|
-
// key, use the /monomind:understand slash command which orchestrates LLM
|
|
685
|
-
// work via the active Claude Code session inline.
|
|
682
|
+
// LLM path determined automatically. The script does NOT advise on
|
|
683
|
+
// credentials — orchestration is the slash command's job.
|
|
686
684
|
const llmPath = ANTHROPIC_API_KEY ? 'api' : 'none';
|
|
687
685
|
if (llmPath === 'none' && !noLlm) {
|
|
688
|
-
console.log('[understand]
|
|
689
|
-
console.log('[understand]
|
|
690
|
-
console.log('[understand]
|
|
691
|
-
console.log('[understand] (the slash command does inline analysis via the active session, no key needed).');
|
|
692
|
-
} else if (llmPath === 'api' && !noLlm) {
|
|
693
|
-
console.log('[understand] LLM path: direct Anthropic API');
|
|
686
|
+
console.log('[understand] Running in heuristic mode. For per-file summaries,');
|
|
687
|
+
console.log('[understand] use /monomind:understand from inside Claude Code — the slash');
|
|
688
|
+
console.log('[understand] command orchestrates summarization through the active session.');
|
|
694
689
|
}
|
|
695
690
|
const useLlm = !noLlm && llmPath !== 'none';
|
|
696
691
|
|