-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(@supermemory/tools): vercel ai sdk compatbile with v5 and v6 #628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(@supermemory/tools): vercel ai sdk compatbile with v5 and v6 #628
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
supermemory-app | d095bd2 | Dec 24 2025, 01:37 AM |
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Pull Request Review: Vercel AI SDK v5 and v6 CompatibilityThanks for working on backward compatibility support! This is an important improvement for users on different SDK versions. ✅ Strengths
🔴 Critical Issues1. Broken Test Suite (packages/tools/test/vercel.test.ts) The refactoring breaks existing tests. Tests import Action Required: Update tests to match new architecture - test 2. Missing Type Safety (src/vercel/index.ts:97, 133) Using 3. Unsafe Type Assertions (src/vercel/memory-prompt.ts:145-147, 154-158) Multiple
|
Merge activity
|
176485d to
d095bd2
Compare
Pull Request Review: Vercel AI SDK v5/v6 CompatibilityOverviewThis PR refactors ✅ Strengths1. Smart Backward Compatibility Strategy
2. Architecture ImprovementsThe refactor from middleware-based to wrapper-based approach (packages/tools/src/vercel/index.ts:63-177) improves:
3. Code Organization
|
| Category | Rating | Notes |
|---|---|---|
| Code Quality | ⭐⭐⭐⭐ | Good refactor, but needs type safety improvements |
| Test Coverage | ⭐⭐ | Tests don't cover new functionality |
| Documentation | ⭐⭐⭐ | Adequate inline docs, missing migration guide |
| Security | ⭐⭐⭐⭐⭐ | No new vulnerabilities introduced |
| Performance | ⭐⭐⭐⭐ | Minor string concatenation concern |
| Breaking Changes | Undocumented API changes |
🎬 Verdict
Conditional Approval - This is solid architectural work, but needs:
Required Before Merge:
- ✅ Add V3/SDK6 test coverage
- ✅ Document breaking changes in CHANGELOG
- ✅ Fix type safety issues (
anycasts)
Recommended Before Merge:
- Improve stream memory collection performance
- Add migration guide to README
- Remove unused
createStreamTransformfunction
Nice-to-Have (Can be follow-up PR):
- Add error callback for memory save failures
- Add telemetry/metrics for V2 vs V3 usage
Great work on the dual SDK support! The architecture is sound, just needs polish on testing and type safety before shipping. 🚀

No description provided.