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
5 changes: 3 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ This repo uses two Mix projects side-by-side, not nested:

- `app/` — The CLI itself (`LinearCli` application, version-managed,
Burrito-released). All end-user features live here.
- `lib/`, `mix.exs` (root) — Repo-management tooling (`RepoTasks` project,
no deps). Mix tasks that operate on the repo as a whole: `mix lc`,
- `lib/`, `mix.exs` (root) — Repo-management tooling (`RepoTasks` project;
its own small deps, such as `req`, so a fresh clone needs `mix deps.get`
here as well as in `app/`). Mix tasks that operate on the repo as a whole: `mix lc`,
`mix setup`, `mix git_hooks`, `mix stokowski`, `mix container.build/publish`.
These tasks orchestrate other tools as child processes and know nothing
about `app/`'s internal modules.
Expand Down
4 changes: 2 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ erlang = "29.0.3"
elixir = "1.20.3"
python = "3.14.7"
uv = "0.12.18"
codex = "0.157.0"
claude = "2.1.282"
codex = "0.157.1"
claude = "2.1.283"
[env]
#ANTHROPIC_BASE_URL = "http://127.0.0.1:13305"
#ANTHROPIC_AUTH_TOKEN = "lemonade"
Expand Down
2 changes: 1 addition & 1 deletion vendor/stokowski
25 changes: 20 additions & 5 deletions workflow.claude.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,31 @@ workspace:
hooks:
after_create: |
git clone --depth 1 --recursive git@github.com:rubyists/linear-cli .
mix deps.get
mix setup
before_run: |
set -eu
git fetch origin main
changes="$(git status --porcelain)"
# Best-effort refresh onto origin/main. A failed hook fails the whole agent
# run, so only a rebase that cannot be cleaned up is fatal.
if ! git fetch origin main; then
echo "before_run: git fetch origin main failed; skipping rebase" >&2
exit 0
fi
if ! changes="$(git status --porcelain)"; then
echo "before_run: git status failed; skipping rebase" >&2
exit 0
fi
if [ -n "$changes" ]; then
echo "before_run: preserving uncommitted workspace changes; skipping rebase"
else
git rebase origin/main
exit 0
fi
if ! git rebase origin/main; then
echo "before_run: rebase onto origin/main failed; aborting it" >&2
if ! git rebase --abort; then
echo "before_run: git rebase --abort failed; the workspace needs manual repair" >&2
exit 1
fi
fi
exit 0
timeout_ms: 120000

# ---------------------------------------------------------------------------
Expand Down
25 changes: 20 additions & 5 deletions workflow.codex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,31 @@ workspace:
hooks:
after_create: |
git clone --depth 1 --recursive git@github.com:rubyists/linear-cli .
mix deps.get
mix setup
before_run: |
set -eu
git fetch origin main
changes="$(git status --porcelain)"
# Best-effort refresh onto origin/main. A failed hook fails the whole agent
# run, so only a rebase that cannot be cleaned up is fatal.
if ! git fetch origin main; then
echo "before_run: git fetch origin main failed; skipping rebase" >&2
exit 0
fi
if ! changes="$(git status --porcelain)"; then
echo "before_run: git status failed; skipping rebase" >&2
exit 0
fi
if [ -n "$changes" ]; then
echo "before_run: preserving uncommitted workspace changes; skipping rebase"
else
git rebase origin/main
exit 0
fi
if ! git rebase origin/main; then
echo "before_run: rebase onto origin/main failed; aborting it" >&2
if ! git rebase --abort; then
echo "before_run: git rebase --abort failed; the workspace needs manual repair" >&2
exit 1
fi
fi
exit 0
timeout_ms: 120000

# ---------------------------------------------------------------------------
Expand Down
25 changes: 23 additions & 2 deletions workflow.glean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,31 @@ hooks:
git clone --depth 1 --recursive git@github.com:rubyists/linear-cli .
mise trust
mise install
mise exec -- mix deps.get
mise exec -- mix setup
before_run: |
git fetch origin main
git rebase origin/main 2>/dev/null || git rebase --abort
# Best-effort refresh onto origin/main. A failed hook fails the whole agent
# run, so only a rebase that cannot be cleaned up is fatal.
if ! git fetch origin main; then
echo "before_run: git fetch origin main failed; skipping rebase" >&2
exit 0
fi
if ! changes="$(git status --porcelain)"; then
echo "before_run: git status failed; skipping rebase" >&2
exit 0
fi
if [ -n "$changes" ]; then
echo "before_run: preserving uncommitted workspace changes; skipping rebase"
exit 0
fi
if ! git rebase origin/main; then
echo "before_run: rebase onto origin/main failed; aborting it" >&2
if ! git rebase --abort; then
echo "before_run: git rebase --abort failed; the workspace needs manual repair" >&2
exit 1
fi
fi
exit 0
timeout_ms: 240000

claude:
Expand Down
29 changes: 20 additions & 9 deletions workflow.opus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,32 @@ workspace:
hooks:
after_create: |
git clone --depth 1 --recursive git@github.com:rubyists/linear-cli .
mix setup
<<<<<<< HEAD
mix deps.get
=======
mix setup
cd app && mix deps.get
>>>>>>> main
before_run: |
set -eu
git fetch origin main
changes="$(git status --porcelain)"
# Best-effort refresh onto origin/main. A failed hook fails the whole agent
# run, so only a rebase that cannot be cleaned up is fatal.
if ! git fetch origin main; then
echo "before_run: git fetch origin main failed; skipping rebase" >&2
exit 0
fi
if ! changes="$(git status --porcelain)"; then
echo "before_run: git status failed; skipping rebase" >&2
exit 0
fi
if [ -n "$changes" ]; then
echo "before_run: preserving uncommitted workspace changes; skipping rebase"
else
git rebase origin/main
exit 0
fi
if ! git rebase origin/main; then
echo "before_run: rebase onto origin/main failed; aborting it" >&2
if ! git rebase --abort; then
echo "before_run: git rebase --abort failed; the workspace needs manual repair" >&2
exit 1
fi
fi
exit 0
timeout_ms: 120000

# ---------------------------------------------------------------------------
Expand Down
Loading