@mindstudio-ai/agent 0.1.16 → 0.1.17

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/llms.txt CHANGED
@@ -9,8 +9,8 @@ This file is the complete API reference. No other documentation is needed to use
9
9
  There are 150+ actions available. Do NOT try to read or load them all at once. Follow this discovery flow:
10
10
 
11
11
  1. **Identify yourself** — Call `changeName` to set your display name (use your name or whatever your user calls you). 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.
12
- 2. **Discover** — Call `listActions` (MCP tool) or `mindstudio list-actions --summary` (CLI) to get a compact `{ action: description }` map of everything available (~3k tokens).
13
- 3. **Drill in** — Once you identify the right action, look up its full signature in the reference below, or call `mindstudio info <action>` (CLI) for parameter details.
12
+ 2. **Ask** — Use `mindstudio ask "your question"` (CLI) or the `ask` MCP tool for SDK guidance. It knows every action, model, and connector and returns working TypeScript code with real model IDs and config options. Examples: `mindstudio ask "generate an image with FLUX"`, `mindstudio ask "what models support vision?"`, `mindstudio ask "how do I send a Slack message?"`.
13
+ 3. **Browse** — For manual discovery, call `listActions` (MCP tool) or `mindstudio list-actions --summary` (CLI) to get a compact `{ action: description }` map of everything available (~3k tokens). Call `mindstudio info <action>` (CLI) for parameter details.
14
14
  4. **Call it** — Invoke the action with the required parameters. All actions share the same calling convention (see below).
15
15
 
16
16
  For specific use cases:
@@ -466,6 +466,14 @@ Send a message to an AI model and return the response, or echo a system message.
466
466
  - Source "system" echoes the message content directly (no AI call).
467
467
  - Mode "background" saves the result to a variable. Mode "foreground" streams it to the user (not available in direct execution).
468
468
  - Structured output (JSON/CSV) can be enforced via structuredOutputType and structuredOutputExample.
469
+ - When executed inside a v2 app method (managed sandbox or local dev tunnel),
470
+ LLM token output can be streamed to the frontend in real time via an SSE
471
+ side-channel. The frontend opts in by passing { stream: true } to the method
472
+ invocation via @mindstudio-ai/interface. Tokens are published to Redis
473
+ pub/sub as they arrive and forwarded as SSE events on the invoke response.
474
+ The method code itself is unchanged — streaming is transparent to the
475
+ developer. See V2ExecutionService.ts and the invoke handler in V2Apps for
476
+ the server-side plumbing.
469
477
  - Input: `{ message: string, source?: "user" | "system", modelOverride?: { model: string, temperature: number, maxResponseTokens: number, ignorePreamble?: boolean, userMessagePreprocessor?: { dataSource?: string, messageTemplate?: string, maxResults?: number, enabled?: boolean, shouldInherit?: boolean }, preamble?: string, multiModelEnabled?: boolean, editResponseEnabled?: boolean, config?: object }, structuredOutputType?: "text" | "json" | "csv", structuredOutputExample?: string, chatHistoryMode?: "include" | "exclude" }`
470
478
  - Output: `{ content: string }`
471
479
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/agent",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "TypeScript SDK for MindStudio direct step execution",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",