Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/tanstack-ai-sessions-credentials.md

This file was deleted.

7 changes: 7 additions & 0 deletions examples/tanstack-ai-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# tanstack-ai-demo

## 0.0.3

### Patch Changes

- Updated dependencies [d6216c0]
- @upstash/agentkit-tanstack-ai@0.3.0

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/tanstack-ai-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tanstack-ai-demo",
"version": "0.0.2",
"version": "0.0.3",
"private": true,
"type": "module",
"scripts": {
Expand Down
12 changes: 12 additions & 0 deletions packages/tanstack-ai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @upstash/agentkit-tanstack-ai

## 0.3.0

### Minor Changes

- d6216c0: Implement TanStack AI 1.0's three new backend contracts on Upstash Redis.

- `upstashPersistence()` now also returns a `sessions` store (`SessionIndexStore`): one entry per `(tenantId, threadId)` with members, title, usage and app metadata, newest-first `list` with filters and cursors, and a revision-checked `upsertIf`. `upstashSessionIndex` is exported from `/persistence` for standalone use.
- `upstashPersistence()` also returns a `log` store (`LogStore`, the append-only session log): atomic compare-and-append with consumed offers (at most 10,000 records per `append`), the epoch-fenced ownership lease, the input lane, snapshots, truncation and worker affinity, with the Redis server clock as the store clock. `subscribe` calls listeners right after writes through the same store and polls a change counter for writes from other machines (`logPollIntervalMs`, default 250). `upstashLogStore` is exported from `/persistence`.
- New `@upstash/agentkit-tanstack-ai/byok` entry: `upstashCredentials()`, a `CredentialStore` for provider API keys and OAuth tokens, with compare-and-set (`getVersioned` / `setIf`) and optional AES-256-GCM encryption at rest (`encryptionKey`, bound to the prefix, owner, id, type and expiry; `requireEncryption` refuses plaintext rows).

**Breaking for TanStack AI 0.x users:** the peer floors are raised, `@tanstack/ai` to `>=1.0.0` (the `/byok` types) and `@tanstack/ai-persistence` to `>=1.0.0` (the new store types appear in `upstashPersistence()`'s return type). Stay on `@upstash/agentkit-tanstack-ai@0.2.0` if you are not on TanStack AI 1.x yet. `@tanstack/ai-memory` is unchanged. `/persistence` now imports `@tanstack/ai-persistence` at runtime (the log store's error classes), so install it when you use that entry; `.`, `/memory` and `/byok` do not need it.

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/tanstack-ai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@upstash/agentkit-tanstack-ai",
"version": "0.2.0",
"version": "0.3.0",
"description": "Upstash AgentKit backends for TanStack AI: chat persistence, resumable streams, distributed locks, long-term memory, tool caching, rate limiting, and Redis-Search tools — all on one Upstash Redis.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tanstack-ai/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Generated by scripts/sync-version.mjs (run by `pnpm ci:version`) — do not edit by hand.
export const VERSION = "0.2.0";
export const VERSION = "0.3.0";