minovative-mind-cli 1.0.2 → 1.0.3
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 +13 -0
- package/dist/services/ai.js +15 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@ An automated AI agent powered by Vertex AI that helps you write software right i
|
|
|
9
9
|
[](https://npmjs.org/package/minovative-mind-cli)
|
|
10
10
|
|
|
11
11
|
Official Website: [https://www.minovativemind.dev/](https://www.minovativemind.dev/)
|
|
12
|
+
Latest Updates: [https://www.minovativemind.dev/updates](https://www.minovativemind.dev/updates)
|
|
12
13
|
|
|
13
14
|
## Supported Models
|
|
14
15
|
|
|
@@ -53,6 +54,13 @@ Getting started with Minovative Mind CLI is easy!
|
|
|
53
54
|
4. **Change Models (Optional):**
|
|
54
55
|
Once in a chat, type `/models` to switch between advanced reasoning models like Gemini 2.5 Pro and Gemini 2.5 Flash!
|
|
55
56
|
|
|
57
|
+
5. **Update the CLI:**
|
|
58
|
+
To ensure you have the latest features and bug fixes, you can update the CLI at any time by running:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npm update -g minovative-mind-cli
|
|
62
|
+
```
|
|
63
|
+
|
|
56
64
|
# Commands
|
|
57
65
|
|
|
58
66
|
<!-- commands -->
|
|
@@ -120,3 +128,8 @@ DESCRIPTION
|
|
|
120
128
|
Sign out of your Minovative Mind account
|
|
121
129
|
```
|
|
122
130
|
<!-- commandsstop -->
|
|
131
|
+
|
|
132
|
+
## Legal
|
|
133
|
+
|
|
134
|
+
- [Terms of Service](https://www.minovativemind.dev/legal/cli-terms)
|
|
135
|
+
- [Privacy Policy](https://www.minovativemind.dev/legal/cli-privacy)
|
package/dist/services/ai.js
CHANGED
|
@@ -126,8 +126,20 @@ export class ProxyChatSession {
|
|
|
126
126
|
modelParts.push({ text: textPart });
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
const allFunctionCalls = [...(result.functionCalls || [])];
|
|
130
|
+
if (result.parts) {
|
|
131
|
+
for (const p of result.parts) {
|
|
132
|
+
if (p.functionCall) {
|
|
133
|
+
// Prevent duplicates if the proxy sends both type: 'functionCall' and type: 'parts'
|
|
134
|
+
const isDuplicate = allFunctionCalls.some((fc) => fc.name === p.functionCall.name && JSON.stringify(fc.args) === JSON.stringify(p.functionCall.args));
|
|
135
|
+
if (!isDuplicate) {
|
|
136
|
+
allFunctionCalls.push(p.functionCall);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (allFunctionCalls.length > 0) {
|
|
142
|
+
allFunctionCalls.forEach((fc) => {
|
|
131
143
|
modelParts.push({ functionCall: fc });
|
|
132
144
|
});
|
|
133
145
|
}
|
|
@@ -142,7 +154,7 @@ export class ProxyChatSession {
|
|
|
142
154
|
return {
|
|
143
155
|
response: {
|
|
144
156
|
text: () => result.thought || result.parts?.find((p) => p.text)?.text || '',
|
|
145
|
-
functionCalls: () => (
|
|
157
|
+
functionCalls: () => (allFunctionCalls.length > 0 ? allFunctionCalls : undefined),
|
|
146
158
|
usageMetadata: () => result.usageMetadata,
|
|
147
159
|
groundingMetadata: () => result.groundingMetadata,
|
|
148
160
|
},
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "minovative-mind-cli",
|
|
3
3
|
"description": "An automated AI agent powered by Vertex AI that helps you write software",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"author": "Daniel Ward",
|
|
6
6
|
"bin": "./bin/run.js",
|
|
7
7
|
"bugs": "https://github.com/quarantiine/minovative-mind-cli/issues",
|