@mindstudio-ai/agent 0.1.24 → 0.1.26
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 +9 -0
- package/dist/cli.js +21 -7
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +22 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,6 +96,15 @@ $ mindstudio generate-image --prompt "A mountain landscape at sunset"
|
|
|
96
96
|
{"imageUrl":"https://...","$billingCost":5000000}
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
+
For AI agents, use `--json-logs` to get structured debug logs on stderr:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
mindstudio generate-image --prompt "a cat" --json-logs
|
|
103
|
+
# stderr: {"type":"log","value":"Generating image with DALL·E 3...","tag":"Generate Image","ts":1774270499100}
|
|
104
|
+
# stderr: {"type":"log","value":"Image generated successfully","tag":"Generate Image","ts":1774270502300}
|
|
105
|
+
# stdout: {"imageUrl":"https://...","$billingCost":5000000}
|
|
106
|
+
```
|
|
107
|
+
|
|
99
108
|
Run via `npx` without installing:
|
|
100
109
|
|
|
101
110
|
```bash
|
package/dist/cli.js
CHANGED
|
@@ -4562,6 +4562,7 @@ async function buildSystemPrompt(agent) {
|
|
|
4562
4562
|
- **Never rank vendors** or claim one provider is better than another. Popularity reflects usage patterns, not quality judgments. Present options with their model IDs and let the caller choose.
|
|
4563
4563
|
- **Popularity scores**: 1.0 = most used in its category, 0.5\u20130.9 = commonly used, 0.1\u20130.4 = niche, 0.0 = rarely used, null = new model with no data yet.
|
|
4564
4564
|
- **Prefer popular models as defaults** in code examples unless the caller has a reason to use something specific. A model with popularity 0.9 is a safer recommendation than one with 0.2.
|
|
4565
|
+
- **Always recommend latest-generation models**: For Anthropic, this is Claude 4 family, GPT-5 for OpenAI, Gemini 3 for Google, etc. MindStudio supports a ton of different models, including legacy models - but they are there for niche uses or backward compatibility/existing user requirements - they should NOT be used for new projects.
|
|
4565
4566
|
</model_guidance>
|
|
4566
4567
|
|
|
4567
4568
|
<tools>
|
|
@@ -4806,7 +4807,7 @@ async function startMcpServer(options) {
|
|
|
4806
4807
|
capabilities: { tools: {} },
|
|
4807
4808
|
serverInfo: {
|
|
4808
4809
|
name: "mindstudio-agent",
|
|
4809
|
-
version: "0.1.
|
|
4810
|
+
version: "0.1.26"
|
|
4810
4811
|
},
|
|
4811
4812
|
instructions: 'Welcome to MindStudio \u2014 a platform with 200+ AI models, 850+ third-party integrations, and pre-built agents.\n\nGetting started:\n1. Call `ask` with any question about the SDK \u2014 it knows every action, model, and connector and returns working code with real model IDs and config options. Examples: ask("generate an image with FLUX"), ask("what models support vision?"), ask("how do I send a Slack message?").\n2. Call `changeName` to set your display name \u2014 use your name or whatever your user calls you. This is how you\'ll appear in MindStudio request logs.\n3. If you have a profile picture or icon, call `uploadFile` to upload it, then `changeProfilePicture` with the returned URL.\n4. For manual browsing, call `listActions` to discover all available actions.\n\nThen use the tools to generate text, images, video, audio, search the web, work with data sources, run agents, and more.\n\nImportant:\n- AI-powered actions (text generation, image generation, video, audio, etc.) cost money. Before running these, call `estimateActionCost` and confirm with the user before proceeding \u2014 unless they\'ve explicitly told you to go ahead.\n- Not all agents from `listAgents` are configured for API use. Do not try to run an agent just because it appears in the list \u2014 it will likely fail. Only run agents the user specifically asks you to run.'
|
|
4812
4813
|
});
|
|
@@ -5758,7 +5759,7 @@ function isNewerVersion(current, latest) {
|
|
|
5758
5759
|
return false;
|
|
5759
5760
|
}
|
|
5760
5761
|
async function checkForUpdate() {
|
|
5761
|
-
const currentVersion = "0.1.
|
|
5762
|
+
const currentVersion = "0.1.26";
|
|
5762
5763
|
if (!currentVersion) return null;
|
|
5763
5764
|
try {
|
|
5764
5765
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -5787,7 +5788,7 @@ async function checkForUpdate() {
|
|
|
5787
5788
|
}
|
|
5788
5789
|
}
|
|
5789
5790
|
function printUpdateNotice(latestVersion) {
|
|
5790
|
-
const currentVersion = "0.1.
|
|
5791
|
+
const currentVersion = "0.1.26";
|
|
5791
5792
|
process.stderr.write(
|
|
5792
5793
|
`
|
|
5793
5794
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -5800,7 +5801,7 @@ function isStandaloneBinary() {
|
|
|
5800
5801
|
return !argv1.includes("node_modules");
|
|
5801
5802
|
}
|
|
5802
5803
|
async function cmdUpdate() {
|
|
5803
|
-
const currentVersion = "0.1.
|
|
5804
|
+
const currentVersion = "0.1.26";
|
|
5804
5805
|
process.stderr.write(
|
|
5805
5806
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
5806
5807
|
`
|
|
@@ -5935,7 +5936,7 @@ async function cmdLogin(options) {
|
|
|
5935
5936
|
process.stderr.write("\n");
|
|
5936
5937
|
printLogo();
|
|
5937
5938
|
process.stderr.write("\n");
|
|
5938
|
-
const ver = "0.1.
|
|
5939
|
+
const ver = "0.1.26";
|
|
5939
5940
|
process.stderr.write(
|
|
5940
5941
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
5941
5942
|
`
|
|
@@ -6158,7 +6159,13 @@ function parseStepFlags(argv) {
|
|
|
6158
6159
|
const result = {};
|
|
6159
6160
|
for (let i = 0; i < argv.length; i++) {
|
|
6160
6161
|
const arg = argv[i];
|
|
6161
|
-
if (arg.startsWith("--")
|
|
6162
|
+
if (!arg.startsWith("--")) continue;
|
|
6163
|
+
if (GLOBAL_BOOLEAN_FLAGS.has(arg)) continue;
|
|
6164
|
+
if (GLOBAL_STRING_FLAGS.has(arg)) {
|
|
6165
|
+
i++;
|
|
6166
|
+
continue;
|
|
6167
|
+
}
|
|
6168
|
+
if (i + 1 < argv.length) {
|
|
6162
6169
|
const key = arg.slice(2);
|
|
6163
6170
|
result[kebabToCamel2(key)] = coerce(argv[++i]);
|
|
6164
6171
|
}
|
|
@@ -6174,6 +6181,13 @@ var GLOBAL_STRING_FLAGS = /* @__PURE__ */ new Set([
|
|
|
6174
6181
|
"--workflow",
|
|
6175
6182
|
"--version"
|
|
6176
6183
|
]);
|
|
6184
|
+
var GLOBAL_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
6185
|
+
"--no-meta",
|
|
6186
|
+
"--json-logs",
|
|
6187
|
+
"--json",
|
|
6188
|
+
"--summary",
|
|
6189
|
+
"--help"
|
|
6190
|
+
]);
|
|
6177
6191
|
function findMethodSplit(argv) {
|
|
6178
6192
|
let startIdx = 0;
|
|
6179
6193
|
let hasRun = false;
|
|
@@ -6249,7 +6263,7 @@ async function main() {
|
|
|
6249
6263
|
try {
|
|
6250
6264
|
if (command === "version" || command === "-v") {
|
|
6251
6265
|
process.stdout.write(
|
|
6252
|
-
"0.1.
|
|
6266
|
+
"0.1.26\n"
|
|
6253
6267
|
);
|
|
6254
6268
|
return;
|
|
6255
6269
|
}
|