@mindstudio-ai/agent 0.1.26 → 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 +10 -6
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +10 -6
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -4807,7 +4807,7 @@ async function startMcpServer(options) {
|
|
|
4807
4807
|
capabilities: { tools: {} },
|
|
4808
4808
|
serverInfo: {
|
|
4809
4809
|
name: "mindstudio-agent",
|
|
4810
|
-
version: "0.1.
|
|
4810
|
+
version: "0.1.27"
|
|
4811
4811
|
},
|
|
4812
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.'
|
|
4813
4813
|
});
|
|
@@ -5254,6 +5254,10 @@ function kebabToCamel2(s) {
|
|
|
5254
5254
|
return s.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
5255
5255
|
}
|
|
5256
5256
|
function parseJson5(input) {
|
|
5257
|
+
try {
|
|
5258
|
+
return JSON.parse(input);
|
|
5259
|
+
} catch {
|
|
5260
|
+
}
|
|
5257
5261
|
let s = input;
|
|
5258
5262
|
s = s.replace(/\/\/.*$/gm, "");
|
|
5259
5263
|
s = s.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
@@ -5663,7 +5667,7 @@ function isNewerVersion(current, latest) {
|
|
|
5663
5667
|
return false;
|
|
5664
5668
|
}
|
|
5665
5669
|
async function checkForUpdate() {
|
|
5666
|
-
const currentVersion = "0.1.
|
|
5670
|
+
const currentVersion = "0.1.27";
|
|
5667
5671
|
if (!currentVersion) return null;
|
|
5668
5672
|
try {
|
|
5669
5673
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -5692,7 +5696,7 @@ async function checkForUpdate() {
|
|
|
5692
5696
|
}
|
|
5693
5697
|
}
|
|
5694
5698
|
function printUpdateNotice(latestVersion) {
|
|
5695
|
-
const currentVersion = "0.1.
|
|
5699
|
+
const currentVersion = "0.1.27";
|
|
5696
5700
|
process.stderr.write(
|
|
5697
5701
|
`
|
|
5698
5702
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -5705,7 +5709,7 @@ function isStandaloneBinary() {
|
|
|
5705
5709
|
return !argv1.includes("node_modules");
|
|
5706
5710
|
}
|
|
5707
5711
|
async function cmdUpdate() {
|
|
5708
|
-
const currentVersion = "0.1.
|
|
5712
|
+
const currentVersion = "0.1.27";
|
|
5709
5713
|
process.stderr.write(
|
|
5710
5714
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
5711
5715
|
`
|
|
@@ -5820,7 +5824,7 @@ async function cmdLogin(options) {
|
|
|
5820
5824
|
process.stderr.write("\n");
|
|
5821
5825
|
printLogo();
|
|
5822
5826
|
process.stderr.write("\n");
|
|
5823
|
-
const ver = "0.1.
|
|
5827
|
+
const ver = "0.1.27";
|
|
5824
5828
|
process.stderr.write(
|
|
5825
5829
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
5826
5830
|
`
|
|
@@ -6131,7 +6135,7 @@ async function main() {
|
|
|
6131
6135
|
try {
|
|
6132
6136
|
if (command === "version" || command === "-v") {
|
|
6133
6137
|
process.stdout.write(
|
|
6134
|
-
"0.1.
|
|
6138
|
+
"0.1.27\n"
|
|
6135
6139
|
);
|
|
6136
6140
|
return;
|
|
6137
6141
|
}
|