Przejdź do treści
Biblioteka skilli
Programowanie · Konwersja i formaty

tanstack-ai-migration

/tanstack-ai-migration

Przenosi aplikację z Vercel AI SDK lub surowych SDK dostawców na TanStack AI albo aktualizuje ją do wersji 1.0.

Repozytorium
ai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
6
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Przenosi aplikację z Vercel AI SDK lub surowych SDK dostawców na TanStack AI albo aktualizuje ją do wersji 1.0.

Wyzwalacze z opisu

migrateswitch from Vercel AI SDKai-sdkstreamTextupgrade TanStack AIdeprecatedbreaking changecodemod
Oryginalny opis (EN)

Move an app to TanStack AI from the Vercel AI SDK or raw provider SDKs, or upgrade it from TanStack AI 0.x to 1.0. Use when someone asks whether to switch AI libraries, when code mixes streamText, generateText, generateObject, createOpenAI, or @ai-sdk/* with TanStack AI, when an upgrade breaks, or when someone hits a renamed option, a deprecated -ui package, or an old adapter shape. Triggers on "migrate", "switch from Vercel AI SDK", "ai-sdk", "streamText", "upgrade TanStack AI", "deprecated", "breaking change", "codemod".

Jak działa

  1. Coming from another SDK
  2. Upgrading TanStack AI itself
  3. Codemods
  4. After the port
Sekcje z nagłówków SKILL.md, w oryginale · 66 linii, 288 słów
Podgląd SKILL.md
---
name: tanstack-ai-migration
description: >
  Move an app to TanStack AI from the Vercel AI SDK or raw provider SDKs, or
  upgrade it from TanStack AI 0.x to 1.0. Use when someone asks
  whether to switch AI libraries, when code mixes streamText, generateText,
  generateObject, createOpenAI, or @ai-sdk/* with TanStack AI, when an upgrade
  breaks, or when someone hits a renamed option, a deprecated -ui package, or an
  old adapter shape. Triggers on "migrate", "switch from Vercel AI SDK",
  "ai-sdk", "streamText", "upgrade TanStack AI", "deprecated",
  "breaking change", "codemod".
---

# Migrating to TanStack AI

Two different jobs. Pick the one that matches the code in front of you.

## Coming from another SDK

The name-by-name mapping lives in the docs, and it is longer than any summary
that fits here:

https://tanstack.com/ai/latest/docs/migration/migration-from-vercel-ai

The shape of the change:

- `streamText` and `generateText` become one `chat()` call with a streaming
  option.
- `createOpenAI(...)` becomes a tree-shakeable adapter, such as `openaiText()`
  from `@tanstack/ai-openai`.
- `onFinish` and friends become middleware hooks.
- Manual SSE wiring becomes the built-in response helpers.
- `generateObject` becomes structured outputs on `chat()`.

Read the guide, then load the target API's own skill with
`npx @tanstack/intent@latest load @tanstack/ai#ai-core`. Do not port from memory: a half-remembered mapping produces
code that type-checks in neither SDK.

## Upgrading TanStack AI itself

Start with the version the app has, and the current release:

```bash
node -p "require('@tanstack/ai/package.json').version"
npm view @tanstack/ai version
```

Then read the guides for what changed:

- https://tanstack.com/ai/latest/docs/migration/v1 (0.x to 1.0)
- https://tanstack.com/ai/latest/docs/migration/migration
- https://tanstack.com/ai/latest/docs/migration/ag-ui-compliance
- https://tanstack.com/ai/latest/docs/migration/sampling-options-to-model-options

1.0 removes every API that 0.x marked as deprecated. Each one has a
replacement that already shipped in 0.x, so you can move to the replacements
on 0.x first, then bump every `@tanstack/ai*` package to 1.0 together.

## Codemods

Some renames have a jscodeshift transform. Run it straight from the repo, and
preview first with `--dry --print`:

```bash
npx jscodeshift \
  -t https://raw.githubusercontent.com/TanStack/ai/main/codemods/ag-ui-compliance/transform.ts \
  --dry --print src/
```

Each guide names the codemod that covers it, and what the codemod cannot reach.
Server-side rewrites are usually manual.

## After the port

Run the project's type checker. Most errors after a migration come from an API
that was remembered rather than read, so check the failing name against
`node_modules/@tanstack/ai/src/` before changing it again.

Wersje

W bazie nie ma innych skilli o nazwie tanstack-ai-migration.

Migawka bazy z 28.10.2026 · wersja paczki 378c881285ca (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100mem0-vercel-ai-sdk
    Obsługuje dostawcę Mem0 dla Vercel AI SDK (@mem0/vercel-ai-provider): createMem0, retrieveMemories, addMemories oraz generateText i streamText w aplikacjach Next.js z pamięcią.
  • 90AI SDK Documentation
    Pomaga w pracy z Vercel AI SDK i AI Gateway: streamText, generateText, generateObject, wywoływanie narzędzi, dostawcy, konfiguracja i dobre praktyki pakietów @ai-sdk.
  • 100sentry-upgrade-migration
    Aktualizuje SDK Sentry i migruje zmiany w API: z wersji 7 na 8, Python SDK z wersji 1 na 2, zastępuje przestarzałe Hub i Transaction oraz uruchamia codemod migr8.
  • 98vercel-ai-sdk-streaming
    Pomaga budować z Vercel AI SDK 5: streamText, generateObject, hook useChat, strukturalne wyjścia z Zod, wywoływanie narzędzi, agenci wieloetapowi, abstrakcja providerów i wzorce RAG.
  • 100ai-sdk-6
    Wspiera rozwój w Vercel AI SDK v6 w projektach na ai@6: agenci ToolLoopAgent, useChat, generateText, streamText, zatwierdzanie narzędzi, narzędzia dostawców, integracja MCP i wzorce Output.
  • 100migrate-ai-sdk-v6-to-v7
    Migruje aplikacje z AI SDK 6.x do 7.0, naprawiając błędy migracji i zmiany łamiące zgodność.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.