Repository navigation
v0.2.0
What's New
Compatibility Mode (experimental)
Append-only compatibility bridge for chat harnesses that don't natively manage Engram state. Automatically detects when new messages extend a previously snapshotted conversation and takes the restore-and-generate fast-path, falling back to standard /v1/chat/completions otherwise.
- New
compatibilityMode: 'append-only'provider option isAppendOnly()/AppendOnlyCheckResultexported as public API- Fallback diagnostics in
providerMetadata.clarit
Bug Fixes
- Runtime guards in
hasUnsupportedContentfor null/undefined/non-object prompt entries - Null content-part guard in compatibility bridge
- Discriminated union for
AppendOnlyCheckResult - Renamed
disabledfallback reason tomissing-max-tokens - Removed redundant role casts and non-null assertions
- Fixed duplicate closing brace in
TokenizeChatResponsetype
Docs
- Full Compatibility Mode section added to README with usage example, flow explanation, and fallback reason reference