Skip to content

v0.2.0

Choose a tag to compare

@Clarit-AI Clarit-AI released this 04 Apr 06:42
· 9 commits to main since this release

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() / AppendOnlyCheckResult exported as public API
  • Fallback diagnostics in providerMetadata.clarit

Bug Fixes

  • Runtime guards in hasUnsupportedContent for null/undefined/non-object prompt entries
  • Null content-part guard in compatibility bridge
  • Discriminated union for AppendOnlyCheckResult
  • Renamed disabled fallback reason to missing-max-tokens
  • Removed redundant role casts and non-null assertions
  • Fixed duplicate closing brace in TokenizeChatResponse type

Docs

  • Full Compatibility Mode section added to README with usage example, flow explanation, and fallback reason reference