@mindstudio-ai/agent 0.1.68 → 0.1.69
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 +14 -10
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +14 -10
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5477,6 +5477,8 @@ function buildReferenceDocs(data) {
|
|
|
5477
5477
|
|
|
5478
5478
|
Task agents: For multi-step tasks requiring autonomous tool use, use \`runTask()\`. Provide a prompt, input, SDK action names as tools (with optional default overrides), a \`structuredOutputExample\`, and a model. The platform runs a tool-use loop and returns structured output. Tools can include any SDK action \u2014 e.g. \`['searchGoogle', 'fetchUrl', { method: 'generateImage', defaults: { imageModelOverride: { model: 'seedream-4.5' } } }]\`. Supports SSE streaming via \`onEvent\` callback.
|
|
5479
5479
|
|
|
5480
|
+
Uploading files / getting a hosted URL: There are TWO ways to upload a file to the MindStudio CDN, depending on context. (1) From app backend code, call \`await mindstudio.uploadFile(bytes, { extension: 'png', type?: 'image/png' })\` \u2192 returns \`{ url }\` (a permanent public URL); \`bytes\` is a \`Buffer\`/\`Uint8Array\`, so read/fetch the content first. (2) From the terminal \u2014 e.g. you generated an icon or asset locally and just need its URL \u2014 run \`mindstudio upload <filepath>\` (alias: \`mindstudio upload-file\`). It prints the public URL to stdout. IMPORTANT: to host a one-off local file, use the CLI command directly \u2014 do NOT write a throwaway app method that calls \`uploadFile\` just to trigger it. The CLI does this in one step. More generally: some SDK capabilities are exposed as \`mindstudio\` CLI commands (upload, list-actions, run-agent, exec, batch, \u2026), not only as code \u2014 reach for the CLI for one-off operations instead of writing and running code.
|
|
5481
|
+
|
|
5480
5482
|
Reporting bugs / ideas (\`reportIssue\`): For building an in-app "Report a bug" or feedback feature, use \`mindstudio.reportIssue({ title, body?, kind?, reporter? })\` (also importable directly as \`reportIssue\`). It files an issue into the app's issue tracker \u2014 visible to the app's team in the dashboard and pickup-able by the Remy agent. Backend only: wire it as frontend UI \u2192 app backend method \u2192 \`reportIssue\` (a browser can't call it; it uses the app's hook token, and the app id is derived server-side). \`kind\` is \`'bug'\` (default) or \`'idea'\`. \`reporter\` is a free-form display label (a name, email, or ticket id) \u2014 NOT an identity check and not tied to a user; pass the current user's email if you have it, or omit for anonymous. It returns the created issue \u2014 show \`result.number\` to confirm "Reported as #42". Rate limited per app (20/min): catch \`MindStudioError\` with \`code === 'rate_limited'\` and show a graceful "try again shortly" message, and debounce the submit button (every call creates a new issue \u2014 no dedupe).
|
|
5481
5483
|
|
|
5482
5484
|
Table options: \`db.defineTable<T>(name, { unique, defaults })\`.
|
|
@@ -6065,7 +6067,7 @@ async function startMcpServer(options) {
|
|
|
6065
6067
|
capabilities: { tools: {} },
|
|
6066
6068
|
serverInfo: {
|
|
6067
6069
|
name: "mindstudio-agent",
|
|
6068
|
-
version: "0.1.
|
|
6070
|
+
version: "0.1.69"
|
|
6069
6071
|
},
|
|
6070
6072
|
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.'
|
|
6071
6073
|
});
|
|
@@ -6544,7 +6546,7 @@ Account:
|
|
|
6544
6546
|
whoami Show current user and organization
|
|
6545
6547
|
change-name <name> Update your display name
|
|
6546
6548
|
change-profile-picture <url> Update your profile picture
|
|
6547
|
-
upload <filepath> Upload a file to the
|
|
6549
|
+
upload <filepath> Upload a file to the CDN, print its URL (alias: upload-file)
|
|
6548
6550
|
update Update to the latest version
|
|
6549
6551
|
|
|
6550
6552
|
OAuth integrations:
|
|
@@ -7038,7 +7040,7 @@ function isNewerVersion(current, latest) {
|
|
|
7038
7040
|
return false;
|
|
7039
7041
|
}
|
|
7040
7042
|
async function checkForUpdate() {
|
|
7041
|
-
const currentVersion = "0.1.
|
|
7043
|
+
const currentVersion = "0.1.69";
|
|
7042
7044
|
if (!currentVersion) return null;
|
|
7043
7045
|
try {
|
|
7044
7046
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -7067,7 +7069,7 @@ async function checkForUpdate() {
|
|
|
7067
7069
|
}
|
|
7068
7070
|
}
|
|
7069
7071
|
function printUpdateNotice(latestVersion) {
|
|
7070
|
-
const currentVersion = "0.1.
|
|
7072
|
+
const currentVersion = "0.1.69";
|
|
7071
7073
|
process.stderr.write(
|
|
7072
7074
|
`
|
|
7073
7075
|
${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
|
|
@@ -7080,7 +7082,7 @@ function isStandaloneBinary() {
|
|
|
7080
7082
|
return !argv1.includes("node_modules");
|
|
7081
7083
|
}
|
|
7082
7084
|
async function cmdUpdate() {
|
|
7083
|
-
const currentVersion = "0.1.
|
|
7085
|
+
const currentVersion = "0.1.69";
|
|
7084
7086
|
process.stderr.write(
|
|
7085
7087
|
` ${ansi2.gray("Current version:")} ${currentVersion}
|
|
7086
7088
|
`
|
|
@@ -7215,7 +7217,7 @@ async function cmdLogin(options) {
|
|
|
7215
7217
|
process.stderr.write("\n");
|
|
7216
7218
|
printLogo();
|
|
7217
7219
|
process.stderr.write("\n");
|
|
7218
|
-
const ver = "0.1.
|
|
7220
|
+
const ver = "0.1.69";
|
|
7219
7221
|
process.stderr.write(
|
|
7220
7222
|
` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
|
|
7221
7223
|
`
|
|
@@ -7542,7 +7544,7 @@ async function main() {
|
|
|
7542
7544
|
try {
|
|
7543
7545
|
if (command === "version" || command === "-v") {
|
|
7544
7546
|
process.stdout.write(
|
|
7545
|
-
"0.1.
|
|
7547
|
+
"0.1.69\n"
|
|
7546
7548
|
);
|
|
7547
7549
|
return;
|
|
7548
7550
|
}
|
|
@@ -7732,20 +7734,22 @@ async function main() {
|
|
|
7732
7734
|
});
|
|
7733
7735
|
return;
|
|
7734
7736
|
}
|
|
7735
|
-
if (command === "upload") {
|
|
7737
|
+
if (command === "upload" || command === "upload-file") {
|
|
7736
7738
|
const filePath = positionals[1];
|
|
7737
7739
|
if (!filePath)
|
|
7738
7740
|
usageBlock([
|
|
7739
|
-
"upload \u2014 Upload a file to the MindStudio CDN",
|
|
7741
|
+
"upload \u2014 Upload a file to the MindStudio CDN (alias: upload-file)",
|
|
7740
7742
|
"",
|
|
7741
7743
|
"Usage:",
|
|
7742
7744
|
" mindstudio upload <filepath>",
|
|
7743
7745
|
"",
|
|
7744
7746
|
"Returns the permanent public URL for the uploaded file.",
|
|
7747
|
+
"Use this to host a local file (e.g. a generated icon) and get a",
|
|
7748
|
+
"URL \u2014 no need to write or trigger an app method.",
|
|
7745
7749
|
"",
|
|
7746
7750
|
"Examples:",
|
|
7747
7751
|
" mindstudio upload photo.png",
|
|
7748
|
-
" mindstudio upload /path/to/document.pdf"
|
|
7752
|
+
" mindstudio upload-file /path/to/document.pdf"
|
|
7749
7753
|
]);
|
|
7750
7754
|
await cmdUpload(filePath, {
|
|
7751
7755
|
apiKey: values["api-key"],
|