@mindstudio-ai/agent 0.1.95 → 0.1.97
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 +12 -8
- package/dist/index.d.ts +46 -6
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +12 -8
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -3546,9 +3546,13 @@ var init_source = __esm({
|
|
|
3546
3546
|
* or a regression check on top of it. There is no seed to set. Two things do
|
|
3547
3547
|
* legitimately move the results: adding or removing documents, and changing
|
|
3548
3548
|
* the corpus configuration — both of which you control.
|
|
3549
|
+
*
|
|
3550
|
+
* Alongside `results` and `latencyMs` comes {@link SearchRan} — what the
|
|
3551
|
+
* search actually did, which is the first thing to check when results don't
|
|
3552
|
+
* look like the options you passed.
|
|
3549
3553
|
*/
|
|
3550
3554
|
async search(query, options) {
|
|
3551
|
-
const { results, latencyMs } = await this._call("search", {
|
|
3555
|
+
const { results, mode, latencyMs } = await this._call("search", {
|
|
3552
3556
|
slug: this._slug,
|
|
3553
3557
|
query,
|
|
3554
3558
|
...options?.topK !== void 0 ? { topK: options.topK } : {},
|
|
@@ -3562,7 +3566,7 @@ var init_source = __esm({
|
|
|
3562
3566
|
...options?.explain !== void 0 ? { explain: options.explain } : {},
|
|
3563
3567
|
...options?.expand !== void 0 ? { expand: options.expand } : {}
|
|
3564
3568
|
});
|
|
3565
|
-
return { results: results ?? [], latencyMs: latencyMs ?? 0 };
|
|
3569
|
+
return { results: results ?? [], mode, latencyMs: latencyMs ?? 0 };
|
|
3566
3570
|
}
|
|
3567
3571
|
/**
|
|
3568
3572
|
* What is in the corpus, and how it was built.
|
|
@@ -7333,7 +7337,7 @@ async function startMcpServer(options) {
|
|
|
7333
7337
|
capabilities: { tools: {} },
|
|
7334
7338
|
serverInfo: {
|
|
7335
7339
|
name: "mindstudio-agent",
|
|
7336
|
-
version: "0.1.
|
|
7340
|
+
version: "0.1.97"
|
|
7337
7341
|
},
|
|
7338
7342
|
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.'
|
|
7339
7343
|
});
|
|
@@ -8221,7 +8225,7 @@ function isNewerVersion(current, latest) {
|
|
|
8221
8225
|
return false;
|
|
8222
8226
|
}
|
|
8223
8227
|
async function checkForUpdate() {
|
|
8224
|
-
const currentVersion = "0.1.
|
|
8228
|
+
const currentVersion = "0.1.97";
|
|
8225
8229
|
if (!currentVersion) return null;
|
|
8226
8230
|
try {
|
|
8227
8231
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -8250,7 +8254,7 @@ async function checkForUpdate() {
|
|
|
8250
8254
|
}
|
|
8251
8255
|
}
|
|
8252
8256
|
function printUpdateNotice(latestVersion) {
|
|
8253
|
-
const currentVersion = "0.1.
|
|
8257
|
+
const currentVersion = "0.1.97";
|
|
8254
8258
|
process.stderr.write(
|
|
8255
8259
|
`
|
|
8256
8260
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -8263,7 +8267,7 @@ function isStandaloneBinary() {
|
|
|
8263
8267
|
return !argv1.includes("node_modules");
|
|
8264
8268
|
}
|
|
8265
8269
|
async function cmdUpdate() {
|
|
8266
|
-
const currentVersion = "0.1.
|
|
8270
|
+
const currentVersion = "0.1.97";
|
|
8267
8271
|
process.stderr.write(
|
|
8268
8272
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
8269
8273
|
`
|
|
@@ -8378,7 +8382,7 @@ async function cmdLogin(options) {
|
|
|
8378
8382
|
process.stderr.write("\n");
|
|
8379
8383
|
printLogo();
|
|
8380
8384
|
process.stderr.write("\n");
|
|
8381
|
-
const ver = "0.1.
|
|
8385
|
+
const ver = "0.1.97";
|
|
8382
8386
|
process.stderr.write(
|
|
8383
8387
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
8384
8388
|
`
|
|
@@ -8689,7 +8693,7 @@ async function main() {
|
|
|
8689
8693
|
try {
|
|
8690
8694
|
if (command === "version" || command === "-v") {
|
|
8691
8695
|
process.stdout.write(
|
|
8692
|
-
"0.1.
|
|
8696
|
+
"0.1.97\n"
|
|
8693
8697
|
);
|
|
8694
8698
|
return;
|
|
8695
8699
|
}
|