@mindstudio-ai/agent 0.1.51 → 0.1.53

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
@@ -143,10 +143,18 @@ const { content } = await mindstudio.generateText({
143
143
 
144
144
  Every method has the signature:
145
145
  ```typescript
146
- mindstudio.methodName(input: InputType, options?: { appId?: string, threadId?: string }): Promise<OutputType & StepExecutionMeta>
146
+ mindstudio.methodName(input: InputType, options?: { appId?, threadId?, onLog? }): Promise<OutputType & StepExecutionMeta>
147
147
  ```
148
148
 
149
- The first argument is the step-specific input object. The optional second argument controls thread/app context.
149
+ The first argument is the step-specific input object. The optional second argument controls thread/app context and debug logging.
150
+
151
+ **Debug logging**: Pass `onLog` in the options to get real-time debug logs during execution (SSE streaming). Works on ALL step methods:
152
+ ```typescript
153
+ await mindstudio.generateImage({ prompt: '...' }, {
154
+ onLog: (event) => console.log(`[${event.tag}] ${event.value}`),
155
+ });
156
+ // event: { value: string, tag: string, ts: number }
157
+ ```
150
158
 
151
159
  **Results are returned flat** — output fields are spread at the top level alongside metadata:
152
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/agent",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "description": "TypeScript SDK for MindStudio direct step execution",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",