@mindstudio-ai/agent 0.1.38 → 0.1.39

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.
@@ -4723,7 +4723,7 @@ function buildReferenceDocs(data) {
4723
4723
 
4724
4724
  Database queries (Query, Mutation) support both \`await\` and \`.then()/.catch()\` \u2014 use standard try/catch with await or chain \`.catch()\` directly.
4725
4725
 
4726
- Auth + DB identity: When an app has auth enabled, the authenticated user IS a row in the app's users table. \`auth.userId\` is the row's \`id\` \u2014 do NOT add a separate \`userId\` column. Access user data with \`Users.get(auth.userId)\`. The platform creates the user row on first login and manages the \`email\`, \`phone\`, and \`roles\` columns automatically.
4726
+ Auth + DB identity: When an app has auth enabled, the authenticated user IS a row in the app's users table. \`auth.userId\` is the row's \`id\` \u2014 do NOT add a separate \`userId\` column. Access user data with \`Users.get(auth.userId)\`. The platform creates the user row on first login and manages the \`email\`, \`phone\`, and \`roles\` columns automatically. IMPORTANT: The platform only populates the mapped auth columns (email, phone, roles) when creating the row \u2014 all other columns will be null until the developer's code sets them. Non-auth columns on the user table should be typed as optional (e.g. \`username?: string\`) and null-checked before use.
4727
4727
 
4728
4728
  Table options: \`db.defineTable<T>(name, { unique, defaults })\`.
4729
4729
  - \`unique: [['email'], ['userId', 'orgId']]\` \u2014 declares unique constraints (SDK communicates to platform, enables upsert).
@@ -4813,6 +4813,7 @@ var init_instructions = __esm({
4813
4813
  - **Prefer popular models as defaults** in code examples unless the caller has a reason to use something specific.
4814
4814
  - **Always recommend latest-generation models**: For Anthropic, this is Claude 4 family, GPT-5 for OpenAI, Gemini 3 for Google, etc. MindStudio supports a ton of different models, including legacy models - but they are there for niche uses or backward compatibility/existing user requirements - they should NOT be used for new projects.
4815
4815
  - Use the names of model input objects to infer capabilities. For example, any image generation model that supports source images in its config supports "remixing" or "image editing". Any video model with a start and end frame option supports creating "looping" videos. Do not look at model tags or descriptions to determine capabilities.
4816
+ - **Never set maxResponseTokens to a low value.** Many models use extended thinking/reasoning that counts against the token limit. Setting maxResponseTokens to 256 or 512 will cause truncated or failed responses. Either omit it entirely (let the model's default handle it) or set it high (e.g. 16000+). Models stop generating on their own when the response is complete \u2014 a low cap does not save money, it just breaks output.
4816
4817
 
4817
4818
  ## Explicit preferences
4818
4819
  MindStudio has hundreds of models. Many of them are for niche use cases. In general, prefer to recommend the following models unless the user specifies otherwise.
@@ -5122,7 +5123,7 @@ async function startMcpServer(options) {
5122
5123
  capabilities: { tools: {} },
5123
5124
  serverInfo: {
5124
5125
  name: "mindstudio-agent",
5125
- version: "0.1.38"
5126
+ version: "0.1.39"
5126
5127
  },
5127
5128
  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.'
5128
5129
  });
@@ -5983,7 +5984,7 @@ function isNewerVersion(current, latest) {
5983
5984
  return false;
5984
5985
  }
5985
5986
  async function checkForUpdate() {
5986
- const currentVersion = "0.1.38";
5987
+ const currentVersion = "0.1.39";
5987
5988
  if (!currentVersion) return null;
5988
5989
  try {
5989
5990
  const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
@@ -6012,7 +6013,7 @@ async function checkForUpdate() {
6012
6013
  }
6013
6014
  }
6014
6015
  function printUpdateNotice(latestVersion) {
6015
- const currentVersion = "0.1.38";
6016
+ const currentVersion = "0.1.39";
6016
6017
  process.stderr.write(
6017
6018
  `
6018
6019
  ${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
@@ -6025,7 +6026,7 @@ function isStandaloneBinary() {
6025
6026
  return !argv1.includes("node_modules");
6026
6027
  }
6027
6028
  async function cmdUpdate() {
6028
- const currentVersion = "0.1.38";
6029
+ const currentVersion = "0.1.39";
6029
6030
  process.stderr.write(
6030
6031
  ` ${ansi2.gray("Current version:")} ${currentVersion}
6031
6032
  `
@@ -6140,7 +6141,7 @@ async function cmdLogin(options) {
6140
6141
  process.stderr.write("\n");
6141
6142
  printLogo();
6142
6143
  process.stderr.write("\n");
6143
- const ver = "0.1.38";
6144
+ const ver = "0.1.39";
6144
6145
  process.stderr.write(
6145
6146
  ` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
6146
6147
  `
@@ -6451,7 +6452,7 @@ async function main() {
6451
6452
  try {
6452
6453
  if (command === "version" || command === "-v") {
6453
6454
  process.stdout.write(
6454
- "0.1.38\n"
6455
+ "0.1.39\n"
6455
6456
  );
6456
6457
  return;
6457
6458
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/agent",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "TypeScript SDK for MindStudio direct step execution",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",