@mindstudio-ai/agent 0.1.49 → 0.1.50
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 +27 -9
- package/dist/index.js +24 -4
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +27 -9
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
6
|
+
}) : x)(function(x) {
|
|
7
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
8
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
9
|
+
});
|
|
4
10
|
var __esm = (fn, res) => function __init() {
|
|
5
11
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
6
12
|
};
|
|
@@ -1287,15 +1293,27 @@ var init_http = __esm({
|
|
|
1287
1293
|
});
|
|
1288
1294
|
|
|
1289
1295
|
// src/context.ts
|
|
1290
|
-
|
|
1296
|
+
function getAls() {
|
|
1297
|
+
if (!als) {
|
|
1298
|
+
try {
|
|
1299
|
+
const { AsyncLocalStorage } = __require("async_hooks");
|
|
1300
|
+
als = new AsyncLocalStorage();
|
|
1301
|
+
} catch {
|
|
1302
|
+
als = {
|
|
1303
|
+
getStore: () => void 0,
|
|
1304
|
+
run: (_store, fn) => fn()
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
return als;
|
|
1309
|
+
}
|
|
1291
1310
|
function getRequestContext() {
|
|
1292
|
-
return
|
|
1311
|
+
return getAls().getStore();
|
|
1293
1312
|
}
|
|
1294
1313
|
var als;
|
|
1295
1314
|
var init_context = __esm({
|
|
1296
1315
|
"src/context.ts"() {
|
|
1297
1316
|
"use strict";
|
|
1298
|
-
als = new AsyncLocalStorage();
|
|
1299
1317
|
}
|
|
1300
1318
|
});
|
|
1301
1319
|
|
|
@@ -5559,7 +5577,7 @@ async function startMcpServer(options) {
|
|
|
5559
5577
|
capabilities: { tools: {} },
|
|
5560
5578
|
serverInfo: {
|
|
5561
5579
|
name: "mindstudio-agent",
|
|
5562
|
-
version: "0.1.
|
|
5580
|
+
version: "0.1.50"
|
|
5563
5581
|
},
|
|
5564
5582
|
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.'
|
|
5565
5583
|
});
|
|
@@ -6420,7 +6438,7 @@ function isNewerVersion(current, latest) {
|
|
|
6420
6438
|
return false;
|
|
6421
6439
|
}
|
|
6422
6440
|
async function checkForUpdate() {
|
|
6423
|
-
const currentVersion = "0.1.
|
|
6441
|
+
const currentVersion = "0.1.50";
|
|
6424
6442
|
if (!currentVersion) return null;
|
|
6425
6443
|
try {
|
|
6426
6444
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -6449,7 +6467,7 @@ async function checkForUpdate() {
|
|
|
6449
6467
|
}
|
|
6450
6468
|
}
|
|
6451
6469
|
function printUpdateNotice(latestVersion) {
|
|
6452
|
-
const currentVersion = "0.1.
|
|
6470
|
+
const currentVersion = "0.1.50";
|
|
6453
6471
|
process.stderr.write(
|
|
6454
6472
|
`
|
|
6455
6473
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -6462,7 +6480,7 @@ function isStandaloneBinary() {
|
|
|
6462
6480
|
return !argv1.includes("node_modules");
|
|
6463
6481
|
}
|
|
6464
6482
|
async function cmdUpdate() {
|
|
6465
|
-
const currentVersion = "0.1.
|
|
6483
|
+
const currentVersion = "0.1.50";
|
|
6466
6484
|
process.stderr.write(
|
|
6467
6485
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
6468
6486
|
`
|
|
@@ -6577,7 +6595,7 @@ async function cmdLogin(options) {
|
|
|
6577
6595
|
process.stderr.write("\n");
|
|
6578
6596
|
printLogo();
|
|
6579
6597
|
process.stderr.write("\n");
|
|
6580
|
-
const ver = "0.1.
|
|
6598
|
+
const ver = "0.1.50";
|
|
6581
6599
|
process.stderr.write(
|
|
6582
6600
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
6583
6601
|
`
|
|
@@ -6888,7 +6906,7 @@ async function main() {
|
|
|
6888
6906
|
try {
|
|
6889
6907
|
if (command === "version" || command === "-v") {
|
|
6890
6908
|
process.stdout.write(
|
|
6891
|
-
"0.1.
|
|
6909
|
+
"0.1.50\n"
|
|
6892
6910
|
);
|
|
6893
6911
|
return;
|
|
6894
6912
|
}
|