Conversation
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/browser size report |
|
@launchdarkly/js-client-sdk size report |
|
@launchdarkly/js-client-sdk-common size report |
…ess tracker resumption (#1270)
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ 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.

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
mainto 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
trackerinstance to per-invocationcreateTracker()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-aiviaLDAIClient.agentGraph(), introducingAgentGraphDefinition/AgentGraphNodewith forward and reverse BFS traversal, validation (enabled/root/reachability/all agents enabled), and graph-level telemetry through a newLDGraphTracker(including resumption tokens).Refactors AI config tracking to be per-invocation: configs now expose
createTracker()instead of a long-livedtracker,LDAIConfigTrackergainsrunId, URL-saferesumptionToken, and at-most-once semantics for key metrics; addscreateTracker(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 (
LDJudgeResultwithscore/reasoning/metricKey+ sampled/error handling), updates examples accordingly, and adds comprehensive unit tests plus a newagent-graph-traversalexample workspace.Reviewed by Cursor Bugbot for commit ba595b1. Bugbot is set up for automated code reviews on this repo. Configure here.