Skip to content
Open
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
35 changes: 0 additions & 35 deletions .changeset/decouple-openrouter-collapse-openai-base.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/openrouter-narrow-stream-chunk-types.md

This file was deleted.

23 changes: 0 additions & 23 deletions .changeset/summarize-unify-on-chat-stream-wrapper.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/update-fal-client-1.10.md

This file was deleted.

13 changes: 13 additions & 0 deletions examples/ts-svelte-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# ts-svelte-chat

## 0.1.42

### Patch Changes

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai-openai@0.8.6
- @tanstack/ai@0.16.1
- @tanstack/ai-anthropic@0.8.7
- @tanstack/ai-gemini@0.10.4
- @tanstack/ai-ollama@0.6.14
- @tanstack/ai-client@0.9.2
- @tanstack/ai-svelte@0.7.3

## 0.1.41

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-svelte-chat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ts-svelte-chat",
"private": true,
"version": "0.1.41",
"version": "0.1.42",
"type": "module",
"scripts": {
"dev": "vite dev --port 3000",
Expand Down
14 changes: 14 additions & 0 deletions examples/ts-vue-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# ts-vue-chat

## 0.1.42

### Patch Changes

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai-openai@0.8.6
- @tanstack/ai@0.16.1
- @tanstack/ai-anthropic@0.8.7
- @tanstack/ai-gemini@0.10.4
- @tanstack/ai-ollama@0.6.14
- @tanstack/ai-client@0.9.2
- @tanstack/ai-vue@0.7.3
- @tanstack/ai-vue-ui@0.1.34

## 0.1.41

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-vue-chat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-vue-chat",
"version": "0.1.41",
"version": "0.1.42",
"private": true,
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions examples/vanilla-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# vanilla-chat

## 0.0.38

### Patch Changes

- Updated dependencies []:
- @tanstack/ai-client@0.9.2

## 0.0.37

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vanilla-chat",
"private": true,
"type": "module",
"version": "0.0.37",
"version": "0.0.38",
"scripts": {
"start": "vite --port 3001",
"dev": "vite --port 3001",
Expand Down
21 changes: 21 additions & 0 deletions packages/typescript/ai-anthropic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @tanstack/ai-anthropic

## 0.8.7

### Patch Changes

- Unify the summarize subsystem on a shared chat-stream wrapper, plumb `modelOptions` through end-to-end, and tighten the `TProviderOptions` generic. ([#545](https://github.com/TanStack/ai/pull/545))

**Provider summarize adapters now share one implementation.** Anthropic, Gemini, Ollama, and OpenRouter previously each shipped a bespoke 200–300 LOC summarize adapter that re-implemented streaming, error handling, usage accounting, and chunk assembly on top of their text adapter. They now construct a `ChatStreamSummarizeAdapter` (formerly `ChatStreamWrapperAdapter`, renamed and exported from `@tanstack/ai/activities`) wrapping their own text adapter, matching the existing OpenAI/Grok pattern. Removes ~600 LOC of duplicated logic across the six providers and ensures behavioural parity.

**`SummarizationOptions.modelOptions` now reaches the wire.** Previously the activity layer (`runSummarize` / `runStreamingSummarize`) silently dropped `modelOptions` when building the internal `SummarizationOptions` it forwarded to the adapter. Provider-specific knobs (Anthropic cache control, OpenRouter plugins, Gemini safety settings, Groq tuning params, …) now flow through correctly.

**Provider summarize types resolve from the wrapped text adapter.** Each provider previously shipped a bespoke `XSummarizeProviderOptions` interface (a partial copy of its text provider options). Those interfaces are removed; summarize provider options are now inferred from the text adapter's `~types` via the new `InferTextProviderOptions<TAdapter>` helper exported from `@tanstack/ai/activities`. IntelliSense for `modelOptions` on `summarize({ adapter: openai('gpt-4o'), … })` now matches what `chat({ adapter: openai('gpt-4o'), … })` would show.

**`SummarizeAdapter` interface methods are now generic in `TProviderOptions`.** `summarize` and `summarizeStream` previously took `SummarizationOptions` (defaulted, so `modelOptions` was effectively `Record<string, any>` regardless of the adapter's typed shape). They now take `SummarizationOptions<TProviderOptions>`, threading the class's `TProviderOptions` generic through. Source-compatible for callers that didn't specify the generic; type-tighter for implementers and downstream consumers.

**Default aligned across the summarize surface.** `SummarizationOptions`, `SummarizeAdapter`, `BaseSummarizeAdapter`, and `ChatStreamSummarizeAdapter` previously had a mixed `Record<string, any>` / `Record<string, unknown>` / `object` set of defaults for `TProviderOptions`. They now uniformly default to `Record<string, unknown>` so unparameterised consumers narrow before indexed access on `modelOptions`. The `extends object` constraint is unchanged — per-model typed interfaces (e.g. `OpenAIBaseOptions & OpenAIReasoningOptions & ...`) inferred via `InferTextProviderOptions<TAdapter>` continue to satisfy it without needing a string index signature. No public-surface signature change for callers that supply a concrete provider-options shape (every shipping adapter does).

Bespoke `*SummarizeProviderOptions` interfaces (e.g. `OpenAISummarizeProviderOptions`, `AnthropicSummarizeProviderOptions`, `GeminiSummarizeProviderOptions`, `OllamaSummarizeProviderOptions`, `OpenRouterSummarizeProviderOptions`) are removed from the provider packages' public exports. Consumers who imported them should switch to inferring the type from the adapter (`InferTextProviderOptions<typeof adapter>`) or remove the explicit annotation (it'll be inferred from the adapter argument).

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai@0.16.1

## 0.8.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-anthropic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-anthropic",
"version": "0.8.6",
"version": "0.8.7",
"description": "Anthropic Claude adapter for TanStack AI",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript/ai-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-client

## 0.9.2

### Patch Changes

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai@0.16.1
- @tanstack/ai-event-client@0.3.1

## 0.9.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-client",
"version": "0.9.1",
"version": "0.9.2",
"description": "Framework-agnostic headless client for TanStack AI",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript/ai-code-mode-skills/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-code-mode-skills

## 0.1.11

### Patch Changes

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai@0.16.1
- @tanstack/ai-code-mode@0.1.11

## 0.1.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-code-mode-skills/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-code-mode-skills",
"version": "0.1.10",
"version": "0.1.11",
"description": "Persistent skill library for TanStack AI Code Mode - LLM-created reusable code snippets",
"author": "",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/typescript/ai-code-mode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-code-mode

## 0.1.11

### Patch Changes

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai@0.16.1

## 0.1.10

### Patch Changes
Expand Down
15 changes: 15 additions & 0 deletions packages/typescript/ai-code-mode/models-eval/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @tanstack/ai-code-mode-models-eval

## 0.0.16

### Patch Changes

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai-openai@0.8.6
- @tanstack/ai-grok@0.7.4
- @tanstack/ai-groq@0.1.12
- @tanstack/ai@0.16.1
- @tanstack/ai-anthropic@0.8.7
- @tanstack/ai-gemini@0.10.4
- @tanstack/ai-ollama@0.6.14
- @tanstack/ai-code-mode@0.1.11
- @tanstack/ai-isolate-node@0.1.11

## 0.0.15

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-code-mode/models-eval/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-code-mode-models-eval",
"version": "0.0.15",
"version": "0.0.16",
"private": true,
"type": "module",
"description": "Dev benchmark: local/cloud models vs code-mode database-demo gold (not published)",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-code-mode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-code-mode",
"version": "0.1.10",
"version": "0.1.11",
"description": "Code Mode for TanStack AI - LLM-driven code execution in secure sandboxes",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript/ai-devtools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-devtools-core

## 0.3.28

### Patch Changes

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai@0.16.1
- @tanstack/ai-event-client@0.3.1

## 0.3.27

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-devtools-core",
"version": "0.3.27",
"version": "0.3.28",
"description": "Core TanStack AI Devtools",
"author": "",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/typescript/ai-event-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-event-client

## 0.3.1

### Patch Changes

- Updated dependencies [[`0f17a38`](https://github.com/TanStack/ai/commit/0f17a3837f8538a92bb0272981af1678e3523c05), [`02527c2`](https://github.com/TanStack/ai/commit/02527c28c3285829535cd486e529e659260b3c5d)]:
- @tanstack/ai@0.16.1

## 0.3.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-event-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-event-client",
"version": "0.3.0",
"version": "0.3.1",
"description": "Event client for TanStack AI devtools integration",
"author": "",
"license": "MIT",
Expand Down
Loading