Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Installed via `core.hooksPath` (see package.json "prepare" script).
# Rebuilds and re-stages the committed agents/*/tool/main.mjs and
# agents/*/scheduler.js bundles whenever staged src/ changes would make
# them stale, so `npm run build` never has to be run by hand.
set -euo pipefail

if git diff --cached --name-only --diff-filter=ACM | grep -q '^src/'; then
npm run build --silent
git add \
agents/issue-triage/tool/main.mjs \
agents/draft-pr/tool/main.mjs \
agents/issue-triage/scheduler.js \
agents/draft-pr/scheduler.js
fi
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
agents/*/scheduler.js
agents/*/tool/main.mjs
12 changes: 12 additions & 0 deletions agent-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ agents:
ref: main
path: agents/issue-triage

workspace:
provider: git
url: https://github.com/winterfx/engineering-agent-workflows.git
ref: main
target: workflow-repo

scheduler:
enabled: true
sandbox_policy: new
Expand Down Expand Up @@ -80,6 +86,12 @@ agents:
ref: main
path: agents/draft-pr

workspace:
provider: git
url: https://github.com/winterfx/engineering-agent-workflows.git
ref: main
target: workflow-repo

scheduler:
enabled: true
sandbox_policy: new
Expand Down
29 changes: 5 additions & 24 deletions agents/draft-pr/scheduler.js

Large diffs are not rendered by default.

Loading
Loading