Skip to content

Commit 29af7a6

Browse files
justin808claude
andcommitted
Run wrappers from repo root; restore rbs:validate in build
Address review: wrappers cd to the repo root; .agents/bin/build runs bundle exec rake rbs:validate (validate=bin/ci-local remains the full gate). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4869c81 commit 29af7a6

8 files changed

Lines changed: 9 additions & 1 deletion

File tree

.agents/bin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ means that capability is n/a here.
1111
| `validate` | Pre-push gate (`--changed`/`--all`/`--fast`) | `bin/ci-local` |
1212
| `test` | Run tests | `(cd react_on_rails && bundle exec rake run_rspec)` + `pnpm run test` |
1313
| `lint` | Lint / format (`rake autofix` to fix) | `(cd react_on_rails && bundle exec rake lint)` |
14-
| `build` | Build / type-check | `pnpm run build` + `pnpm run type-check` |
14+
| `build` | Build / type-check | `pnpm run build` + `pnpm run type-check` + `rake rbs:validate` |
1515
| `docs` | Docs checks | `script/check-docs-sidebar` + `bin/check-links` |
1616
| `ci-detect` | CI change detector | `script/ci-changes-detector origin/main` |
1717

.agents/bin/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22
# Build and type-check.
33
set -euo pipefail
4+
cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
45
pnpm run build
56
pnpm run type-check
7+
( cd react_on_rails && bundle exec rake rbs:validate )

.agents/bin/ci-detect

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
22
# CI change detector (inspect suite routing). Optional base ref (default origin/main).
33
set -euo pipefail
4+
cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
45
exec script/ci-changes-detector "${1:-origin/main}"

.agents/bin/docs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22
# Docs checks (sidebar coverage + markdown links).
33
set -euo pipefail
4+
cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
45
script/check-docs-sidebar
56
bin/check-links

.agents/bin/lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
22
# Lint / format check. Fix with: (cd react_on_rails && bundle exec rake autofix)
33
set -euo pipefail
4+
cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
45
( cd react_on_rails && bundle exec rake lint )

.agents/bin/setup

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
22
# Install dependencies.
33
set -euo pipefail
4+
cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
45
exec script/bootstrap

.agents/bin/test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22
# Run tests (Ruby gem specs + JS).
33
set -euo pipefail
4+
cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
45
( cd react_on_rails && bundle exec rake run_rspec )
56
pnpm run test

.agents/bin/validate

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
22
# Pre-push gate. Flags pass through (--changed narrow, --all broad, --fast quick).
33
set -euo pipefail
4+
cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
45
exec bin/ci-local "$@"

0 commit comments

Comments
 (0)