feat(runtime): upgrade Vercel AI SDK to v7 - #1198
Merged
Merged
Conversation
This was referenced Jul 19, 2026
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.
Summary
Upgrade Maka from Vercel AI SDK 6 to AI SDK 7 while preserving the existing multi-provider model integration, Tool Calling Agent Loop, permission handling, context management, retries, and usage accounting.
This PR also removes obsolete archived sandbox development plans and updates the archive index.
Changes
aifrom6.0.185to7.0.31.@ai-sdk/openaito4.0.16@ai-sdk/anthropicto4.0.16@ai-sdk/googleto4.0.18@ai-sdk/cohereto4.0.11@ai-sdk/openai-compatibleto3.0.12LanguageModelV3toLanguageModelV4.createGoogleGenerativeAIwithcreateGoogle.system→instructionsstepCountIs()→isStepCount()fullStream→streamexperimental_repairToolCall→repairToolCallexperimental_context→runtimeContext/toolsContextprepareStepcomposition to AI SDK 7's carry-forward semantics.usagesemantics.image-datato V7filecontent parts.generateText()consumers in runtime, headless, and desktop.MockLanguageModelV4and V4 stream/usage contracts.Agent Loop compatibility
Maka continues to use AI SDK's
streamText()Tool Calling loop while retaining Maka-owned tool registration, permission checks, dynamic tool activation, context compaction, retries, persistence, and telemetry.The migration specifically verifies:
prepareStepmessage carry-forward;Validation
The following completed successfully:
npm cinpm run cleannpm run buildnpm run typechecknpm run lintnpm testgit diff --checkcua-driver v0.7.1-maka.2artifact integrity checkLive provider smoke tests
DeepSeek official API through the OpenAI-compatible adapter:
deepseek-chatdeepseek-v4-proKnown validation gaps
gpt-5.5request reached/v1/responses, but the provider returned HTTP 402 due to insufficient account quota.deepseek-v4-prois classified as a non-vision model. Maka therefore intentionally removes the screenshot-returningmaka_computertool before the request, so this model cannot satisfy the Computer Use qualification gate.npm cireports 4 audit findings (2 low and 2 high). No forced audit upgrade is included in this PR.Documentation cleanup
Remove obsolete archived sandbox implementation plans that no longer describe the current architecture, and update
docs/archive/README.mdaccordingly.