@mindstudio-ai/agent 0.1.12 → 0.1.13
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 +6 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +6 -6
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -3082,13 +3082,13 @@ function sleep2(ms) {
|
|
|
3082
3082
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
3083
3083
|
}
|
|
3084
3084
|
function resolveToken(provided, config) {
|
|
3085
|
+
if (process.env.CALLBACK_TOKEN)
|
|
3086
|
+
return { token: process.env.CALLBACK_TOKEN, authType: "internal" };
|
|
3085
3087
|
if (provided) return { token: provided, authType: "apiKey" };
|
|
3086
3088
|
if (process.env.MINDSTUDIO_API_KEY)
|
|
3087
3089
|
return { token: process.env.MINDSTUDIO_API_KEY, authType: "apiKey" };
|
|
3088
3090
|
if (config?.apiKey)
|
|
3089
3091
|
return { token: config.apiKey, authType: "apiKey" };
|
|
3090
|
-
if (process.env.CALLBACK_TOKEN)
|
|
3091
|
-
return { token: process.env.CALLBACK_TOKEN, authType: "internal" };
|
|
3092
3092
|
throw new MindStudioError(
|
|
3093
3093
|
"No API key provided. Run `mindstudio login`, pass `apiKey` to the constructor, or set the MINDSTUDIO_API_KEY environment variable.",
|
|
3094
3094
|
"missing_api_key",
|
|
@@ -3892,7 +3892,7 @@ async function startMcpServer(options) {
|
|
|
3892
3892
|
capabilities: { tools: {} },
|
|
3893
3893
|
serverInfo: {
|
|
3894
3894
|
name: "mindstudio-agent",
|
|
3895
|
-
version: "0.1.
|
|
3895
|
+
version: "0.1.13"
|
|
3896
3896
|
},
|
|
3897
3897
|
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."
|
|
3898
3898
|
});
|
|
@@ -4712,7 +4712,7 @@ function isNewerVersion(current, latest) {
|
|
|
4712
4712
|
return false;
|
|
4713
4713
|
}
|
|
4714
4714
|
async function checkForUpdate() {
|
|
4715
|
-
const currentVersion = "0.1.
|
|
4715
|
+
const currentVersion = "0.1.13";
|
|
4716
4716
|
if (!currentVersion) return null;
|
|
4717
4717
|
try {
|
|
4718
4718
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -4741,7 +4741,7 @@ async function checkForUpdate() {
|
|
|
4741
4741
|
}
|
|
4742
4742
|
}
|
|
4743
4743
|
function printUpdateNotice(latestVersion) {
|
|
4744
|
-
const currentVersion = "0.1.
|
|
4744
|
+
const currentVersion = "0.1.13";
|
|
4745
4745
|
process.stderr.write(
|
|
4746
4746
|
`
|
|
4747
4747
|
${ansi.cyanBright("Update available")} ${ansi.gray(currentVersion + " \u2192")} ${ansi.cyanBold(latestVersion)}
|
|
@@ -4796,7 +4796,7 @@ async function cmdLogin(options) {
|
|
|
4796
4796
|
process.stderr.write("\n");
|
|
4797
4797
|
printLogo();
|
|
4798
4798
|
process.stderr.write("\n");
|
|
4799
|
-
const ver = "0.1.
|
|
4799
|
+
const ver = "0.1.13";
|
|
4800
4800
|
process.stderr.write(
|
|
4801
4801
|
` ${ansi.bold("MindStudio Agent")} ${ver ? " " + ansi.gray("v" + ver) : ""}
|
|
4802
4802
|
`
|