docs: refresh AI SDK comparison against ai@6.0.200#745
Conversation
Adds a sixth audit dimension (and an `activities` invocation scope) that diffs which of the 7 core activity kinds each provider ships an adapter for against what upstream offers, with a provider×activity grid in the report template. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Corrections (verified against ai-sdk.dev docs, npm, and vercel/ai as of June 2026): - ai@6 is dual CJS+ESM, not ESM-only; note v7 pre-release exists - ~38 first-party provider packages, not 50+ - Solid is community-maintained on the AI SDK side (frozen at an SDK-4-era version) - now a TanStack differentiator, not a wash - Lazy tool discovery is no longer unmatched: AI SDK 6 has Anthropic-only tool search with deferLoading; ours remains cross-provider - Narrow the middleware claim: experimental_transform, onToolCallStart/ Finish, prepareStep, and repairToolCall exist - the gap is the unified app-level middleware system - extendAdapter: AI SDK has stable customProvider()/createProviderRegistry(); the edge is literal-type narrowing vs string model ids - Code execution: provider-hosted tools exist (Anthropic, xAI, OpenAI); the edge is SDK-managed sandboxes you control - addToolResult renamed to addToolOutput in v6 New advantages (each adversarially verified to have no AI SDK equivalent): - Native AG-UI protocol section + wire-protocol table row - Hooks for Every Activity section + generation-hooks table row - Multi-Turn Structured Output section - Debug Logging section + table row - Code Mode Skills table row + LLM-writable skills prose Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR adds a sixth audit dimension (Activity coverage) to gap-analysis docs—documenting the ChangesGap-Analysis Activity Coverage Dimension
Vercel AI SDK Comparison Refresh
Sequence Diagram(s)sequenceDiagram
participant Orchestrator
participant Subagent
participant AdapterFiles
participant UpstreamDocs
Subagent->>Orchestrator: skip dimensions 2 and 6, run dims 1/3/4/5
Orchestrator->>AdapterFiles: list provider adapter filenames (build activity matrix)
Orchestrator->>UpstreamDocs: WebFetch only for ❌ cells to gather upstream evidence
Orchestrator->>Subagent: emit per-provider dimension-5 telemetry (unchanged)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit e06fa82
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview6 package(s) bumped directly, 25 bumped as dependents. 🟥 Major bumps
🟨 Minor bumps
🟩 Patch bumps
|
@tanstack/ai
@tanstack/ai-anthropic
@tanstack/ai-client
@tanstack/ai-code-mode
@tanstack/ai-code-mode-skills
@tanstack/ai-devtools-core
@tanstack/ai-elevenlabs
@tanstack/ai-event-client
@tanstack/ai-fal
@tanstack/ai-gemini
@tanstack/ai-grok
@tanstack/ai-groq
@tanstack/ai-isolate-cloudflare
@tanstack/ai-isolate-node
@tanstack/ai-isolate-quickjs
@tanstack/ai-mcp
@tanstack/ai-ollama
@tanstack/ai-openai
@tanstack/ai-openrouter
@tanstack/ai-preact
@tanstack/ai-react
@tanstack/ai-react-ui
@tanstack/ai-solid
@tanstack/ai-solid-ui
@tanstack/ai-svelte
@tanstack/ai-utils
@tanstack/ai-vue
@tanstack/ai-vue-ui
@tanstack/openai-base
@tanstack/preact-ai-devtools
@tanstack/react-ai-devtools
@tanstack/solid-ai-devtools
commit: |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
.claude/skills/gap-analysis/references/report-template.md (1)
6-11:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winAdd
activitiesto the scope list.The scope list is missing
activities, which is documented as a valid scope inSKILL.md(lines 23-26 and 60-61). The filename pattern for this scope would be<YYYY-MM-DD>-activities.md.📝 Proposed fix to add the missing scope
`<scope>` is one of: - `<provider>` — e.g. `openai` - `feature-<feature>` — e.g. `feature-tts` - `models` +- `activities` - `all`🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.claude/skills/gap-analysis/references/report-template.md around lines 6 - 11, The scope list under `<scope>` is missing the `activities` option; update the list (the block showing `<provider>`, `feature-<feature>`, `models`, `all`) to include `activities` as a valid scope and mention its filename pattern (`<YYYY-MM-DD>-activities.md`) so it matches the `SKILL.md` documentation references to `activities`.docs/comparison/vercel-ai-sdk.md (1)
70-85:⚠️ Potential issue | 🟡 MinorUpdate OpenAI “latest model” check for the docs sample
gpt-5.5is the newest fixed OpenAI chat text model inpackages/ai-openai/src/model-meta.ts(nogpt-5.6+orgpt-6entries). However, the adapter also exposes the “latest” aliasgpt-chat-latestinOPENAI_CHAT_MODELS, which is the value that best matches the “latest model per provider” guideline—consider switching the docs sample toopenaiText('gpt-chat-latest')instead ofopenaiText('gpt-5.5').🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/comparison/vercel-ai-sdk.md` around lines 70 - 85, The docs sample hardcodes the OpenAI model string to openaiText('gpt-5.5') while the adapter exposes the "latest" alias OPENAI_CHAT_MODELS entry gpt-chat-latest; update the example to use openaiText('gpt-chat-latest') so it follows the "latest model per provider" guideline—locate the example using openaiText and replace the gpt-5.5 literal with the gpt-chat-latest alias in the snippet.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In @.claude/skills/gap-analysis/references/report-template.md:
- Around line 6-11: The scope list under `<scope>` is missing the `activities`
option; update the list (the block showing `<provider>`, `feature-<feature>`,
`models`, `all`) to include `activities` as a valid scope and mention its
filename pattern (`<YYYY-MM-DD>-activities.md`) so it matches the `SKILL.md`
documentation references to `activities`.
In `@docs/comparison/vercel-ai-sdk.md`:
- Around line 70-85: The docs sample hardcodes the OpenAI model string to
openaiText('gpt-5.5') while the adapter exposes the "latest" alias
OPENAI_CHAT_MODELS entry gpt-chat-latest; update the example to use
openaiText('gpt-chat-latest') so it follows the "latest model per provider"
guideline—locate the example using openaiText and replace the gpt-5.5 literal
with the gpt-chat-latest alias in the snippet.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 531f4def-e02b-4732-8f68-7f177634d69b
📒 Files selected for processing (4)
.claude/skills/gap-analysis/SKILL.md.claude/skills/gap-analysis/references/audit-checklist.md.claude/skills/gap-analysis/references/report-template.mddocs/comparison/vercel-ai-sdk.md
Summary
Fact-checked every claim in
docs/comparison/vercel-ai-sdk.mdwith a multi-agent verification pass: TanStack-side claims checked against this repo, Vercel-side claims checked against current official sources (ai-sdk.dev, npm, vercel/ai releases), and each new "where we're ahead" item adversarially verified to confirm the AI SDK lacks an equivalent.Corrections (Vercel side had drifted)
deferLoading) — claim narrowed from "no equivalent" to cross-provider vs provider-specificexperimental_transform,experimental_onToolCallStart/Finish,prepareStep,repairToolCall; gap restated as the unified app-level middleware systemcustomProvider()/createProviderRegistry(); edge restated as literal-type narrowing vs string model idsaddToolResult→addToolOutput(v6 rename)New advantages added (each verified to have no AI SDK equivalent)
@ag-ui/vercel-ai-sdktranslation layer, native support an open feature requestuseChat/useCompletion/useObject🤖 Generated with Claude Code
Summary by CodeRabbit