Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .changeset/ai-sdk-v7-framework.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'@objectstack/spec': minor
---

chore(ai): align framework with Vercel AI SDK v7 and stop bundling provider SDKs

AI runtime capabilities now live in the cloud package (service-ai removed from the
open edition, ADR-0025 S2). The framework therefore no longer ships any `@ai-sdk/*`
provider SDK:

- `@objectstack/cli` drops the dead `@ai-sdk/anthropic|gateway|google|openai`
dependencies (zero usages in `cli/src` — they were only bundled so the old
in-tree `service-ai` could `require()` them at runtime). Apps that boot the
closed AI now declare the providers themselves (cloud side).
- `examples/app-todo` drops the unused `ai` / `@ai-sdk/gateway` devDeps and the
dead `test:ai*` / `test:agent` / `test:llm` scripts (their test files were
migrated to cloud).
- `@objectstack/spec` bumps its `ai` peer/dev dependency from `^6` to `^7`. The
protocol still re-exports the canonical message/stream types (`ModelMessage`,
`TextStreamPart`, `ToolSet`, `FinishReason`, …) — all verified present in
`ai@7`; `ai` stays an OPTIONAL peer so installs are not forced.

First step of the AI SDK v6→v7 / providers v3→v4 upgrade. Cloud (service-ai
adapter migration + apps declaring v4 providers) and objectui (chatbot useChat
v7) follow in their own PRs.
9 changes: 0 additions & 9 deletions examples/app-todo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
"validate": "objectstack validate",
"typecheck": "tsc --noEmit",
"test": "objectstack test",
"test:ai": "tsx test/ai.test.ts",
"test:agent": "tsx test/ai-agent.test.ts",
"test:action": "tsx test/ai-action.test.ts",
"test:hitl": "tsx test/ai-hitl.test.ts",
"test:hitl:llm": "tsx test/ai-hitl-llm.test.ts",
"test:llm": "tsx test/ai-llm.test.ts",
"test:knowledge:llm": "tsx test/ai-knowledge-llm.test.ts",
"test:mcp": "tsx test/mcp-actions.test.ts"
},
"dependencies": {
Expand All @@ -38,9 +31,7 @@
"@objectstack/spec": "workspace:*"
},
"devDependencies": {
"@ai-sdk/gateway": "^3.0.139",
"@objectstack/cli": "workspace:*",
"ai": "^6.0.214",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"vitest": "^4.1.9"
Expand Down
4 changes: 0 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
"topicSeparator": " "
},
"dependencies": {
"@ai-sdk/anthropic": "^3.0.89",
"@ai-sdk/gateway": "^3.0.139",
"@ai-sdk/google": "^3.0.86",
"@ai-sdk/openai": "^3.0.77",
"@objectstack/account": "workspace:*",
"@objectstack/client": "workspace:*",
"@objectstack/cloud-connection": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
"devDependencies": {
"@types/node": "^26.0.1",
"@vitest/coverage-v8": "^4.1.9",
"ai": "^6.0.214",
"ai": "^7.0.4",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"vitest": "^4.1.9"
Expand All @@ -217,7 +217,7 @@
"zod": "^4.4.3"
},
"peerDependencies": {
"ai": "^6.0.0"
"ai": "^7.0.0"
},
"peerDependenciesMeta": {
"ai": {
Expand Down
114 changes: 33 additions & 81 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.