Skip to content

chore: version packages#38

Merged
MyPrototypeWhat merged 1 commit into
mainfrom
changeset-release/main
Jun 16, 2026
Merged

chore: version packages#38
MyPrototypeWhat merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

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

@context-chef/core@3.8.0

Minor Changes

  • a461ef8 Thanks @MyPrototypeWhat! - Add caller-owned durable compaction helpers (provider-agnostic in core), and warn when in-flight compress is used without persistence.

    • @context-chef/coreplanCompaction / compactHistory: the durable compaction engine, operating on the IR Message[] so any provider path can use it.
      • compactHistory(history, compress, options): one-shot durable compaction — splits on turn boundaries, summarizes the old slice via summarizeHistory, and returns a new history ready to persist ([...system, <wrapped summary>, ...recent turns]). Returns the input history reference unchanged when there is nothing old enough to compact or the summarizer yields no text, so callers can skip persistence via result === history. compress is injected (core never calls a model directly).
      • planCompaction(history, { keepRecentTurns }): the synchronous split, returning { system, toSummarize, toKeep }. Cuts only on turn boundaries (an assistant + its tool results stay together), so it never orphans a tool result or splits a multi-block assistant message; system messages are preserved verbatim and never summarized. Input is a flat Message[] with system inline.
    • @context-chef/ai-sdk-middlewarecompactHistory(prompt, model, options) / planCompaction(prompt, options): thin AI-SDK wrappers over the core engine — they convert the prompt to core's IR and back, and bind the model into the compression callback. Same signatures and behavior as before, including the no-op reference guarantee.
    • Persistence warning: the middleware now logs a one-time warning when compress keeps firing without an onCompress hook. In-flight compression only rewrites each outgoing request — without write-back the history re-expands every call and the payload grows unbounded. Steers users toward onCompress persistence or compactHistory for sustained over-budget conversations.

    No behavior change to existing configurations; the new exports are additive.

@context-chef/ai-sdk-middleware@1.5.2

Patch Changes

  • a461ef8 Thanks @MyPrototypeWhat! - Add caller-owned durable compaction helpers (provider-agnostic in core), and warn when in-flight compress is used without persistence.

    • @context-chef/coreplanCompaction / compactHistory: the durable compaction engine, operating on the IR Message[] so any provider path can use it.
      • compactHistory(history, compress, options): one-shot durable compaction — splits on turn boundaries, summarizes the old slice via summarizeHistory, and returns a new history ready to persist ([...system, <wrapped summary>, ...recent turns]). Returns the input history reference unchanged when there is nothing old enough to compact or the summarizer yields no text, so callers can skip persistence via result === history. compress is injected (core never calls a model directly).
      • planCompaction(history, { keepRecentTurns }): the synchronous split, returning { system, toSummarize, toKeep }. Cuts only on turn boundaries (an assistant + its tool results stay together), so it never orphans a tool result or splits a multi-block assistant message; system messages are preserved verbatim and never summarized. Input is a flat Message[] with system inline.
    • @context-chef/ai-sdk-middlewarecompactHistory(prompt, model, options) / planCompaction(prompt, options): thin AI-SDK wrappers over the core engine — they convert the prompt to core's IR and back, and bind the model into the compression callback. Same signatures and behavior as before, including the no-op reference guarantee.
    • Persistence warning: the middleware now logs a one-time warning when compress keeps firing without an onCompress hook. In-flight compression only rewrites each outgoing request — without write-back the history re-expands every call and the payload grows unbounded. Steers users toward onCompress persistence or compactHistory for sustained over-budget conversations.

    No behavior change to existing configurations; the new exports are additive.

  • Updated dependencies [a461ef8]:

    • @context-chef/core@3.8.0

@context-chef/tanstack-ai@0.5.2

Patch Changes

  • Updated dependencies [a461ef8]:
    • @context-chef/core@3.8.0

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 0934e92 to 32bae78 Compare June 16, 2026 12:20
@MyPrototypeWhat MyPrototypeWhat merged commit 0c28e55 into main Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant