chore(ai)!: drop @ai-sdk provider SDKs from framework, align spec with ai v7#2464
Merged
Conversation
…h ai v7 AI runtime moved to the cloud package (service-ai removed from open edition, ADR-0025 S2). Remove the now-dead @ai-sdk provider deps from @objectstack/cli and examples/app-todo (zero usages), and bump @objectstack/spec's `ai` peer/dev dependency ^6 -> ^7. Spec only re-exports canonical AI SDK types (all present in ai@7); `ai` stays an optional peer. Verified: spec build + 6650 spec tests green on ai@7; cli turbo build 54/54. First step of the ai v6->v7 / @ai-sdk v3->v4 migration (cloud + objectui follow). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 2 package(s): 93 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
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.
背景
AI 运行时能力已迁到 cloud 包(
service-ai从开源版移除,ADR-0025 S2)。因此 framework 不应再携带任何@ai-sdk/*provider SDK——本 PR 是 Vercel AI SDKv6→v7/ providersv3→v4大版本迁移的第一步(framework 侧)。改动
@objectstack/cli:删除死依赖@ai-sdk/anthropic|gateway|google|openai(cli/src零引用——它们当初只是为让 in-tree 的service-ai运行时require()而打包)。examples/app-todo:删除未使用的ai/@ai-sdk/gatewaydevDeps,以及指向已迁移文件的死脚本test:ai*/test:agent/test:llm等。@objectstack/spec:aipeer/dev 依赖^6 → ^7。协议仍 re-export 正准的消息/流类型(ModelMessage/TextStreamPart/ToolSet/FinishReason…),已逐一确认在ai@7存在;ai保持 optional peer,不强制安装。验证
@objectstack/specbuild ✅ + 6650 测试全绿(ai@7 下契约测试通过)ai@7类型 re-export 10/10 存在 ✅turbo build --filter=@objectstack/cli(含上游)54/54 成功 ✅合并本 PR 后,cloud 的
apps/objectos/apps/cloud(通过link:引用 framework cli)会暂时失去 provider 来源。配套的 cloud PR(service-ai适配器迁移 v7 + apps 声明 v4 provider)需随后跟进。objectui chatbot(useChatv7)再单独一个 PR。🤖 Generated with Claude Code