@mindstudio-ai/agent 0.1.24 → 0.1.25
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/README.md +9 -0
- package/dist/cli.js +20 -7
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +21 -8
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -4806,7 +4806,7 @@ async function startMcpServer(options) {
|
|
|
4806
4806
|
capabilities: { tools: {} },
|
|
4807
4807
|
serverInfo: {
|
|
4808
4808
|
name: "mindstudio-agent",
|
|
4809
|
-
version: "0.1.
|
|
4809
|
+
version: "0.1.25"
|
|
4810
4810
|
},
|
|
4811
4811
|
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
4812
|
});
|
|
@@ -5662,7 +5662,7 @@ function isNewerVersion(current, latest) {
|
|
|
5662
5662
|
return false;
|
|
5663
5663
|
}
|
|
5664
5664
|
async function checkForUpdate() {
|
|
5665
|
-
const currentVersion = "0.1.
|
|
5665
|
+
const currentVersion = "0.1.25";
|
|
5666
5666
|
if (!currentVersion) return null;
|
|
5667
5667
|
try {
|
|
5668
5668
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -5691,7 +5691,7 @@ async function checkForUpdate() {
|
|
|
5691
5691
|
}
|
|
5692
5692
|
}
|
|
5693
5693
|
function printUpdateNotice(latestVersion) {
|
|
5694
|
-
const currentVersion = "0.1.
|
|
5694
|
+
const currentVersion = "0.1.25";
|
|
5695
5695
|
process.stderr.write(
|
|
5696
5696
|
`
|
|
5697
5697
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -5704,7 +5704,7 @@ function isStandaloneBinary() {
|
|
|
5704
5704
|
return !argv1.includes("node_modules");
|
|
5705
5705
|
}
|
|
5706
5706
|
async function cmdUpdate() {
|
|
5707
|
-
const currentVersion = "0.1.
|
|
5707
|
+
const currentVersion = "0.1.25";
|
|
5708
5708
|
process.stderr.write(
|
|
5709
5709
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
5710
5710
|
`
|
|
@@ -5819,7 +5819,7 @@ async function cmdLogin(options) {
|
|
|
5819
5819
|
process.stderr.write("\n");
|
|
5820
5820
|
printLogo();
|
|
5821
5821
|
process.stderr.write("\n");
|
|
5822
|
-
const ver = "0.1.
|
|
5822
|
+
const ver = "0.1.25";
|
|
5823
5823
|
process.stderr.write(
|
|
5824
5824
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
5825
5825
|
`
|
|
@@ -6042,7 +6042,13 @@ function parseStepFlags(argv) {
|
|
|
6042
6042
|
const result = {};
|
|
6043
6043
|
for (let i = 0; i < argv.length; i++) {
|
|
6044
6044
|
const arg = argv[i];
|
|
6045
|
-
if (arg.startsWith("--")
|
|
6045
|
+
if (!arg.startsWith("--")) continue;
|
|
6046
|
+
if (GLOBAL_BOOLEAN_FLAGS.has(arg)) continue;
|
|
6047
|
+
if (GLOBAL_STRING_FLAGS.has(arg)) {
|
|
6048
|
+
i++;
|
|
6049
|
+
continue;
|
|
6050
|
+
}
|
|
6051
|
+
if (i + 1 < argv.length) {
|
|
6046
6052
|
const key = arg.slice(2);
|
|
6047
6053
|
result[kebabToCamel2(key)] = coerce(argv[++i]);
|
|
6048
6054
|
}
|
|
@@ -6124,7 +6130,7 @@ async function main() {
|
|
|
6124
6130
|
try {
|
|
6125
6131
|
if (command === "version" || command === "-v") {
|
|
6126
6132
|
process.stdout.write(
|
|
6127
|
-
"0.1.
|
|
6133
|
+
"0.1.25\n"
|
|
6128
6134
|
);
|
|
6129
6135
|
return;
|
|
6130
6136
|
}
|
|
@@ -6556,7 +6562,7 @@ async function main() {
|
|
|
6556
6562
|
if (latestVersion) printUpdateNotice(latestVersion);
|
|
6557
6563
|
}
|
|
6558
6564
|
}
|
|
6559
|
-
var HELP, MIME_TYPES2, ansi2, UPDATE_CHECK_INTERVAL, LOGO, DEFAULT_BASE_URL3, SPINNER_FRAMES, GLOBAL_STRING_FLAGS;
|
|
6565
|
+
var HELP, MIME_TYPES2, ansi2, UPDATE_CHECK_INTERVAL, LOGO, DEFAULT_BASE_URL3, SPINNER_FRAMES, GLOBAL_STRING_FLAGS, GLOBAL_BOOLEAN_FLAGS;
|
|
6560
6566
|
var init_cli = __esm({
|
|
6561
6567
|
"src/cli.ts"() {
|
|
6562
6568
|
"use strict";
|
|
@@ -6686,6 +6692,13 @@ Examples:
|
|
|
6686
6692
|
"--workflow",
|
|
6687
6693
|
"--version"
|
|
6688
6694
|
]);
|
|
6695
|
+
GLOBAL_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
6696
|
+
"--no-meta",
|
|
6697
|
+
"--json-logs",
|
|
6698
|
+
"--json",
|
|
6699
|
+
"--summary",
|
|
6700
|
+
"--help"
|
|
6701
|
+
]);
|
|
6689
6702
|
main();
|
|
6690
6703
|
}
|
|
6691
6704
|
});
|