Repository navigation
Version Packages (alpha) - #177
Merged
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
github-actions
Bot
force-pushed
the
changeset-release/next
branch
from
October 24, 2026 05:00
5cb35cd to
165b73f
Compare
github-actions
Bot
force-pushed
the
changeset-release/next
branch
from
October 24, 2026 05:27
165b73f to
b4c5122
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonnext.Releases
@statelyai/agent@2.0.0-alpha.31
Minor Changes
#173
37707bdThanks @davidkpiano! -createPolicyDeciderruns a policy machine as a decide executor. Each decision request starts one policy run, whose output event is the choice. The input defaults to the request'smetadata.facts, offered events,system, andprompt; the policy's token usage is reported on the result. A run that does not enddonewith an event throwsAgentErrorwith codepolicy-not-done. With astore, each decision's policy run gets its own thread (policy:<callKey>:<SHA-256 of the input>by default, orthreadId: (request, info) => ...). The input must be JSON: the default dropsundefinedkeys, and anything else that is not JSON throws before the run.getDecisionRequestsreads the decisions a run asked for from its trace. From@statelyai/agent/testing:getDecisionRequests(trace, { name? })returns each decision's first-attempt request with the states it was asked in, from a live or serialized trace, for eval rows and policy probes.Patch Changes
#172
5a877e9Thanks @davidkpiano! -describeMachineshows a state's interaction when its label is computed from context ([interaction: computed label]) or absent ([interaction]). Before, only a string label was shown, so a host's human step looked like an ordinary state.#176
28d17d9Thanks @davidkpiano! - Events a person sends, and ignored events in traces.meta: { actor: "human" }on a transition means a person sends its event.agent.decideanddecideNextnever offer it: a closed choice lists its options inwithheld, and a choice of it anyway is retried.getAcceptedEvents(snapshot, { actor: "agent" })returns the same model-facing list.describeMachinemarks the transition(human).decide-allows-human-event(error): a decision's literalallowedEventsnames a tagged event.verifyAgentConfigfails itslintgate on it.machine.transitiontrace events carryignored: truefor the host event the state had no transition for, the oneresult.ignoredreports.foldTracescounts them per state asignored.#174
37ac4e7Thanks @davidkpiano! - Fixes from installing the package in an existing app for the first time.Object.prototype, sometadata, store reads, and errors from there were rejected and a run could silently lose its log. The log's checks now accept them.storefails rather than run unlogged when its first entry cannot be written:{ status: "error", cause: "journal" }.code(a string or a number), andreplayturns them back intoErrorobjects. They carry an"@error": truemarker, so a thrown plain{ name, message }replays as the plain object it was.onTrace,onTransition,onChunk,onResult,onEvent, oronhandler no longer fails the run; it is reported withconsole.error.thread-input-mismatchinstead of returning the other run's result.setupAgentthrowsinvalid-schemafor a schema without~standard(zod 3.23 and earlier) instead of skipping its validation.describeMachineprints?for a transition whose target comes from a helper call, instead of(stays).moduleResolution: "node"(typesVersions), andenginesallows Node 22.aipeer floor is 7.0.128, the first release withexperimental_decide, which@statelyai/agent/ai-sdkimports.JSON.stringifydrops them. Any other value the log cannot hold fails a run that has astore, and stops the log with aconsole.warnwhen it does not, instead of failing one way for input and another for events.setupAgentthrowsinvalid-requestfor a request with neitherpromptnormessages, instead of every call failing inside the invoke.ExploreSnapshotandCanReachTargettypes from@statelyai/agent/testing, for exploration callbacks in an app whose ownxstateis another version.CHANGELOG.mdships in the package, and a new "Upgrading between alphas" page lists the breaking changes since earlier alphas.runSeam'srespondmay return a promise, so a seam eval can answer idle pauses with a real async client.@statelyai/agent-demo@0.0.1-alpha.19
Patch Changes
5a877e9,28d17d9,37707bd,37ac4e7]:@statelyai/example-cloudflare-agent-host@0.0.1-alpha.19
Patch Changes
5a877e9,28d17d9,37707bd,37ac4e7]:@statelyai/example-cloudflare-workers-ai-host@0.0.1-alpha.19
Patch Changes
5a877e9,28d17d9,37707bd,37ac4e7]:@statelyai/example-next-host@0.0.1-alpha.19
Patch Changes
5a877e9,28d17d9,37707bd,37ac4e7]:@statelyai/example-tanstack-ai-stream@0.0.1-alpha.19
Patch Changes
5a877e9,28d17d9,37707bd,37ac4e7]: