From 22850590463196338e364576f3bb37fb29a0f367 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 16:18:45 +0000 Subject: [PATCH] chore: version packages --- .changeset/model-message-durable-compaction.md | 13 ------------- packages/ai-sdk-middleware/CHANGELOG.md | 14 ++++++++++++++ packages/ai-sdk-middleware/package.json | 2 +- 3 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 .changeset/model-message-durable-compaction.md diff --git a/.changeset/model-message-durable-compaction.md b/.changeset/model-message-durable-compaction.md deleted file mode 100644 index 437a01f..0000000 --- a/.changeset/model-message-durable-compaction.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@context-chef/ai-sdk-middleware': minor ---- - -Add ModelMessage-altitude durable compaction. - -`compactModelMessages`, `planCompactionModelMessages`, and `summarizeModelMessages` operate on `ModelMessage[]` — the message type `generateText`/`prepareStep` actually use — so you can run durable compaction directly against your own message store, or inside a `ToolLoopAgent` `prepareStep`. They reuse the provider-agnostic core engine, and `compactModelMessages` preserves the no-op reference-identity contract (returns the input array unchanged when there is nothing old enough to compact, so callers can skip persistence). - -`createCompressionAdapter` now accepts `ai`'s `LanguageModel` (a model id string, or a V3/V2 model) — matching what `prepareStep`/`generateText` hand you — instead of only `LanguageModelV3`. - -Deprecates the `LanguageModelV3Prompt`-typed `compactHistory` / `planCompaction` (still exported and fully working) in favor of the ModelMessage variants; they are slated for removal in the next major. `summarizeMessages` is unchanged. - -Also fixes three round-trip issues in both AI-SDK adapters (V3 and ModelMessage): provider-executed (inline) tool-results no longer trigger a spurious `[No tool result available]` placeholder; tool-message-level `providerOptions` (e.g. Anthropic cache control) is now preserved; and a tool-call with `undefined` input serializes to `"{}"` instead of a non-string value. diff --git a/packages/ai-sdk-middleware/CHANGELOG.md b/packages/ai-sdk-middleware/CHANGELOG.md index 23b450d..0996480 100644 --- a/packages/ai-sdk-middleware/CHANGELOG.md +++ b/packages/ai-sdk-middleware/CHANGELOG.md @@ -1,5 +1,19 @@ # @context-chef/ai-sdk-middleware +## 1.6.0 + +### Minor Changes + +- [#40](https://github.com/MyPrototypeWhat/context-chef/pull/40) [`55d5c27`](https://github.com/MyPrototypeWhat/context-chef/commit/55d5c2727bbf9117bbb846be8ab7d7d9a4ef47e1) Thanks [@MyPrototypeWhat](https://github.com/MyPrototypeWhat)! - Add ModelMessage-altitude durable compaction. + + `compactModelMessages`, `planCompactionModelMessages`, and `summarizeModelMessages` operate on `ModelMessage[]` — the message type `generateText`/`prepareStep` actually use — so you can run durable compaction directly against your own message store, or inside a `ToolLoopAgent` `prepareStep`. They reuse the provider-agnostic core engine, and `compactModelMessages` preserves the no-op reference-identity contract (returns the input array unchanged when there is nothing old enough to compact, so callers can skip persistence). + + `createCompressionAdapter` now accepts `ai`'s `LanguageModel` (a model id string, or a V3/V2 model) — matching what `prepareStep`/`generateText` hand you — instead of only `LanguageModelV3`. + + Deprecates the `LanguageModelV3Prompt`-typed `compactHistory` / `planCompaction` (still exported and fully working) in favor of the ModelMessage variants; they are slated for removal in the next major. `summarizeMessages` is unchanged. + + Also fixes three round-trip issues in both AI-SDK adapters (V3 and ModelMessage): provider-executed (inline) tool-results no longer trigger a spurious `[No tool result available]` placeholder; tool-message-level `providerOptions` (e.g. Anthropic cache control) is now preserved; and a tool-call with `undefined` input serializes to `"{}"` instead of a non-string value. + ## 1.5.2 ### Patch Changes diff --git a/packages/ai-sdk-middleware/package.json b/packages/ai-sdk-middleware/package.json index 1e4b72f..f210829 100644 --- a/packages/ai-sdk-middleware/package.json +++ b/packages/ai-sdk-middleware/package.json @@ -1,6 +1,6 @@ { "name": "@context-chef/ai-sdk-middleware", - "version": "1.5.2", + "version": "1.6.0", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.mjs",