feat(trail-code): rename from graft and update to 0.24.1 #1

Merged
marti merged 1 commit from t3/rename-graft-to-trail-code into main 2026-10-23 11:51:27 +02:00
Owner

Summary

  • Rename the flake package to trail-code and build it from trailhq/Trail-Code, pinned to the release commit 7322d24 because upstream stopped tagging after v0.21.1.
  • Add a trail command next to the existing graft command. Both are wrappers around the same dist/bin/trail.js, with git on PATH.
  • Keep graft as an alias for trail-code so existing .#graft references still build. Add trail and graft apps and update the overlay to expose pkgs.trail-code and pkgs.graft.
  • Update sources.json to 0.24.1 with the new rev, hash and npmDepsHash.
  • Change update.sh to read the version from the npm latest dist-tag of @trailhq/trail-code and resolve the matching chore(release) commit. Add curl to its dependencies.
  • Update the Forgejo update workflow and README to match, including a smoke test for trail --version alongside graft --version.

Testing

  • Not run: nix flake check and nix build .#trail-code for this branch.
  • Not run: trail --version and graft --version against the built package.
  • Not run: ./update.sh end to end against the npm registry and upstream repo.
  • The scheduled update workflow runs the build and both version checks before it pushes to main.
## Summary - Rename the flake package to `trail-code` and build it from `trailhq/Trail-Code`, pinned to the release commit `7322d24` because upstream stopped tagging after v0.21.1. - Add a `trail` command next to the existing `graft` command. Both are wrappers around the same `dist/bin/trail.js`, with git on `PATH`. - Keep `graft` as an alias for `trail-code` so existing `.#graft` references still build. Add `trail` and `graft` apps and update the overlay to expose `pkgs.trail-code` and `pkgs.graft`. - Update `sources.json` to 0.24.1 with the new `rev`, `hash` and `npmDepsHash`. - Change `update.sh` to read the version from the npm `latest` dist-tag of `@trailhq/trail-code` and resolve the matching `chore(release)` commit. Add `curl` to its dependencies. - Update the Forgejo update workflow and README to match, including a smoke test for `trail --version` alongside `graft --version`. ## Testing - Not run: `nix flake check` and `nix build .#trail-code` for this branch. - Not run: `trail --version` and `graft --version` against the built package. - Not run: `./update.sh` end to end against the npm registry and upstream repo. - The scheduled update workflow runs the build and both version checks before it pushes to `main`.
- Package and default output are now trail-code, built from trailhq/Trail-Code. graft remains as an alias.
- Installs both `trail` and the legacy `graft` command, with git on PATH for each.
- Pins the source by commit rev in sources.json, since upstream stopped tagging after v0.21.1.
- update.sh takes the version from the npm `latest` dist-tag and finds the matching chore(release) commit.
- Update workflow builds .#trail-code and smoke-tests both `trail --version` and `graft --version`.
marti merged commit 5dd7cc9a27 into main 2026-10-23 11:51:27 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
flakes/trail-code!1
No description provided.