feat(ai-sdk): re-export @supermemory/tools/ai-sdk - #1402
Closed
haroon0x wants to merge 1 commit into
Closed
Conversation
Deprecate the duplicated implementation in @supermemory/ai-sdk (2.0.0). The package now re-exports @supermemory/tools/ai-sdk and inherits its container-scoping and coercion semantics. Drops the stale deps that pinned @ai-sdk/provider@2 at the root, adds it back with the v3 range (its d.ts requires v3 types), and adds a turbo edge so check-types builds tools' dist first.
Member
|
Closing this one. Four PRs are open for the same consolidation, so we are keeping #1433 as the single thread since it also refreshes the tool surface. Worth flagging for whoever picks this up: |
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.
Deprecate the duplicated implementation in @supermemory/ai-sdk (2.0.0). The package now re-exports @supermemory/tools/ai-sdk and inherits its container-scoping and coercion semantics. Drops the stale deps that pinned @ai-sdk/provider@2 at the root, adds it back with the v3 range (its d.ts requires v3 types), and adds a turbo edge so check-types builds tools' dist first.
Closes #1247
@supermemory/ai-sdk 2.0.0 is now a thin re-export of @supermemory/tools/ai-sdk. The duplicated implementation (
src/tools.ts, ~150 lines, plus its tests) is deleted.What changed
projectIdandcontainerTagsnow throws; no config defaults to["sm_project_default"].ai,@ai-sdk/openai,supermemory,@ai-sdk/provider@^2.0.0) that forced provider 2.x to the root. Added@ai-sdk/provider@^3.0.0back on purpose: tools' types reference v3-only types, and pnpm resolves the tools peer to the lowest match, which broke consumer typechecks without it.@ai-sdk/providerpeer range is narrowed from^2.0.0 || ^3.0.0to^3.0.0. The^2side was never typecheckable against the published.d.ts..d.tsfilenames and anexportsblock with atypescondition (hashed names brokenodenexttype resolution).exports: falseis explained in the config.check-typesnow builds tools'distfirst via a Turbo edge.dist/**joined the build outputs so thatbuildis cacheable. The publish workflow builds from the repo root.Why 2.0.0
A major because the default scope and coercion semantics differ from 1.x. The export surface is a strict superset of 1.x.
Verified
nodenexttypecheck pass.ai-sdk+memory-graphcheck-types) pass under the pinned Bun1.3.6.