Reference

StepLogEvent

Type
One progress event from a running action: a message, the step it came from, and when.

The event an SDK action emits as it runs, passed to the onLog callback you give the action. Each one carries the log value, the tag of the step that produced it, and a ts. The canonical use is piping it straight into stream, turning an action's progress into live updates the frontend can read.

StepLogEvent.ts
interface StepLogEvent {
  value: string
  tag: string
  ts: number
}
Fields
value
string
The log message text, e.g. a status line or a model's token output.
tag
string
The step's display name, e.g. "Generate Image" or "Scrape URL".
ts
number
Unix timestamp in milliseconds.
Relay each event
await mindstudio.scrapeUrl(
  { url },
  { onLog: (e: StepLogEvent) => stream({ status: e.value, step: e.tag }) },
);