@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 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(new DbWsTransportError(err?.message || "ws send failed"));
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.72"
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
  });
@@ -7182,7 +7187,7 @@ function isNewerVersion(current, latest) {
7182
7187
  return false;
7183
7188
  }
7184
7189
  async function checkForUpdate() {
7185
- const currentVersion = "0.1.72";
7190
+ const currentVersion = "0.1.73";
7186
7191
  if (!currentVersion) return null;
7187
7192
  try {
7188
7193
  const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
@@ -7211,7 +7216,7 @@ async function checkForUpdate() {
7211
7216
  }
7212
7217
  }
7213
7218
  function printUpdateNotice(latestVersion) {
7214
- const currentVersion = "0.1.72";
7219
+ const currentVersion = "0.1.73";
7215
7220
  process.stderr.write(
7216
7221
  `
7217
7222
  ${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
@@ -7224,7 +7229,7 @@ function isStandaloneBinary() {
7224
7229
  return !argv1.includes("node_modules");
7225
7230
  }
7226
7231
  async function cmdUpdate() {
7227
- const currentVersion = "0.1.72";
7232
+ const currentVersion = "0.1.73";
7228
7233
  process.stderr.write(
7229
7234
  ` ${ansi2.gray("Current version:")} ${currentVersion}
7230
7235
  `
@@ -7359,7 +7364,7 @@ async function cmdLogin(options) {
7359
7364
  process.stderr.write("\n");
7360
7365
  printLogo();
7361
7366
  process.stderr.write("\n");
7362
- const ver = "0.1.72";
7367
+ const ver = "0.1.73";
7363
7368
  process.stderr.write(
7364
7369
  ` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
7365
7370
  `
@@ -7686,7 +7691,7 @@ async function main() {
7686
7691
  try {
7687
7692
  if (command === "version" || command === "-v") {
7688
7693
  process.stdout.write(
7689
- "0.1.72\n"
7694
+ "0.1.73\n"
7690
7695
  );
7691
7696
  return;
7692
7697
  }
package/dist/index.js CHANGED
@@ -214,7 +214,9 @@ async function executeDbBatchOverWs(url, token, databaseId, queries) {
214
214
  } catch (err) {
215
215
  clearTimeout(timer);
216
216
  pending.delete(id);
217
- reject(new DbWsTransportError(err?.message || "ws send failed"));
217
+ reject(
218
+ new DbWsTransportError(`ws send failed: ${err?.message || "unknown"}`)
219
+ );
218
220
  }
219
221
  });
220
222
  }
@@ -4799,6 +4801,9 @@ var MindStudioAgent = class {
4799
4801
  if (!(err instanceof DbWsTransportError)) {
4800
4802
  throw err;
4801
4803
  }
4804
+ console.warn(
4805
+ `[mindstudio] db: WebSocket transport unavailable (${err.message}); using HTTP for this query.`
4806
+ );
4802
4807
  }
4803
4808
  }
4804
4809
  const url = `${this._currentHttpConfig.baseUrl}/_internal/v2/db/query`;