@mindstudio-ai/agent 0.1.51 → 0.1.52
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 +13 -8
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +13 -8
- package/llms.txt +10 -2
- package/package.json +1 -1
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
|
|
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
|
|