@mindstudio-ai/agent 0.1.23 → 0.1.24
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 +25 -12
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +25 -12
- 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.24"
|
|
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
|
});
|
|
@@ -5436,15 +5436,25 @@ async function cmdExec(method, input, options) {
|
|
|
5436
5436
|
`Unknown action: ${method}. Run 'mindstudio list-actions' to see available actions.`
|
|
5437
5437
|
);
|
|
5438
5438
|
}
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5439
|
+
let onLog;
|
|
5440
|
+
if (options.jsonLogs) {
|
|
5441
|
+
onLog = (log) => {
|
|
5442
|
+
process.stderr.write(
|
|
5443
|
+
JSON.stringify({ type: "log", value: log.value, tag: log.tag, ts: log.ts }) + "\n"
|
|
5444
|
+
);
|
|
5445
|
+
};
|
|
5446
|
+
} else if (process.stderr.isTTY) {
|
|
5447
|
+
onLog = (log) => {
|
|
5443
5448
|
process.stderr.write(
|
|
5444
5449
|
` ${ansi2.cyan("\u27E1")} ${ansi2.gray(log.value)}
|
|
5445
5450
|
`
|
|
5446
5451
|
);
|
|
5447
|
-
}
|
|
5452
|
+
};
|
|
5453
|
+
}
|
|
5454
|
+
const result = await agent.executeStep(meta.stepType, input, {
|
|
5455
|
+
appId: options.appId,
|
|
5456
|
+
threadId: options.threadId,
|
|
5457
|
+
onLog
|
|
5448
5458
|
});
|
|
5449
5459
|
if (options.outputKey) {
|
|
5450
5460
|
const val = result[options.outputKey];
|
|
@@ -5652,7 +5662,7 @@ function isNewerVersion(current, latest) {
|
|
|
5652
5662
|
return false;
|
|
5653
5663
|
}
|
|
5654
5664
|
async function checkForUpdate() {
|
|
5655
|
-
const currentVersion = "0.1.
|
|
5665
|
+
const currentVersion = "0.1.24";
|
|
5656
5666
|
if (!currentVersion) return null;
|
|
5657
5667
|
try {
|
|
5658
5668
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -5681,7 +5691,7 @@ async function checkForUpdate() {
|
|
|
5681
5691
|
}
|
|
5682
5692
|
}
|
|
5683
5693
|
function printUpdateNotice(latestVersion) {
|
|
5684
|
-
const currentVersion = "0.1.
|
|
5694
|
+
const currentVersion = "0.1.24";
|
|
5685
5695
|
process.stderr.write(
|
|
5686
5696
|
`
|
|
5687
5697
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -5694,7 +5704,7 @@ function isStandaloneBinary() {
|
|
|
5694
5704
|
return !argv1.includes("node_modules");
|
|
5695
5705
|
}
|
|
5696
5706
|
async function cmdUpdate() {
|
|
5697
|
-
const currentVersion = "0.1.
|
|
5707
|
+
const currentVersion = "0.1.24";
|
|
5698
5708
|
process.stderr.write(
|
|
5699
5709
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
5700
5710
|
`
|
|
@@ -5809,7 +5819,7 @@ async function cmdLogin(options) {
|
|
|
5809
5819
|
process.stderr.write("\n");
|
|
5810
5820
|
printLogo();
|
|
5811
5821
|
process.stderr.write("\n");
|
|
5812
|
-
const ver = "0.1.
|
|
5822
|
+
const ver = "0.1.24";
|
|
5813
5823
|
process.stderr.write(
|
|
5814
5824
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
5815
5825
|
`
|
|
@@ -6081,6 +6091,7 @@ async function main() {
|
|
|
6081
6091
|
"thread-id": { type: "string" },
|
|
6082
6092
|
"output-key": { type: "string" },
|
|
6083
6093
|
"no-meta": { type: "boolean", default: false },
|
|
6094
|
+
"json-logs": { type: "boolean", default: false },
|
|
6084
6095
|
workflow: { type: "string" },
|
|
6085
6096
|
version: { type: "string" },
|
|
6086
6097
|
type: { type: "string" },
|
|
@@ -6113,7 +6124,7 @@ async function main() {
|
|
|
6113
6124
|
try {
|
|
6114
6125
|
if (command === "version" || command === "-v") {
|
|
6115
6126
|
process.stdout.write(
|
|
6116
|
-
"0.1.
|
|
6127
|
+
"0.1.24\n"
|
|
6117
6128
|
);
|
|
6118
6129
|
return;
|
|
6119
6130
|
}
|
|
@@ -6534,7 +6545,8 @@ async function main() {
|
|
|
6534
6545
|
appId: values["app-id"],
|
|
6535
6546
|
threadId: values["thread-id"],
|
|
6536
6547
|
outputKey: values["output-key"],
|
|
6537
|
-
noMeta: values["no-meta"]
|
|
6548
|
+
noMeta: values["no-meta"],
|
|
6549
|
+
jsonLogs: values["json-logs"]
|
|
6538
6550
|
});
|
|
6539
6551
|
} catch (err) {
|
|
6540
6552
|
const message = err instanceof Error ? err.message : String(err);
|
|
@@ -6594,6 +6606,7 @@ Options:
|
|
|
6594
6606
|
--thread-id <id> Thread ID for state persistence
|
|
6595
6607
|
--output-key <key> Extract a single field from the result
|
|
6596
6608
|
--no-meta Strip $-prefixed metadata from output
|
|
6609
|
+
--json-logs Stream debug logs as JSONL to stderr
|
|
6597
6610
|
--workflow <name> Workflow to execute (run-agent only)
|
|
6598
6611
|
--version <ver> App version, e.g. "draft" (run-agent only)
|
|
6599
6612
|
--json Output as JSON
|