fix(deps): bump ai SDK off beta to stable so workflow tool outputs render

Merged
SW
6mo ago
+75-108

Summary

Fixes the AI_TypeValidationError that stalls the workflow chat path at "Using bash" with no tool output rendered (recoupable/chat#1747).

Root cause: chat was pinned to ai@6.0.0-beta.99 / @ai-sdk/react@3.0.0-beta.99. In that beta, the tool-output-available UIMessage chunk is a z.strictObject without a providerMetadata field. recoup-api (ai@6.0.x stable) emits tool-output-available events carrying providerMetadata, so the chat client's strict parser rejects them.

Fix: align with open-agents' proven pair (ai@6.0.165 / @ai-sdk/react@3.0.167), whose tool-output-available schema includes providerMetadata: providerMetadataSchema.optional(). Provider packages moved off beta to match.

packagebeforeafter
ai6.0.0-beta.996.0.165
@ai-sdk/react3.0.0-beta.993.0.167
@ai-sdk/anthropic3.0.0-beta.533.0.80
@ai-sdk/google3.0.0-beta.443.0.80
@ai-sdk/openai3.0.0-beta.593.0.66

ai + @ai-sdk/react are pinned to a single resolved ai version to avoid a dual-version UIMessagePart type clash.

Test plan

  • tsc --noEmit clean (verified locally)
  • Vercel preview build green (real build gate — local build needs ARWEAVE_KEY etc. that aren't in my shell)
  • On the preview, open /chat, send "What artists do i have in the local filesystem you have access to?" → confirm the bashTool result renders (no AI_TypeValidationError, no stall at "Using bash")
  • Smoke the legacy /chat/[roomId] path to confirm no regression from the beta→stable bump

🤖 Generated with Claude Code


Summary by cubic

Move ai and @ai-sdk/* from beta to stable to fix the schema mismatch that stalled workflow chat at “Using bash” and hid tool outputs. Stable events include optional providerMetadata, so tool results now render.

  • Dependencies
    • Core: ai 6.0.0-beta.99 → 6.0.165, @ai-sdk/react 3.0.0-beta.99 → 3.0.167
    • Providers: @ai-sdk/anthropic → 3.0.80, @ai-sdk/google → 3.0.80, @ai-sdk/openai → 3.0.66
    • ai and @ai-sdk/react share the same resolved ai version to avoid type clashes