diff --git a/.changeset/olive-donkeys-repeat.md b/.changeset/olive-donkeys-repeat.md deleted file mode 100644 index 26db5be0..00000000 --- a/.changeset/olive-donkeys-repeat.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@smooai/smooth-operator': minor ---- - -Fix silently-dropped protocol frames in the Go, Python, .NET and TypeScript clients, and add the `submit_interaction` verb to Go/Python/.NET. - -The generated wire types for `stream_preamble`, `stream_reasoning`, `interaction_required` and `interaction_invalid` existed in every language, but the hand-maintained dispatch unions were never updated. Every one of those frames was rejected by each client's own frame guard and then discarded by its dispatch loop — Go's `ParseServerEvent` returned `UnknownEventError` and the read loop `continue`d, Python's `parse_event` raised and `_handle_frame` swallowed it, and .NET's `ServerEventConverter` threw a `JsonException` the client caught and dropped. - -Impact: a session declaring a Rich Interaction (`identity_form`, `choice_chips`) parked a turn that Go/Python/.NET consumers never saw — the turn hung to the turn timeout (and forever on .NET, which has none). `stream_preamble` and `stream_reasoning` are emitted by the production server today, so preamble and reasoning tokens were being discarded by all four clients, TypeScript included. - -- **Go** — added the four event discriminators plus `As*` accessors, `ActionSubmitInteraction`, and `Client.SubmitInteraction`. -- **Python** — added the four members to `EventType` and the `ServerEvent` union, `submit_interaction` to `ActionType` and `ClientAction`, `SmoothAgentClient.submit_interaction`, and the missing entries in `validate.py`'s schema maps. -- **.NET** — added `StreamPreambleEvent`, `StreamReasoningEvent`, `InteractionRequiredEvent`, `InteractionInvalidEvent`, wired them into `ServerEventConverter` and `EventTypes.All`, and added `SubmitInteractionAction` + `SmoothAgentClient.SubmitInteractionAsync`. -- **TypeScript** — added the missing `stream_reasoning` to `EVENT_TYPES`/`ServerEvent` and to `validate.ts`'s event→schema map. (The shipped web-chat example already had a `case 'stream_reasoning'` that could never fire.) - -Each language also gains a drift guard that derives the expected discriminator set from `spec/events/*.schema.json` and `spec/actions/*.schema.json` at test time, so a future event schema that isn't wired into a dispatch union fails the build instead of being dropped at runtime. diff --git a/dotnet/server/aspnetcore/SmooAI.SmoothOperator.Server.AspNetCore.csproj b/dotnet/server/aspnetcore/SmooAI.SmoothOperator.Server.AspNetCore.csproj index a722a27d..82a5c57a 100644 --- a/dotnet/server/aspnetcore/SmooAI.SmoothOperator.Server.AspNetCore.csproj +++ b/dotnet/server/aspnetcore/SmooAI.SmoothOperator.Server.AspNetCore.csproj @@ -15,7 +15,7 @@ attribute. (Keep the element-form version out of comments: the sync regex replaces the first element-form match in the file.) --> SmooAI.SmoothOperator.Server.AspNetCore - 1.55.3 + 1.56.0 SmooAI ai;agent;llm;chat;smooth-operator;server;aspnetcore;websocket;smooai MIT diff --git a/dotnet/server/postgres/src/SmooAI.SmoothOperator.Server.Postgres.csproj b/dotnet/server/postgres/src/SmooAI.SmoothOperator.Server.Postgres.csproj index 3215265e..6b0ca448 100644 --- a/dotnet/server/postgres/src/SmooAI.SmoothOperator.Server.Postgres.csproj +++ b/dotnet/server/postgres/src/SmooAI.SmoothOperator.Server.Postgres.csproj @@ -15,7 +15,7 @@ attribute. (Keep the element-form version out of comments: the sync regex replaces the first element-form match in the file.) --> SmooAI.SmoothOperator.Server.Postgres - 1.55.3 + 1.56.0 SmooAI ai;agent;llm;chat;smooth-operator;server;postgres;pgvector;smooai MIT diff --git a/dotnet/server/src/SmooAI.SmoothOperator.Server.csproj b/dotnet/server/src/SmooAI.SmoothOperator.Server.csproj index 3e445b85..8f646d3c 100644 --- a/dotnet/server/src/SmooAI.SmoothOperator.Server.csproj +++ b/dotnet/server/src/SmooAI.SmoothOperator.Server.csproj @@ -14,7 +14,7 @@ scripts/sync-versions.mjs (do NOT confuse with the SmooAI.SmoothOperator.Core PackageReference version below, which tracks the separately-published engine). --> SmooAI.SmoothOperator.Server - 1.55.3 + 1.56.0 SmooAI ai;agent;llm;chat;smooth-operator;server;websocket;smooai MIT diff --git a/examples/web-chat/CHANGELOG.md b/examples/web-chat/CHANGELOG.md index 0da9ae2b..f982bd3e 100644 --- a/examples/web-chat/CHANGELOG.md +++ b/examples/web-chat/CHANGELOG.md @@ -1,5 +1,12 @@ # @smooai/smooth-operator-web-chat-example +## 0.0.102 + +### Patch Changes + +- Updated dependencies [0f9e90f] + - @smooai/smooth-operator@1.56.0 + ## 0.0.101 ### Patch Changes diff --git a/examples/web-chat/package.json b/examples/web-chat/package.json index 7f17f223..05650601 100644 --- a/examples/web-chat/package.json +++ b/examples/web-chat/package.json @@ -1,6 +1,6 @@ { "name": "@smooai/smooth-operator-web-chat-example", - "version": "0.0.101", + "version": "0.0.102", "private": true, "description": "A smooth-web-like Vite + React chat client that drives a running smooth-operator server over its WebSocket protocol — token streaming, inline tool-call/result blocks, a conversation sidebar, and oldest-first history, all on top of the published @smooai/smooth-operator SDK.", "type": "module", diff --git a/go/version.go b/go/version.go index e2a87146..e62e716d 100644 --- a/go/version.go +++ b/go/version.go @@ -5,4 +5,4 @@ package e2e // language artifacts. The real Go "publish" is a git tag (go/v); this // constant is the anchor that scripts/sync-versions.mjs keeps in sync with the // canonical npm version on every changeset release. -const Version = "1.55.3" +const Version = "1.56.0" diff --git a/python/pyproject.toml b/python/pyproject.toml index aa8ed9da..64a39518 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smooai-smooth-operator" -version = "1.55.3" +version = "1.56.0" description = "Python protocol types and native async WebSocket client for the smooth-operator protocol. Generated from the language-neutral JSON Schemas in spec/." readme = "README.md" license = { text = "MIT" } diff --git a/python/server/pyproject.toml b/python/server/pyproject.toml index e2d2113c..d94a5a4e 100644 --- a/python/server/pyproject.toml +++ b/python/server/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smooai-smooth-operator-server" -version = "1.55.3" +version = "1.56.0" description = "Native async WebSocket server for the smooth-operator protocol — parity with the Rust and C# reference servers, consuming the in-process smooai-smooth-operator-core engine." readme = "README.md" license = { text = "MIT" } diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 106bd19a..94fbe4b3 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -4099,7 +4099,7 @@ checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" [[package]] name = "smooai-smooth-operator" -version = "1.55.3" +version = "1.56.0" dependencies = [ "anyhow", "async-trait", @@ -4133,7 +4133,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-backplane-nats" -version = "1.55.3" +version = "1.56.0" dependencies = [ "anyhow", "async-nats", @@ -4149,7 +4149,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-backplane-redis" -version = "1.55.3" +version = "1.56.0" dependencies = [ "anyhow", "async-trait", @@ -4165,7 +4165,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-dynamodb" -version = "1.55.3" +version = "1.56.0" dependencies = [ "anyhow", "async-trait", @@ -4186,7 +4186,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-memory" -version = "1.55.3" +version = "1.56.0" dependencies = [ "anyhow", "async-trait", @@ -4199,7 +4199,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-postgres" -version = "1.55.3" +version = "1.56.0" dependencies = [ "anyhow", "async-trait", @@ -4290,7 +4290,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-ingestion" -version = "1.55.3" +version = "1.56.0" dependencies = [ "anyhow", "async-trait", @@ -4337,7 +4337,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-server" -version = "1.55.3" +version = "1.56.0" dependencies = [ "anyhow", "async-trait", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 86730153..4ff99580 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -40,7 +40,7 @@ smooai-smooth-operator-core = "1.10.0" # Intra-workspace dep on the reference lib carries its version so the adapters / # ingestion / server that depend on it are publishable (path = local dev, # version = the crates.io requirement). -smooth-operator = { package = "smooai-smooth-operator", path = "smooth-operator", version = "1.55.3" } +smooth-operator = { package = "smooai-smooth-operator", path = "smooth-operator", version = "1.56.0" } async-trait = "0.1" anyhow = "1" diff --git a/rust/adapters/backplane-nats/Cargo.toml b/rust/adapters/backplane-nats/Cargo.toml index e8d36f2d..e1376ce5 100644 --- a/rust/adapters/backplane-nats/Cargo.toml +++ b/rust/adapters/backplane-nats/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-backplane-nats" -version = "1.55.3" +version = "1.56.0" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/backplane-redis/Cargo.toml b/rust/adapters/backplane-redis/Cargo.toml index 95e0dd52..deb56740 100644 --- a/rust/adapters/backplane-redis/Cargo.toml +++ b/rust/adapters/backplane-redis/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-backplane-redis" -version = "1.55.3" +version = "1.56.0" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/dynamodb/Cargo.toml b/rust/adapters/dynamodb/Cargo.toml index 598eab7e..ce7292eb 100644 --- a/rust/adapters/dynamodb/Cargo.toml +++ b/rust/adapters/dynamodb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-dynamodb" -version = "1.55.3" +version = "1.56.0" edition.workspace = true license.workspace = true repository.workspace = true @@ -19,7 +19,7 @@ s3-vectors = ["dep:aws-sdk-s3vectors", "dep:aws-smithy-types"] smooth-operator = { workspace = true } smooai-smooth-operator-core = { workspace = true } # IndexingStore / IndexingRun for the persistent admin indexing-runs store. -smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.55.3" } +smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.56.0" } async-trait = { workspace = true } anyhow = { workspace = true } chrono = { workspace = true } diff --git a/rust/adapters/in-memory/Cargo.toml b/rust/adapters/in-memory/Cargo.toml index d8102a8e..1bec4f94 100644 --- a/rust/adapters/in-memory/Cargo.toml +++ b/rust/adapters/in-memory/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-memory" -version = "1.55.3" +version = "1.56.0" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/postgres/Cargo.toml b/rust/adapters/postgres/Cargo.toml index 9a48d27d..e82fb897 100644 --- a/rust/adapters/postgres/Cargo.toml +++ b/rust/adapters/postgres/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-postgres" -version = "1.55.3" +version = "1.56.0" edition.workspace = true license.workspace = true repository.workspace = true @@ -15,7 +15,7 @@ smooth-operator = { workspace = true } # `postgres` feature pulls in PostgresCheckpointStore (sync r2d2 path). smooai-smooth-operator-core = { workspace = true, features = ["postgres"] } # IndexingStore / IndexingRun for the persistent admin indexing-runs store. -smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.55.3" } +smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.56.0" } async-trait = { workspace = true } anyhow = { workspace = true } chrono = { workspace = true } diff --git a/rust/ingestion/Cargo.toml b/rust/ingestion/Cargo.toml index a7cb32a9..e514e1b4 100644 --- a/rust/ingestion/Cargo.toml +++ b/rust/ingestion/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-ingestion" -version = "1.55.3" +version = "1.56.0" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/smooth-operator-server/Cargo.toml b/rust/smooth-operator-server/Cargo.toml index fc0d5ebc..b5ea1bcc 100644 --- a/rust/smooth-operator-server/Cargo.toml +++ b/rust/smooth-operator-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-server" -version = "1.55.3" +version = "1.56.0" edition.workspace = true license.workspace = true repository.workspace = true @@ -35,22 +35,22 @@ smooth-operator = { workspace = true } smooai-smooth-operator-core = { workspace = true } # In-memory storage + backplane — ALWAYS included. The local-flavor default and # the lean (`--no-default-features`) build run entirely on these. -smooai-smooth-operator-adapter-memory = { path = "../adapters/in-memory", version = "1.55.3" } +smooai-smooth-operator-adapter-memory = { path = "../adapters/in-memory", version = "1.56.0" } # Persistent storage + admin-store backends, selected at runtime to match the # configured storage backend (Postgres / DynamoDB; default in-memory). Optional: # gated behind the `postgres` / `dynamodb` features so a lean local/embed build # can exclude tokio-postgres / the AWS SDK. The `postgres` crate also provides the # gateway-backed embedder/reranker, so the `postgres` feature additionally enables # the semantic-retrieval path in `embedder.rs` / `reranker.rs`. -smooai-smooth-operator-adapter-postgres = { path = "../adapters/postgres", version = "1.55.3", optional = true } -smooai-smooth-operator-adapter-dynamodb = { path = "../adapters/dynamodb", version = "1.55.3", optional = true } +smooai-smooth-operator-adapter-postgres = { path = "../adapters/postgres", version = "1.56.0", optional = true } +smooai-smooth-operator-adapter-dynamodb = { path = "../adapters/dynamodb", version = "1.56.0", optional = true } # Distributed Backplane backends for horizontal scale-out, selected at runtime # via SMOOTH_AGENT_BACKPLANE (default in-memory / single-process). Optional: gated # behind the `redis` / `nats` features so a lean build excludes their drivers. -smooai-smooth-operator-adapter-backplane-redis = { path = "../adapters/backplane-redis", version = "1.55.3", optional = true } -smooai-smooth-operator-adapter-backplane-nats = { path = "../adapters/backplane-nats", version = "1.55.3", optional = true } +smooai-smooth-operator-adapter-backplane-redis = { path = "../adapters/backplane-redis", version = "1.56.0", optional = true } +smooai-smooth-operator-adapter-backplane-nats = { path = "../adapters/backplane-nats", version = "1.56.0", optional = true } # Admin API surfaces indexing-run status via the ingestion crate's IndexingStore. -smooai-smooth-operator-ingestion = { path = "../ingestion", version = "1.55.3" } +smooai-smooth-operator-ingestion = { path = "../ingestion", version = "1.56.0" } async-trait = { workspace = true } anyhow = { workspace = true } diff --git a/rust/smooth-operator/Cargo.toml b/rust/smooth-operator/Cargo.toml index 73eef31a..e9753940 100644 --- a/rust/smooth-operator/Cargo.toml +++ b/rust/smooth-operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator" -version = "1.55.3" +version = "1.56.0" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/typescript/CHANGELOG.md b/typescript/CHANGELOG.md index 5d150145..1f7bc616 100644 --- a/typescript/CHANGELOG.md +++ b/typescript/CHANGELOG.md @@ -1,5 +1,22 @@ # @smooai/smooth-operator +## 1.56.0 + +### Minor Changes + +- 0f9e90f: Fix silently-dropped protocol frames in the Go, Python, .NET and TypeScript clients, and add the `submit_interaction` verb to Go/Python/.NET. + + The generated wire types for `stream_preamble`, `stream_reasoning`, `interaction_required` and `interaction_invalid` existed in every language, but the hand-maintained dispatch unions were never updated. Every one of those frames was rejected by each client's own frame guard and then discarded by its dispatch loop — Go's `ParseServerEvent` returned `UnknownEventError` and the read loop `continue`d, Python's `parse_event` raised and `_handle_frame` swallowed it, and .NET's `ServerEventConverter` threw a `JsonException` the client caught and dropped. + + Impact: a session declaring a Rich Interaction (`identity_form`, `choice_chips`) parked a turn that Go/Python/.NET consumers never saw — the turn hung to the turn timeout (and forever on .NET, which has none). `stream_preamble` and `stream_reasoning` are emitted by the production server today, so preamble and reasoning tokens were being discarded by all four clients, TypeScript included. + + - **Go** — added the four event discriminators plus `As*` accessors, `ActionSubmitInteraction`, and `Client.SubmitInteraction`. + - **Python** — added the four members to `EventType` and the `ServerEvent` union, `submit_interaction` to `ActionType` and `ClientAction`, `SmoothAgentClient.submit_interaction`, and the missing entries in `validate.py`'s schema maps. + - **.NET** — added `StreamPreambleEvent`, `StreamReasoningEvent`, `InteractionRequiredEvent`, `InteractionInvalidEvent`, wired them into `ServerEventConverter` and `EventTypes.All`, and added `SubmitInteractionAction` + `SmoothAgentClient.SubmitInteractionAsync`. + - **TypeScript** — added the missing `stream_reasoning` to `EVENT_TYPES`/`ServerEvent` and to `validate.ts`'s event→schema map. (The shipped web-chat example already had a `case 'stream_reasoning'` that could never fire.) + + Each language also gains a drift guard that derives the expected discriminator set from `spec/events/*.schema.json` and `spec/actions/*.schema.json` at test time, so a future event schema that isn't wired into a dispatch union fails the build instead of being dropped at runtime. + ## 1.55.3 ### Patch Changes diff --git a/typescript/package.json b/typescript/package.json index 211115e4..7e3f5b2d 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@smooai/smooth-operator", - "version": "1.55.3", + "version": "1.56.0", "description": "TypeScript SDK for the smooth-operator WebSocket protocol: the native client (`.`), React bindings (`./react`), and the embeddable web-component chat widget (`./widget`). Generated from the language-neutral JSON Schemas in spec/.", "license": "MIT", "type": "module",