@mindstudio-ai/agent 0.1.96 → 0.1.98

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
@@ -6881,12 +6881,17 @@ var init_instructions = __esm({
6881
6881
  ## Task agent models
6882
6882
  When recommending models for \`runTask()\`, ONLY use models with strong tool-use support. The model must be one of:
6883
6883
 
6884
- Anthropic: \`claude-5-sonnet\`, \`claude-4-6-sonnet\`, \`claude-4.5-sonnet\`, \`claude-4-5-haiku\`, \`claude-4-5-opus\`, \`claude-4-6-opus\`, \`claude-fable-5\`,
6885
- Google: \`gemini-3-flash\`, \`gemini-3-pro\`, \`gemini-3.1-pro\`
6886
- OpenAI: \`gpt-5-mini\`, \`gpt-5\`, \`gpt-5.1\`, \`gpt-5.2\`
6887
- Grok: \`grok-build-0.1\`, \`grok-4.5\`
6884
+ Anthropic: \`claude-5-sonnet\`, \`claude-5-opus\`, \`claude-4-8-opus\`, \`claude-4-7-opus\`, \`claude-4-6-opus\`, \`claude-4-6-sonnet\`, \`claude-4.5-sonnet\`, \`claude-4-5-haiku\`, \`claude-4-5-opus\`, \`claude-fable-5\`
6885
+ Google: \`gemini-3-flash\`, \`gemini-3-pro\`, \`gemini-3.1-pro\`, \`gemini-3.5-flash\`, \`gemini-3.7-flash\`
6886
+ OpenAI: \`gpt-5-mini\`, \`gpt-5\`, \`gpt-5.1\`, \`gpt-5.2\`, \`gpt-5.5\`, \`gpt-5.6-sol\`, \`gpt-5.6-terra\`, \`gpt-5.6-luna\`
6887
+ Grok: \`grok-build-0.1\`, \`grok-4.5\`, \`grok-4.6\`
6888
6888
  Meta: \`muse-spark-1.1\`
6889
6889
  DeepSeek: \`deepseek-v4-flash-0731\`
6890
+ GLM: \`glm-5.2\`
6891
+ Kimi: \`kimi-k2-7-code\`, \`kimi-k3\`
6892
+ Qwen: \`qwen3.8-27b-deepinfra\`, \`qwen3.8-2.4t-a95b-deepinfra\`
6893
+ MiniMax: \`minimax-m3\`
6894
+
6890
6895
 
6891
6896
  Default to \`claude-5-sonnet\` unless the user has a preference. Do NOT recommend o-series reasoning models (o3, o4) for tasks \u2014 they are optimized for reasoning, not tool-use loops. Do NOT recommend Gemini 2.x when 3.x is available.
6892
6897
  </model_guidance>
@@ -7337,7 +7342,7 @@ async function startMcpServer(options) {
7337
7342
  capabilities: { tools: {} },
7338
7343
  serverInfo: {
7339
7344
  name: "mindstudio-agent",
7340
- version: "0.1.96"
7345
+ version: "0.1.98"
7341
7346
  },
7342
7347
  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
7348
  });
@@ -8322,7 +8327,7 @@ function isNewerVersion(current, latest) {
8322
8327
  return false;
8323
8328
  }
8324
8329
  async function checkForUpdate() {
8325
- const currentVersion = "0.1.96";
8330
+ const currentVersion = "0.1.98";
8326
8331
  if (!currentVersion) return null;
8327
8332
  try {
8328
8333
  const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
@@ -8351,7 +8356,7 @@ async function checkForUpdate() {
8351
8356
  }
8352
8357
  }
8353
8358
  function printUpdateNotice(latestVersion) {
8354
- const currentVersion = "0.1.96";
8359
+ const currentVersion = "0.1.98";
8355
8360
  process.stderr.write(
8356
8361
  `
8357
8362
  ${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
@@ -8364,7 +8369,7 @@ function isStandaloneBinary() {
8364
8369
  return !argv1.includes("node_modules");
8365
8370
  }
8366
8371
  async function cmdUpdate() {
8367
- const currentVersion = "0.1.96";
8372
+ const currentVersion = "0.1.98";
8368
8373
  process.stderr.write(
8369
8374
  ` ${ansi2.gray("Current version:")} ${currentVersion}
8370
8375
  `
@@ -8499,7 +8504,7 @@ async function cmdLogin(options) {
8499
8504
  process.stderr.write("\n");
8500
8505
  printLogo();
8501
8506
  process.stderr.write("\n");
8502
- const ver = "0.1.96";
8507
+ const ver = "0.1.98";
8503
8508
  process.stderr.write(
8504
8509
  ` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
8505
8510
  `
@@ -8826,7 +8831,7 @@ async function main() {
8826
8831
  try {
8827
8832
  if (command === "version" || command === "-v") {
8828
8833
  process.stdout.write(
8829
- "0.1.96\n"
8834
+ "0.1.98\n"
8830
8835
  );
8831
8836
  return;
8832
8837
  }
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. */