diff --git a/.changeset/rust-server-auto-title-rename.md b/.changeset/rust-server-auto-title-rename.md deleted file mode 100644 index ed5d768..0000000 --- a/.changeset/rust-server-auto-title-rename.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@smooai/smooth-operator': patch ---- - -Rust server: conversation auto-title (small model) + `rename_conversation` (pearl th-d5b446). - -- **Auto-title** — after the first assistant turn on a conversation still carrying its default `Session ` name, a best-effort, detached, non-blocking task asks the fast/cheap `groq-gpt-oss-20b` model for a short 3-6 word title over the first exchange and stores it as the conversation `name`. Fail-safe: any error (no gateway key, gateway failure, empty output, storage error) simply leaves the default name — a turn is never slowed or broken. The default-name guard (re-checked right before the write) means a manual rename is never clobbered, and a titled conversation won't re-fire. -- **`rename_conversation`** — new WS action `{action, requestId, conversationId, title}`: sanitizes/trims the title (rejects empty), 404s an unknown conversation, persists `name` via the storage adapter's existing `update_conversation`, and replies `immediate_response` (200) with `{ conversationId, title }`. -- `list_conversations` now surfaces a **meaningful** conversation `name` (auto-title or manual rename — anything not the default `Session `) as the sidebar title, falling back to the first-inbound message preview for un-titled conversations. Back-compat: every pre-titling conversation carried the default name, so the message-preview behavior is unchanged for them. - -Additive + back-compat. New tests cover title sanitization (quotes/markdown/whitespace/length), the default-name-only auto-title guard (mock gateway, never clobbers a manual name, no-key fail-safe), rename success + list surfacing, empty-title rejection, and unknown-id 404. diff --git a/go/version.go b/go/version.go index eb972d8..8f1797d 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.22.6" +const Version = "1.22.7" diff --git a/python/pyproject.toml b/python/pyproject.toml index 4d62eb4..e255e85 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smooai-smooth-operator" -version = "1.22.6" +version = "1.22.7" 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/rust/Cargo.lock b/rust/Cargo.lock index 4b3aefb..6391e15 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -3974,7 +3974,7 @@ checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" [[package]] name = "smooai-smooth-operator" -version = "1.22.6" +version = "1.22.7" dependencies = [ "anyhow", "async-trait", @@ -4006,7 +4006,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-backplane-nats" -version = "1.22.6" +version = "1.22.7" dependencies = [ "anyhow", "async-nats", @@ -4022,7 +4022,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-backplane-redis" -version = "1.22.6" +version = "1.22.7" dependencies = [ "anyhow", "async-trait", @@ -4038,7 +4038,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-dynamodb" -version = "1.22.6" +version = "1.22.7" dependencies = [ "anyhow", "async-trait", @@ -4059,7 +4059,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-memory" -version = "1.22.6" +version = "1.22.7" dependencies = [ "anyhow", "async-trait", @@ -4072,7 +4072,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-postgres" -version = "1.22.6" +version = "1.22.7" dependencies = [ "anyhow", "async-trait", @@ -4162,7 +4162,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-ingestion" -version = "1.22.6" +version = "1.22.7" dependencies = [ "anyhow", "async-trait", @@ -4209,7 +4209,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-server" -version = "1.22.6" +version = "1.22.7" dependencies = [ "anyhow", "async-trait", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 15922f0..3412ef8 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -28,7 +28,7 @@ smooai-smooth-operator-core = { git = "https://github.com/SmooAI/smooth-operator # 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.22.6" } +smooth-operator = { package = "smooai-smooth-operator", path = "smooth-operator", version = "1.22.7" } async-trait = "0.1" anyhow = "1" diff --git a/rust/adapters/backplane-nats/Cargo.toml b/rust/adapters/backplane-nats/Cargo.toml index 7b94166..0b56fbc 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.22.6" +version = "1.22.7" 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 db8dbea..ac189d9 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.22.6" +version = "1.22.7" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/dynamodb/Cargo.toml b/rust/adapters/dynamodb/Cargo.toml index 2af0e6c..38bed15 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.22.6" +version = "1.22.7" 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.22.6" } +smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.22.7" } 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 62b3f80..14585d2 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.22.6" +version = "1.22.7" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/postgres/Cargo.toml b/rust/adapters/postgres/Cargo.toml index a517cd9..3ac1a80 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.22.6" +version = "1.22.7" 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.22.6" } +smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.22.7" } async-trait = { workspace = true } anyhow = { workspace = true } chrono = { workspace = true } diff --git a/rust/ingestion/Cargo.toml b/rust/ingestion/Cargo.toml index 08e1847..c75e09c 100644 --- a/rust/ingestion/Cargo.toml +++ b/rust/ingestion/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-ingestion" -version = "1.22.6" +version = "1.22.7" 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 16167ba..3d8f8d1 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.22.6" +version = "1.22.7" 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.22.6" } +smooai-smooth-operator-adapter-memory = { path = "../adapters/in-memory", version = "1.22.7" } # 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.22.6", optional = true } -smooai-smooth-operator-adapter-dynamodb = { path = "../adapters/dynamodb", version = "1.22.6", optional = true } +smooai-smooth-operator-adapter-postgres = { path = "../adapters/postgres", version = "1.22.7", optional = true } +smooai-smooth-operator-adapter-dynamodb = { path = "../adapters/dynamodb", version = "1.22.7", 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.22.6", optional = true } -smooai-smooth-operator-adapter-backplane-nats = { path = "../adapters/backplane-nats", version = "1.22.6", optional = true } +smooai-smooth-operator-adapter-backplane-redis = { path = "../adapters/backplane-redis", version = "1.22.7", optional = true } +smooai-smooth-operator-adapter-backplane-nats = { path = "../adapters/backplane-nats", version = "1.22.7", optional = true } # Admin API surfaces indexing-run status via the ingestion crate's IndexingStore. -smooai-smooth-operator-ingestion = { path = "../ingestion", version = "1.22.6" } +smooai-smooth-operator-ingestion = { path = "../ingestion", version = "1.22.7" } async-trait = { workspace = true } anyhow = { workspace = true } diff --git a/rust/smooth-operator/Cargo.toml b/rust/smooth-operator/Cargo.toml index 9a3d998..8bed3a7 100644 --- a/rust/smooth-operator/Cargo.toml +++ b/rust/smooth-operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator" -version = "1.22.6" +version = "1.22.7" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/typescript/CHANGELOG.md b/typescript/CHANGELOG.md index 2fba34c..4ddd692 100644 --- a/typescript/CHANGELOG.md +++ b/typescript/CHANGELOG.md @@ -1,5 +1,17 @@ # @smooai/smooth-operator +## 1.22.7 + +### Patch Changes + +- 487d10b: Rust server: conversation auto-title (small model) + `rename_conversation` (pearl th-d5b446). + + - **Auto-title** — after the first assistant turn on a conversation still carrying its default `Session ` name, a best-effort, detached, non-blocking task asks the fast/cheap `groq-gpt-oss-20b` model for a short 3-6 word title over the first exchange and stores it as the conversation `name`. Fail-safe: any error (no gateway key, gateway failure, empty output, storage error) simply leaves the default name — a turn is never slowed or broken. The default-name guard (re-checked right before the write) means a manual rename is never clobbered, and a titled conversation won't re-fire. + - **`rename_conversation`** — new WS action `{action, requestId, conversationId, title}`: sanitizes/trims the title (rejects empty), 404s an unknown conversation, persists `name` via the storage adapter's existing `update_conversation`, and replies `immediate_response` (200) with `{ conversationId, title }`. + - `list_conversations` now surfaces a **meaningful** conversation `name` (auto-title or manual rename — anything not the default `Session `) as the sidebar title, falling back to the first-inbound message preview for un-titled conversations. Back-compat: every pre-titling conversation carried the default name, so the message-preview behavior is unchanged for them. + + Additive + back-compat. New tests cover title sanitization (quotes/markdown/whitespace/length), the default-name-only auto-title guard (mock gateway, never clobbers a manual name, no-key fail-safe), rename success + list surfacing, empty-title rejection, and unknown-id 404. + ## 1.22.6 ### Patch Changes diff --git a/typescript/package.json b/typescript/package.json index 9c7fecc..aa4a420 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@smooai/smooth-operator", - "version": "1.22.6", + "version": "1.22.7", "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",