@mindstudio-ai/agent 0.1.111 → 0.1.112

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.
@@ -1807,7 +1807,7 @@ var init_auth = __esm({
1807
1807
  constructor(ctx) {
1808
1808
  this.userId = ctx.userId;
1809
1809
  this._roleAssignments = ctx.roleAssignments;
1810
- this.roles = ctx.roleAssignments.filter((a) => a.userId === ctx.userId).map((a) => a.roleName);
1810
+ this.roles = ctx.userId == null ? [] : ctx.roleAssignments.filter((a) => a.userId === ctx.userId).map((a) => a.roleName);
1811
1811
  }
1812
1812
  /**
1813
1813
  * Check if the current user has **any** of the given roles.
@@ -7674,6 +7674,11 @@ var init_client = __esm({
7674
7674
  * page changes (e.g. a short URL's target). Omit `paths` (or pass an empty
7675
7675
  * array) to purge every snapshot for the app.
7676
7676
  *
7677
+ * `paths` are this app's OWN route paths (`/u/abc`), whatever host the page is
7678
+ * served on. If another app mounts this one under a path prefix, the copies
7679
+ * cached at that prefix are purged too — no need to know or pass the mount
7680
+ * path.
7681
+ *
7677
7682
  * Raw hook-token call (mirrors `reportIssue`) — the appId comes from the
7678
7683
  * token. Backend / managed-context only.
7679
7684
  *
@@ -8685,7 +8690,7 @@ async function startMcpServer(options) {
8685
8690
  capabilities: { tools: {} },
8686
8691
  serverInfo: {
8687
8692
  name: "mindstudio-agent",
8688
- version: "0.1.111"
8693
+ version: "0.1.112"
8689
8694
  },
8690
8695
  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.'
8691
8696
  });
@@ -9573,7 +9578,7 @@ function isNewerVersion(current, latest) {
9573
9578
  return false;
9574
9579
  }
9575
9580
  async function checkForUpdate() {
9576
- const currentVersion = "0.1.111";
9581
+ const currentVersion = "0.1.112";
9577
9582
  if (!currentVersion) return null;
9578
9583
  try {
9579
9584
  const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
@@ -9602,7 +9607,7 @@ async function checkForUpdate() {
9602
9607
  }
9603
9608
  }
9604
9609
  function printUpdateNotice(latestVersion) {
9605
- const currentVersion = "0.1.111";
9610
+ const currentVersion = "0.1.112";
9606
9611
  process.stderr.write(
9607
9612
  `
9608
9613
  ${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
@@ -9615,7 +9620,7 @@ function isStandaloneBinary() {
9615
9620
  return !argv1.includes("node_modules");
9616
9621
  }
9617
9622
  async function cmdUpdate() {
9618
- const currentVersion = "0.1.111";
9623
+ const currentVersion = "0.1.112";
9619
9624
  process.stderr.write(
9620
9625
  ` ${ansi2.gray("Current version:")} ${currentVersion}
9621
9626
  `
@@ -9730,7 +9735,7 @@ async function cmdLogin(options) {
9730
9735
  process.stderr.write("\n");
9731
9736
  printLogo();
9732
9737
  process.stderr.write("\n");
9733
- const ver = "0.1.111";
9738
+ const ver = "0.1.112";
9734
9739
  process.stderr.write(
9735
9740
  ` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
9736
9741
  `
@@ -10041,7 +10046,7 @@ async function main() {
10041
10046
  try {
10042
10047
  if (command === "version" || command === "-v") {
10043
10048
  process.stdout.write(
10044
- "0.1.111\n"
10049
+ "0.1.112\n"
10045
10050
  );
10046
10051
  return;
10047
10052
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/agent",
3
- "version": "0.1.111",
3
+ "version": "0.1.112",
4
4
  "description": "TypeScript SDK for MindStudio direct step execution",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",