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
5 changes: 5 additions & 0 deletions .changeset/ai-sdk-remove-server-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@gemstack/ai-sdk": minor
---

Remove the relocated Rudder bindings from the engine: the `/server` provider, the `make:agent` scaffolder, and the `ai:eval` CLI command, plus the `@rudderjs/core` and `@rudderjs/console` optional peers. These now live in `@rudderjs/ai` (Rudder users pick them up there unchanged). The framework-agnostic engine no longer carries any `@rudderjs/*` peer dependency for these paths. Closes the ai-sdk/Rudder decouple epic.
5 changes: 3 additions & 2 deletions packages/ai-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ The core stands alone: `@gemstack/ai-sdk`'s only required runtime dependency is
- `ConversationStore`, `UserMemory`, `BudgetStorage` ship in-memory defaults; bring your own backend by implementing the interface.
- `CacheAdapter` (the suspendable run stores) and `StorageAdapter` (`ImageGenerator`/`AudioGenerator` `.store()`) are caller-supplied — no storage/cache package is bundled.

The ORM-backed implementations of those contracts (Prisma/Drizzle/native via `@rudderjs/orm`) are a Rudder binding and live in [`@rudderjs/ai`](https://www.npmjs.com/package/@rudderjs/ai) (`@rudderjs/ai/conversation-orm`, `/memory-orm`, `/budget-orm`, `/memory-embedding`), not here. A few remaining opt-in subpaths still carry optional Rudder peers (`/server` → `@rudderjs/core`; doctor + `make:agent` → `@rudderjs/console`). The version line stays `0.x` while the API settles toward `1.0.0`.
The engine is now fully framework-agnostic: it has **no `@rudderjs/*` peer dependency**. The ORM-backed implementations of those contracts (Prisma/Drizzle/native), the `/server` provider, and the `make:agent` scaffolder and `ai:eval` CLI command are all Rudder bindings and live in [`@rudderjs/ai`](https://www.npmjs.com/package/@rudderjs/ai) (`@rudderjs/ai/conversation-orm`, `/memory-orm`, `/budget-orm`, `/memory-embedding`, plus the provider and CLI), not here. Rudder users pick them up there unchanged. The version line stays `0.x` while the API settles toward `1.0.0`.

## Subpath exports

| Subpath | What it provides |
|---|---|
| `.` | Core: `Agent`, `tool`, streaming, middleware, facade |
| `./server` | The server provider entry |
| `./node` | Node-only entry |
| `./computer-use` | Computer-use tool + executor |
| `./eval` | Eval framework (`evalSuite`, metrics, reporters) |
Expand All @@ -47,6 +46,8 @@ The ORM-backed implementations of those contracts (Prisma/Drizzle/native via `@r
> **Moved in `0.3.0`:** the MCP bridge (`mcpClientTools` / `mcpServerFromAgent`), previously the `./mcp` subpath, is now its own package, [`@gemstack/ai-mcp`](https://github.com/gemstack-land/gemstack/tree/main/packages/ai-mcp). Update `@gemstack/ai-sdk/mcp` imports to `@gemstack/ai-mcp` and move the `@modelcontextprotocol/sdk` peer there.
>
> **Moved to `@rudderjs/ai`:** the ORM-backed stores (`./conversation-orm`, `./memory-orm`, `./budget-orm`, `./memory-embedding`) coupled the engine to `@rudderjs/orm`, so they now live in [`@rudderjs/ai`](https://www.npmjs.com/package/@rudderjs/ai) under the same subpath names. Update `@gemstack/ai-sdk/conversation-orm` imports to `@rudderjs/ai/conversation-orm` (etc.). They implement the same `ConversationStore` / `UserMemory` / `BudgetStorage` contracts, still exported from here.
>
> **Moved to `@rudderjs/ai`:** the `/server` provider (which carried a `@rudderjs/core` peer) and the `make:agent` scaffolder + `ai:eval` CLI command (which carried a `@rudderjs/console` peer) are Rudder bindings, so they now live in [`@rudderjs/ai`](https://www.npmjs.com/package/@rudderjs/ai). The engine no longer ships the `./server` / `./commands/*` subpaths or any `@rudderjs/*` peer.

## License

Expand Down
22 changes: 0 additions & 22 deletions packages/ai-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,6 @@
"import": "./dist/node/index.js",
"types": "./dist/node/index.d.ts"
},
"./server": {
"import": "./dist/server/index.js",
"types": "./dist/server/index.d.ts"
},
"./commands/make-agent": {
"import": "./dist/commands/make-agent.js",
"types": "./dist/commands/make-agent.d.ts"
},
"./commands/ai-eval": {
"import": "./dist/commands/ai-eval.js",
"types": "./dist/commands/ai-eval.d.ts"
},
"./observers": {
"import": "./dist/observers.js",
"types": "./dist/observers.d.ts"
Expand Down Expand Up @@ -99,17 +87,9 @@
"zod": "^4.0.0"
},
"peerDependencies": {
"@rudderjs/console": "^1.4.3",
"@rudderjs/core": "^1.13.3",
"react": ">=19.2.0"
},
"peerDependenciesMeta": {
"@rudderjs/console": {
"optional": true
},
"@rudderjs/core": {
"optional": true
},
"react": {
"optional": true
}
Expand All @@ -122,8 +102,6 @@
"openai": ">=4.70.0"
},
"devDependencies": {
"@rudderjs/console": "^1.4.3",
"@rudderjs/core": "^1.13.3",
"@types/node": "^20.0.0",
"@types/react": "^19.2.0",
"react": "^19.2.0",
Expand Down
Loading
Loading