chore(sync): defer upstream AI SDK v7 migration (dfbbfeb)#238
Merged
Conversation
Upstream dfbbfeb is a major AI SDK migration (ai ^6->^7, @ai-sdk/* v3/v4). It changes no src/runtime upstream, but b24ui's runtime imports `ai` (ChatMessages/ChatMessage/ChatPromptSubmit + utils/ai.ts) and ships a b24ui-only bx-assistant module with no upstream counterpart, so adopting v7 is a deliberate, separately-tested migration rather than a mechanical port. Deferred (ledger `skip`), consistent with #220/#194; b24ui stays on ai@6. Tracked for a future AI-SDK-v7 adoption task. Bookkeeping only. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream
dfbbfeb—chore(deps): migrate AI SDK to v7 (#6636)A major AI SDK migration:
ai^6→^7,@ai-sdk/anthropic^3→^4,@ai-sdk/gateway^3→^4,@ai-sdk/mcp^1→^2,@ai-sdk/vue^3→^4; docs/playground clients move from thenew Chat()class to theuseChat()composable; server routes move to the v7 streaming API (system→instructions,stepCountIs→isStepCount,.toUIMessageStreamResponse()→toUIMessageStream()+createUIMessageStreamResponse(),onFinish→onEnd). Nosrc/runtimechange upstream.Decision — skip / defer
This isn't a mechanical port, and it touches b24ui surfaces upstream doesn't:
ai—src/runtime/components/{ChatMessages,ChatMessage,ChatPromptSubmit}.vueandsrc/runtime/utils/ai.ts. Upstream changed no runtime file (its runtime was already v7-safe), but b24ui adoptingai@7requires verifying its runtime still typechecks against the v7 types — which the diff gives no guidance on.bx-assistantmodule —docs/modules/bx-assistant/(AssistantPanel.vue,runtime/server/api/search.ts,runtime/composables/useAssistant.ts) uses@ai-sdk/vue+streamTextwith no upstream counterpart; it needs a hand-authored, independently-tested migration.So b24ui stays on
ai@6for now; v7 adoption should be a deliberate, separately-tested pass (runtime types +bx-assistant+ lockfile regen + end-to-end chat/assistant test), not a diff replay. Consistent with prior deferrals (#220 InputRating, #194 Calendar). (Also: verbatim upstream.patchfetch is currently egress-blocked this session, so a faithful large-file replay isn't cleanly available.)Bookkeeping only — ledger
decision: skip, cursor advances; tracked for a future AI-SDK-v7 task..sync/log/dfbbfeb….md— rationale.sync/nuxt-ui.json— reconcile prior08bdab4→ PR chore(sync): no-op upstream reproduire workflow version pin (08bdab4) #237 /e92f0a24, adddfbbfebasskip🤖 Generated with Claude Code
Generated by Claude Code