@outputai/core, @outputai/cli, and output-api all share one version number and release together.
Releases with breaking changes link to a matching section on the Migrations page. If you’re upgrading across several versions, apply each section in order.
See the v0.18.0 - v0.19.0 migration guide.
Updated the minimum Node.js version of generated projects to 24.15.0, matching the Output CLI and core packages.Removed the Recent Runs steps list overlay from
Removed the
Changed when the worker restarts the catalog workflow: it now compares a hash of the published catalog and the Output version instead of a hash of the project’s source files. Edits that don’t change any workflow definition, such as a prompt or a step’s implementation, no longer restart the catalog workflow, and upgrading Output does.Removed the
Deprecated the
@outputai/cli
Updated the minimum Node.js version of generated projects to 24.15.0, matching the Output CLI and core packages.Removed the Recent Runs steps list overlay from output dev. Press Enter on a run to open the step graph instead; the previous g shortcut is gone.Removed the output workflow cost command and its config/costs.yml pricing overrides. New projects no longer include config/costs.yml. The CLI no longer reads trace files or calls the trace log endpoints.Added output init <folder> --scaffold-only for agents and CI, which writes the project files, the credentials template and .env without installing dependencies, initializing git, setting up Claude or prompting.Fixed empty TEMPORAL_* environment variables being treated as set. Local Temporal commands now keep the profile settings, and a blank API key no longer enables TLS.@outputai/core, output-api
Removed the activities key from each workflow in the workflow catalog. It was always an empty array, and GET /workflow/catalog and GET /workflow/catalog/{id} no longer return it.Changed the workflow catalog to list workflows sorted by name.Updated the API reference for the catalog endpoints to document the catalog’s workflowNames, which maps each workflow name and alias to the workflow it resolves to.@outputai/core
Changed when the worker restarts the catalog workflow: it now compares a hash of the published catalog and the Output version instead of a hash of the project’s source files. Edits that don’t change any workflow definition, such as a prompt or a step’s implementation, no longer restart the catalog workflow, and upgrading Output does.Removed the folder-hash dependency.Added pending hook callbacks to the periodic worker telemetry log, which OUTPUT_WORKER_TELEMETRY_INTERVAL_MS turns on. The new pendingHooks field shows how many callbacks are still running and how long they have been running, so a slow hook destination shows up in the logs before it grows the worker’s memory.- Reports
count,averageAgeMsandoldestAgeMsacross all hooks. The ages arenullwhen no callback is pending. - Breaks the same values down by hook name under
perName.
@outputai/core install bundling each other’s workflows and options, for example in a monorepo or in parallel output-worker --check runs.Fixed the worker failing to bundle when @outputai/core is installed on a read-only file system. The worker no longer writes generated files inside the package.Added typed hooks for the SDK events in @outputai/core/hooks: onHttpRequest, onHttpCost and onLLMMetering. They receive the same envelope and payload as the matching on() events, typed, so handlers need no type imports. See Hooks.Added the onLLMRequest hook, which fires once per LLM call made with @outputai/core/llm, on success or error. Its payload carries what the trace records for the call, without reading trace files. The prompt and response can contain PII; redact before logging or sending to a third party. See LLM request events.operation: the function that made the call, such asgenerateText,streamTextorAgent.generate.prompt: a copy of the prompt.responseon success: the steps of the response, plus the parsedoutputfor structured output; image data is reduced to size and media type.erroron failure: the serialized error.attributes: the billed usage and cost.callIdanddurationMs.
callId to the onLLMMetering payload, matching the callId of the onLLMRequest event of the same call.Added error to the HTTP request event payload when the request fails, with the serialized network error.Deprecated listening to SDK events by name with on(). Registering a handler for one of these names logs a warning:on('http:request'): useonHttpRequest(). Same payload.on('cost:http:request'): useonHttpCost(). Same payload.on('llm:generation:metering'): useonLLMMetering(). Same payload.on('cost:llm:request'): useonLLMMetering(). The payload changes fromLLMUsageEventtoLLMGenerationMeteringEvent: readpayload.cost?.totalinstead ofpayload.total. See Legacy LLM request cost.
emit() so the second argument may be a factory () => payload. The factory runs only when at least one on() handler is listening; handlers still receive the resolved value under payload. See Hooks.Fixed custom emit() of the reserved SDK event names (http:request, cost:http:request, llm:generation:metering, cost:llm:request) never reaching on() handlers for those names: those listeners bind the SDK bus, while emit() always publishes on the custom bus. Do not emit these names for custom events; pick a different name. See Hooks.Fixed a worker that fails to start replacing the published catalog:- A bad workflow import now fails before connecting to Temporal.
- Other worker startup errors, for example an invalid
TEMPORAL_MAX_*value, now fail before publishing the catalog.
output-worker --check to cover more of the worker startup:- Prints the worker startup logs and the webpack error naming the offending module.
- Loads the project’s hook files, without triggering
onError, so a broken hook file fails the check.
- Deploys that ship the encrypted credentials file without a valid key now crash-loop after upgrading. See the v0.18.0 to v0.19.0 migration guide.
OUTPUT_OTEL_ENABLED=true and the worker exports Temporal’s workflow and step spans over OTLP/HTTP to the backend in OTEL_EXPORTER_OTLP_ENDPOINT, such as Jaeger, Honeycomb or Grafana Tempo. See the OpenTelemetry guide.- Reads the standard
OTEL_*variables for the endpoint, headers, service name and resource attributes. - Nests the spans you create with
@opentelemetry/apiin steps and in step hooks under the step’s span. - Exports the queued spans on shutdown, in parallel with the hook callbacks, for up to
OUTPUT_OTEL_FLUSH_TIMEOUT_MS(5 seconds by default).
output-api
Deprecated the GET /workflow/:id/trace-log and GET /workflow/:id/runs/:rid/trace-log endpoints. Responses now include Deprecation, Sunset (2027-01-01), and a Link to the OpenTelemetry docs. Migrate before that date; the endpoints will be removed afterward.Deprecated the GET /workflow/:id/history, GET /workflow/:id/runs/:rid/history, GET /workflow/:id/history/stream, and GET /workflow/:id/runs/:rid/history/stream endpoints. Responses now include Deprecation, Sunset (2027-02-01), and a Link to the Temporal TypeScript SDK history docs. Migrate before that date; the endpoints will be removed afterward.See the v0.17.0 - v0.18.0 migration guide.
Added
Removed the optional
@outputai/cli
Added --workflow-id to workflow dataset generate: it reads the start input and the result of a completed run from Temporal and saves them as a dataset case, so a real run can become a test case without reading traces or going through the API for the run data. It works on local and remote Temporal. The case is named after the workflow id unless --name is given. If the file already has a case with that name, its input and last_output are replaced and its other fields, such as ground_truth, are kept, as in the other modes. A run that started without input is saved with an empty input, and a run that returned nothing is saved with a null output. A run that continued as new from earlier runs is saved with the input of the first run of the chain and the result of the run read, and the command prints the run ids it used. It fails if the first run can no longer be read.Added --run-id (-r) to read a run other than the latest one of the workflow id. It needs --workflow-id.Added --profile, --address and --namespace to choose the Temporal backend, with the same precedence as workflow debug: the flags, then the TEMPORAL_* environment variables, then the profile in temporal.toml, then the local dev defaults.Added checks before anything is written. The run must be a completed run of the workflow named in the command, and its input must be an object. A run of another workflow type, a run that is running, failed, canceled, terminated or continued as new into a later run, a missing run, an unreachable Temporal and an input that is not an object each fail with a clear message on stderr and a non-zero exit, and no file is created. Input and result are read in full, and secrets are redacted as in the other modes.Added a 30 second deadline on every Temporal call, shared with workflow debug, so an unresponsive server fails the command with Temporal did not answer within 30s instead of hanging.Changed the scenario and --input modes of workflow dataset generate to stop reading the trace. They save only the output and the date, so they work when tracing is off.Removed --trace, --download and --limit from workflow dataset generate. This is breaking: passing them is now an error. Use --workflow-id instead, one command per run (workflow runs list prints the workflow ids). The old modes read local trace files and the API’s trace log.Removed executionTimeMs from the datasets the CLI writes, including the output of workflow test. Nothing read it. Dataset files that still contain it load without error, and the key disappears the next time the CLI rewrites the file.Changed workflow debug to read the run from Temporal directly instead of from the API trace-log endpoint. It no longer needs the API, trace files or S3, and behaves the same in development and production. The output is new, so this is breaking. Standard output is one JSON document: complete, warnings, temporal (address and namespace) and workflows, a flat list with one entry per workflow. The first entry is the run you asked for, followed by its child workflows, found by the run id in ChildWorkflowExecutionStarted and ordered by the time the parent started them. Each entry has workflowId, runId, workflowType, status, parent (children only), pendingActivities, pendingChildren and events, with events last. The document is compact JSON on a single line; use jq to indent it. Events keep Temporal’s default JSON form (EVENT_TYPE_* names, <name>EventAttributes keys, string ids, ISO times) with payloads decoded, and nothing added. --json is accepted and ignored, because the output is always JSON. The text tree is removed.Added following of workflows that continue as new: each next run (newExecutionRunId) is read as its own entry with the same workflowId (and parent, for a child), ordered by start time and counted against the same limits. A parent’s events name only a child’s first run, so this is how the rest of a child’s runs are found. For the workflow you ask for, the chain is followed from the run you start at (--run-id, or the latest run).Added --run-id to read a specific run, defaulting to the latest run. Every entry states the run that was read.Added --profile, --address and --namespace to choose the Temporal backend. Connection settings follow Temporal’s standard client configuration through @temporalio/envconfig: the --address and --namespace flags, then the TEMPORAL_* environment variables, then the profile in temporal.toml, then localhost on the dev stack’s Temporal port (OUTPUT_TEMPORAL_HOST_PORT, 7233 by default) and the default namespace. The API key and TLS material come only from the profile or the environment.Added truncation of decoded payloads, always on. Strings over 1,024 characters keep their first 1,000 and last 24 characters around a ... [N more characters omitted] ... marker, arrays keep 20 items, objects 50 keys, nesting stops at depth 10 and each payload at 1,000 values. Error stacks keep their first 10 lines. Full payloads stay in Temporal.Added limits of 100,000 events and 1,000 pages on reading across the run and all its children. When it is reached, or when a child history was already deleted by Temporal, complete is false, warnings lists what is missing as plain sentences, the workflows that were not read keep an entry with events empty, and the command still exits 0. status and the pending lists are read after the events so they are never older than them; a workflow that finishes while it is being read gets a warning that its events stop before the end.Added a 30 second deadline on every Temporal call, so an unresponsive server fails the command with Temporal did not answer within 30s instead of hanging. A read failure on a child workflow or on a later page, such as a permission or network error, no longer fails the whole command: it becomes a warning with the error message, complete is false, and the entry keeps the events read so far. Only a failure on the first page of the requested run fails the command. Added the -r short flag for --run-id, as on workflow history and workflow monitor.Changed errors to follow Unix conventions: a failure (workflow or run not found, Temporal unreachable, missing profile) exits non-zero with the message on stderr and nothing on stdout. Removed the Fetching debug information... and Trace source: ... messages. The 256 MB trace file limit no longer applies to workflow debug.@outputai/core
Removed the optional executionTimeMs field from LastOutput and LastEval, and from LastOutputSchema and LastEvalSchema, in @outputai/core/evals. Nothing read it. Dataset files that still contain it load without error, because the schemas ignore unknown keys. TypeScript code that sets the field on a LastOutput or LastEval must drop it, since it is now an unknown property.Added an optional extractStepCost function on registerProvider. You pass a function that receives each AI SDK step’s providerMetadata and returns the dollar amount the gateway charged for that step (or null when missing). Metering calls it once per step at bill time, sums the amounts, and writes an LLMGenerationCost with pricingSource: "provider". When the function is set for a provider, that provider never uses models.dev, has no items and never emits the legacy cost:llm:request event. Catalog-priced calls now also include pricingSource: "models.dev".Moved models.dev pricing off the LLM billing path onto a Temporal worker background retriever, so LLM call cost calculation are always based on cache. The pricingFreshness value live was removed, keeping only cached, stale, or snapshot. Until the worker’s first successful refresh, costs use the bundled snapshot.Updated shutdown logs to include the new service LLMPricingRetriver and other small cosmetic message updates.See the v0.16.0 - v0.17.0 migration guide.
Fixed Temporal worker logs showing
Added a 256 MB limit to the trace log endpoints, with a signed download URL for bigger files.
Fixed
@outputai/core
Fixed Temporal worker logs showing error: {} by serializing Error values in Temporal log metadata, so failures like Worker failed now log their message and stack.Fixed Logger throwing Activity context not initialized when called on a worker outside an activity, such as from lifecycle hooks (onWorkflowEnd, onWorkflowError). These logs are now emitted without activity fields instead of being lost.Fixed LLM cost status for calls with reasoning tokens. A reasoning item with no separate reasoning rate in the pricing catalog is now priced at the output rate with item status ok, instead of fallback, so these calls (Anthropic, OpenAI and Gemini thinking models) are precise rather than imprecise. Cache read and cache write items without their own rate still fall back to the input rate and still mark the cost imprecise.Changed the worker to exit 0 when a signal shutdown abandons in-flight work at TEMPORAL_SHUTDOWN_FORCE_TIME, instead of 1. A service failing to stop is logged as a ... failed warning and no longer affects the exit code, so a routine deploy no longer reports a failure.Changed Temporal’s Worker failed log for an expired shutdown force time from an error to a warning. It is dropped when OUTPUT_TEMPORAL_LOG_LEVEL is ERROR.Changed OUTPUT_TEMPORAL_LOG_LEVEL to be validated at startup. It stays case-insensitive, and an invalid value now fails the worker.Added shutdown logs: Shutting down with the grace, force and hook flush times, a duration on every service stop, and shutdownDurationMs on Bye. Added a startup warning when the force time is not bigger than the grace time.Added promptName and requestDetails to LLMGenerationUsage and LLMGenerationCost, so both the llm:generation:metering event and the llm:generation:usage and llm:generation:cost trace attributes carry them for text, streaming, Agent, and image calls. Use promptName to group usage and cost by prompt.requestDetails (new LLMRequestDetails type) holds ids, the provider request ID of every request in request order, read from the request-id response header and then x-request-id, and empty when the provider exposes neither; count, the number of provider requests; and duration, the milliseconds, rounded up, from the start of the call until billing starts. The legacy cost:llm:request event and llm:usage attribute are unchanged.Fixed the error serializer splitting an emoji in two when it truncated a long string, which left an unpaired UTF-16 surrogate in the serialized error. A string the serializer cuts now ends before the whole character. Content that is not cut is not changed.Changed the serialized RegExp sources, function names and buffer type names to go through the same truncation as other strings. They had no length limit before, so a very long one is now cut at 16,384 characters and ends with the ... [N more characters omitted] marker.@outputai/cli, output-api
Added a 256 MB limit to the trace log endpoints, with a signed download URL for bigger files. GET /workflow/:id/trace-log and GET /workflow/:id/runs/:rid/trace-log check the S3 object size first and never read a trace over 256 MB. They answer 413 with a time-limited downloadUrl and expiresAt in the body, and size and maxSize in the body and in the X-Trace-Size and X-Trace-Max-Size headers. This replaces the Cannot create a string longer than 0x1fffffe8 characters failure on very large remote traces. workflow cost, workflow debug, workflow dataset generate and the dev UI steps view now report Trace file is too big for this feature. Max size 256 MB, file size ... for these traces.@outputai/cli
Fixed --json errors on the output workflow commands. run, start, status, result, list, runs list, cost, debug, input, test and dataset list used to print a plain-text error and leave nothing structured for scripts to read. They now write { "error": { "message", "status", "code" } } to stderr, with status and code present only when known, leave stdout empty, and keep their exit codes (1 for API and network failures, 2 and 3 for the usage and monitoring errors of start). Text mode is unchanged.See the v0.15.0 - v0.16.0 migration guide.
Folded
Removed the duplicated cause from step and workflow failures. The
Added public type exports for HTTP fetch, workflow definitions, credential provider contexts, LLM calls and eval verification.Added per-request context-tier pricing for LLM models, including tier-specific input, output, cache-read and cache-write rates. Applied tiers are exposed on normalized cost items, and multi-step calls are priced separately per provider request.Added usage and cost tracking for Anthropic and OpenAI provider-native web search, plus Google Search grounding pricing for Gemini 4. Each billed search is recorded as a
Dependency updates:
Patching handlebars version from 4.7.9 to 4.7.10 to fix vulnerabilities.
@outputai/cli, @outputai/core
Folded @outputai/llm as a feature of @outputai/core, under the @outputai/core/llm entry point. Usage is the same: replace @outputai/llm imports with @outputai/core/llm. The @outputai/llm package is no longer published. Other changes are:- Added
aias a peer dependency of@outputai/core, and the built-in AI SDK providers (@ai-sdk/amazon-bedrock,@ai-sdk/anthropic,@ai-sdk/azure,@ai-sdk/google-vertex,@ai-sdk/openaiand@ai-sdk/perplexity) as optional peer dependencies. Install the providers your prompts use; using a provider whose package is not installed throws aFatalErrornaming the package to install. - Changed
getProviderNames()to list only the built-in providers whose package is installed, plus registered ones. - Updated the CLI project templates and agent instructions to use
@outputai/core/llm, and added@ai-sdk/anthropicand@ai-sdk/openaito the project template.
llm:generation:metering and cost:llm:request events and the LLM trace attributes are unchanged.Stopped publishing the @outputai/output umbrella package. Projects depend on @outputai/core and, as a dev dependency, @outputai/cli instead. Other changes are:- Changed the project template to depend on
@outputai/coreand@outputai/cliinstead of@outputai/output. - Changed
output fixto replace an@outputai/outputdependency with@outputai/coreindependenciesand@outputai/cliindevDependencies, at the same version. - Changed the
output updatewarning about a version range that holds back the CLI so it no longer refers to@outputai/output. - Removed the internal
@outputai/core/sdk/helpersand@outputai/core/sdk/runtimeentry points. - Removed support for the
output-workflow-bundlepackage export condition when bundling workflows.
@outputai/http as a feature of @outputai/core, under the @outputai/core/http entry point. Usage is the same: replace @outputai/http imports with @outputai/core/http. The @outputai/http package is no longer published. Other changes are:- Added
kyandundicias peer dependencies of@outputai/core, and removedundicifrom its regular dependencies. - Added
HTTPRequestCountandHTTPRequestCostto@outputai/core/http. - Updated the CLI project templates and agent instructions to use
@outputai/core/http. - Changed verbose HTTP tracing (
OUTPUT_TRACE_HTTP_VERBOSE) to record request and response bodies with the same parsing assendHttpRequest(), so multipart bodies are now stored as base64.
sendHttpRequest() response body parsing when responseOptions.includeBody is true:- Changed XML, form-urlencoded and JavaScript content types to be returned as text instead of base64.
- Changed empty or invalid JSON bodies to be returned as raw text instead of throwing.
@outputai/evals as a feature of @outputai/core, under the @outputai/core/evals entry point. Replace @outputai/evals imports with @outputai/core/evals, except for the LLM judges, which moved to @outputai/core/llm. The @outputai/evals package is no longer published. Other changes are:- Moved
judgeVerdict,judgeScore,judgeBoolean,judgeLabeland theJudgeArgstype to@outputai/core/llm. Their arguments and results are unchanged. - Removed
interpretResult,aggregateCaseVerdict,renderEvalOutput,computeExitCode,getEvalWorkflowName,isEvalWorkflowandgetParentWorkflowNamefrom the public API. They were used internally by the eval workflow and the CLI. - Removed the internal Zod schemas from the public API.
DatasetSchemaandEvalOutputSchemaare still exported, along with theVERDICTandCRITICALITYvalues and the eval types. - Changed the workflow bundler to replace steps and evaluators that are referenced as values in workflow files, rather than called, with their activity names, and to strip their imports. Previously their modules were bundled into the workflow sandbox when the file had no activity calls.
- Removed
@outputai/evalsfrom@outputai/cli.
@outputai/core, output-api
Removed the duplicated cause from step and workflow failures. The ApplicationFailure cause is now the error’s own .cause instead of the error itself, so its message and stack are no longer encoded twice. As a result, wherever a failure’s cause chain is exposed, such as API error responses, traces and logs, it is now one redundant level shorter.@outputai/core
Added public type exports for HTTP fetch, workflow definitions, credential provider contexts, LLM calls and eval verification.Added per-request context-tier pricing for LLM models, including tier-specific input, output, cache-read and cache-write rates. Applied tiers are exposed on normalized cost items, and multi-step calls are priced separately per provider request.Added usage and cost tracking for Anthropic and OpenAI provider-native web search, plus Google Search grounding pricing for Gemini 4. Each billed search is recorded as a tools item, priced separately from tokens, and included in the normalized generation cost total.Reduce worker memory usage by loading only the invoked workflow module into each cached Temporal workflow execution.Added worker memory sizing diagnostics and deferred the workflow concurrency defaults to @temporalio/worker.Worker sizing startup logAdded a Worker sizing record, logged once at startup with the thread pool size, reuseV8Context, the isolate count, the per-isolate heap limit, the heap all isolates could commit together, the host’s memory limit, the resolved cache size, and the workflow task slot count.Warns when the projected heap exceeds the host’s memory limit, and when there are more workflow task slots than cache entries, which causes tasks to evict each other’s workflows and forces history replays.Accounts for NODE_OPTIONS heap caps applying per isolate rather than per process: a worker runs one V8 isolate on its main thread plus one per workflow thread, so the heap it can commit is a multiple of the cap.Periodic telemetry- Added
memory.nonMainHeap(rss - heapUsed): resident memory outside the main isolate’s live objects, including workflow thread heaps, Rust core allocations, and heap pages V8 has committed but not filled. Cached workflow memory is counted here. - Added
memory.heapSizeLimit, the per-isolate heap ceiling, to each sample. - Renamed
memory.constrainedMemorytomemory.memoryLimitand changed what it reports.process.constrainedMemory()returns a sentinel near 2^64 rather than0when the process is unconstrained, so the old field was not usable outside a memory-capped container.memoryLimitfalls back to the machine’s total memory. Anything parsing the old field needs updating.
- Added
TEMPORAL_WORKFLOW_THREAD_POOL_SIZE, the number of threads running workflow sandboxes, which sets the number of isolates. Unset by default. - Removed the
TEMPORAL_MAX_CACHED_WORKFLOWSdefault of1000. When unset, the cache is sized from the isolate’s heap limit instead of a fixed value. That formula assumes roughly 600 cached workflows per GB, so deployments with heavier payloads should set it explicitly. - Removed the
TEMPORAL_MAX_CONCURRENT_WORKFLOW_TASK_EXECUTIONSdefault of200. When unset, it falls back to the upstream default of40.
@outputai/cli, @outputai/core, output-api
Dependency updates:@hono/node-server:2.0.10->2.1.3, reached through@modelcontextprotocol/sdk@modelcontextprotocol/sdk:1.31.0->1.32.0, reached through@anthropic-ai/claude-agent-sdkbody-parser:2.3.0->2.4.0, reached throughexpressfast-uri:3.1.8->3.1.9, reached throughajvhono:4.13.10->4.13.11, reached through@modelcontextprotocol/sdkip-address:10.7.2->10.7.4, reached through@modelcontextprotocol/sdkqs:6.16.0->6.16.1, reached throughexpressandbody-parserundici:7.29.1->7.30.1, reached through@ai-sdk/provider-utilsundici:8.11.0->8.12.3, fixing Node’s built-infetchreturning gzip response bodies undecoded after Undici is importedzod:4.6.5->4.6.6
undicimin supported peer dependency version for@outputai/coreis now8.12.2.zodmin supported peer dependency version for@outputai/coreis now4.6.6.
@outputai/cli
Patching handlebars version from 4.7.9 to 4.7.10 to fix vulnerabilities.See the v0.14.0 - v0.15.0 migration guide.
Dependencies updatesAPI runtime
Folded
Added support for Temporal search attributes on workflow runs:
output-api
Dependencies updatesAPI runtime- @grpc/grpc-js:
1.14.4->1.14.5, reached through@temporalio/client - proxy-addr:
2.0.7->2.0.8, reached throughexpress
@outputai/cli
- Updated the CLI to use
@outputai/corefor credentials features. - Updated
output fixto remove the now-unusedoutputai.hookFilesentry pointing to@outputai/credentials. - Updated the scaffolding of new projects to no longer include the credentials entry in
outputai.hookFiles.
@outputai/core
Folded @outputai/credentials as a feature of @outputai/core, under the @outputai/core/credentials entry point. Usage is the same, and credentials are still loaded during worker startup (after workflows are loaded). The outputai.hookFiles config is no longer necessary. Other changes are:- Updated the worker to fail startup when there are errors loading credentials.
- Removed the
onBeforeWorkerStarthook.
/credentials behavior and interface were kept, with the exception of these changes:- Updated to use the encrypted YAML provider as the default.
- Removed unused exports:
getProviderencryptedYamlProviderGlobalContextWorkflowContext
- Updated all typed errors to inherit from
FatalError, so when thrown, they fail the workflow execution. This includes:MissingKeyErrorMissingCredentialErrorInvalidCredentialsKeyErrorMalformedCredentialsKeyError
@outputai/cli, @outputai/core, output-api
Added support for Temporal search attributes on workflow runs:- Added an optional
searchAttributesmap to/workflow/runand/workflow/start. Unregistered attributes or mistyped values return 400 and the workflow is not started. - Added a
--search-attributesflag tooutput workflow runandoutput workflow start. - Added
workflowDetails.searchAttributesto hook payloads, withDatetimevalues as ISO strings. - Updated child workflows to inherit their parent’s search attributes, excluding Temporal system attributes.
See the v0.13.0 - v0.14.0 migration guide.
Added usage and cost reporting for generations that fail after the model ran. Usage is now collected from the AI SDK lifecycle events as the call progresses, so billing no longer depends on the call returning a response. Attribute and event shapes are unchanged - failed calls simply stop being free, which raises reported cost for unchanged traffic. Failures before the first completed step still report nothing, because nothing was spent or reported: authentication, rejected requests, unknown models, connection errors, aborts before the first step, and every
Changed the worker to exit
Updated the scaffolded
@outputai/llm
Added usage and cost reporting for generations that fail after the model ran. Usage is now collected from the AI SDK lifecycle events as the call progresses, so billing no longer depends on the call returning a response. Attribute and event shapes are unchanged - failed calls simply stop being free, which raises reported cost for unchanged traffic. Failures before the first completed step still report nothing, because nothing was spent or reported: authentication, rejected requests, unknown models, connection errors, aborts before the first step, and every generateImage error.- Added billing for
generateTextandAgent.generatefailures that follow a completed step: output or schema validation (NoObjectGeneratedError,NoOutputGeneratedError), a tool loop that breaks mid-run, an abort, and post-response code such as anAgent.generatemessage store failure. - Added billing for
generateTextWithStreamingandAgent.generateWithStreamingfailures: a provider error part mid stream, an abort after a completed step, a structured output that never validates, and a message store failure after the stream finished. - Added billing for
streamTextandAgent.streamruns that end on an error part or on an abort with steps already collected. - Added the abort reason and the structured output rejection to the LLM trace event, so a cancelled stream and an output that never validated are no longer traced as clean calls.
- Updated streamed generations to consume the whole stream after a failure before rethrowing, since step usage is only reported while something keeps reading. A stream that goes quiet for 250 ms after failing is abandoned, and the original error is thrown anyway.
- Updated billing to run once per call, so a generation reporting several lifecycle events is metered a single time. Activity retries continue to bill per attempt, because each attempt calls the provider.
- Updated response sources to be filtered before they are returned: entries carrying neither a url nor an id are dropped, and a malformed
sourcespayload is logged and yields no sources instead of failing the call. Every source that survives is returned exactly as the AI SDK produced it. - Updated a failure in the SDK’s own response handling to throw a non-retryable
FatalErrorwrapping the original error, since such a failure is deterministic and a retry pays for the model call again. Generic streaming error messages were normalized toStreaming aborted.,Streaming failed.andStreaming completed without a response..
@outputai/core
Changed the worker to exit 1 on any shutdown failure, including in-flight work that did not finish before TEMPORAL_SHUTDOWN_FORCE_TIME. v0.13.0 exempted an abandoned drain from the failure exit code, which never took effect in practice.Updated error serialization to keep only name, message, code and stack for DOMException values, instead of also projecting the 25 legacy numeric constants their prototype carries. Aborted operations, whose reason is usually a DOMException, now read like any other error in traces and logs.Fixed two defects that made trace trees merge or drop nodes.- Fixed activity trace event ids colliding across attempts and across workflows. Temporal numbers activity ids per workflow run and reuses them on retry, so every attempt of an activity shared one id, and a parent and its child workflow both produced an
act-1. The tree builder merged the colliding entries: only the last attempt’s input, error and timing survived, the LLM and HTTP calls of every attempt were listed as children of that one node, and a nested workflow’s step surfaced a second time as a phantom node directly under the root. Activities are now traced as<runId>:<activityId>:<attempt>, so each attempt in each run is its own node with its own input, output or error, timing and children. - Fixed webhook trace events being parented on the parent workflow’s run id. In a root workflow the event had no parent and was dropped from the trace file; in a child workflow it landed beside the child instead of inside it. These events now parent on the running workflow. A wait whose
resumesignal never arrives is traced as awebhooknode with a nullendedAt.
@outputai/cli
Updated the scaffolded CLAUDE.md’s HTTP client convention to point agents at addRequestCost from an afterResponse hook for paid APIs, and at forwarding cost events via output-dev-cost-hooks.See the v0.12.0 - v0.13.0 migration guide.
Hardened worker startup and shutdown around the catalog workflow.
Added a static subset of the models pricing table, so costs for the six shipped providers can be calculated even when the live models pricing provider is down.
Added support for pricing Gemini grounded search, which providers bill per request rather than per token.
Dependencies updatesPublished dependency ranges
@outputai/core
Hardened worker startup and shutdown around the catalog workflow.- Changed catalog reconciliation to terminate a stale catalog instead of asking it to complete, so a catalog that stopped processing workflow tasks no longer fails every deploy that follows it.
- Increased the catalog workflow task timeout to 30s, enough for a cold worker bundle to activate.
- Added two retries when publishing the catalog before failing the worker.
- Added a startup gate so a worker never starts unless its catalog matches its own source code.
- Changed the worker to always exit explicitly:
0for a signal shutdown,1for a startup failure, a lost connection, an uncaught error, or a worker that failed to stop. A drain the worker had to abandon is not a failure - it is the bound working as intended - so it exits0and records aStopping Worker errorwarning carrying theGracefulShutdownPeriodExpiredError. - Added graceful draining for uncaught exceptions and unhandled rejections, with a force quit if the drain stalls.
- Fixed kill signals during startup killing the process abruptly, since the handler was only installed once the worker was built.
- Added defaults for
TEMPORAL_SHUTDOWN_GRACE_TIME(15s) andTEMPORAL_SHUTDOWN_FORCE_TIME(20s), so a wedged drain now ends under the worker’s own control instead of waiting for the platform toSIGKILLit. Both were previously unset, which left the drain unbounded and meant the hook flush was never reached on a deploy that caught in-flight work. Raise them together with your platform’s shutdown delay if your activities need longer. - Added
OUTPUT_HOOK_FLUSH_TIMEOUT_MS(5000) for the hook flush allowance, previously hardcoded at30000. The flush runs after the drain, so force time plus flush timeout is the worst-case shutdown and has to fit your platform’s window: the defaults total 25s against the 30s most platforms allow. At the old 30s the flush could not complete on a default window.
@outputai/llm
Added a static subset of the models pricing table, so costs for the six shipped providers can be calculated even when the live models pricing provider is down.- Added
pricingFreshnesstoLLMGenerationCost, reporting whether the rates were fetched during the call (live), served from the 24 hour cache (cached), kept past that cache’s expiry because a refresh failed (stale), or read from the bundled snapshot (snapshot). - Changed
LLMGenerationCost.statustoimprecisewhen rates come from the bundled snapshot, since it is a point-in-time copy that can lag the live catalog by an unbounded amount. A stale cache does not downgrade the status, because those rates were accurate when they were fetched. - Changed pricing lookups to pause live requests for 10 minutes after a failure, instead of retrying the unreachable catalog on every call.
- Changed
costto stay non-null while the pricing catalog is unreachable, since the snapshot always provides rates. Code that readcost === nullas an outage signal should readpricingFreshnessorstatusinstead.costis stillnullwhen usage cannot be normalized. - Added a periodic refresh of the bundled snapshot, so upgrading to a newer release picks up a more recent table.
GCP_CREDENTIALS_JSON support to the built-in google-vertex provider. Set it to the contents of a service account key file, either raw JSON or base64 encoded, to authenticate Vertex AI without deploying a credentials file. When the variable is unset the provider keeps using Application Default Credentials, so existing GOOGLE_APPLICATION_CREDENTIALS, gcloud and metadata server setups are unchanged.@outputai/cli, @outputai/llm
Added support for pricing Gemini grounded search, which providers bill per request rather than per token. LLMGenerationUsage and LLMGenerationCost items gain a tools group alongside input and output, and LLMGenerationCost gains a matching tools aggregate that is included in total. The legacy cost:llm:request payload is unchanged and does not carry grounding charges - its shape is frozen, so grounding costs are only visible on the new normalized attribute.output workflow cost prices these tool charges and marks any call with an unpriced charge (grounding or otherwise) with a * and a “cost incomplete” footnote, since the reported total understates the actual bill.@outputai/cli, @outputai/credentials, output-api
Dependencies updatesPublished dependency ranges- js-yaml:
4.3.1->4.3.2(catalog), shipped by@outputai/cliand@outputai/credentials
- qs:
6.15.2->6.16.0, reached throughexpress, which also movesside-channelfrom1.1.0to1.1.1
See the v0.11.0 - v0.12.0 migration guide.
Judge evaluators now accept nested objects and arrays as prompt variables.
Moved LLM-specific trace attributes out of
Updated
@outputai/llm
- Updated
@outputai/llmto AI SDK 7 and its compatible provider majors:ai7.x; OpenAI, Anthropic, Azure, and Perplexity 4.x; and Amazon Bedrock and Google Vertex 5.x. - Renamed stream completion callbacks and their exported wrapped types from
onFinishtoonEndinstreamText()andAgent.stream(). - Updated the
aiSdknamespace to expose the AI SDK 7 API, includingisStepCount()instead ofstepCountIs(). - Updated
onChunkto receive every AI SDK 7 stream part, including start, finish, error, step-boundary, text-boundary, and reasoning-boundary parts. Handlers should ignore part types they do not use. - Updated
Agentso it no longer inherits from the AI SDKToolLoopAgent. Its public methods remaingenerate(),generateWithStreaming(), andstream(). - Updated cache-read, cache-write, text-output, and reasoning token cost calculation to use AI SDK 7 usage breakdowns, with aggregate input or output usage as the fallback for incomplete breakdowns.
- Added normalized usage and cost items with
group(inputoroutput) and optional labels (no_cache,cache_read,cache_write,text, orreasoning). The existingllm:usagetrace attribute andcost:llm:requestevent remain available with their legacy payload for compatibility. - Fixed legacy
llm:usageoutput accounting: when reasoning tokens are provided as a discrete item, they are no longer included in the item for output tokens, removing the double counting problem. - Added normalized
LLMGenerationUsageandLLMGenerationCosttrace attributes with provider/model identity, aggregate totals, detailed items, and completeness/pricing statuses. - Added the
llm:generation:meteringevent. It is emitted with normalized usage even when cost is unavailable:
Prompt object directly to generateText(), generateTextWithStreaming(), streamText(), generateImage(), and the Agent constructor. Prompt filename strings remain supported; variables and promptDir apply only when loading a prompt by filename.Skills- Fixed implicit and inconsistent skill loading by making prompt frontmatter the only skills definition:
- Removed the
skillsargument fromgenerateText(),streamText(),generateTextWithStreaming(), andAgent. - Removed the
skills/auto-discovery. - Removed the
skill()helper and theSkillandSkillsArgtypes. - Fixed configured skill directories silently omitting Markdown files in nested folders. Directory loading is recursive and sorted.
- Fixed skill discovery following symbolic links. Symbolic links are ignored.
- Removed the
-
Fixed unrestricted native AI SDK call arguments bypassing validation and overriding prompt-owned model/configuration. Generation and Agent APIs now reject unsupported or misplaced arguments before provider I/O. Removed native AI SDK call arguments from
generateText(),generateTextWithStreaming(),streamText(),generateImage(), andAgent, as well asskillsandmaxSteps. These are the supported arguments:- Fixed callers being able to replace the prompt model while traces and cost used the prompt provider/model.
- Fixed unsupported callbacks on completion APIs being silently overwritten by internal callbacks.
- Fixed Agent using AI SDK’s two automatic retries while other Output generation APIs disabled them. Agent now uses
maxRetries: 0. - Added the public
GenerateImageInputtype forgenerateImage()imagesandmaskvalues. - Fixed
GenerateImageParametersallowingmaskwithoutimages; the public type now matches runtime validation.
-
Fixed invalid Agent constructor and method arguments being forwarded for late failure by validating messages, callbacks, tool choices, and
MessageStoreimplementations at the public boundary.
- Fixed tool handling:
- Fixed call-argument tools overriding prompt tools. They now merge (caller wins on the same key;
load_skillis last). - Fixed prompt-only native tools missing the tool-loop limit. They now use
stopWhen: isStepCount(maxSteps)from the prompt (default 10). - Fixed non-callable provider tool entries failing later with an opaque
TypeError. They now fail provider-tool validation.
- Fixed call-argument tools overriding prompt tools. They now merge (caller wins on the same key;
- Fixed loaded prompt shape inconsistencies:
- Renamed
Prompt.promptFileDirtoPrompt.fileDir. - Added
PromptVariables(Record<string, unknown>, including nested objects and arrays) andPrompt.variables(default{}). LLM APIvariablesarguments use the same type. - Fixed
Prompt.config.skillsvarying between missing, a string, and a string array. It is always astring[]after load. - Added
Prompt.config.maxSteps(positive integer, default 10). It replaces the old argument and is required on the public type. - Fixed
Prompt.instructionsallowingundefinedin its public contract. It is alwaysstring | nullafter load (chat prompts arenull). - Narrowed
PromptMessage.rolefromstringto'system' | 'user' | 'assistant', matching authored prompt blocks. - Fixed per-message options remaining unresolved until generation.
options="<name>"is resolved duringloadPromptagainstconfig.messageOptionsinto optionalPromptMessage.providerOptions;PromptMessage.attributesis removed.
- Renamed
- Fixed prompt body scanning silently dropping text, accepting malformed structure, or truncating messages by replacing it with explicit instruction and message modes:
- Fixed mode detection so plain text as the first meaningful body token selects instruction mode and preserves the complete body, while a tag selects message mode.
- Clarified that text generation APIs require message mode, while
generateImage()requires instruction mode. - Restricted message mode to top-level
system,user, andassistantblocks, with no root text between blocks. - Fixed prompt files accepting authored
<tool>blocks as string messages even though AI SDK requires structured tool-result parts. They now fail at load; structured tool messages remain supported through AgentmessagesandmessageStore. - Added explicit errors for invalid roles, root self-closing or unmatched closing tags, unclosed blocks, and malformed attributes.
- Fixed nested non-self-closing tags with the same name closing the outer block early. They now throw with an
<tag>escape hint; different-name tags remain message content. - Fixed closing tags inside HTML comments prematurely terminating and truncating messages.
- Fixed role-tag casing and closing-tag whitespace being misclassified as instructions. Role tags are case-insensitive and allow whitespace inside closing tags.
- Added support for spaces around attribute
=and>inside quoted values. Bareoptions, unknown option names, and invalid quote pairs throw at load. - Fixed empty or whitespace-only
optionsvalues invalidating templated prompts. They now behave as no per-message options.
- Fixed prompt file
configaccepting ignored or invalid values:- Unknown top-level keys throw.
modelmust be a non-empty string.- Added support for the native AI SDK generation properties
maxOutputTokens,topP,topK,presencePenalty,frequencyPenalty,stopSequences, and text-generationseed. - Deprecated
maxTokensin favor ofmaxOutputTokens. Existing prompts remain compatible:loadPromptretainsmaxTokensand copies its value tomaxOutputTokenswhen the canonical key is absent. When both keys are set,maxOutputTokenstakes precedence. Each key must be a positive integer when provided.
- Fixed stream observer failures escaping or disappearing silently.
streamText()andAgent.stream()onErrorandonEndcallbacks are fire-and-forget observers. Output maps and forwards provider errors, and logs and ignores observer exceptions and rejected promises. - Added logging for internal stream finalization failures before AI SDK suppresses the callback rejection.
- Updated Agent message store:
- Renamed
conversationStoretomessageStoreandConversationStoretoMessageStore. - Removed
createMemoryConversationStore(). The caller supplies aMessageStore(getMessages/addMessages). - Fixed
Agent.generate(),Agent.generateWithStreaming(), andAgent.stream()to persist tomessageStoreonly whenfinishReasonis not'error'. - Fixed stream message-store failures suppressing the user
onEnd. Failures are logged and stream finalization continues. - Fixed Agent store failures producing success-then-error trace sequences. Store persistence completes before a successful trace end.
- Renamed
- Fixed inconsistent and incomplete LLM trace payloads across
generateText(),streamText(),generateTextWithStreaming(),generateImage(), andAgent:- Updated start
inputto{ prompt }(the loaded object). Removed the v0.11 filenameprompt, siblingvariables, andloadedPrompt. - Renamed
sourcesFromToolstosources(merged tool + provider sources). - Fixed source merge dropping provider document sources that have
idbut nourl. - Fixed blank or untrimmed search URLs producing invalid citations or unstable source IDs. URLs are trimmed and blank values are dropped.
- Fixed wrapped text responses not consistently exposing
sourcesas an array. - Updated
ExtractedSourceto the AI SDKgenerateTextsources item type (url and document).
- Updated start
- Fixed concurrent same-name LLM calls started in the same millisecond sharing trace IDs.
- Fixed aborted
streamText()andAgent.stream()calls leaving their LLM trace open. Aborts now conclude the trace with an error. - Fixed public cost, source, and stream callback types to match wrapped runtime values.
response.costand streamonEndcostuseLLMGenerationCost, ornullwhen pricing data is unavailable. StreamonEndtypes also include wrappedresultand mergedsources.
- Renamed the AI SDK namespace re-export from
aitoaiSdk(both code and types). - Removed named AI SDK re-exports (
tool,Output,smoothStream,stepCountIs,hasToolCall,jsonSchema) and AI SDK type re-exports (ToolSet,FinishReason,ModelMessage, and others). Use theaiSdknamespace (or import fromai) for those. - Removed the Output-owned
GenerateTextAiSdkOptions,StreamTextAiSdkOptions, andGenerateImageAiSdkOptionsaliases. UseGenerateTextParameters,StreamTextParameters, andGenerateImageParameters. - Updated
OutputAgentGenerateWithStreamingParametersto no longer accept an output type argument. - Removed test specs and fixtures from the published package tarball.
Agent.stream() and Agent.generate() to map AI SDK failures to framework errors consistently with generateText(). Non-retryable AI SDK failures now become TransparentFatalError, so affected activities fail without retrying. Agent.stream() now also awaits asynchronous stream setup failures.Added generateTextWithStreaming() and Agent.generateWithStreaming(), which return complete results like generateText() and Agent.generate() while using streaming internally. Callers can observe progress through onChunk. Failures reject the returned promise.@outputai/evals
Judge evaluators now accept nested objects and arrays as prompt variables.@outputai/core
Moved LLM-specific trace attributes out of @outputai/core. Removed Attribute.LLMUsage and Attribute.Usage, and exposed the generic Attribute.BaseAttribute used by package-owned attributes. Import LLMGenerationUsage, LLMGenerationCost, and the deprecated legacy LLMUsageEvent from @outputai/llm.@outputai/cli
Updated output workflow cost to read the normalized llm:generation:cost and llm:generation:usage trace attributes while retaining support for legacy llm:usage traces. Cost overrides now reprice cache-read, cache-write, text, and reasoning usage, and model prefix matching selects the most specific configured price.See the v0.10.0 - v0.11.0 migration guide.
CLI env loading now uses Node’s
Added stricter LiquidJs settings for prompt files parsing. The following configurations were added:
Add workflow monitor command, update workflow history API to be resumable
HTTP clients
Updated
@outputai/cli
CLI env loading now uses Node’s process.loadEnvFile instead of the dotenv package.- Added support for legacy and V2 workflow results from the API, including structured errors;
output dev exit. Uncaught exceptions and unhandled rejections now leave the alternate-screen buffer and unmount the TUI before exiting, so scrollback and the error stack stay readable.workflow start --monitorAdded a --monitor (-m) flag to output workflow start that attaches and streams step updates as soon as the workflow is started, so you no longer have to copy the workflow ID into a separate workflow monitor call.- Monitoring is pinned to the run id returned by
start, so a rapid re-start can’t leave you watching a different execution. - Behavior matches
workflow monitor: Ctrl+C detaches without stopping the workflow (exit130), and a failed workflow exits1. - If the stream itself drops after the workflow was started, the command reports that the workflow is still running and exits
3— distinct from1, so retry logic keyed on a failed workflow can’t re-submit one that is already in flight. --interval,--include-payloads, and--colortune the stream and require--monitor.--monitorcannot be combined with--json, which suppresses progress output and prints a single object at the end — that would swallow the whole stream. Useworkflow run --jsonto wait for a result, orworkflow monitor --format jsonfor streaming NDJSON.
workflow monitor and workflow start --monitor run the same code path. Two fixes fall out of that for workflow monitor as well: a transient failure on the first poll is now retried like any other (it used to abort immediately), and Ctrl+C waits for output to flush before exiting, so a piped session can’t lose its last lines. Detaching now also names workflow status/workflow result for the run you left behind.Fix --json output on the workflow start and workflow run commands. workflow start did not support --json at all and errored on the flag; it now emits the workflow result as JSON. workflow run --json corrupted its JSON output when given a scenario argument, because the “Using scenario:” notice was written to stdout. That notice now goes to stderr, and is suppressed entirely under --json so that on success both commands write exactly one JSON object to stdout and nothing else.Renamed the workflow eval CLI command to output workflow test (was output workflow test_eval). The short test name is now the only command id; the test_eval name is removed.- Removed install from hot-reload when developing workflows (
output dev): nodemon no longer runsnpm installon every reload, andpackage.jsonis no longer watched. After dependency changes, runnpm install, bring the stack down (output dev downif it is still running), and startoutput devagain. npm run output:workeralso no longer installs first — runnpm run output:worker:install(or rely onoutput dev, which still installs on worker start) before build/start.npx output fixrewritesoutput:workerin existing projects when you apply it.
output dev memory leak in TUI where workflow run details grew unboundedAdd TUI attaching and re-attaching and dev down teardown commandoutput dev now detects an existing stack with docker compose ps instead of an
unconditional host-port probe, so a re-run attaches to a running project stack
rather than aborting on a collision with its own containers. Attached sessions
leave the stack up on quit; output dev down stops it.A stack whose containers are all stopped counts as a fresh start, not an attach —
output dev restarts it in the foreground and still tears it down on quit.output dev -d gained the pre-flight port probe the foreground path has. This
matters on Docker Desktop, where a non-container process holding a published port
does not fail compose up -d: the container starts and the port keeps answering
the other process, with no error from Docker.Note: -d now pipes Docker’s output rather than inheriting the terminal, so
Docker drops its redrawing progress bars for plain scrolling lines.output-api
- Added support for new workflow results without wrappers and with trace information in
memo; - Added support for the new structured error format, including error details;
- Added the new workflow result format V2 while preserving support for legacy results:
nanoid from 5.1.9 to 5.1.16Removed morgan library, refactored logs to include more information in the message, and renamed the request-log field from status to statusCode.Upgraded Temporal (temporalio/*) libs from v1.17.0 to v1.20.3@outputai/llm
Added stricter LiquidJs settings for prompt files parsing. The following configurations were added:-
Upgraded
liquidJSfrom v10.25.7 to v10.27.2 (.promptfiles template parser). -
Permanent AI SDK failures now surface in logs, traces, hooks, and workflow results as the original AI SDK error (for example
AI_APICallError) instead of a wrappingFatalErrorwhose message started withAI-SDK fatal error. -
Schema-mismatch
NoObjectGeneratedErrormessages are no longer rewritten to appendFirst issue is "…" at path […]. The AI SDK error (and its Zod cause chain) is returned unchanged. -
Added
'google-vertex'provider name support to use the@ai-sdk/google-vertexprovider, the previous'vertex'is still supported as an alias, and it is deprecated; -
Added
'amazon-bedrock'provider name support to use the@ai-sdk/amazon-bedrockprovider, the previous'bedrock'is still supported as an alias, and it is deprecated; -
registerProvider('vertex', …)andregisterProvider('bedrock', …)now throw — register under'google-vertex'or'amazon-bedrock'instead (see the v0.10 → v0.11 migration guide); -
Fixed a bug causing the wrong model to be used to calculate LLM costs when the model name was referenced by another provider. Cost lookup is now
provider+modelagainst the models.dev catalog, so customregisterProvidernames that are not models.dev ids correctly getnullcost instead of an arbitrary provider’s rates.
@outputai/core
- Removed workflow and activity wrappers, so both return their original output;
- Moved trace information to the root workflow’s
memo, in a new format: - Removed
aggregationsfrom activity lifecycle and error hook payloads. - Added
TransparentFatalError, a non-retryable wrapper that surfaces its cause as the original error in logs, traces, hooks and workflow results. - Refactored workflow and activity error handling:
- Workflow
ContinueAsNew, throw;- Cancellation, throw;
FatalError/ValidationError, create anApplicationFailureand serialize the original error in.details[0].error;TemporalFailure, throw;- Other errors, throw;
- Activity
CompleteAsyncError, throw;TemporalFailure, throw;- Other errors, create an
ApplicationFailure, serialize the original error in.details[0].error, and determine whether it is non-retryable from the error class name andactivityInfo.retryPolicy.nonRetryableErrorTypes;
- Workflow
ValidationErrornow extends fromFatalError.FatalErroris now always handled as non retryable, user configurableactivityOptions.retry.nonRetryableErrorTypeswill not overwrite it anymore.- Forwarded Temporal SDK and native Core logs through Output’s logger for consistent production/development formatting, omitted redundant failure logs (workflow/activity failures), and added
OUTPUT_TEMPORAL_LOG_LEVELto configure verbosity; - Refactored workflow and activity error logs:
- Workflow
ContinueAsNew, log a successful workflow end instead of an error;- Cancellation, log the serialized error chain without
stackor Temporal’s internal.failure; FatalError/ValidationError, log the serialized original error withoutstack;TemporalFailure, log the serialized Temporal error chain withoutstackor.failure;- Other errors, do not log because Temporal retries the Workflow Task;
- Activity
CompleteAsyncError, do not log an error and close the trace node as an asynchronous handoff;TemporalFailure, log the serialized error withoutstack;- Other errors, log the serialized original error without
stackbefore converting it to anApplicationFailure.
- Workflow
-
Refactored workflow activity invocation so steps, evaluators, and shared activities use the same runtime dispatcher
instead of
this-based handler dispatch. Workflow handlers no longer need to be rewritten from arrow functions into regular functions for activity dispatch, reducing AST rewrite complexity during worker startup and making bundling more predictable. -
Step and evaluator calls can now be placed in helper functions and imported helper modules used by a workflow.
Helpers no longer need to pass a workflow-bound
thisvalue through their call chain.
-
A child workflow’s definition-level
options.activityOptionsnow override activity options inherited from its parent. Invocation-levelactivityOptionsstill override both, and a step or evaluator’s ownoptions.activityOptionsremain the most specific. -
If a parent must override a child’s retry or timeout configuration, pass
activityOptionsexplicitly when invoking the child workflow.
-
Removed the previous
"$shared"activity namespace by registering shared activities into each workflow namespace. This means workflows can call local and shared activities through the same activity resolution path. -
Shared activity types now use
"<workflow-name>#<activity-name>"instead of"$shared#<activity-name>". - Added validation that prevents workflow-scoped activities from using the same activity name as a shared activity. If a workflow defines an activity with the same name as a shared activity, worker startup now fails validation instead of allowing ambiguous activity resolution.
-
Added fail-fast validation for default exports and
export *declarations in steps/evaluators files. Steps and evaluators already needed to be exposed through named exports for workflow rewriting. The worker now reports these unsupported forms directly during startup. -
Added fail-fast validation for unsupported steps/evaluators import shapes. Imports from steps/evaluators files already needed to use named imports or destructured requires for workflow rewriting.
The worker now fails fast with a validation error for unsupported import shapes like default imports, namespace imports, or non-destructured requires.
-
Added validation that activity calls must happen inside functions.
Calling a step or evaluator at module top level now fails validation.
-
Workflow errors passed to
onWorkflowErrorand workflow-sourcedonErrorare rehydrated toErrorinstances after crossing the Temporal sandbox (preservingname,message,cause, and other enumerable properties).
- Removed Core worker’s automatic global Undici proxy setup. Starting a worker no longer calls
setGlobalDispatcher()when proxy environment variables are detected.@outputai/httpand@outputai/llmcontinue configuring their own proxy-aware dispatchers.- This affects direct and third-party Fetch/Undici calls that relied on Core’s global dispatcher; calls through @outputai/http or @outputai/llm retain proxy support.
hasErrorType() workflow tool. It allows detecting if an error has a given Error class in its error chain, either in .name, .type or instanceof. It can be used to test typed errors thrown from activities.- Upgraded Temporal (
temporalio/*) libs from v1.17.0 to v1.20.3 - Upgraded
undicifrom v8.5.0 to v8.9.0
-
workflow(),step(), andevaluator()now pass the value returned by the ZodinputSchemaparser to their handler. Workflows and steps also return the value produced by theiroutputSchemaparser. Zod transforms, coercions, defaults, and object-key stripping therefore affect the values handled and returned by these components instead of only validating them. -
Added
@outputai/core/temporalfor worker-side Temporal access that shares the running worker’s connection and namespace; -
Added
createTemporalClient(), which returns a TemporalClientfor operations on any workflow; do not closeclient.connection— the worker owns it; -
Added
getCurrentWorkflowHandle(), which returns a handle pinned to the invoking workflow’sworkflowId+runId(Temporal Activities only); -
Both helpers throw a non-retryable
FatalErroroutside the worker runtime (and outside an activity context forgetCurrentWorkflowHandle()); never import@outputai/core/temporalfromworkflow.ts. -
Added
emit()to/hooksentrypoint to emit custom events. Emitted events can be listened usingon()and will have their payload wrapped in an envelope:Events emitted outside an activity context omitoutputActivityKind,workflowDetails, andactivityInfo. -
Added the same wrapping envelope to all other events listened to with
on():http:request,cost:llm:request,cost:http:request; -
Added internal activity events to activity lifecycle:
onActivityStart,onActivityEnd,onActivityError; -
Updated internal triggers so
onError()no longer receives errors from the internal$catalogworkflow.
@outputai/cli, output-api
Add workflow monitor command, update workflow history API to be resumable@outputai/http
HTTP clients-
Replaced
fetchwithoutputFetch, the explicitly named Fetch-compatible API for traced HTTP requests.- Uses Undici as its canonical internal implementation while accepting Node and Undici
Requestinputs and request options containing either realm’sHeadersorFormDataobjects. - Normalizes Node request objects at the API boundary instead of replacing Node’s global Fetch classes with
undici.install(). - Rejects mixed request families, such as a Node
Requestcombined with UndiciFormData. - Removed the top-level
RequestInfoandRequestInittype exports.
- Uses Undici as its canonical internal implementation while accepting Node and Undici
-
Replaced
httpClientwithcreateKyClient, which returns a standard Ky client configured to useoutputFetch.- Upgraded Ky from 1.14.3 to 2.0.2. Public Ky behavior now follows Ky 2, including the
prefixoption, state-object hook arguments, empty-response JSON parsing,searchParamsmerging, and pre-parsedHTTPError.data. - Removed the top-level
HTTPError,TimeoutError,HttpClientOptionsexports. - Added the complete Ky namespace as a named export
ky.
- Upgraded Ky from 1.14.3 to 2.0.2. Public Ky behavior now follows Ky 2, including the
- Changed Ky and Undici from bundled dependencies to peer dependencies.
@outputai/cli, @outputai/credentials
Updated js-yaml from 4.3.0 to 4.3.1See the v0.9.0 - v0.10.0 migration guide.
Workflow result endpoints no longer include unavailable trace destinations instead of returning them as After:
Add API endpoint and CLI command to get input from a workflow run
The JSON output for workflow result commands no longer includes unavailable trace destinations as After:
Refactored Anthropic’s error
Trace Changes
output-api
Workflow result endpoints no longer include unavailable trace destinations instead of returning them as null.
This affects:POST /workflow/runGET /workflow/{id}/resultGET /workflow/{id}/runs/{rid}/result
@outputai/cli, output-api
Add API endpoint and CLI command to get input from a workflow run@outputai/cli
The JSON output for workflow result commands no longer includes unavailable trace destinations as null.
This affects:output workflow run ... --jsonoutput workflow result <workflow-id> --json
@outputai/llm
Refactored Anthropic’s error "Grammar compilation timed out." handling not to throw FatalError as this is transient and FatalErrors terminate the workflow execution without retries.It seems that the Anthropic API throws this error (HTTP status code 400) when grammar compilation times out for a structured output schema, but after some investigation it was assessed that this error is indeed transient.@outputai/core
Trace Changes- Internal Activity
getTraceDestinationsis no longer invoked when workflow hasdisableTrace: trueconfiguration. - Workflow trace destinations now omit unavailable destinations instead of returning them as
null: Before:After: - Internal activities like
getTraceDestinationsandsendHttpRequestare no longer omitted in the trace files.
- Both
sendHttpRequestandsendPostRequestAndAwaitWebhookcan now interpolate environment variable values in header values:When executing this request,$TOKENwill be replaced by the value ofprocess.env.TOKEN.
- The response of
sendHttpRequestno longer includes body or headers by default. Use theresponseOptionsargument to configure this: - Response headers included via
responseOptions.includeHeadersare redacted by header name. This covers common sensitive header names such as authorization, token, secret, password, cookie, and key, but it is a best-effort heuristic.
TEMPORAL_WORKER_TUNER that accepts a JSON value.@outputai/cli, @outputai/core, @outputai/credentials, @outputai/evals, @outputai/http, @outputai/llm, @outputai/output, output-api
Pinning v24.15.0 as the minimal supported Node version@outputai/core
Improving catalog startup performance by storing and reading hash from memo. Storing workflow names in memo.output-api
Improving start/run workflows performance by not querying an workflow to validate workflowName argument.@outputai/cli
Add output workflow history <workflowId> — renders a run’s step timeline as a terminal waterfall (each step’s start offset and duration), mirroring the Agents HQ Timeline view. It pages the GET /workflow/{id}/history endpoint and correlates the Temporal events into per-step spans (numbering parallel fan-outs #1..#N). --format json emits the structured spans, --raw prints the endpoint’s verbatim response, and --run-id, --include-payloads, --width, and --no-color are supported. Failed steps list their error reason beneath the chart (when payloads are included), and FORCE_COLOR forces ANSI output through a pipe.The same waterfall is available in the output dev TUI: from the Recent Runs tab, press g on any run to open its step graph as a full-width overlay. The overlay shows the run’s status, start time, and duration, and live-updates while the run is in progress (the time axis tracks elapsed wall-clock and running bars grow). Select a step with ↑/↓ to inspect its input, output, and timing (start/end/duration) in the detail pane; ←/→ switches tabs and e expands a field full-screen.@outputai/http
- Added a custom dispatcher that disables HTTP/2 (
allowH2: false) on fetch, it usesEnvHttpProxyAgent; - Added support for dispatcher in the init argument of fetch; it has precedence over the custom dispatcher.
@outputai/core
- Disabled HTTP/2 (
allowH2: false) in the global fetch dispatcher configured bysetGlobalDispatcherwhen proxy env vars are detected; - Disabled HTTP/2 (
allowH2: false) in the webhook functionssendHttpRequestandsendPostRequestAndAwaitWebhookby using a dispatcher (EnvHttpProxyAgent).
@outputai/llm
- Disabled HTTP/2 (
allowH2: false) in the dispatcher of the fetch client used when consuming the AI SDK and fetching model pricing; - Replaced the
Agentdispatcher in favor ofEnvHttpProxyAgentto respect the proxy env vars. [OUT-506].
See the v0.8.0 - v0.9.0 migration guide.
Added activity lifecycle hooks: Added a new Supported levels are:
Updating libraries to fix vulnerabilities
Replace the custom
Add new endpoint for workflow history with server side events
@outputai/core
Added activity lifecycle hooks: onActivityStart, onActivityEnd, onActivityError.Payload:Logger export for structured logging from both workflows and steps. Logs use the same message plus metadata shape as the internal worker logger and are routed through the worker’s Winston logger.All log messages are enriched with execution metadata:- Workflow logs include
workflowType,workflowId, andrunId. - Step logs include the same workflow fields, plus
activityTypeandactivityId.
- error
- warn
- info
- http
- verbose
- debug
- silly
OUTPUT_LOG_LEVEL env var. This setting also affects internal worker logs.Including /dist when calculating catalog hash to define if catalog workflow needs restart. Excluding /temp.@outputai/cli, @outputai/core, @outputai/http, @outputai/llm, output-api
Updating libraries to fix vulnerabilities@outputai/cli
Replace the custom --format json option with oclif’s built-in --json flag across all workflow commands (OUT-419).--json suppresses informational logs (e.g. Fetching result for workflow...) and emits clean, machine-readable JSON to stdout, fixing output that previously mixed status text into JSON.Breaking change: --format json is no longer accepted. Use --json instead.workflow result,workflow status,workflow run,workflow cost,workflow debug,workflow test: the--formatflag is removed; pass--jsonfor JSON output (text remains the default).workflow list,workflow runs list,workflow dataset list:--formatkeeps its non-JSON options (list/table/text); use--jsonfor JSON output.
--json.CLI start/run/test/dataset generate now resolve scenarios and route execution against --catalog/OUTPUT_CATALOG_ID instead of the API server’s default catalog. This removes the ~30s scenario-resolution stall in worktrees where the default catalog has no worker polling it. workflow test and workflow dataset generate also gain a --catalog flag (env: OUTPUT_CATALOG_ID), matching list/start/run.Add an “Enter input” option to the output dev run pane. Edit a payload and press ctrl+r to run it as-is without saving, or ctrl+s to save it as a scenario first. Previously every ad-hoc run forced you to name and save a scenario file.@outputai/cli, output-api
Add new endpoint for workflow history with server side events@outputai/core
- Updating connection monitor strategy to ping workflowService instead of healthService.
- Adding new env vars to configure Temporal worker shutdownForceTime and shutdownGraceTime:
- TEMPORAL_SHUTDOWN_FORCE_TIME
- TEMPORAL_SHUTDOWN_GRACE_TIME
@outputai/cli
Resolve datasets and evals for nested workflow folders by the workflow’s registered name (via the worker catalog), keeping the flat-path lookup as an offline fast path. output workflow test, dataset generate, and dataset list now work for workflows in nested directories (e.g. src/workflows/a/b/c registered as a_b_c) without a symlink. output workflow test also fails fast with an actionable message when a <wf>_eval workflow’s source exists but didn’t compile to dist.output-api
Updating connection monitor strategy to ping workflowService instead of healthService.See the v0.7.0 - v0.8.0 migration guide.
improve worker startup time by only calculating workflow sourcesAdded Temporal connection monitoring. When connection is lost, graceful shuts down the worker.Fixed missing eventDate fields on hook types.Add an opt-in
Faster CLI startup: ship
Route
output-api
getWorkflowResult now fetches only the first history event (WorkflowExecutionStarted) to extract the workflow input, instead of paging through the full event history. Makes input extraction on the result endpoints (/workflow/:id/result and /workflow/:id/runs/:rid/result) O(1) regardless of history size.Added new /ready endpoint to report if API is ready to answer to requests.Added Temporal connection monitoring. When unhealthy, /ready return 503; if lost the API shuts down.Expose structured workflow failure details (failure object with message, type, retryable, and a sanitized cause chain) in /workflow/run and /workflow/:id/result responses, alongside the existing error string. Also log Temporal/gRPC client errors with full nested context (cause chain, gRPC code/details, redacted metadata keys, workflowId/runId/taskQueue/query) while keeping client-facing HTTP responses sanitized.The continued workflow status was renamed to continued_as_new in API responses.Explicit Status FieldsHistory Metadata Status FieldsThese endpoints also return workflow status in the history metadata object. The OpenAPI schema currently leaves this nested object unexpanded.
Backwards supportIn the CLI, the old value is still supported.
@outputai/core
improve worker startup time by only calculating workflow sourcesAdded Temporal connection monitoring. When connection is lost, graceful shuts down the worker.Fixed missing eventDate fields on hook types.Add an opt-in output-worker --check workflow bundle check that reproduces the worker’s webpack bundling without a Temporal server, catching bad workflow imports — e.g. a transitive node: built-in — before they crash-loop the worker at startup. tsc cannot detect these; only the Temporal bundle can.-
output-worker --checkbundles workflows via the samebundleWorkflowCodepathWorker.createuses, exits non-zero with the offending module named, and needs no Temporal connection or worker env. -
Scaffolded projects gain an opt-in
output:worker:checkscript plus README/CI guidance (not wired into any build). -
Removed workflow-level usage aggregation from
@outputai/core; workflows no longer collect activity attributes into finalaggregationstotals or expose those totals in workflow run results. - Reworked workflow-to-workflow invocation so direct workflow calls made from workflow code now consistently execute as Temporal child workflows, including calls made through helper functions outside the parent workflow handler.
- Removed workflow call rewriting from the workflow webpack loader while preserving activity, step, and evaluator call rewriting.
-
Renamed workflow invocation configuration types from
WorkflowInvocationConfigurationtoWorkflowInvocationOptions. -
Updated workflow invocation options so activity overrides are passed as top-level
activityOptionsinstead of the previousoptionsproperty. - Refactored workflow validation internals around centralized schemas and explicit validator classes for workflows, steps, and evaluators.
- Hardened Zod schema detection for multi-package or multi-realm Zod v4 environments.
@outputai/cli, output-api
- Updated workflow result API responses to return workflow output and trace metadata without workflow-level
aggregations. - Regenerated CLI API types to match the workflow result response shape.
@outputai/cli
Faster CLI startup: ship oclif.manifest.json in the published package so only the invoked command module is loaded (instead of importing every command on every invocation), move the update check off the critical path (the init hook now only reads the local cache and refreshes it via a detached background process with a 5s registry timeout, instead of awaiting an unbounded npm view subprocess), and load undici only when a proxy env var is configured.workflow cost now calculates costs from the trace events themselves (the as-charged “Original” cost) and applies costs.yml as an override layer (the “Adjusted” cost), displaying both per model and per host. This fixes models with no costs.yml entry (e.g. gpt-5.5) and HTTP hosts (e.g. api.exa.ai, api.firecrawl.dev) previously reporting $0, and surfaces where the configured costs.yml rate diverges from what was actually charged. The bottom line shows the adjusted total with the as-charged total alongside.Costs come exclusively from trace cost attributes: LLM nodes with an llm:usage event and HTTP calls with an http:request:cost event are counted as-charged (even on error responses — the event proves a charge); calls without events are not priced. Traces from SDK versions that predate cost attributes (< 0.5) report no costs. Only exact (computed) recomputes override an event cost — estimates and failed recomputes never do, and a configured $0 price is now honored. Body-dependent costs.yml service rules require traces recorded with OUTPUT_TRACE_HTTP_VERBOSE=true (the dev default).--format json field changes (the report shape changed; update any scripts parsing it): llmTotalCost → llmOriginalCost/llmAdjustedCost; services[]/serviceTotalCost → httpCosts[] (grouped by host) with httpOriginalCost/httpAdjustedCost; unknownModels removed; per-call cost/warning → originalCost/adjustedCost; new originalTotalCost; totalCost is now the adjusted total.Surface workflow aliases and honor OUTPUT_CATALOG_ID in output workflow list.- The default list output now appends
(aliases: ...)to workflows that have registered aliases, which previously only appeared in--format table/--format json(OUT-444). - Add a
--catalogflag (envOUTPUT_CATALOG_ID) that resolves workflows from a specific catalog, falling back to the server-default catalog — matching the existing behavior ofrunandstart(OUT-489).
@outputai/llm
Route <system> blocks to the AI SDK system option instead of leaving them in the messages array.loadAiSdkTextOptionsnow splits resolved messages: system blocks go to the top-levelsystemoption (asSystemModelMessage[], so per-messagecacheControl/providerOptionsare preserved); only user/assistant/tool messages stay inmessages.Agentconsumes the splitsystemdirectly as itsinstructions.- Silences the AI SDK warning that system messages in
messagesare a prompt-injection risk;generateText/streamText/Agentalso setallowSystemInMessages: trueas defense-in-depth for caller-supplied message histories.
.prompt files via messageOptions.- Define named
messageOptionssets in front matter and attach them to message blocks withoptions="<name>"(e.g.<system options="cached">); each set is a provider-namespacedproviderOptionsobject merged onto that message. - Enables Anthropic prompt caching (
{ anthropic: { cacheControl: { type: ephemeral } } }) and any other per-message provider option, on any provider. - Cost tracking now reports cached input tokens (
input_cached) even for models whose pricing record lacks acache_readrate, so cache savings are visible in usage aggregations instead of silently disappearing.
See the v0.6.0 - v0.7.0 migration guide.
Workflow hooksUpdated Where Error hookUpdated Where Where “on()” hookUpdated Trace FileUpdated trace workflow node ids to use Temporal ProdImprove trace error serialization to preserve nested error causes. Error entries in trace files now include the error
Fixing vulnerabilities by updating
Exported event payload types for hook consumers.
@outputai/core
Workflow hooksUpdated onWorkflowStart(), onWorkflowEnd(), onWorkflowError() hooks payload:eventDate is the event timestamp in milliseconds.Where workflowDetails is an abstraction over Temporal’s workflowInfo():onError() hooks payload. The fields change according to the source:Source is “workflow”workflowDetails is the same as in workflow hooks.Source is “activity”activityInfo is Temporal’s activityInfo() function return.And outputActivityKind is the framework flavor of the Temporal Activity: step, evaluator or internal_step.Source is “runtime”on() hooks with better typing and a new envelope.EnvelopeAll events have these fields:eventIdeventDateworkflowDetails: Same from other hooksactivityInfo: From TemporaloutputActivityKind
on<HttpRequestEvent>( 'http:request', handler )from@outputai/http;on<HttpRequestCostEvent>( 'cost:http:request', handler )from@outputai/http;on<LLMUsageEvent>( 'cost:llm:request', handler )from@outputai/llm
getExecutionContext() from core/sdk_activity_integration to return:runId, instead of workflowId. This helps to create trees when child workflows “continued as new”.Added worker telemetry logs: print Temporal worker status and node memory every X ms, configured by OUTPUT_WORKER_TELEMETRY_INTERVAL_MS env var. Default 0 - off.Message examples:
Devname, message, stack, and recursively serialized cause values up to 10 levels deep, including JSON-safe non-Error causes where present.@outputai/llm
-
Added the
generateImage()function for image generation, including image model loading, image prompt options, and wrapped image responses; -
Improved public TS types by deriving AI SDK options and results from the upstream
aipackage; - Removed unused TS types;
- Added validation for prompt skills, text generation arguments, and image prompt options;
-
Updated
streamText()to support prompt skills and tools consistently withgenerateText(). -
Added runtime image inputs to
generateImage(), including image-to-image generation and optional masks for image editing; -
Added validation and TypeScript types for
generateImage()imagesandmaskarguments; -
Added conversion of AI SDK non-retryable API errors to
FatalErroracrossgenerateText(),streamText(), andgenerateImage()so permanent provider failures do not trigger workflow/activity retries:- APICallError (when
.isRetriable() === false) - InvalidArgumentError
- InvalidDataContentError
- InvalidPromptError
- LoadAPIKeyError
- LoadSettingError
- NoImageGeneratedError
- NoSuchModelError
- NoSuchProviderError
- UnsupportedFunctionalityError
- APICallError (when
NoObjectGeneratedError schema validation failures as new NoObjectGeneratedError instances with a clearer message:- Updated
@ai-sdk/*providers andaiitself to peer dependencies, with these supported ranges:ai:>=6 <7@ai-sdk/amazon-bedrock:>=4 <5@ai-sdk/anthropic:>=3 <4@ai-sdk/azure:>=3 <4@ai-sdk/google-vertex:>=4 <5@ai-sdk/openai:>=3 <4@ai-sdk/perplexity:>=3 <4
- Built-in providers are now initialized lazily. Provider packages are imported when
@outputai/llmis loaded, but provider instances are created only when first requested by a prompt. - No longer re-exports Tavily, Exa, or Perplexity search tool factories.
getRegisteredProviders()was renamed togetProviderNames().
@outputai/llm, output-api
Fixing vulnerabilities by updating qs and liquidjs dependencies.@outputai/http, @outputai/llm
Exported event payload types for hook consumers.@outputai/httpnow exportsHttpRequestEventforhttp:requestandHttpRequestCostEventforcost:http:request.@outputai/llmnow exportsLLMUsageEventforcost:llm:request.
@outputai/core/hooks as on<HttpRequestEvent>( 'http:request', handler ), so applications can type event-specific fields without redefining the payload shapes locally.@outputai/cli
credentials set and credentials edit now check whether the current key can decrypt the existing credentials file before re-encrypting. On a key mismatch they abort with a clear warning that the wrong key may be in use and the file would be re-encrypted under a different key. Pass --force / -f to proceed anyway (re-encrypts from empty, discarding the undecryptable values).See the v0.5.2 - v0.6.0 migration guide.
Removed
Rewriting the catalog workflow startup logic to better handle multiple instances of the worker and avoiding restarting the workflow unnecessarily.
Removed “Attributes” tab from Recent Runs > [Workflow view].
output-api
Removed .attributes field from workflow results (both /run and /results endpoints)@outputai/core
Rewriting the catalog workflow startup logic to better handle multiple instances of the worker and avoiding restarting the workflow unnecessarily.- Removed property
.attributesfrom workflow result wrapper object: Workflows will no longer accumulate or expose attributes; - Added
__output_workflow_wrapper_version=1field on workflow wrapper object to better version it; - Removed Signals-based communication between Activities and Workflows to share individual attributes:
- Each activity now aggregates all attributes of the events that happened within it. This is returned in a new wrapper around the activity:
- Workflows now read these aggregations and merge them to create the final
.aggregationsobject returned in its result, which is unchanged; - When Activities fail, a fallback Signal is sent with the aggregations so workflows can still compute them, avoiding data loss.
@outputai/cli
Removed “Attributes” tab from Recent Runs > [Workflow view].@outputai/http
Propagate the per-request id across Response.clone() so cost emission works from inside ky afterResponse hooks. ky clones the response before invoking the hook, which stripped the symbol property addRequestCost reads to correlate the request — every hook calling addRequestCost(response, value) silently dropped its cost. Patches clone() on the original response so each clone re-runs addRequestIdToResponse, propagating the tag through any depth of clones. Header-based fallback isn’t viable — undici responses are immutable on the received side.Also tightens the addRequestIdToResponse signature to : void (was : Response). The function mutates in place; the return-the-input pattern was misleading. The one external call site already discarded the return, so no consumer code needs to change.@outputai/core
Every payload emitted through the framework’s messageBus now carries a UUID v4 eventId and millisecond epoch eventDate — stamped at the bus layer, so events emitted via emitEvent and lifecycle hook payloads (onWorkflowStart, onWorkflowEnd, onWorkflowError, onError) both receive them. Consumers can rely on eventId as a stable per-emit idempotency key — e.g., for webhook retry handling, ClickHouse ReplacingMergeTree dedup, audit logs. The previously emitted requestId is not safe for this purpose because cost:http:request and http:request for the same fetch share a requestId.Callers may pre-set eventId or eventDate on the payload to override the generated values (intended for deterministic retry scenarios). Additive — existing consumers ignoring these fields continue to work.@outputai/cli
Bump default local Temporal namespace retention from 24h to 720h (30 days) so workflow runs aren’t garbage-collected within a day during local development.Support multiple npx output dev stacks side-by-side:- Expose
OUTPUT_TEMPORAL_HOST_PORT(default 7233) so dev Temporal can be relocated off 7233. - Document the multi-stack recipe (
DOCKER_SERVICE_NAME,OUTPUT_CATALOG_ID, and the threeOUTPUT_*_HOST_PORTknobs) incli.mdx. - Surface an actionable hint when docker compose fails to bind a host port, naming the conflicting port and the env var that overrides it.
@outputai/cli, @outputai/core
Attribute signal emission is now opt-in via OUTPUT_ENABLE_ATTRIBUTE_SIGNAL_EMISSION=true. Each LLM call and HTTP request previously fired a Temporal signal back to the workflow, bloating workflow history on runs with many calls. With emission off (the new default), workflow results still expose attributes and aggregations keys but they are empty/zeroed, and the cost:llm:request / cost:http:request hooks do not fire. Set the env var on the worker process to opt back in.The CLI’s dev docker-compose forwards the flag from the host shell, so OUTPUT_ENABLE_ATTRIBUTE_SIGNAL_EMISSION=true output dev opts in without editing compose.output-api
Raise gRPC’s default 4 MiB message-size cap on the API server’s Temporal connection so workflow result envelopes larger than 4 MiB no longer fail with RESOURCE_EXHAUSTED. Configurable via the new TEMPORAL_GRPC_MAX_MESSAGE_SIZE_BYTES env var (default 32 MiB).@outputai/core
Fix worker activity Temporal client to use the configured namespace when signaling workflows. This resolves unauthorized signal errors in Temporal Cloud production namespaces.Improve reliability of workflow usage and cost metadata collection. Transient Temporal signal failures while recording activity attributes are now handled gracefully, reducing the chance of worker interruptions during workflow runs.See the v0.4.0 - v0.5.0 migration guide.
Workflow runs now return durable usage and cost metadata alongside the workflow output. Each completed or failed run can include raw Cost events now emit the same attribute-shaped payloads used in workflow results, making hook handlers and saved run metadata easier to reconcile. This also updates
Improved the dev TUI experience with clearer workflow run views, expanded full-screen modals, and more consistent layout and interaction patterns across screens.Workflow run details now show result attributes and aggregations alongside input/output data.For scaffolded projects running
Emit a new Subscribers (
Stream trace JSON when writing local files and uploading to S3, avoiding Node.js string length limits for large trace outputs.Added
Increase built-in LLM provider fetch timeouts for long-running responses.Default AI SDK
@outputai/core, @outputai/http, @outputai/llm, output-api
Workflow runs now return durable usage and cost metadata alongside the workflow output. Each completed or failed run can include raw attributes plus convenient aggregations for total cost, token usage, and HTTP request counts.For example, API and CLI JSON results can now include:@outputai/http request cost tracking and @outputai/llm response cost data to use the new attribute format.Learn more in the workflow result docs, CLI result format, and cost events guide.@outputai/cli
Improved the dev TUI experience with clearer workflow run views, expanded full-screen modals, and more consistent layout and interaction patterns across screens.Workflow run details now show result attributes and aggregations alongside input/output data.For scaffolded projects running output dev, the local Docker Compose API service now uses the documented OUTPUT_AWS_* variables for remote S3 trace access. If you use remote trace storage locally, set OUTPUT_AWS_REGION, OUTPUT_AWS_ACCESS_KEY_ID, and OUTPUT_AWS_SECRET_ACCESS_KEY in your project environment; the accidental AWS_* passthrough is no longer used.@outputai/http
Emit a new http:request event on every HTTP call made via @outputai/http’s fetch. The event fires on success, non-2xx responses, and network failures, with payload:on('http:request', handler)) also receive workflowId, runId, and activityId auto-attached by emitEvent. The existing cost:http:request event is unchanged — it continues to fire only when a consumer attaches a cost via addRequestCost(). Additive — no existing consumer breaks.@outputai/core
Stream trace JSON when writing local files and uploading to S3, avoiding Node.js string length limits for large trace outputs.Added runId to the workflow context and the workflow-lifecycle hook payloads. context.info.runId exposes the Temporal run id for the current execution attempt; onWorkflowStart, onWorkflowEnd, and onWorkflowError payloads now include runId alongside id (workflow id). executionContext also carries runId, so any consumer subscribed via on(...) to an emitEvent-emitted event (e.g., cost:llm:request) receives runId automatically. Additive — existing consumers ignoring the field continue to work.@outputai/llm
Increase built-in LLM provider fetch timeouts for long-running responses.Default AI SDK maxRetries to 0 so workflow retries are handled by Temporal.See the v0.3.0 - v0.4.0 migration guide.
Fixed
Bump
@outputai/cli
Fixed output credentials edit modifying the encrypted credentials file on disk even when the user made no changes in their editor. Because AES-GCM uses a fresh nonce per encryption, the unconditional re-write produced new ciphertext bytes and left the file dirty in git on every invocation. The command now skips the write when the post-editor plaintext is identical to the original.Fixed output dev hanging until the health timeout when docker compose up exited before creating containers. The CLI now drains and captures recent Compose output, reports early Compose exits immediately, polls status with the same project directory used to start the stack, and only treats running containers as healthy.- Bumped scaffold prompt template default from
claude-haiku-4-5toclaude-sonnet-4-6and added a datedcurrent as ofcomment pointing at the newoutput-dev-model-selectionskill (workflow scaffold, blog_evaluator example, workflow README example). - No CLI behavior change beyond the new default model in generated
.promptfiles.
output dev for workflows whose name differs from their local folder path. For example, a workflow named writing_editor stored in src/workflows/writing/editor now shows and runs its scenarios correctly.@outputai/llm
Bump entities dependency from v6 to v8. The API surface used (encodeXML / decodeXML) is unchanged, and v8’s ESM-only / Node ≥ 20.19 requirements are already satisfied by this package.@outputai/core
- Fix TypeScript declaration emit for exported workflows that use Zod schemas.
- Allow TypeScript to generate
.d.tsfiles for these workflows without non-portable Zod references. - Treat Zod as a peer dependency and avoid leaking schema-specific workflow context types through the invocation config.
package.json from output to outputai.@outputai/cli
Rebuild output dev as a full-featured INK TUI. Tabbed UI for Workflows, Recent Runs, Services, and Help with arrow-key navigation, an in-TUI scenario picker and JSON editor for running workflows, an expanded JSON modal for input/output, and a live docker compose logs tail with restart hotkeys.@outputai/llm
Prevent template variables from injecting message blocks into rendered prompts. Variable content containing tag-shaped substrings (e.g. </user> or <system>...</system>, common when evaluating webpages or chat transcripts) was being tokenized by parsePrompt as real message blocks, producing duplicate system messages that providers like Anthropic reject. loadPrompt now arms every {{ ... }} interpolation with an internal escape filter so variable output stays inert at parse time.See the v0.2.0 - v0.3.0 migration guide.
Use
Optimizing local trace to use less memory and avoid “RangeError: Invalid string length”
Dependencies updatesVulnerabilities fixed:
Update perplexity-ai/ai-sdk to v0.1.3re-export ai.jsonSchema for downstream use
Improve encrypted credentials loading: add clearer errors when keys are missing or invalid and ensure the CLI exits gracefully instead of printing stack traces.
Updating Temporal libraries from
Add HTTP and gRPC proxy support for sandbox environments via HTTPS_PROXY and TEMPORAL_GRPC_PROXY env vars
Adding trace event attributes and adding method
Custom fetchAdded a
@outputai/cli, output-api
Use catalog as the public name for the routing/filtering target across the CLI and HTTP API:output workflow runs listgains--catalog/-c(withOUTPUT_CATALOG_IDenv fallback) andGET /workflow/runsaccepts?catalog=..., scoping listed runs to a single worker’s catalog/session.output workflow runandoutput workflow startrename the routing flag to--catalog/-c. The previous--task-queueand-qare kept as deprecated aliases (oclif emits a warning when used).POST /workflow/runandPOST /workflow/startaccept acatalogbody field; the previoustaskQueuefield is still accepted as a deprecated alias and the API logs a deprecation warning when it is used.
GET /workflow/runs now includes runId per row, and the CLI fetches results via the pinned GET /workflow/{id}/runs/{rid}/result endpoint.Add new workflow history endpoint@outputai/core
Optimizing local trace to use less memory and avoid “RangeError: Invalid string length”@outputai/cli, @outputai/core, @outputai/credentials, @outputai/evals, @outputai/http, @outputai/llm, @outputai/output, output-api
Dependencies updatesVulnerabilities fixed:- uuid: Missing buffer bounds check in v3/v5/v6 when buf: (bump to
>=14.0.0) - postcss: PostCSS has XSS via Unescaped </style> in its CSS Stringify Output (bump to
>=8.5.10) - @anthropic-ai/sdk: Claude SDK for TypeScript has Insecure Default File Permissions in Local Filesystem Memory Tool (bump to
>=0.91.1)
- @changesets/cli:
2.30.0->2.31.0 - eslint:
10.2.0->10.2.1 - mintlify:
4.2.520->4.2.536 - typescript-eslint:
8.58.2->8.59.1 - vitest:
4.1.4->4.1.5
- @aws-sdk/client-s3:
3.1031.0->3.1038.0
- @inquirer/prompts:
8.4.1->8.4.2 - @oclif/core:
4.10.5->4.10.6 - @oclif/plugin-help:
6.2.44->6.2.45 - undici:
8.0.2->catalog: - orval:
8.8.0->8.9.0
- @ai-sdk/amazon-bedrock:
4.0.95->4.0.96 - liquidjs:
10.25.5->10.25.7
@outputai/http, @outputai/llm
- HTTP: Added a new event
cost:http:requestthat is dispatched after callingaddRequestCost(): the event’s payload isrequestId,costandurl; - LLM: Renamed
llm:call_costevent tocost:llm:request; - LLM: Updated the format of the
.costproperty on.generateText()response and on the cost hook payload:componentsis now an array; - LLM: Updated
.streamText()onFinish()callback to have the.costproperty: contains the calculated cost for the stream.
@outputai/llm
Update perplexity-ai/ai-sdk to v0.1.3re-export ai.jsonSchema for downstream use@outputai/cli, @outputai/credentials
Improve encrypted credentials loading: add clearer errors when keys are missing or invalid and ensure the CLI exits gracefully instead of printing stack traces.@outputai/cli
- Offer to initialize a git repository when running
output init. Adds a--skip-gitflag to opt out in non-interactive / scripted use. - Fix
--yes/--non-interactivebeing rejected as “Nonexistent flag” by oclif’s per-command parser when passed to any command.
--yes/--non-interactive flags and TTY auto-detection for sandbox environmentsEnable multiple instance of Output to run locally simultaneously in Docker by enabling dynamic port mappingShadow the worker container’s /app/node_modules (root pnpm store) with a named Docker volume and run an explicit output:worker:install before output:worker:watch, so Linux-native packages installed in the container no longer leak into the host’s node_modules/.Fix issue where values in .env files were silently ignored@outputai/core, @outputai/credentials
- Added new hook functions
onWorkflowStart,onWorkflowEnd,onWorkflowError:onWorkflowStart(): Triggers when a workflow starts, receives the run id and workflow name;onWorkflowEnd(): Triggers when a workflow ends (no error), receives the run id, workflow name and duration (elapsed time);onWorkflowError(): Triggers when a workflow throws an error, receives the run id, workflow name, duration and error thrown;- Important: These three hooks are not triggered by the internal “$catalog” workflow lifecycle;
- Renamed
onBeforeStart()hook toonBeforeWorkerStart(); - Fixed possible issue where a broken handler attached to
onBeforeStart()could interrupt the worker process; - Added
activityIdandworkflowIdtoonError()hook handler payload when source is'activity'; - Added
workflowIdtoonError()hook handler payload when source is'workflow'.
@outputai/core, output-api
Updating Temporal libraries from v1.15.0 to v1.17.0:- @temporalio/activity;
- @temporalio/client;
- @temporalio/common;
- @temporalio/proto (dev dependency for tests);
- @temporalio/worker;
- @temporalio/workflow
@outputai/cli, @outputai/core
Add HTTP and gRPC proxy support for sandbox environments via HTTPS_PROXY and TEMPORAL_GRPC_PROXY env vars@outputai/core, @outputai/http, @outputai/llm
Adding trace event attributes and adding method addRequestCost to attach cost related info to an HTTP call made with the http module@outputai/http
Custom fetchAdded a fetch function export to the “http” module:- Fully compliant with the fetch spec;
- Integrates with Traces, tracking requests, responses, errors and failures;
httpClient exported by “http” to use the custom fetch internally instead of ky hooks.See the v0.1.12 - v0.2.0 migration guide.
Fix
Switch dataset files to multi-case format where each top-level YAML key is the case name. Allows grouping multiple test cases into a single file instead of one file per case.The old single-case format (with a top-level
Updating dependencies:
Bumping dependency versions
@outputai/cli
Fix workflow generate success message to show actual workflow ID and scenario nameAdd credentials set command for programmatic credential updates by dot-notation path. Prompts for confirmation when the write would change a value’s shape (primitive → object or object → primitive); pass --yes to skip in non-interactive environments.Add interactive workflow run panel to output dev with live status polling, keyboard navigation, and Temporal UI integrationUpdate plugin command invocations to match renamed output-plan-workflow, output-build-workflow, and output-debug-workflow skills.Add Docker Compose version check to prevent silent hangs on versions older than v2.24.0Add output migrate command for upgrading projects between versions of the Output framework.The command reads the project’s current @outputai/* version, fetches the matching migration guide from docs.output.ai/migrations, applies the steps, bumps dependencies, and runs the project’s type checker. If the user is jumping multiple boundaries, it chains the guides covering the full range.Under the hood the CLI invokes /output-migrate — a Claude Code skill shipped via the outputai plugin marketplace. The skill carries the migration logic but no version-specific content; it fetches every guide at runtime so the docs remain the source of truth.Upgrading Docker Node image version from 24.13.0-slim to 24.15.0-slimUpdate the Claude plugin for Output to improve workflow code generation”Auto-forward OUTPUT_CATALOG_ID as default task queue for workflow run/start commandsoutput-api
- Fixed
/runendpoint response to have the same format as/result; - Fixed
/statusendpointsstatusfield format;
GET /workflow/:id/runs/:rid/{status,result,trace-log} and PATCH/POST /workflow/:id/runs/:rid/{stop,terminate,reset} allow targeting a specific Temporal run by ID.The following routes are deprecated (sunset 2026-07-16) and should be migrated to their pinned equivalents:PATCH /workflow/:id/stop→PATCH /workflow/:id/runs/:rid/stopPOST /workflow/:id/terminate→POST /workflow/:id/runs/:rid/terminatePOST /workflow/:id/reset→POST /workflow/:id/runs/:rid/reset
Deprecation, Sunset, and Link response headers on every call.Additive response-shape changes (backwards-compatible):POST /workflow/runnow includesrunIdin the responsePOST /workflow/startnow includesrunIdin the responsePATCH /workflow/:id/stopnow returns{ workflowId, runId }(previously no response body)POST /workflow/:id/terminateresponse now includesrunId- All status, result, and trace-log responses now include
runId
@outputai/evals
Switch dataset files to multi-case format where each top-level YAML key is the case name. Allows grouping multiple test cases into a single file instead of one file per case.The old single-case format (with a top-level name: field) is no longer supported — existing files must be migrated to the new format. Treated as minor rather than major because adoption is still early and the migration is mechanical.@outputai/cli, @outputai/core, @outputai/credentials, @outputai/evals, @outputai/http, @outputai/llm, @outputai/output, output-api
Updating dependencies:- @oclif/plugin-help
- dotenv
- json-schema-library
- react
- redis
- undici
- @noble/ciphers
- @ai-sdk/amazon-bedrock
- @ai-sdk/anthropic
- @ai-sdk/azure
- @ai-sdk/google-vertex
- @ai-sdk/openai
- @ai-sdk/perplexity
- ai
- liquidjs
- vite@>=7.1.0 <=7.3.1:
>=7.3.2 - hono@<4.12.12:
>=4.12.12 - hono@>=4.0.0 <=4.12.11:
>=4.12.12 - @hono/node-server@<1.19.13:
>=1.19.13 - follow-redirects@<=1.15.11:
>=1.16.0 - hono@<4.12.14:
>=4.12.14 - axios@>=1.0.0 <1.15.0:
>=1.15.0 - protobufjs@<7.5.5:
>=7.5.5
@outputai/cli, @outputai/core, @outputai/llm
Bumping dependency versions@outputai/core, @outputai/llm
Add agent() and skill() abstractions to @outputai/llm for composing reusable LLM agents with structured output and a lazy-loaded skills system. Add findContentDir() to @outputai/core and fix skill path resolution to be relative to the prompt file rather than the calling module. Add output-copy-assets bin to @outputai/core to centralise worker asset copying.@outputai/core, output-api
Add support for workflow alias names.@outputai/cli
Add output fix command that realigns npm scripts in a host project’s package.json with the canonical scripts from the CLI. Added output:worker and output:worker:watch commands to the scaffold. Pinned the dependency versions installed via the CLI-generated package.json.Pin output to a specific version in the scaffold package.json instead of a version range.Update CLI cost configuration for calculating cost of Claude Sonnet 4.6. Improve coding-assistant guidance for schema generation.@outputai/cli
Fix worker health checks and add yarn/pnpm support in the dev container. Dev container worker now supports yarn and pnpm projects via corepack. Health check no longer reports success when containers exit or are unhealthy. Worker health-check detection time dropped from ~36s to ~9s. start_period extended from 30s to 60s to reduce false positives on cold start.Fix the plan and generate CLI commands. Suppressed Claude file writes and next-step suggestions during plan generation (the CLI owns those responsibilities). Validates plan-file existence before creating a workflow skeleton in generate. Rolls back created skeleton files if the workflow build step fails.Replace log-update / ANSI output in output dev with an Ink-based terminal UI, fixing a layout bug where text overlapped after a Docker service recovered from unhealthy.Ensure credential references are resolved when running CLI commands.@outputai/cli
Fix prod publish to include the build step before publishing to npm. Previously, packages were published without compiling TypeScript, resulting in a missing dist/ directory. Add @next dist-tag that auto-publishes from every merge to main, enabling npx @outputai/cli@next for tracking the latest changes.@outputai/cli, @outputai/core, @outputai/credentials
Add credential: env var convention for automatic secret resolution at worker startup.@outputai/core: addWORKER_BEFORE_STARTlifecycle event andonBeforeStarthook.@outputai/credentials: addresolveCredentialRefs()that resolvescredential:<dot.path>env vars from encrypted credentials, auto-registered viaonBeforeStarton import.@outputai/cli: scaffold build script now copies*.keyfiles todist/alongside*.yml.enc.