chore(agent-cache): release v0.11.0 (streaming cache) + fix TS build#306
Merged
Conversation
#262 shipped wrapStream (streaming response caching for the Vercel AI SDK adapter) but left the package version at 0.10.0, filed the changelog entry under a stale "[0.8.0] - Unreleased" heading, and didn't typecheck cleanly. Release: - Bump packages/agent-cache to 0.11.0 (new backward-compatible feature). - Retitle the changelog entry to [0.11.0] - 2026-07-07. TS build fixes (package tsc was failing): - Add @ai-sdk/provider as a direct devDependency — ai.ts imports its LanguageModelV3* types, which pnpm's strict layout hid as a transitive dep. - ai.test.ts: type the mock params as LanguageModelV3CallOptions and add a streamCall() helper that supplies the doGenerate/model fields the middleware call signature requires (tests exercise only the streaming path). Docs: - The Vercel AI SDK adapter now caches doStream in addition to doGenerate; move streaming out of "Known limitations" (only tool-call streams remain uncached, and cached streams replay as a single chunk).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#262 shipped
wrapStream(streaming response caching for the Vercel AI SDK adapter) but left three loose ends. This releases the feature and fixes the build.Changes
@betterdb/agent-cache0.10.0 → 0.11.0(new backward-compatible feature).[0.8.0] - Unreleasedheading; retitled to[0.11.0] - 2026-07-07.tscwas failing):@ai-sdk/provideras a direct devDependency —ai.tsimports itsLanguageModelV3*types, which pnpm's strict layout hid as a transitive dep ofai.ai.test.ts: type the mock params asLanguageModelV3CallOptionsand add astreamCall()helper supplying thedoGenerate/modelfields the middleware call signature now requires (tests exercise only the streaming path).doStreamas well asdoGenerate; moved streaming out of "Known limitations" (only tool-call streams remain uncached; cached streams replay as a single chunk).Verification
tsc --noEmitclean onpackages/agent-cache.vitest run ai.test.ts— 5/5 pass.@ai-sdk/providerentry.Companion website update removes the matching "streaming not cached" copy (separate repo).
Note
Low Risk
No adapter runtime changes in this diff—version bump, dev dependency, test helpers, and documentation only.
Overview
Releases @betterdb/agent-cache v0.11.0 and aligns packaging/docs with streaming cache support for the Vercel AI SDK adapter (
wrapStream), which was added in a prior change.Release: version
0.10.0 → 0.11.0; changelog retitled from a stale[0.8.0] - Unreleasedblock to[0.11.0] - 2026-07-07documenting streaming caching behavior.Build/tests: adds
@ai-sdk/provideras a direct devDependency soLanguageModelV3*types resolve under pnpm;ai.test.tstypes mocks asLanguageModelV3CallOptionsand uses astreamCall()helper sowrapStreamtests satisfy the full middleware signature (doGenerate,model, etc.).Docs: Vercel AI SDK section and “Known limitations” now state that
doStreamis cached (replay as onetext-delta+finish; tool-call streams still uncached); LangChain/LlamaIndex remain non-streaming only.Reviewed by Cursor Bugbot for commit d946699. Bugbot is set up for automated code reviews on this repo. Configure here.