π¦ New version release - #469
Merged
Merged
Conversation
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 the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@smooai/smooth-operator@1.52.2
Patch Changes
a992a84: feat(dotnet): client-initiated turn cancellation β SmoothAgentClient.Cancel() + MessageTurn.Cancel()
The wire protocol and all five servers already honor the
cancelframe /cancelledevent,but the .NET client had no way to send it β the only stop was
MessageTurn.Abort(), a localforce-close that faults the turn and never hits the wire.
Add the missing client surface, mirroring the TypeScript SDK (sdk: client-initiated turn cancellation β SmoothAgentClient.cancel() + MessageTurn.cancel()Β #459):
SmoothAgentClient.Cancel(requestId, sessionId?)sends thecancelframe (fire-and-forget).MessageTurn.Cancel()is the ergonomic "stop THIS turn" convenience, carrying the turn's ownrequestId + originating sessionId.
cancelledevent settles the matching turn as a user-stop: it resolves (neverfaults) β the async iterator ends cleanly after yielding the terminal
CancelledEvent,MessageTurn.Completionyieldsnull, andMessageTurn.Cancelledistrue(withCancelledEventcarrying status 499). Errors still throw, so a UI can tell a stop from a failure.CancelAction/CancelledEventare now first-class in theClientAction/ServerEventunions and the
ProtocolValidatorschema maps.Cancelwith no active turn, or acancelledwith no matching turn, is aharmless no-op that does not throw.
MessageTurn.Completionis nowTask<EventualResponseEvent?>(null on a user-stop). TheIChatClientfacade contract is unchanged β itsGetResponseAsyncsurfaces a mid-flight nativecancel as
OperationCanceledException, the idiomatic MEAI "generation stopped" signal.@smooai/smooth-operator-web-chat-example@0.0.90
Patch Changes