Skip to content

feat(ai-sdk)!: remove relocated Rudder bindings (/server, make:agent, ai:eval) + drop @rudderjs/* peers#49

Merged
suleimansh merged 1 commit into
mainfrom
decouple/ai-sdk-remove-server-cli
Jun 27, 2026
Merged

feat(ai-sdk)!: remove relocated Rudder bindings (/server, make:agent, ai:eval) + drop @rudderjs/* peers#49
suleimansh merged 1 commit into
mainfrom
decouple/ai-sdk-remove-server-cli

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Final step of epic #35 (decouple @gemstack/ai-sdk from @rudderjs/*).

The /server provider, make:agent scaffolder, and ai:eval CLI command were already relocated to the Rudder side and now ship in published @rudderjs/ai@1.18.4. This PR deletes them from the engine and drops the associated optional peers, so the framework-agnostic engine no longer carries any @rudderjs/* peer dependency for these paths.

Removed

  • src/server/ (the /server provider) and the ./server export
  • src/commands/ (make-agent, ai-eval) and the ./commands/make-agent + ./commands/ai-eval exports
  • The CLI tests src/eval-cli.test.ts and src/eval-html.test.ts (imported the removed ai-eval CLI)
  • @rudderjs/core and @rudderjs/console from peerDependencies, peerDependenciesMeta, and devDependencies
  • The AiProvider test region in src/index.test.ts

Also

Verification

  • pnpm --filter @gemstack/ai-sdk build passes (no type errors)
  • Test suite green: 900 pass, 0 fail
  • grep -rn '@rudderjs' packages/ai-sdk/src (excluding queue-job.ts and *.test.ts) returns nothing

Breaking change

The ./server, ./commands/make-agent, and ./commands/ai-eval subpaths and the @rudderjs/core / @rudderjs/console peers are removed. Rudder users pick them up unchanged from @rudderjs/ai. Versioned as a minor bump while the package is on 0.x.

Note

src/queue-job.ts still dynamically imports @rudderjs/queue / @rudderjs/broadcast (a separate BYO feature seam) and is intentionally left untouched here; it will be handled by a follow-up issue. So the epic's literal grep -rn @rudderjs src is not fully empty yet.

Closes #39
Closes #40
Closes #41

… CLI and drop @rudderjs/* peers

The /server provider, make:agent scaffolder, and ai:eval CLI command were
relocated to the Rudder side and now ship in @rudderjs/ai@1.18.4. Delete them
from the engine along with the @rudderjs/core and @rudderjs/console optional
peers (and dev deps). The framework-agnostic engine no longer carries any
@rudderjs/* peer dependency for these paths. Illustrative @rudderjs/* names in
source doc-comments were rephrased to neutral wording.

src/queue-job.ts still dynamically imports @rudderjs/queue / @rudderjs/broadcast;
that is a separate BYO seam handled by a follow-up issue and is left untouched.
@suleimansh suleimansh added the enhancement New feature or request label Jun 27, 2026
@suleimansh suleimansh self-assigned this Jun 27, 2026
@suleimansh suleimansh merged commit 1b2ba93 into main Jun 27, 2026
1 check passed
@suleimansh suleimansh deleted the decouple/ai-sdk-remove-server-cli branch June 27, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

1 participant