@mindstudio-ai/agent 0.1.13 → 0.1.15
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 +9 -5
- package/dist/index.d.ts +39 -15
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +9 -5
- package/package.json +1 -1
package/dist/postinstall.js
CHANGED
|
@@ -3115,6 +3115,8 @@ var init_client = __esm({
|
|
|
3115
3115
|
_reuseThreadId;
|
|
3116
3116
|
/** @internal */
|
|
3117
3117
|
_threadId;
|
|
3118
|
+
/** @internal Stream ID for SSE token streaming. Set by sandbox via STREAM_ID env var. */
|
|
3119
|
+
_streamId;
|
|
3118
3120
|
// ---- App context (db + auth) ----
|
|
3119
3121
|
/**
|
|
3120
3122
|
* @internal App ID for context resolution. Resolved from:
|
|
@@ -3155,6 +3157,7 @@ var init_client = __esm({
|
|
|
3155
3157
|
if (authType === "internal") {
|
|
3156
3158
|
this._trySandboxHydration();
|
|
3157
3159
|
}
|
|
3160
|
+
this._streamId = process.env.STREAM_ID ?? void 0;
|
|
3158
3161
|
}
|
|
3159
3162
|
/**
|
|
3160
3163
|
* Execute any step by its type name. This is the low-level method that all
|
|
@@ -3170,7 +3173,8 @@ var init_client = __esm({
|
|
|
3170
3173
|
const { data, headers } = await request(this._httpConfig, "POST", `/steps/${stepType}/execute`, {
|
|
3171
3174
|
step,
|
|
3172
3175
|
...options?.appId != null && { appId: options.appId },
|
|
3173
|
-
...threadId != null && { threadId }
|
|
3176
|
+
...threadId != null && { threadId },
|
|
3177
|
+
...this._streamId != null && { streamId: this._streamId }
|
|
3174
3178
|
});
|
|
3175
3179
|
let output;
|
|
3176
3180
|
if (data.output != null) {
|
|
@@ -3892,7 +3896,7 @@ async function startMcpServer(options) {
|
|
|
3892
3896
|
capabilities: { tools: {} },
|
|
3893
3897
|
serverInfo: {
|
|
3894
3898
|
name: "mindstudio-agent",
|
|
3895
|
-
version: "0.1.
|
|
3899
|
+
version: "0.1.15"
|
|
3896
3900
|
},
|
|
3897
3901
|
instructions: "Welcome to MindStudio \u2014 a platform with 200+ AI models, 850+ third-party integrations, and pre-built agents.\n\nGetting started:\n1. Call `listAgents` to verify your connection and see available agents.\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. This helps users identify your requests in their logs.\n4. 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."
|
|
3898
3902
|
});
|
|
@@ -4712,7 +4716,7 @@ function isNewerVersion(current, latest) {
|
|
|
4712
4716
|
return false;
|
|
4713
4717
|
}
|
|
4714
4718
|
async function checkForUpdate() {
|
|
4715
|
-
const currentVersion = "0.1.
|
|
4719
|
+
const currentVersion = "0.1.15";
|
|
4716
4720
|
if (!currentVersion) return null;
|
|
4717
4721
|
try {
|
|
4718
4722
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -4741,7 +4745,7 @@ async function checkForUpdate() {
|
|
|
4741
4745
|
}
|
|
4742
4746
|
}
|
|
4743
4747
|
function printUpdateNotice(latestVersion) {
|
|
4744
|
-
const currentVersion = "0.1.
|
|
4748
|
+
const currentVersion = "0.1.15";
|
|
4745
4749
|
process.stderr.write(
|
|
4746
4750
|
`
|
|
4747
4751
|
${ansi.cyanBright("Update available")} ${ansi.gray(currentVersion + " \u2192")} ${ansi.cyanBold(latestVersion)}
|
|
@@ -4796,7 +4800,7 @@ async function cmdLogin(options) {
|
|
|
4796
4800
|
process.stderr.write("\n");
|
|
4797
4801
|
printLogo();
|
|
4798
4802
|
process.stderr.write("\n");
|
|
4799
|
-
const ver = "0.1.
|
|
4803
|
+
const ver = "0.1.15";
|
|
4800
4804
|
process.stderr.write(
|
|
4801
4805
|
` ${ansi.bold("MindStudio Agent")} ${ver ? " " + ansi.gray("v" + ver) : ""}
|
|
4802
4806
|
`
|