@mindstudio-ai/agent 0.1.72 → 0.1.73
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 +12 -7
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +12 -7
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -1477,7 +1477,9 @@ async function executeDbBatchOverWs(url, token, databaseId, queries) {
|
|
|
1477
1477
|
} catch (err) {
|
|
1478
1478
|
clearTimeout(timer);
|
|
1479
1479
|
pending.delete(id);
|
|
1480
|
-
reject(
|
|
1480
|
+
reject(
|
|
1481
|
+
new DbWsTransportError(`ws send failed: ${err?.message || "unknown"}`)
|
|
1482
|
+
);
|
|
1481
1483
|
}
|
|
1482
1484
|
});
|
|
1483
1485
|
}
|
|
@@ -4989,6 +4991,9 @@ var init_client = __esm({
|
|
|
4989
4991
|
if (!(err instanceof DbWsTransportError)) {
|
|
4990
4992
|
throw err;
|
|
4991
4993
|
}
|
|
4994
|
+
console.warn(
|
|
4995
|
+
`[mindstudio] db: WebSocket transport unavailable (${err.message}); using HTTP for this query.`
|
|
4996
|
+
);
|
|
4992
4997
|
}
|
|
4993
4998
|
}
|
|
4994
4999
|
const url = `${this._currentHttpConfig.baseUrl}/_internal/v2/db/query`;
|
|
@@ -6209,7 +6214,7 @@ async function startMcpServer(options) {
|
|
|
6209
6214
|
capabilities: { tools: {} },
|
|
6210
6215
|
serverInfo: {
|
|
6211
6216
|
name: "mindstudio-agent",
|
|
6212
|
-
version: "0.1.
|
|
6217
|
+
version: "0.1.73"
|
|
6213
6218
|
},
|
|
6214
6219
|
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.'
|
|
6215
6220
|
});
|
|
@@ -7085,7 +7090,7 @@ function isNewerVersion(current, latest) {
|
|
|
7085
7090
|
return false;
|
|
7086
7091
|
}
|
|
7087
7092
|
async function checkForUpdate() {
|
|
7088
|
-
const currentVersion = "0.1.
|
|
7093
|
+
const currentVersion = "0.1.73";
|
|
7089
7094
|
if (!currentVersion) return null;
|
|
7090
7095
|
try {
|
|
7091
7096
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -7114,7 +7119,7 @@ async function checkForUpdate() {
|
|
|
7114
7119
|
}
|
|
7115
7120
|
}
|
|
7116
7121
|
function printUpdateNotice(latestVersion) {
|
|
7117
|
-
const currentVersion = "0.1.
|
|
7122
|
+
const currentVersion = "0.1.73";
|
|
7118
7123
|
process.stderr.write(
|
|
7119
7124
|
`
|
|
7120
7125
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -7127,7 +7132,7 @@ function isStandaloneBinary() {
|
|
|
7127
7132
|
return !argv1.includes("node_modules");
|
|
7128
7133
|
}
|
|
7129
7134
|
async function cmdUpdate() {
|
|
7130
|
-
const currentVersion = "0.1.
|
|
7135
|
+
const currentVersion = "0.1.73";
|
|
7131
7136
|
process.stderr.write(
|
|
7132
7137
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
7133
7138
|
`
|
|
@@ -7242,7 +7247,7 @@ async function cmdLogin(options) {
|
|
|
7242
7247
|
process.stderr.write("\n");
|
|
7243
7248
|
printLogo();
|
|
7244
7249
|
process.stderr.write("\n");
|
|
7245
|
-
const ver = "0.1.
|
|
7250
|
+
const ver = "0.1.73";
|
|
7246
7251
|
process.stderr.write(
|
|
7247
7252
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
7248
7253
|
`
|
|
@@ -7553,7 +7558,7 @@ async function main() {
|
|
|
7553
7558
|
try {
|
|
7554
7559
|
if (command === "version" || command === "-v") {
|
|
7555
7560
|
process.stdout.write(
|
|
7556
|
-
"0.1.
|
|
7561
|
+
"0.1.73\n"
|
|
7557
7562
|
);
|
|
7558
7563
|
return;
|
|
7559
7564
|
}
|