-
Notifications
You must be signed in to change notification settings - Fork 370
Add agent workflow binstub contract #825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| # Agent Workflow Scripts | ||
|
|
||
| <!-- Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init. --> | ||
|
|
||
| Standard entry points that portable agent-workflow skills call. A script that | ||
| is absent means that capability is n/a in this repository. | ||
| Standard entry points that portable agent-workflow skills call, so a skill can | ||
| run `.agents/bin/<name>` in any repo without knowing this repo's specific | ||
| commands. Each script is a thin, repo-owned wrapper. A script that is **absent** | ||
| means that capability is n/a here. | ||
|
|
||
| | Script | Purpose | This repo runs | | ||
| | --- | --- | --- | | ||
| | `setup` | Install dependencies | `bin/conductor-exec bin/setup --skip-server` | | ||
| | `validate` | Pre-push gate | `bin/conductor-exec bin/rubocop` | | ||
| | `test` | Run tests | `bin/conductor-exec bin/ci` | | ||
| | `lint` | Lint / format | `bin/conductor-exec yarn lint:eslint` | | ||
| | `build` | Build / type-check | generate React on Rails packs, build ReScript, then `bin/conductor-exec yarn build:test` | | ||
| | `setup` | Install dependencies | `exec bin/conductor-exec bin/setup --skip-server "$@"` | | ||
| | `validate` | Pre-push gate | `exec bin/conductor-exec bin/rubocop "$@"` | | ||
| | `test` | Run tests | `renderer_port="${RENDERER_PORT:-3800}" + if [[ -n "${RENDERER_PORT:-}" && -z "${RENDERER_URL:-}" ]]; then + export RENDERER_URL="http://localhost:$renderer_port" + fi + renderer_started=false + renderer_pid='' + cleanup_renderer() { + local status=$? + if [[ "$renderer_started" == true ]] && kill -0 "$renderer_pid" 2>/dev/null; then + kill "$renderer_pid" 2>/dev/null || true + wait "$renderer_pid" 2>/dev/null || true + fi + exit "$status" + } + trap cleanup_renderer EXIT + bin/conductor-exec bin/setup --skip-server + if nc -z localhost "$renderer_port" 2>/dev/null; then + echo "Reusing existing Node renderer on port $renderer_port." + else + bin/conductor-exec node renderer/node-renderer.js & + renderer_pid=$! + renderer_started=true + echo "Waiting for Node renderer (PID $renderer_pid) on port $renderer_port..." + for _ in $(seq 1 30); do + if ! kill -0 "$renderer_pid" 2>/dev/null; then + echo "Node renderer exited unexpectedly (see output above)." >&2 + exit 1 + fi + if nc -z localhost "$renderer_port" 2>/dev/null; then + break + fi + sleep 1 + done + if ! nc -z localhost "$renderer_port" 2>/dev/null; then + echo "Node renderer failed to start on port $renderer_port within 30 seconds (see output above)." >&2 + exit 1 + fi + fi + bin/conductor-exec bin/ci` | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This entry joins the multi-line test wrapper with literal There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Keep the test command in one table cell. The shell 🧰 Tools🪛 markdownlint-cli2 (0.23.2)[warning] 12-12: Spaces inside emphasis markers (MD037, no-space-in-emphasis) [warning] 12-12: Table column count (MD056, table-column-count) 🤖 Prompt for AI AgentsSource: Linters/SAST tools There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When GitHub renders this Markdown table, the unescaped AGENTS.md reference: AGENTS.md:L62-L66 Useful? React with 👍 / 👎. |
||
| | `lint` | Lint / format | `exec bin/conductor-exec yarn lint:eslint "$@"` | | ||
| | `build` | Build / type-check | `exec bin/conductor-exec yarn build:test "$@"` | | ||
| | `docs` | Docs checks | n/a | | ||
| | `ci-detect` | CI change detector | n/a | | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This row is corrupted: instead of a concise summary, it contains the entire multi-line contents of
.agents/bin/test(comments,trap,forloop, etc.) crammed into a single table cell with real newlines replaced by literal" + "separators. This is very likely a bug in the upstream generator (bin/push-downstream/agent-workflow-seam-doctor) rather than an intentional edit — every other row in this table stays a one-line command summary.Suggested fix, consistent with the other rows: