@mindstudio-ai/agent 0.1.56 → 0.1.58

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
@@ -4245,7 +4245,7 @@ var init_client = __esm({
4245
4245
  */
4246
4246
  async getUserInfo() {
4247
4247
  const { data } = await request(
4248
- this._httpConfig,
4248
+ this._currentHttpConfig,
4249
4249
  "GET",
4250
4250
  "/account/userinfo"
4251
4251
  );
@@ -4261,7 +4261,7 @@ var init_client = __esm({
4261
4261
  */
4262
4262
  async listAgents() {
4263
4263
  const { data } = await request(
4264
- this._httpConfig,
4264
+ this._currentHttpConfig,
4265
4265
  "GET",
4266
4266
  "/agents/load"
4267
4267
  );
@@ -4283,7 +4283,7 @@ var init_client = __esm({
4283
4283
  */
4284
4284
  async runAgent(options) {
4285
4285
  const pollInterval = options.pollIntervalMs ?? 1e3;
4286
- const { data } = await request(this._httpConfig, "POST", "/agents/run", {
4286
+ const { data } = await request(this._currentHttpConfig, "POST", "/agents/run", {
4287
4287
  appId: options.appId,
4288
4288
  async: true,
4289
4289
  ...options.variables != null && { variables: options.variables },
@@ -4332,7 +4332,7 @@ var init_client = __esm({
4332
4332
  }
4333
4333
  /** @internal Used by generated action methods. */
4334
4334
  _request(method, path, body) {
4335
- return request(this._httpConfig, method, path, body);
4335
+ return request(this._currentHttpConfig, method, path, body);
4336
4336
  }
4337
4337
  // -------------------------------------------------------------------------
4338
4338
  // Helper methods — models
@@ -4340,7 +4340,7 @@ var init_client = __esm({
4340
4340
  /** List all available AI models. */
4341
4341
  async listModels() {
4342
4342
  const { data } = await request(
4343
- this._httpConfig,
4343
+ this._currentHttpConfig,
4344
4344
  "GET",
4345
4345
  "/helpers/models"
4346
4346
  );
@@ -4349,7 +4349,7 @@ var init_client = __esm({
4349
4349
  /** List AI models filtered by type. */
4350
4350
  async listModelsByType(modelType) {
4351
4351
  const { data } = await request(
4352
- this._httpConfig,
4352
+ this._currentHttpConfig,
4353
4353
  "GET",
4354
4354
  `/helpers/models/${modelType}`
4355
4355
  );
@@ -4358,7 +4358,7 @@ var init_client = __esm({
4358
4358
  /** List all available AI models (summary). Returns only id, name, type, and tags. */
4359
4359
  async listModelsSummary() {
4360
4360
  const { data } = await request(
4361
- this._httpConfig,
4361
+ this._currentHttpConfig,
4362
4362
  "GET",
4363
4363
  "/helpers/models-summary"
4364
4364
  );
@@ -4367,7 +4367,7 @@ var init_client = __esm({
4367
4367
  /** List AI models (summary) filtered by type. */
4368
4368
  async listModelsSummaryByType(modelType) {
4369
4369
  const { data } = await request(
4370
- this._httpConfig,
4370
+ this._currentHttpConfig,
4371
4371
  "GET",
4372
4372
  `/helpers/models-summary/${modelType}`
4373
4373
  );
@@ -4384,7 +4384,7 @@ var init_client = __esm({
4384
4384
  */
4385
4385
  async listConnectors() {
4386
4386
  const { data } = await request(
4387
- this._httpConfig,
4387
+ this._currentHttpConfig,
4388
4388
  "GET",
4389
4389
  "/helpers/connectors"
4390
4390
  );
@@ -4393,7 +4393,7 @@ var init_client = __esm({
4393
4393
  /** Get details for a single OAuth connector service. */
4394
4394
  async getConnector(serviceId) {
4395
4395
  const { data } = await request(
4396
- this._httpConfig,
4396
+ this._currentHttpConfig,
4397
4397
  "GET",
4398
4398
  `/helpers/connectors/${serviceId}`
4399
4399
  );
@@ -4402,7 +4402,7 @@ var init_client = __esm({
4402
4402
  /** Get the full configuration for an OAuth connector action, including input fields. */
4403
4403
  async getConnectorAction(serviceId, actionId) {
4404
4404
  const { data } = await request(
4405
- this._httpConfig,
4405
+ this._currentHttpConfig,
4406
4406
  "GET",
4407
4407
  `/helpers/connectors/${serviceId}/${actionId}`
4408
4408
  );
@@ -4411,7 +4411,7 @@ var init_client = __esm({
4411
4411
  /** List OAuth connections for the organization. These are authenticated third-party service links. */
4412
4412
  async listConnections() {
4413
4413
  const { data } = await request(
4414
- this._httpConfig,
4414
+ this._currentHttpConfig,
4415
4415
  "GET",
4416
4416
  "/helpers/connections"
4417
4417
  );
@@ -4422,7 +4422,7 @@ var init_client = __esm({
4422
4422
  // -------------------------------------------------------------------------
4423
4423
  /** Estimate the cost of executing an action before running it. */
4424
4424
  async estimateStepCost(stepType, step, options) {
4425
- const { data } = await request(this._httpConfig, "POST", "/helpers/step-cost-estimate", {
4425
+ const { data } = await request(this._currentHttpConfig, "POST", "/helpers/step-cost-estimate", {
4426
4426
  step: { type: resolveStepType2(stepType), ...step },
4427
4427
  ...options
4428
4428
  });
@@ -4823,7 +4823,7 @@ var init_client = __esm({
4823
4823
  */
4824
4824
  async resolveUsers(userIds) {
4825
4825
  const { data } = await request(
4826
- this._httpConfig,
4826
+ this._currentHttpConfig,
4827
4827
  "POST",
4828
4828
  "/helpers/resolve-users",
4829
4829
  { userIds }
@@ -4851,7 +4851,7 @@ var init_client = __esm({
4851
4851
  async getAppContext(appId) {
4852
4852
  const query = appId ? `?appId=${encodeURIComponent(appId)}` : "";
4853
4853
  const { data } = await request(
4854
- this._httpConfig,
4854
+ this._currentHttpConfig,
4855
4855
  "GET",
4856
4856
  `/helpers/app-context${query}`
4857
4857
  );
@@ -4880,7 +4880,7 @@ var init_client = __esm({
4880
4880
  */
4881
4881
  async uploadFile(content, options) {
4882
4882
  const { data } = await request(
4883
- this._httpConfig,
4883
+ this._currentHttpConfig,
4884
4884
  "POST",
4885
4885
  "/account/upload",
4886
4886
  {
@@ -5109,6 +5109,8 @@ You are a senior MindStudio SDK engineer. You help AI coding agents build applic
5109
5109
 
5110
5110
  Do not offer advice or recommend products or services outside the scope of the MindStudio SDK. If something is not possible, or would be tricky to do, note it for the developer and let them figure out how to solve it - that's outside the scope of your role.
5111
5111
 
5112
+ Never invent URLs, email addresses, support channels, Discord servers, community forums, or documentation links. Do not direct the user to "MindStudio support", "the docs", or anything similar \u2014 you do not know where those live. The only URLs you may cite are ones that appear verbatim in the reference context below. When a question is outside your scope, say so and stop \u2014 do not speculate about where else the user could get help, and do not offer a handoff path you cannot verify.
5113
+
5112
5114
  If the user asks about @mindstudio-ai/interface, inform them that that is a separate package and they should trust what they already know about it.
5113
5115
 
5114
5116
  ## Scope
@@ -5748,7 +5750,7 @@ async function startMcpServer(options) {
5748
5750
  capabilities: { tools: {} },
5749
5751
  serverInfo: {
5750
5752
  name: "mindstudio-agent",
5751
- version: "0.1.56"
5753
+ version: "0.1.58"
5752
5754
  },
5753
5755
  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.'
5754
5756
  });
@@ -6705,7 +6707,7 @@ function isNewerVersion(current, latest) {
6705
6707
  return false;
6706
6708
  }
6707
6709
  async function checkForUpdate() {
6708
- const currentVersion = "0.1.56";
6710
+ const currentVersion = "0.1.58";
6709
6711
  if (!currentVersion) return null;
6710
6712
  try {
6711
6713
  const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
@@ -6734,7 +6736,7 @@ async function checkForUpdate() {
6734
6736
  }
6735
6737
  }
6736
6738
  function printUpdateNotice(latestVersion) {
6737
- const currentVersion = "0.1.56";
6739
+ const currentVersion = "0.1.58";
6738
6740
  process.stderr.write(
6739
6741
  `
6740
6742
  ${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
@@ -6747,7 +6749,7 @@ function isStandaloneBinary() {
6747
6749
  return !argv1.includes("node_modules");
6748
6750
  }
6749
6751
  async function cmdUpdate() {
6750
- const currentVersion = "0.1.56";
6752
+ const currentVersion = "0.1.58";
6751
6753
  process.stderr.write(
6752
6754
  ` ${ansi2.gray("Current version:")} ${currentVersion}
6753
6755
  `
@@ -6882,7 +6884,7 @@ async function cmdLogin(options) {
6882
6884
  process.stderr.write("\n");
6883
6885
  printLogo();
6884
6886
  process.stderr.write("\n");
6885
- const ver = "0.1.56";
6887
+ const ver = "0.1.58";
6886
6888
  process.stderr.write(
6887
6889
  ` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
6888
6890
  `
@@ -7209,7 +7211,7 @@ async function main() {
7209
7211
  try {
7210
7212
  if (command === "version" || command === "-v") {
7211
7213
  process.stdout.write(
7212
- "0.1.56\n"
7214
+ "0.1.58\n"
7213
7215
  );
7214
7216
  return;
7215
7217
  }
package/dist/index.js CHANGED
@@ -4063,7 +4063,7 @@ var MindStudioAgent = class {
4063
4063
  */
4064
4064
  async getUserInfo() {
4065
4065
  const { data } = await request(
4066
- this._httpConfig,
4066
+ this._currentHttpConfig,
4067
4067
  "GET",
4068
4068
  "/account/userinfo"
4069
4069
  );
@@ -4079,7 +4079,7 @@ var MindStudioAgent = class {
4079
4079
  */
4080
4080
  async listAgents() {
4081
4081
  const { data } = await request(
4082
- this._httpConfig,
4082
+ this._currentHttpConfig,
4083
4083
  "GET",
4084
4084
  "/agents/load"
4085
4085
  );
@@ -4101,7 +4101,7 @@ var MindStudioAgent = class {
4101
4101
  */
4102
4102
  async runAgent(options) {
4103
4103
  const pollInterval = options.pollIntervalMs ?? 1e3;
4104
- const { data } = await request(this._httpConfig, "POST", "/agents/run", {
4104
+ const { data } = await request(this._currentHttpConfig, "POST", "/agents/run", {
4105
4105
  appId: options.appId,
4106
4106
  async: true,
4107
4107
  ...options.variables != null && { variables: options.variables },
@@ -4150,7 +4150,7 @@ var MindStudioAgent = class {
4150
4150
  }
4151
4151
  /** @internal Used by generated action methods. */
4152
4152
  _request(method, path, body) {
4153
- return request(this._httpConfig, method, path, body);
4153
+ return request(this._currentHttpConfig, method, path, body);
4154
4154
  }
4155
4155
  // -------------------------------------------------------------------------
4156
4156
  // Helper methods — models
@@ -4158,7 +4158,7 @@ var MindStudioAgent = class {
4158
4158
  /** List all available AI models. */
4159
4159
  async listModels() {
4160
4160
  const { data } = await request(
4161
- this._httpConfig,
4161
+ this._currentHttpConfig,
4162
4162
  "GET",
4163
4163
  "/helpers/models"
4164
4164
  );
@@ -4167,7 +4167,7 @@ var MindStudioAgent = class {
4167
4167
  /** List AI models filtered by type. */
4168
4168
  async listModelsByType(modelType) {
4169
4169
  const { data } = await request(
4170
- this._httpConfig,
4170
+ this._currentHttpConfig,
4171
4171
  "GET",
4172
4172
  `/helpers/models/${modelType}`
4173
4173
  );
@@ -4176,7 +4176,7 @@ var MindStudioAgent = class {
4176
4176
  /** List all available AI models (summary). Returns only id, name, type, and tags. */
4177
4177
  async listModelsSummary() {
4178
4178
  const { data } = await request(
4179
- this._httpConfig,
4179
+ this._currentHttpConfig,
4180
4180
  "GET",
4181
4181
  "/helpers/models-summary"
4182
4182
  );
@@ -4185,7 +4185,7 @@ var MindStudioAgent = class {
4185
4185
  /** List AI models (summary) filtered by type. */
4186
4186
  async listModelsSummaryByType(modelType) {
4187
4187
  const { data } = await request(
4188
- this._httpConfig,
4188
+ this._currentHttpConfig,
4189
4189
  "GET",
4190
4190
  `/helpers/models-summary/${modelType}`
4191
4191
  );
@@ -4202,7 +4202,7 @@ var MindStudioAgent = class {
4202
4202
  */
4203
4203
  async listConnectors() {
4204
4204
  const { data } = await request(
4205
- this._httpConfig,
4205
+ this._currentHttpConfig,
4206
4206
  "GET",
4207
4207
  "/helpers/connectors"
4208
4208
  );
@@ -4211,7 +4211,7 @@ var MindStudioAgent = class {
4211
4211
  /** Get details for a single OAuth connector service. */
4212
4212
  async getConnector(serviceId) {
4213
4213
  const { data } = await request(
4214
- this._httpConfig,
4214
+ this._currentHttpConfig,
4215
4215
  "GET",
4216
4216
  `/helpers/connectors/${serviceId}`
4217
4217
  );
@@ -4220,7 +4220,7 @@ var MindStudioAgent = class {
4220
4220
  /** Get the full configuration for an OAuth connector action, including input fields. */
4221
4221
  async getConnectorAction(serviceId, actionId) {
4222
4222
  const { data } = await request(
4223
- this._httpConfig,
4223
+ this._currentHttpConfig,
4224
4224
  "GET",
4225
4225
  `/helpers/connectors/${serviceId}/${actionId}`
4226
4226
  );
@@ -4229,7 +4229,7 @@ var MindStudioAgent = class {
4229
4229
  /** List OAuth connections for the organization. These are authenticated third-party service links. */
4230
4230
  async listConnections() {
4231
4231
  const { data } = await request(
4232
- this._httpConfig,
4232
+ this._currentHttpConfig,
4233
4233
  "GET",
4234
4234
  "/helpers/connections"
4235
4235
  );
@@ -4240,7 +4240,7 @@ var MindStudioAgent = class {
4240
4240
  // -------------------------------------------------------------------------
4241
4241
  /** Estimate the cost of executing an action before running it. */
4242
4242
  async estimateStepCost(stepType, step, options) {
4243
- const { data } = await request(this._httpConfig, "POST", "/helpers/step-cost-estimate", {
4243
+ const { data } = await request(this._currentHttpConfig, "POST", "/helpers/step-cost-estimate", {
4244
4244
  step: { type: resolveStepType2(stepType), ...step },
4245
4245
  ...options
4246
4246
  });
@@ -4641,7 +4641,7 @@ var MindStudioAgent = class {
4641
4641
  */
4642
4642
  async resolveUsers(userIds) {
4643
4643
  const { data } = await request(
4644
- this._httpConfig,
4644
+ this._currentHttpConfig,
4645
4645
  "POST",
4646
4646
  "/helpers/resolve-users",
4647
4647
  { userIds }
@@ -4669,7 +4669,7 @@ var MindStudioAgent = class {
4669
4669
  async getAppContext(appId) {
4670
4670
  const query = appId ? `?appId=${encodeURIComponent(appId)}` : "";
4671
4671
  const { data } = await request(
4672
- this._httpConfig,
4672
+ this._currentHttpConfig,
4673
4673
  "GET",
4674
4674
  `/helpers/app-context${query}`
4675
4675
  );
@@ -4698,7 +4698,7 @@ var MindStudioAgent = class {
4698
4698
  */
4699
4699
  async uploadFile(content, options) {
4700
4700
  const { data } = await request(
4701
- this._httpConfig,
4701
+ this._currentHttpConfig,
4702
4702
  "POST",
4703
4703
  "/account/upload",
4704
4704
  {