@mindstudio-ai/agent 0.1.6 → 0.1.7
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 +13 -6
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +13 -6
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -2274,7 +2274,7 @@ async function startMcpServer(options) {
|
|
|
2274
2274
|
capabilities: { tools: {} },
|
|
2275
2275
|
serverInfo: {
|
|
2276
2276
|
name: "mindstudio-agent",
|
|
2277
|
-
version: "0.1.
|
|
2277
|
+
version: "0.1.7"
|
|
2278
2278
|
},
|
|
2279
2279
|
instructions: "Welcome to MindStudio \u2014 a platform with 200+ AI models, 850+ third-party integrations, and pre-built agents.\n\nGetting started:\n1. Call `listAgents` to verify your connection and see available agents.\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. This helps users identify your requests in their logs.\n4. 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."
|
|
2280
2280
|
});
|
|
@@ -2327,8 +2327,11 @@ async function startMcpServer(options) {
|
|
|
2327
2327
|
} else if (toolName === "listConnections") {
|
|
2328
2328
|
result = await getAgent().listConnections();
|
|
2329
2329
|
} else if (toolName === "estimateActionCost") {
|
|
2330
|
+
const meta = await getMetadata();
|
|
2331
|
+
const rawType = args.stepType;
|
|
2332
|
+
const resolved = meta[rawType]?.stepType ?? rawType;
|
|
2330
2333
|
result = await getAgent().estimateStepCost(
|
|
2331
|
-
|
|
2334
|
+
resolved,
|
|
2332
2335
|
args.step,
|
|
2333
2336
|
{
|
|
2334
2337
|
appId: args.appId,
|
|
@@ -3091,7 +3094,7 @@ function isNewerVersion(current, latest) {
|
|
|
3091
3094
|
return false;
|
|
3092
3095
|
}
|
|
3093
3096
|
async function checkForUpdate() {
|
|
3094
|
-
const currentVersion = "0.1.
|
|
3097
|
+
const currentVersion = "0.1.7";
|
|
3095
3098
|
if (!currentVersion) return null;
|
|
3096
3099
|
try {
|
|
3097
3100
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -3120,7 +3123,7 @@ async function checkForUpdate() {
|
|
|
3120
3123
|
}
|
|
3121
3124
|
}
|
|
3122
3125
|
function printUpdateNotice(latestVersion) {
|
|
3123
|
-
const currentVersion = "0.1.
|
|
3126
|
+
const currentVersion = "0.1.7";
|
|
3124
3127
|
process.stderr.write(
|
|
3125
3128
|
`
|
|
3126
3129
|
${ansi.cyanBright("Update available")} ${ansi.gray(currentVersion + " \u2192")} ${ansi.cyanBold(latestVersion)}
|
|
@@ -3175,7 +3178,7 @@ async function cmdLogin(options) {
|
|
|
3175
3178
|
process.stderr.write("\n");
|
|
3176
3179
|
printLogo();
|
|
3177
3180
|
process.stderr.write("\n");
|
|
3178
|
-
const ver = "0.1.
|
|
3181
|
+
const ver = "0.1.7";
|
|
3179
3182
|
process.stderr.write(
|
|
3180
3183
|
` ${ansi.bold("MindStudio Agent")} ${ver ? " " + ansi.gray("v" + ver) : ""}
|
|
3181
3184
|
`
|
|
@@ -3706,6 +3709,10 @@ async function main() {
|
|
|
3706
3709
|
"",
|
|
3707
3710
|
'Tip: run "mindstudio list-actions" to see available actions.'
|
|
3708
3711
|
]);
|
|
3712
|
+
const allKeys2 = await getAllMethodKeys();
|
|
3713
|
+
const resolvedMethod = resolveMethodOrFail(stepMethod, allKeys2);
|
|
3714
|
+
const { stepMetadata: stepMetadata2 } = await Promise.resolve().then(() => (init_metadata(), metadata_exports));
|
|
3715
|
+
const meta = stepMetadata2[resolvedMethod];
|
|
3709
3716
|
const costArgv = positionals.slice(2);
|
|
3710
3717
|
let costInput;
|
|
3711
3718
|
const firstArg = costArgv[0];
|
|
@@ -3718,7 +3725,7 @@ async function main() {
|
|
|
3718
3725
|
} else {
|
|
3719
3726
|
costInput = parseStepFlags(costArgv);
|
|
3720
3727
|
}
|
|
3721
|
-
await cmdEstimateStepCost(
|
|
3728
|
+
await cmdEstimateStepCost(meta.stepType, costInput, {
|
|
3722
3729
|
apiKey: values["api-key"],
|
|
3723
3730
|
baseUrl: values["base-url"]
|
|
3724
3731
|
});
|