Skip to content

fix(sdk): accept @agent-relay/sdk 18 as an optional peer - #709

Merged
khaliqgant merged 1 commit into
mainfrom
fix/sdk-accept-agent-relay-18
Nov 9, 2026
Merged

khaliqgant merged 1 commit into
mainfrom
fix/sdk-accept-agent-relay-18

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Why

The agent-relay 18.0.0 publish (relay run 42576272570) failed in Build & Version. relayflows-peer-compat.test.ts hit ERESOLVE because @relayflows/sdk@2.0.65 has the optional peer @agent-relay/sdk: >=12.3.1 <13 || >=15.1.0 <18. Nothing was published. This is the same failure #701 fixed for Relay 17.

Change

  • packages/sdk's optional peer @agent-relay/sdk is now >=12.3.1 <13 || >=15.1.0 <19. The lockfile's root entry matches.
  • @agent-relay/harness-driver stays at <18. Relay 18 retires the broker and no longer publishes harness-driver, so npm keeps resolving its frozen 17.x release. Relay's peer-compat test only checks the @agent-relay/sdk peer.

Compatibility with 18

  • From @agent-relay/sdk the SDK loads only RelaycastMessagingClient, from the package root.
  • In relay, packages/sdk/src/index.ts and packages/sdk/src/messaging/ are unchanged between v17.2.1 and the 18.0.0 candidate (11be40c92).

Validation

I packed this manifest and installed it beside a workspace @agent-relay/sdk, the same way relay's peer-compat test does:

  • @agent-relay/sdk 18.0.0 installs, and so does 17.2.1.
  • 19.0.0 still fails with ERESOLVE, which the test's second half requires.
  • Control: the old <18 range fails with ERESOLVE on 18.0.0, reproducing the release failure.

After merge

  1. Lockstep release 2.0.66 (package=all).
  2. Bump relay's @relayflows/sdk pin to 2.0.66, then rerun relay's 18.0.0 publish.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Widens @relayflows/sdk's optional peer range for @agent-relay/sdk from <18 to <19 so relay's 18.0.0 publish no longer fails with ERESOLVE.

  • @agent-relay/harness-driver stays at <18; relay 18 no longer publishes it, and npm keeps resolving the frozen 17.x release.
  • The SDK loads only RelaycastMessagingClient from the package root, unchanged between relay v17.2.1 and the 18.0.0 candidate.
  • Verified by packing the manifest and installing beside a workspace @agent-relay/sdk: 18.0.0 and 17.2.1 install, while 19.0.0 still fails as the peer-compat test requires.
  • After merge, release 2.0.66, bump relay's @relayflows/sdk pin, then rerun relay's 18.0.0 publish.

Written for commit d2cc1c3. Summary will update on new commits.

View guided diff Turn on auto-fix

The agent-relay 18.0.0 publish (relay run 42576272570) failed in Build &
Version: relayflows-peer-compat.test.ts hit ERESOLVE because
@relayflows/sdk@2.0.65 peers @agent-relay/sdk ">=12.3.1 <13 || >=15.1.0 <18".
Nothing was published.

@agent-relay/sdk now accepts <19. @agent-relay/harness-driver stays <18:
Relay 18 no longer publishes it, so the frozen 17.x release still resolves.

Compatibility: the SDK loads only RelaycastMessagingClient from the root of
@agent-relay/sdk. Relay's packages/sdk/src/index.ts and src/messaging/ are
unchanged between v17.2.1 and the 18.0.0 candidate (11be40c92).

Validation: packed this manifest and installed it beside a workspace
@agent-relay/sdk, as relay's peer-compat test does: 18.0.0 and 17.2.1
install; 19.0.0 still fails ERESOLVE; the old range fails ERESOLVE on 18.0.0.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T07:10:12.529915Z
We couldn’t complete this review. Comment @codex review to try again.
d2cc1c3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The @agent-relay/sdk peer dependency range now includes versions >=18 and <19. The existing >=12.3.1 <13 range is unchanged.

Changes: SDK Peer Dependency

Layer / File(s) Summary
Update SDK peer range
packages/sdk/package.json
The @agent-relay/sdk peer dependency range now allows versions >=15.1.0 and <19. The >=12.3.1 <13 range is unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

Suggested reviewers: actions-user

Merge Risk: Minimal · up to d2cc1

The peer range permits Relay 18 without an identified compatibility regression. The change is ready to merge after normal checks.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title names the change: widening the optional peer range so packages/sdk accepts @agent-relay/sdk 18. The diff changes only that range in packages/sdk/package.json, so the title matches the main c…
Description check Passed The description explains why the change is needed: the agent-relay 18.0.0 publish failed with ERESOLVE because of the optional peer range. It describes the range change, the unchanged harness-driver p…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: widening the optional peer range so packages/sdk accepts @agent-relay/sdk 18. The diff changes only that range in packages/sdk/package.json, so the title matches the main change. The 'fix(sdk)' prefix is a conventional-commit scope that fits the change.

Full details: Description check

Explanation

The description explains why the change is needed: the agent-relay 18.0.0 publish failed with ERESOLVE because of the optional peer range. It describes the range change, the unchanged harness-driver peer, compatibility checks, validation steps, and the post-merge plan. All of this relates directly to the changeset.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the range today,
Versions eighteen join the play.
The older range stays as before,
A tidy bound opens one more door.
Hop, hop, the package paths align!

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d90cf696-bbae-4bc5-be23-ac235446e5c1
Commits

Reviewing files that changed from the base of the PR and between 1887959 and d2cc1c3.

Files ignored due to path filters: 1

  • packages/sdk/package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 1

  • packages/sdk/package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@greptile-apps

greptile-apps Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge; no actionable issues were found.

Summary

Allows @agent-relay/sdk 18 as an optional peer.

  • The SDK accepts Agent Relay 18 as an optional peer.

khaliqgant explicitly defers the 2.0.66 release and Relay's pin update until after merge.

Reviews (1) · Last reviewed commit: "fix(sdk): accept @agent-relay/sdk 18 as ..." · Reviewed by Greptile

@khaliqgant
khaliqgant merged commit cf85dbf into main Nov 9, 2026
10 checks passed
@khaliqgant
khaliqgant deleted the fix/sdk-accept-agent-relay-18 branch November 9, 2026 17:48
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.

1 participant