@mindstudio-ai/agent 0.1.96 → 0.1.97

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
@@ -7337,7 +7337,7 @@ async function startMcpServer(options) {
7337
7337
  capabilities: { tools: {} },
7338
7338
  serverInfo: {
7339
7339
  name: "mindstudio-agent",
7340
- version: "0.1.96"
7340
+ version: "0.1.97"
7341
7341
  },
7342
7342
  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, pass its public image URL to `changeProfilePicture`.\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.'
7343
7343
  });
@@ -8322,7 +8322,7 @@ function isNewerVersion(current, latest) {
8322
8322
  return false;
8323
8323
  }
8324
8324
  async function checkForUpdate() {
8325
- const currentVersion = "0.1.96";
8325
+ const currentVersion = "0.1.97";
8326
8326
  if (!currentVersion) return null;
8327
8327
  try {
8328
8328
  const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
@@ -8351,7 +8351,7 @@ async function checkForUpdate() {
8351
8351
  }
8352
8352
  }
8353
8353
  function printUpdateNotice(latestVersion) {
8354
- const currentVersion = "0.1.96";
8354
+ const currentVersion = "0.1.97";
8355
8355
  process.stderr.write(
8356
8356
  `
8357
8357
  ${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
@@ -8364,7 +8364,7 @@ function isStandaloneBinary() {
8364
8364
  return !argv1.includes("node_modules");
8365
8365
  }
8366
8366
  async function cmdUpdate() {
8367
- const currentVersion = "0.1.96";
8367
+ const currentVersion = "0.1.97";
8368
8368
  process.stderr.write(
8369
8369
  ` ${ansi2.gray("Current version:")} ${currentVersion}
8370
8370
  `
@@ -8499,7 +8499,7 @@ async function cmdLogin(options) {
8499
8499
  process.stderr.write("\n");
8500
8500
  printLogo();
8501
8501
  process.stderr.write("\n");
8502
- const ver = "0.1.96";
8502
+ const ver = "0.1.97";
8503
8503
  process.stderr.write(
8504
8504
  ` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
8505
8505
  `
@@ -8826,7 +8826,7 @@ async function main() {
8826
8826
  try {
8827
8827
  if (command === "version" || command === "-v") {
8828
8828
  process.stdout.write(
8829
- "0.1.96\n"
8829
+ "0.1.97\n"
8830
8830
  );
8831
8831
  return;
8832
8832
  }
package/dist/index.d.ts CHANGED
@@ -9709,7 +9709,14 @@ declare class MindStudioError extends Error {
9709
9709
  * Channel-discriminated so future surfaces extend without breaking.
9710
9710
  */
9711
9711
  interface SessionContext {
9712
- channel: 'voice' | 'agent';
9712
+ /**
9713
+ * Which surface invoked this method: `voice`/`agent` for conversational
9714
+ * tool calls (which carry their session/thread ids below), `web` for a
9715
+ * browser interface-session method call, `api` for an app-key or
9716
+ * platform-key call. `web`/`api` carry only `visitorId`. Absent entirely
9717
+ * on older platform versions.
9718
+ */
9719
+ channel: 'voice' | 'agent' | 'web' | 'api';
9713
9720
  /** Voice-session id — matches the browser voice client's `session.sessionId`. */
9714
9721
  voiceSessionId?: string;
9715
9722
  /** Agent-chat thread id. */