Skip to content

Update the embedded and installed re2js engine to 2.8.7 - #714

Open
willwashburn wants to merge 4 commits into
mainfrom
codex/patch-re2js
Open

willwashburn wants to merge 4 commits into
mainfrom
codex/patch-re2js

Conversation

@willwashburn

@willwashburn willwashburn commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Update the installed and embedded re2js engines to 2.8.7 on main. Drop both Flows SDK overrides now that the published surface 3.0.0 declares the matching relay-helpers peer and ai-hist dependency. Refresh the SDK Bun lock from the current manifest.

The SDK build, typecheck, embed generator check and named regex gate tests passed. Regenerating the npm lock after removing both overrides produced no diff. npm ls showed a single copy each of ai-hist and relay-helpers. Bun 1.4.0 accepted the regenerated lock with --frozen-lockfile.

The existing 3.0.0 Linux artifact failure also reproduces on main. #715 tracks native extension compatibility and the prerequisite human review before changing the runtime’s trusted artifact pin.


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


Summary by cubic

Updates the SDK's re2js dependency and embedded regex engine to 2.8.7, keeping named regex gates executing on the same code as the installed package. Syncs the npm and Bun lockfiles and drops the package.json overrides now satisfied by @relayflows/surface 3.0.0.

  • re2js 2.8.7 requires Node >= 20; SDKs on Node 18 should upgrade first.

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

View guided diff Turn on auto-fix

@willwashburn willwashburn added the merge-train:hold Hold merge train entry pending an explicit blocker resolution label Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The SDK updates its re2js dependency and embedded RE2JS version from 2.8.6 to 2.8.7. It replaces the embedded Base64 payload and removes overrides for @relayfile/relay-helpers and ai-hist under @relayflows/surface.

Changes: SDK Dependency Updates

Layer / File(s) Summary
Update SDK dependencies
packages/sdk/package.json, packages/sdk/src/re2js-embedded.ts
The re2js dependency and embedded version change from 2.8.6 to 2.8.7. The embedded payload is replaced. The overrides for @relayfile/relay-helpers and ai-hist under @relayflows/surface are removed.

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

Change: Other

Possibly related PRs

Suggested reviewers: khaliqgant

Merge Risk: Minimal · up to a66e6 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: updating the installed and embedded re2js engine to 2.8.7. The raw summary confirms the version bump in packages/sdk/package.json and packages/sdk/src/re2js-embedded.t…
Description check Passed The description relates directly to the changeset. It states the re2js update to 2.8.7 for installed and embedded engines, the removal of both Flows SDK overrides, and the Bun lockfile refresh. It als…
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 main change: updating the installed and embedded re2js engine to 2.8.7. The raw summary confirms the version bump in packages/sdk/package.json and packages/sdk/src/re2js-embedded.ts. The title does not mention the removed overrides, but it does not need to cover every detail.

Full details: Description check

Explanation

The description relates directly to the changeset. It states the re2js update to 2.8.7 for installed and embedded engines, the removal of both Flows SDK overrides, and the Bun lockfile refresh. It also gives build, typecheck, and test results, which match the summarized changes.

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 SDK with care
A newer RE2JS hops in there
Its bundled payload takes a leap
Two overrides leave the package heap
The carrots crunch; the tests can run

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: 839353e8-895d-4df4-a738-3fd92cf1d49f
Commits

Reviewing files that changed from the base of the PR and between b4aa9a0 and a66e636.

Files ignored due to path filters: 2

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

  • packages/sdk/package.json
Files with no reviewable changes: 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T06:11:53.699046Z b4aa9a0 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.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · This PR appears safe to merge; no actionable new defects were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no actionable new defects were found.

Summary

Updates the installed and embedded re2js engine to 2.8.7.

  • Named regex gates use re2js 2.8.7 in both execution paths.
  • SDK installs use the surface package’s matching dependency versions.

Reviews (3) · Last reviewed commit: "Merge branch 'main' into codex/patch-re2..." · Reviewed by Greptile

@willwashburn

Copy link
Copy Markdown
Member Author

The Linux artifact check failed in 9 SDK cases across 5 test files. The Babysitter extension declares a 2.x compatibility range, and the default SDK/Surface runtime on the base commit is 3.0.0. I reproduced the same refusal in a clean worktree at the unchanged 3.0.0 release commit 03c53e1.

Running npm ci --ignore-scripts, npm run build, and ./node_modules/.bin/vitest run tests/babysitter-catalog-export.test.ts under packages/sdk produced 13 passes and one failure: “babysitter requires surface ^2.0.22; this runtime has 3.0.0.” The two embedded-regex tests pass on the security branch. The native hosted runner pins the independently reviewed extension ref, bundle digest and manifest hash. Migrating that artifact for SDK 3 is separate release work.

Linux job log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-train:hold Hold merge train entry pending an explicit blocker resolution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant