@mindstudio-ai/agent 0.1.52 → 0.1.53
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/dist/cli.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +12 -9
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5224,6 +5224,7 @@ var init_instructions = __esm({
|
|
|
5224
5224
|
- Do not recommend using thread persistence. This is an advanced feature - if someone needs this they will discover it on their own.
|
|
5225
5225
|
- Generate text is great for one-off text generation requests to models. For sustained conversations, conversations that require history, persistence, or multiple threads or tool use, recommend that the developer add an Agent interface to their MindStudio app and use that directly. They will understand what you mean by this.
|
|
5226
5226
|
- **Manual multi-step orchestration when runTask() fits** \u2014 if the caller is chaining multiple SDK actions with conditional logic (search \u2192 extract \u2192 generate \u2192 validate), suggest \`runTask()\` instead. It handles the tool-use loop, error recovery, and structured output enforcement automatically.
|
|
5227
|
+
- **Recommending model switches when the user needs better prompting** \u2014 when a user says "my generated images aren't faithful enough" or "the output quality isn't good," the answer is to improve the prompt, NOT to recommend a different model. Do NOT analyze model configs, architectures, or capabilities to find a "better" model. The recommended models (Seedream 4.5, Gemini 3.1 Flash Image) handle all use cases. Help the user write a better prompt instead.
|
|
5227
5228
|
</anti_patterns>
|
|
5228
5229
|
|
|
5229
5230
|
<task_agent_guidance>
|
|
@@ -5255,14 +5256,16 @@ var init_instructions = __esm({
|
|
|
5255
5256
|
- Use the names of model input objects to infer **technical capabilities** \u2014 e.g., a model with a source image input supports image editing, a video model with start/end frame supports looping. Do not look at model tags or descriptions to determine capabilities.
|
|
5256
5257
|
- **Do NOT use config presets/enums to judge model quality or recommend models.** A model having style presets (e.g. "oil painting", "watercolor") does NOT make it better at those styles than models without presets. The recommended models (Seedream, Nano Banana Pro, etc.) are far more capable and achieve any style through prompting alone. Presets are a crutch for weaker models \u2014 never recommend a model just because it has an enum that matches the user's request.
|
|
5257
5258
|
- **Never set maxResponseTokens to a low value.** Many models use extended thinking/reasoning that counts against the token limit. Setting maxResponseTokens to 256 or 512 will cause truncated or failed responses. Set it to something high, like 16000+, even if you don't need it. Models stop generating on their own when the response is complete \u2014 a low cap does not save money, it just breaks output.
|
|
5259
|
+
- **Do NOT do deep model analysis to find "the right model for the job."** You do not have the expertise to determine which model architecture is better for a specific use case. The recommended models below are the right answer for virtually every use case. When the user's results aren't good enough, the answer is almost always "improve your prompt" \u2014 not "switch to a different model." Prompt engineering is the lever, model selection is not.
|
|
5260
|
+
- **Do NOT hallucinate model IDs.** Only recommend models you can see in the models reference above. If you're not sure a model ID exists, do NOT use it. Call listModels to verify.
|
|
5258
5261
|
|
|
5259
|
-
## Explicit preferences
|
|
5260
|
-
MindStudio has hundreds of models. Many of them are
|
|
5262
|
+
## Explicit preferences \u2014 USE THESE MODELS
|
|
5263
|
+
MindStudio has hundreds of models. Many of them are legacy or niche. The following are the ONLY models you should recommend unless the user explicitly asks for something else. If a user has a quality problem, help them fix their prompt using these models \u2014 do NOT suggest switching to a different model.
|
|
5261
5264
|
|
|
5262
5265
|
Text generation:
|
|
5263
5266
|
- Google Gemini, Anthropic Claude, OpenAI GPT
|
|
5264
5267
|
Image generation:
|
|
5265
|
-
- Seedream 4.5, Google Gemini 3.1 Flash Image (Nano Banana Pro).
|
|
5268
|
+
- Seedream 4.5, Google Gemini 3.1 Flash Image (Nano Banana Pro). These two models handle ALL image generation use cases \u2014 editing, style transfer, backgrounds, product shots, everything. The answer to "how do I get better results" is ALWAYS to improve the prompt, not to switch models. Never recommend Flux, DALL-E, or other legacy/niche models.
|
|
5266
5269
|
Video generation:
|
|
5267
5270
|
- Grok Imagine, Kling O3, Google Veo 3.1
|
|
5268
5271
|
Text to speech:
|
|
@@ -5574,7 +5577,7 @@ async function startMcpServer(options) {
|
|
|
5574
5577
|
capabilities: { tools: {} },
|
|
5575
5578
|
serverInfo: {
|
|
5576
5579
|
name: "mindstudio-agent",
|
|
5577
|
-
version: "0.1.
|
|
5580
|
+
version: "0.1.53"
|
|
5578
5581
|
},
|
|
5579
5582
|
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.'
|
|
5580
5583
|
});
|
|
@@ -6531,7 +6534,7 @@ function isNewerVersion(current, latest) {
|
|
|
6531
6534
|
return false;
|
|
6532
6535
|
}
|
|
6533
6536
|
async function checkForUpdate() {
|
|
6534
|
-
const currentVersion = "0.1.
|
|
6537
|
+
const currentVersion = "0.1.53";
|
|
6535
6538
|
if (!currentVersion) return null;
|
|
6536
6539
|
try {
|
|
6537
6540
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -6560,7 +6563,7 @@ async function checkForUpdate() {
|
|
|
6560
6563
|
}
|
|
6561
6564
|
}
|
|
6562
6565
|
function printUpdateNotice(latestVersion) {
|
|
6563
|
-
const currentVersion = "0.1.
|
|
6566
|
+
const currentVersion = "0.1.53";
|
|
6564
6567
|
process.stderr.write(
|
|
6565
6568
|
`
|
|
6566
6569
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -6573,7 +6576,7 @@ function isStandaloneBinary() {
|
|
|
6573
6576
|
return !argv1.includes("node_modules");
|
|
6574
6577
|
}
|
|
6575
6578
|
async function cmdUpdate() {
|
|
6576
|
-
const currentVersion = "0.1.
|
|
6579
|
+
const currentVersion = "0.1.53";
|
|
6577
6580
|
process.stderr.write(
|
|
6578
6581
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
6579
6582
|
`
|
|
@@ -6708,7 +6711,7 @@ async function cmdLogin(options) {
|
|
|
6708
6711
|
process.stderr.write("\n");
|
|
6709
6712
|
printLogo();
|
|
6710
6713
|
process.stderr.write("\n");
|
|
6711
|
-
const ver = "0.1.
|
|
6714
|
+
const ver = "0.1.53";
|
|
6712
6715
|
process.stderr.write(
|
|
6713
6716
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
6714
6717
|
`
|
|
@@ -7035,7 +7038,7 @@ async function main() {
|
|
|
7035
7038
|
try {
|
|
7036
7039
|
if (command === "version" || command === "-v") {
|
|
7037
7040
|
process.stdout.write(
|
|
7038
|
-
"0.1.
|
|
7041
|
+
"0.1.53\n"
|
|
7039
7042
|
);
|
|
7040
7043
|
return;
|
|
7041
7044
|
}
|