@mindstudio-ai/agent 0.1.24 → 0.1.25

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/README.md CHANGED
@@ -96,6 +96,15 @@ $ mindstudio generate-image --prompt "A mountain landscape at sunset"
96
96
  {"imageUrl":"https://...","$billingCost":5000000}
97
97
  ```
98
98
 
99
+ For AI agents, use `--json-logs` to get structured debug logs on stderr:
100
+
101
+ ```bash
102
+ mindstudio generate-image --prompt "a cat" --json-logs
103
+ # stderr: {"type":"log","value":"Generating image with DALL·E 3...","tag":"Generate Image","ts":1774270499100}
104
+ # stderr: {"type":"log","value":"Image generated successfully","tag":"Generate Image","ts":1774270502300}
105
+ # stdout: {"imageUrl":"https://...","$billingCost":5000000}
106
+ ```
107
+
99
108
  Run via `npx` without installing:
100
109
 
101
110
  ```bash
package/dist/cli.js CHANGED
@@ -4806,7 +4806,7 @@ async function startMcpServer(options) {
4806
4806
  capabilities: { tools: {} },
4807
4807
  serverInfo: {
4808
4808
  name: "mindstudio-agent",
4809
- version: "0.1.24"
4809
+ version: "0.1.25"
4810
4810
  },
4811
4811
  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.'
4812
4812
  });
@@ -5758,7 +5758,7 @@ function isNewerVersion(current, latest) {
5758
5758
  return false;
5759
5759
  }
5760
5760
  async function checkForUpdate() {
5761
- const currentVersion = "0.1.24";
5761
+ const currentVersion = "0.1.25";
5762
5762
  if (!currentVersion) return null;
5763
5763
  try {
5764
5764
  const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
@@ -5787,7 +5787,7 @@ async function checkForUpdate() {
5787
5787
  }
5788
5788
  }
5789
5789
  function printUpdateNotice(latestVersion) {
5790
- const currentVersion = "0.1.24";
5790
+ const currentVersion = "0.1.25";
5791
5791
  process.stderr.write(
5792
5792
  `
5793
5793
  ${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
@@ -5800,7 +5800,7 @@ function isStandaloneBinary() {
5800
5800
  return !argv1.includes("node_modules");
5801
5801
  }
5802
5802
  async function cmdUpdate() {
5803
- const currentVersion = "0.1.24";
5803
+ const currentVersion = "0.1.25";
5804
5804
  process.stderr.write(
5805
5805
  ` ${ansi2.gray("Current version:")} ${currentVersion}
5806
5806
  `
@@ -5935,7 +5935,7 @@ async function cmdLogin(options) {
5935
5935
  process.stderr.write("\n");
5936
5936
  printLogo();
5937
5937
  process.stderr.write("\n");
5938
- const ver = "0.1.24";
5938
+ const ver = "0.1.25";
5939
5939
  process.stderr.write(
5940
5940
  ` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
5941
5941
  `
@@ -6158,7 +6158,13 @@ function parseStepFlags(argv) {
6158
6158
  const result = {};
6159
6159
  for (let i = 0; i < argv.length; i++) {
6160
6160
  const arg = argv[i];
6161
- if (arg.startsWith("--") && i + 1 < argv.length) {
6161
+ if (!arg.startsWith("--")) continue;
6162
+ if (GLOBAL_BOOLEAN_FLAGS.has(arg)) continue;
6163
+ if (GLOBAL_STRING_FLAGS.has(arg)) {
6164
+ i++;
6165
+ continue;
6166
+ }
6167
+ if (i + 1 < argv.length) {
6162
6168
  const key = arg.slice(2);
6163
6169
  result[kebabToCamel2(key)] = coerce(argv[++i]);
6164
6170
  }
@@ -6174,6 +6180,13 @@ var GLOBAL_STRING_FLAGS = /* @__PURE__ */ new Set([
6174
6180
  "--workflow",
6175
6181
  "--version"
6176
6182
  ]);
6183
+ var GLOBAL_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
6184
+ "--no-meta",
6185
+ "--json-logs",
6186
+ "--json",
6187
+ "--summary",
6188
+ "--help"
6189
+ ]);
6177
6190
  function findMethodSplit(argv) {
6178
6191
  let startIdx = 0;
6179
6192
  let hasRun = false;
@@ -6249,7 +6262,7 @@ async function main() {
6249
6262
  try {
6250
6263
  if (command === "version" || command === "-v") {
6251
6264
  process.stdout.write(
6252
- "0.1.24\n"
6265
+ "0.1.25\n"
6253
6266
  );
6254
6267
  return;
6255
6268
  }