@mindstudio-ai/agent 0.1.56 → 0.1.57
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 +22 -22
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +22 -22
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -4245,7 +4245,7 @@ var init_client = __esm({
|
|
|
4245
4245
|
*/
|
|
4246
4246
|
async getUserInfo() {
|
|
4247
4247
|
const { data } = await request(
|
|
4248
|
-
this.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
4883
|
+
this._currentHttpConfig,
|
|
4884
4884
|
"POST",
|
|
4885
4885
|
"/account/upload",
|
|
4886
4886
|
{
|
|
@@ -5748,7 +5748,7 @@ async function startMcpServer(options) {
|
|
|
5748
5748
|
capabilities: { tools: {} },
|
|
5749
5749
|
serverInfo: {
|
|
5750
5750
|
name: "mindstudio-agent",
|
|
5751
|
-
version: "0.1.
|
|
5751
|
+
version: "0.1.57"
|
|
5752
5752
|
},
|
|
5753
5753
|
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
5754
|
});
|
|
@@ -6609,7 +6609,7 @@ function isNewerVersion(current, latest) {
|
|
|
6609
6609
|
return false;
|
|
6610
6610
|
}
|
|
6611
6611
|
async function checkForUpdate() {
|
|
6612
|
-
const currentVersion = "0.1.
|
|
6612
|
+
const currentVersion = "0.1.57";
|
|
6613
6613
|
if (!currentVersion) return null;
|
|
6614
6614
|
try {
|
|
6615
6615
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -6638,7 +6638,7 @@ async function checkForUpdate() {
|
|
|
6638
6638
|
}
|
|
6639
6639
|
}
|
|
6640
6640
|
function printUpdateNotice(latestVersion) {
|
|
6641
|
-
const currentVersion = "0.1.
|
|
6641
|
+
const currentVersion = "0.1.57";
|
|
6642
6642
|
process.stderr.write(
|
|
6643
6643
|
`
|
|
6644
6644
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -6651,7 +6651,7 @@ function isStandaloneBinary() {
|
|
|
6651
6651
|
return !argv1.includes("node_modules");
|
|
6652
6652
|
}
|
|
6653
6653
|
async function cmdUpdate() {
|
|
6654
|
-
const currentVersion = "0.1.
|
|
6654
|
+
const currentVersion = "0.1.57";
|
|
6655
6655
|
process.stderr.write(
|
|
6656
6656
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
6657
6657
|
`
|
|
@@ -6766,7 +6766,7 @@ async function cmdLogin(options) {
|
|
|
6766
6766
|
process.stderr.write("\n");
|
|
6767
6767
|
printLogo();
|
|
6768
6768
|
process.stderr.write("\n");
|
|
6769
|
-
const ver = "0.1.
|
|
6769
|
+
const ver = "0.1.57";
|
|
6770
6770
|
process.stderr.write(
|
|
6771
6771
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
6772
6772
|
`
|
|
@@ -7077,7 +7077,7 @@ async function main() {
|
|
|
7077
7077
|
try {
|
|
7078
7078
|
if (command === "version" || command === "-v") {
|
|
7079
7079
|
process.stdout.write(
|
|
7080
|
-
"0.1.
|
|
7080
|
+
"0.1.57\n"
|
|
7081
7081
|
);
|
|
7082
7082
|
return;
|
|
7083
7083
|
}
|