Skip to content

feat(trails): declare native bun release binding#714

Merged
graphite-app[bot] merged 1 commit into
mainfrom
trl-938-make-release-publishemit-a-declared-seam-native-bun-binding
Jun 9, 2026
Merged

feat(trails): declare native bun release binding#714
graphite-app[bot] merged 1 commit into
mainfrom
trl-938-make-release-publishemit-a-declared-seam-native-bun-binding

Conversation

@galligan

@galligan galligan commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Context

Part of the Release Rules M3 follow-through for TRL-938.

This branch declares the Trails-owned Bun release path as a native release binding instead of leaving publish and registry behavior in root scripts.

What Changed

  • Added release binding descriptors for native and adapter release bindings.
  • Promoted the Bun publish and registry preflight implementation into @ontrails/trails/release.
  • Kept the existing root scripts as thin compatibility wrappers around the package-owned implementation.
  • Added focused release binding coverage and a branch-local changeset for @ontrails/trails.

Verification

  • Focused release binding, release smoke, MCP, publish, and registry tests passed.
  • bun run check
  • bun run test
  • bun run build
  • bun run wayfinder:dogfood
  • bun run dogfood:packed
  • bun run publish:check
  • gt submit --stack --draft --restack --no-edit --no-interactive --dry-run
  • Real Graphite submit pre-push passed: dead-code, format, lint, ast-grep, test, typecheck, Warden.

Known Warden warnings are the existing internal wayfind.* reachability warnings.

@linear-code

linear-code Bot commented Jun 9, 2026

Copy link
Copy Markdown

TRL-938

galligan commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • queue:merge - adds this PR to the back of the merge queue
  • queue:priority - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@galligan galligan marked this pull request as ready for review June 9, 2026 21:46

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@graphite-app

graphite-app Bot commented Jun 9, 2026

Copy link
Copy Markdown

Merge activity

## Context

Part of the Release Rules M3 follow-through for TRL-938.

This branch declares the Trails-owned Bun release path as a native release binding instead of leaving publish and registry behavior in root scripts.

## What Changed

- Added release binding descriptors for native and adapter release bindings.
- Promoted the Bun publish and registry preflight implementation into `@ontrails/trails/release`.
- Kept the existing root scripts as thin compatibility wrappers around the package-owned implementation.
- Added focused release binding coverage and a branch-local changeset for `@ontrails/trails`.

## Verification

- Focused release binding, release smoke, MCP, publish, and registry tests passed.
- `bun run check`
- `bun run test`
- `bun run build`
- `bun run wayfinder:dogfood`
- `bun run dogfood:packed`
- `bun run publish:check`
- `gt submit --stack --draft --restack --no-edit --no-interactive --dry-run`
- Real Graphite submit pre-push passed: dead-code, format, lint, ast-grep, test, typecheck, Warden.

Known Warden warnings are the existing internal `wayfind.*` reachability warnings.
@graphite-app graphite-app Bot force-pushed the trl-938-make-release-publishemit-a-declared-seam-native-bun-binding branch from 3eb63f4 to fd676c4 Compare June 9, 2026 21:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3eb63f412e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

import { tmpdir } from 'node:os';
import { join, relative, resolve } from 'node:path';

const REPO_ROOT = resolve(process.cwd());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Resolve the repo root independently of cwd

When the publish wrapper is invoked from anywhere other than the repository root (for example cd apps/trails && bun ../../scripts/publish.ts --check or an absolute path from CI), this now treats the current directory as the repo root and looks for package.json/.changeset there. The old script used its own location to anchor the root, so this promotion makes the compatibility entry point fail or inspect the wrong workspace set unless callers happen to cd to the root first.

Useful? React with 👍 / 👎.

@graphite-app graphite-app Bot merged commit fd676c4 into main Jun 9, 2026
9 checks passed
@graphite-app graphite-app Bot deleted the trl-938-make-release-publishemit-a-declared-seam-native-bun-binding branch June 9, 2026 21:52
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