Skip to content

Commit af62fed

Browse files
authored
Move Shaka settings to the .agents/shaka layout (#874)
* Repair old Shaka paths before the layout upgrade * Move Shaka settings to the .agents/shaka layout
1 parent 14cd65d commit af62fed

12 files changed

Lines changed: 27 additions & 23 deletions

File tree

‎.agents/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ This directory is this repository's contract with the [Shaka](https://github.com
55

66
| Path | What it is |
77
| --- | --- |
8-
| `agent-workflow.yml` | The typed contract for Shaka-specific workflow policy. Shaka reads it from the trusted default branch, so a pull request cannot grant itself authority by editing its own copy. Live GitHub settings remain authoritative. |
9-
| `bin/` | Standard wrappers for this repository's setup, validation, and tests. Their fixed names form the portable command interface; they run from the checkout under review, so a pull request that edits one changes what validation executes. |
8+
| `shaka/config.yml` | The typed contract for Shaka-specific workflow policy. Shaka reads it from the trusted default branch, so a pull request cannot grant itself authority by editing its own copy. Live GitHub settings remain authoritative. |
9+
| `shaka/bin/` | Standard wrappers for this repository's setup, validation, and tests. Their fixed names form the portable command interface; they run from the checkout under review, so a pull request that edits one changes what validation executes. |
1010

11-
Edit `agent-workflow.yml` by hand, then validate it with `shaka seam check --root . --local`.
11+
Edit `shaka/config.yml` by hand, then validate it with `shaka seam check --root . --local`.
1212
Validation is strict: unknown keys, unsafe paths, and missing or non-executable
1313
scripts fail rather than being ignored. Keep human-only constraints in `AGENTS.md`;
1414
this directory holds only typed policy.

‎.agents/bin/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ is absent means that capability is n/a in this repository.
99
| --- | --- | --- |
1010
| `setup` | Install dependencies | `bin/conductor-exec bin/setup --skip-server` |
1111
| `validate` | Full CI-equivalent validation | `bin/conductor-exec bin/ci` |
12-
| `test` | Full-suite compatibility entry point during seam adoption | delegates to `.agents/bin/validate` |
12+
| `test` | Full-suite compatibility entry point during seam adoption | delegates to `validate` |
1313
| `validate-local` | Fast pre-review validation | `bin/conductor-exec bin/rubocop` |
1414
| `lint` | Lint / format | `bin/conductor-exec yarn lint:eslint` |
1515
| `build` | Build / type-check | generate React on Rails packs, build ReScript, then `bin/conductor-exec yarn build:test` |
1616
| `docs` | Docs checks | n/a |
1717
| `ci-detect` | CI change detector | n/a |
1818

19-
Non-command policy lives in [`../agent-workflow.yml`](../agent-workflow.yml).
19+
Non-command policy lives in [`../shaka/config.yml`](../shaka/config.yml).

‎.agents/bin/setup‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.agents/bin/test‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.agents/bin/validate-local‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.agents/shaka/bin/setup‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init.
3+
set -euo pipefail
4+
root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_COMMON_DIR -u GIT_PREFIX -u GIT_CEILING_DIRECTORIES git -C "$(dirname -- "$0")" rev-parse --show-toplevel) || exit $?
5+
cd "$root"
6+
exec bin/conductor-exec bin/setup --skip-server "$@"

‎.agents/shaka/bin/test‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init.
3+
set -euo pipefail
4+
root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_COMMON_DIR -u GIT_PREFIX -u GIT_CEILING_DIRECTORIES git -C "$(dirname -- "$0")" rev-parse --show-toplevel) || exit $?
5+
cd "$root"
6+
exec .agents/shaka/bin/validate "$@"
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22
# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init.
33
set -euo pipefail
4-
cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)"
4+
root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_COMMON_DIR -u GIT_PREFIX -u GIT_CEILING_DIRECTORIES git -C "$(dirname -- "$0")" rev-parse --show-toplevel) || exit $?
5+
cd "$root"
56

67
renderer_port="${RENDERER_PORT:-3800}"
78
renderer_host="${RENDERER_HOST:-localhost}"

‎.agents/shaka/bin/validate-local‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init.
3+
set -euo pipefail
4+
root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_COMMON_DIR -u GIT_PREFIX -u GIT_CEILING_DIRECTORIES git -C "$(dirname -- "$0")" rev-parse --show-toplevel) || exit $?
5+
cd "$root"
6+
exec bin/conductor-exec bin/rubocop "$@"

0 commit comments

Comments
 (0)