v1.7.0 — The chatbot that remembers, knows its bill, and never breaks
Deuz 1.7: your chatbot now remembers, knows its bill, and never breaks — memory, live USD cost, budget guardrails, signed approvals, vendor-free resume, and cross-provider failover. All six inside the library. All six missing from the Vercel AI SDK (receipts in the README).
Six things even the Vercel AI SDK doesn't have
- Built-in cross-session memory —
memory: { seams, scope }on any call: recall before the first token, mem0-style extract→reconcile after the turn, non-blocking. - Live USD cost on the wire — a cumulative
coststream part per step from the in-library price catalog, with prompt-cache savings as its own field. - Budget guardrail —
budget: { usd, tokens }hard-stops the loop with a typedbudget-exceededpart. - Cryptographic approval trail — HMAC-signed, runId-bound, expiring approval tokens through the UI wire; forged/expired/token-less approvals are denied on resume.
- Durable × resumable, vendor-free — F5 mid-tool-loop: the run continues from its checkpoint AND the stream reconnects gaplessly (
resumeDeuzChatResponse, one endpoint). - Cross-provider failover —
fallbackModelshops providers mid-conversation with the identical canonical history, backed by a live circuit breaker.
Also in 1.7
- Resumable UI wire v2: SSE seq ids +
Last-Event-IDreplay,StreamStateStoreseam, multi-client live follow,connectDeuzStreamauto-reconnect — v1 clients keep working byte-identically. - Typed data parts (
writeData+ Standard Schema validation on-stream), tool state machine, built-in RAG citations. ChatStorepersistence + pure chat engine + regenerate / edit-and-branch.- New package:
@deuz-sdk/react— useChat v2, useObject, headlessToolApprovalCard+CostBadge. (@deuz-sdk/core/reactkeeps working, frozen.) - Repo is now an npm-workspaces monorepo; 30 core subpaths; 664 tests.
Full details: packages/core/CHANGELOG.md · v1.7.0.md (design spec)
🤖 Generated with Claude Code