feat: 0.5.0 production hardening pass - #4
Merged
Merged
Conversation
Closes the four real production gaps called out before this release: multi-modal content loss in adapters, no error recovery in summarizer, unbounded embedding cache, silent fallback in meta. Plus doc polish. - New passthrough ContentBlock type. The OpenAI, Anthropic, and Vercel AI SDK adapters now wrap unrecognized blocks (images, files, audio, documents) verbatim instead of dropping them. Token counter respects passthrough.estimatedTokens with sane provider-specific defaults. - summarizer.onError config option: 'fall-back' (default), 'throw', or a custom handler function. When llmCall fails, the optimizer no longer kills the user's request. - LRU-capped embedding cache via maxCacheSize on createEmbeddingScorer. Defaults to 1000 entries. Fixes the unbounded-memory bug for long-running processes. - meta.fellBackTo surfaces when the requested strategy couldn't run cleanly. Summarizer reports 'sliding-window' for no-compressible or llmCall errors. Hybrid reports its final fallback. - README: new "Status: pre-1.0" section explaining breaking-change policy and browser bundle-size caveat. Config / meta tables updated with the new options. - playground/README: concrete vercel, netlify, and gh-pages deploy instructions. Tests: 21 -> 89 -> 101. Typecheck clean. Build clean. 14 test files.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes the four real production gaps called out before this release: multi-modal content loss in adapters, no error recovery in summarizer, unbounded embedding cache, silent fallback in meta. Plus doc polish.
Tests: 21 -> 89 -> 101. Typecheck clean. Build clean. 14 test files.
Summary
Type of change
Test plan
npm run typecheckpassesnpm testpassesnpm run buildsucceedsCHANGELOG.md(for user-facing changes)