@mindstudio-ai/agent 0.1.25 → 0.1.27
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 +11 -6
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +11 -6
- package/package.json +1 -1
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.27"
|
|
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
|
});
|
|
@@ -5322,6 +5323,10 @@ function kebabToCamel2(s) {
|
|
|
5322
5323
|
return s.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
5323
5324
|
}
|
|
5324
5325
|
function parseJson5(input) {
|
|
5326
|
+
try {
|
|
5327
|
+
return JSON.parse(input);
|
|
5328
|
+
} catch {
|
|
5329
|
+
}
|
|
5325
5330
|
let s = input;
|
|
5326
5331
|
s = s.replace(/\/\/.*$/gm, "");
|
|
5327
5332
|
s = s.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
@@ -5758,7 +5763,7 @@ function isNewerVersion(current, latest) {
|
|
|
5758
5763
|
return false;
|
|
5759
5764
|
}
|
|
5760
5765
|
async function checkForUpdate() {
|
|
5761
|
-
const currentVersion = "0.1.
|
|
5766
|
+
const currentVersion = "0.1.27";
|
|
5762
5767
|
if (!currentVersion) return null;
|
|
5763
5768
|
try {
|
|
5764
5769
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -5787,7 +5792,7 @@ async function checkForUpdate() {
|
|
|
5787
5792
|
}
|
|
5788
5793
|
}
|
|
5789
5794
|
function printUpdateNotice(latestVersion) {
|
|
5790
|
-
const currentVersion = "0.1.
|
|
5795
|
+
const currentVersion = "0.1.27";
|
|
5791
5796
|
process.stderr.write(
|
|
5792
5797
|
`
|
|
5793
5798
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -5800,7 +5805,7 @@ function isStandaloneBinary() {
|
|
|
5800
5805
|
return !argv1.includes("node_modules");
|
|
5801
5806
|
}
|
|
5802
5807
|
async function cmdUpdate() {
|
|
5803
|
-
const currentVersion = "0.1.
|
|
5808
|
+
const currentVersion = "0.1.27";
|
|
5804
5809
|
process.stderr.write(
|
|
5805
5810
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
5806
5811
|
`
|
|
@@ -5935,7 +5940,7 @@ async function cmdLogin(options) {
|
|
|
5935
5940
|
process.stderr.write("\n");
|
|
5936
5941
|
printLogo();
|
|
5937
5942
|
process.stderr.write("\n");
|
|
5938
|
-
const ver = "0.1.
|
|
5943
|
+
const ver = "0.1.27";
|
|
5939
5944
|
process.stderr.write(
|
|
5940
5945
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
5941
5946
|
`
|
|
@@ -6262,7 +6267,7 @@ async function main() {
|
|
|
6262
6267
|
try {
|
|
6263
6268
|
if (command === "version" || command === "-v") {
|
|
6264
6269
|
process.stdout.write(
|
|
6265
|
-
"0.1.
|
|
6270
|
+
"0.1.27\n"
|
|
6266
6271
|
);
|
|
6267
6272
|
return;
|
|
6268
6273
|
}
|