Skip to content

Commit 49cc570

Browse files
Merge pull request #37 from MyPrototypeWhat/changeset-release/main
chore: version packages
2 parents 860fd02 + b6936fe commit 49cc570

7 files changed

Lines changed: 35 additions & 14 deletions

File tree

.changeset/summarize-history-export.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/ai-sdk-middleware/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @context-chef/ai-sdk-middleware
22

3+
## 1.5.1
4+
5+
### Patch Changes
6+
7+
- [#36](https://github.com/MyPrototypeWhat/context-chef/pull/36) [`63e857c`](https://github.com/MyPrototypeWhat/context-chef/commit/63e857c36baf61572a166dd593b982606755d7c0) Thanks [@MyPrototypeWhat](https://github.com/MyPrototypeWhat)! - Expose one-shot history summarization as a standalone API.
8+
9+
- **`summarizeHistory(messages, compress, opts?)`** (core): produces a compression summary for a message slice using the same prompt, attachment/tool-result stripping, and `<summary>` extraction as the in-flight `compress` path. Extracted from `Janitor.executeCompression`, which now delegates to it (behavior-identical). Pure — an empty slice returns `''` without a model call, and it throws on model failure (the Janitor keeps its own circuit breaker + fallback). The `compress` callback must role-flatten tool/assistant-tool-call messages.
10+
- **`summarizeMessages(prompt, model, opts?)`** (ai-sdk-middleware): thin AI-SDK wrapper — `fromAISDK` (drops system messages) → compression adapter (role-flattening) → `summarizeHistory`. Returns the raw summary text (wrap with `Prompts.getCompactSummaryWrapper` for the continuation framing).
11+
12+
For hosts that own their conversation store and persist compression themselves (durable compaction) rather than relying on in-flight middleware compression. When driving summarization this way, do not also configure `compress` (with a `model`) on the same path — that would compress twice. A notification-only `onCompress`, plus `truncate`/`clear`/`dynamicState`, remain safe alongside.
13+
14+
- Updated dependencies [[`63e857c`](https://github.com/MyPrototypeWhat/context-chef/commit/63e857c36baf61572a166dd593b982606755d7c0)]:
15+
- @context-chef/core@3.7.1
16+
317
## 1.5.0
418

519
### Minor Changes

packages/ai-sdk-middleware/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@context-chef/ai-sdk-middleware",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"type": "module",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",

packages/core/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# context-chef
22

3+
## 3.7.1
4+
5+
### Patch Changes
6+
7+
- [#36](https://github.com/MyPrototypeWhat/context-chef/pull/36) [`63e857c`](https://github.com/MyPrototypeWhat/context-chef/commit/63e857c36baf61572a166dd593b982606755d7c0) Thanks [@MyPrototypeWhat](https://github.com/MyPrototypeWhat)! - Expose one-shot history summarization as a standalone API.
8+
9+
- **`summarizeHistory(messages, compress, opts?)`** (core): produces a compression summary for a message slice using the same prompt, attachment/tool-result stripping, and `<summary>` extraction as the in-flight `compress` path. Extracted from `Janitor.executeCompression`, which now delegates to it (behavior-identical). Pure — an empty slice returns `''` without a model call, and it throws on model failure (the Janitor keeps its own circuit breaker + fallback). The `compress` callback must role-flatten tool/assistant-tool-call messages.
10+
- **`summarizeMessages(prompt, model, opts?)`** (ai-sdk-middleware): thin AI-SDK wrapper — `fromAISDK` (drops system messages) → compression adapter (role-flattening) → `summarizeHistory`. Returns the raw summary text (wrap with `Prompts.getCompactSummaryWrapper` for the continuation framing).
11+
12+
For hosts that own their conversation store and persist compression themselves (durable compaction) rather than relying on in-flight middleware compression. When driving summarization this way, do not also configure `compress` (with a `model`) on the same path — that would compress twice. A notification-only `onCompress`, plus `truncate`/`clear`/`dynamicState`, remain safe alongside.
13+
314
## 3.7.0
415

516
### Minor Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@context-chef/core",
3-
"version": "3.7.0",
3+
"version": "3.7.1",
44
"type": "module",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",

packages/tanstack-ai/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @context-chef/tanstack-ai
22

3+
## 0.5.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`63e857c`](https://github.com/MyPrototypeWhat/context-chef/commit/63e857c36baf61572a166dd593b982606755d7c0)]:
8+
- @context-chef/core@3.7.1
9+
310
## 0.5.0
411

512
### Minor Changes

packages/tanstack-ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@context-chef/tanstack-ai",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"type": "module",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)