Skip to content

chore: AI SDK next release#1274

Merged
jsonbailey merged 9 commits intomainfrom
feat/ai-sdk-next-release
Apr 20, 2026
Merged

chore: AI SDK next release#1274
jsonbailey merged 9 commits intomainfrom
feat/ai-sdk-next-release

Conversation

@jsonbailey
Copy link
Copy Markdown
Contributor

@jsonbailey jsonbailey commented Apr 14, 2026

Overview

This is a temporary accumulator branch for AI SDK changes that will be released together in a single version bump.

Individual feature PRs are squash-merged into this branch. When all planned changes are in place, this branch will be rebase-merged into main to preserve the individual commit histories from each PR.

Do not merge until ready for release.

🤖 Generated with Claude Code


Note

Medium Risk
Introduces new agent-graph APIs and changes the tracking model from a single tracker instance to per-invocation createTracker() factories with resumable tokens, which is a behavior/API change across the SDK. While covered by extensive new tests, it touches core metrics/judge/chat flows and could affect event correlation or downstream integrations.

Overview
Adds agent graph support to @launchdarkly/server-sdk-ai via LDAIClient.agentGraph(), introducing AgentGraphDefinition/AgentGraphNode with forward and reverse BFS traversal, validation (enabled/root/reachability/all agents enabled), and graph-level telemetry through a new LDGraphTracker (including resumption tokens).

Refactors AI config tracking to be per-invocation: configs now expose createTracker() instead of a long-lived tracker, LDAIConfigTracker gains runId, URL-safe resumptionToken, and at-most-once semantics for key metrics; adds createTracker(token, context) to reconstruct trackers and adds tool-call tracking (trackToolCall(s)).

Updates judge/chat flows to use the new tracker model and a simplified judge output shape (LDJudgeResult with score/reasoning/metricKey + sampled/error handling), updates examples accordingly, and adds comprehensive unit tests plus a new agent-graph-traversal example workspace.

Reviewed by Cursor Bugbot for commit ba595b1. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25623 bytes
Compressed size limit: 29000
Uncompressed size: 125843 bytes

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 14, 2026

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179269 bytes
Compressed size limit: 200000
Uncompressed size: 830289 bytes

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 14, 2026

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31722 bytes
Compressed size limit: 34000
Uncompressed size: 113100 bytes

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 14, 2026

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 37607 bytes
Compressed size limit: 38000
Uncompressed size: 207149 bytes

@jsonbailey jsonbailey marked this pull request as ready for review April 20, 2026 18:07
@jsonbailey jsonbailey requested a review from a team as a code owner April 20, 2026 18:07
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 400d971. Configure here.

Comment thread packages/sdk/server-ai/src/LDAIConfigTrackerImpl.ts
Comment thread packages/sdk/server-ai/src/LDAIClientImpl.ts Outdated
@jsonbailey jsonbailey merged commit 9e84239 into main Apr 20, 2026
79 checks passed
@jsonbailey jsonbailey deleted the feat/ai-sdk-next-release branch April 20, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants