Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .github/workflows/publish-ai-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:

- name: Build
if: steps.version-check.outputs.changed == 'true'
run: bun run build
working-directory: .
run: bunx turbo run build --filter='@supermemory/ai-sdk'

- name: Publish
if: steps.version-check.outputs.changed == 'true'
Expand Down
7 changes: 2 additions & 5 deletions bun.lock

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

13 changes: 13 additions & 0 deletions packages/ai-sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# supermemory AI SDK Utilities

> **Deprecated.** Use [`@supermemory/tools`](../tools) instead:
>
> ```ts
> import { supermemoryTools } from "@supermemory/tools/ai-sdk"
> ```
>
> As of 2.0.0 this package is a thin re-export of `@supermemory/tools/ai-sdk`, so it
> inherits that package's container-scoping semantics. **This is a behavior change:**
>
> - Passing both `projectId` and `containerTags` now throws instead of silently ignoring `containerTags`.
> - With no config, calls are scoped to `["sm_project_default"]`. Previously they were **unscoped**, i.e. searching and writing across every project. If you relied on that, pass `containerTags` explicitly.
> - `limit` is coerced, so a model emitting `"5"` is accepted rather than rejected.

Vercel AI SDK utilities for supermemory

## Installation
Expand Down
16 changes: 6 additions & 10 deletions packages/ai-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
{
"name": "@supermemory/ai-sdk",
"type": "module",
"version": "1.0.8",
"version": "2.0.0",
"description": "Deprecated: re-exports @supermemory/tools/ai-sdk",
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch --ignore-watch .turbo",
"check-types": "tsc --noEmit",
"test": "vitest",
"test:watch": "vitest --watch"
"check-types": "tsc --noEmit"
},
"dependencies": {
"@ai-sdk/openai": "^2.0.22",
"@ai-sdk/provider": "^2.0.0",
"ai": "^5.0.113",
"supermemory": "^3.0.0-alpha.26"
"@supermemory/tools": "^2.1.0"
},
"devDependencies": {
"@total-typescript/tsconfig": "^1.0.4",
"@types/bun": "^1.2.21",
"tsdown": "^0.14.2",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
"typescript": "^5.9.2"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index-Dk1U5LBS.d.ts",
"types": "./dist/index-iQkOjAt3.d.ts",
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
Expand Down
13 changes: 12 additions & 1 deletion packages/ai-sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
export * from "./tools"
/**
* @deprecated Use `@supermemory/tools/ai-sdk` instead. This package is now a
* thin re-export of it and will not receive further changes.
*
* Behavior change in 2.0.0 (inherited from `@supermemory/tools`):
* - Passing both `projectId` and `containerTags` now throws instead of silently
* ignoring `containerTags`.
* - With no config, calls are scoped to `["sm_project_default"]` instead of being
* unscoped across every project.
* - `limit`/`offset` are coerced, so a model emitting `"5"` is accepted.
*/
export * from "@supermemory/tools/ai-sdk"
181 changes: 0 additions & 181 deletions packages/ai-sdk/src/tools.test.ts

This file was deleted.

Loading
Loading