minovative-mind-cli 1.4.0 → 1.4.1
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/README.md +4 -2
- package/dist/services/agent.js +6 -3
- package/dist/services/contextAgent.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,8 +88,10 @@ Hot-swap during a session with `/models`:
|
|
|
88
88
|
| **Gemini 3.1 Flash Lite** | Maximum speed and cost efficiency |
|
|
89
89
|
|
|
90
90
|
> Background tasks (routing, compression, commits) always use lightweight
|
|
91
|
-
> models automatically. You
|
|
92
|
-
>
|
|
91
|
+
> models automatically. You pay for those lightweight model
|
|
92
|
+
> background ai models and for your selected model
|
|
93
|
+
> during chat and code execution.
|
|
94
|
+
> Use `/debug` to see exactly what's running.
|
|
93
95
|
|
|
94
96
|
---
|
|
95
97
|
|
package/dist/services/agent.js
CHANGED
|
@@ -22,7 +22,7 @@ import path from 'node:path';
|
|
|
22
22
|
import { exec } from 'node:child_process';
|
|
23
23
|
import { promisify } from 'node:util';
|
|
24
24
|
import { debugLog, toggleDebugMode } from '../utils/logger.js';
|
|
25
|
-
import { ensureProjectStorage, ensureIgnored, readCache, writeCache, invalidateCacheForDependents } from '../utils/projectStorage.js';
|
|
25
|
+
import { ensureProjectStorage, ensureIgnored, readCache, writeCache, invalidateCacheForDependents, } from '../utils/projectStorage.js';
|
|
26
26
|
import * as crypto from 'node:crypto';
|
|
27
27
|
const execAsync = promisify(exec);
|
|
28
28
|
/**
|
|
@@ -483,7 +483,7 @@ async function processResponse(chat, result, workspaceRoot, inputHandler, agentS
|
|
|
483
483
|
let response = result.response;
|
|
484
484
|
// Upper limit on autonomous sequential tool executions to prevent out-of-control loops
|
|
485
485
|
let turnCount = 0;
|
|
486
|
-
const MAX_TURNS =
|
|
486
|
+
const MAX_TURNS = 100;
|
|
487
487
|
// Recovery thresholds for handling unexpected empty API payloads
|
|
488
488
|
let emptyRetryCount = 0;
|
|
489
489
|
const MAX_EMPTY_RETRIES = 3;
|
|
@@ -1028,7 +1028,10 @@ ${diffOut}
|
|
|
1028
1028
|
compressedFiles.set(filePath, content);
|
|
1029
1029
|
continue;
|
|
1030
1030
|
}
|
|
1031
|
-
const fileHash = crypto
|
|
1031
|
+
const fileHash = crypto
|
|
1032
|
+
.createHash('sha256')
|
|
1033
|
+
.update(filePath + content)
|
|
1034
|
+
.digest('hex');
|
|
1032
1035
|
if (cachedContext[fileHash]) {
|
|
1033
1036
|
debugLog(`Context cache HIT for file ${filePath} (hash ${fileHash.substring(0, 8)})`);
|
|
1034
1037
|
compressedFiles.set(filePath, cachedContext[fileHash]);
|
|
@@ -185,7 +185,7 @@ export async function gatherContext(workspaceRoot, userRequest, chatHistory = ''
|
|
|
185
185
|
currentMessage = `Previous Conversation Context:\n${chatHistory}\n\n` + currentMessage;
|
|
186
186
|
}
|
|
187
187
|
currentMessage += `\n\nStart investigating to find relevant files.`;
|
|
188
|
-
const MAX_TURNS =
|
|
188
|
+
const MAX_TURNS = 100;
|
|
189
189
|
for (let turn = 0; turn < MAX_TURNS; turn++) {
|
|
190
190
|
await inputHandler.waitForPrompt();
|
|
191
191
|
const queuedMsg = inputHandler.getAndClear();
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED