Repository navigation
pastor 0.3.0
Changed
- The README is a short introduction with a recorded demo; the full reference moved to
docs/manual.md.make demorecords the gifs with vhs.
Added
-
An agent skill,
skills/pastor/SKILL.md, for agents that drive pastor or
were dispatched by it.pastor --skillprints the copy built into the
binary, andpastor --helppoints agents at it. -
Plugins: a directory with a
pastor-plugin.tomlthat provides a connector,
event hooks, or both.pastor plugin install|link|uninstall|unlink|list|run
manages them; secrets live in~/.config/pastor/plugins/<id>/.envand are
redacted from the capped run logs under~/.local/state/pastor/runs/. -
Process connectors, poll and stream: a job names a plugin's connector with
[connector] use = "<id>", andpastor serveandpastor tickrun it.
A stream keeps a batch until a run has persisted it; a standalone
pastor tickrefuses stream jobs, which needpastor serve. -
Event hooks: a plugin's
[[events]]commands get each matching event on
stdin, one plugin at a time in event order, from a bounded queue. -
pastor machine listadds a HOST column (ssh target,local, or a command
machine's program) and a first row for the head itself, with its hostname
and local herdr version.--jsonis now{"head": {...}, "machines": [...]}
instead of a bare array. -
Without
pastor serve,pastor machine listprobes each machine directly
instead of printing the flock file with no live data. CHANNEL reads
probed,server down,unreachableorerror.pastor machine status
is folded into it. -
pastor machine listhas a PASTOR column after HERDR: the pastor installed
on each machine (-when there is none or it cannot be known), and the
head's own version on the head row. The head asks each machine once per
connect;--jsoncarries it aspastor_version. -
flock.tomlandpastor.tomlare reloaded whilepastor serveruns:
machines are added, removed or replaced and new timings and defaults apply
without a restart.pastor tickreloads them too. -
close_done_afterinpastor.toml(default15m,neverdisables it):
pastor closes a done task's pane after the grace period, removes the
worktree it created when it is clean, and keeps a dirty one with a note on
the task. Failed, blocked and stale tasks are never closed on their own.
Changed
pastor tickunderpastor servespawns its runs, so a slow connector no
longer holds the scheduler.- Item fields put into a job's
repoorbranchmay not hold path
separators,.., a leading-or control characters; such an item is
skipped and reported.
Removed
- The old spellings
pastor run,pastor list,pastor attach,
pastor reloadandpastor machine statusare gone. Use
pastor task run|list|attach,pastor job reloadand
pastor machine list.
Fixed
- A dispatch no longer fails when the new pane's shell is still starting.
herdr answeredagent.startwithagent_pane_busyabout a second after
workspace.create, and pastor failed the task at once; it now retries up
to 5 times, 500ms apart, and only then fails with herdr's message plus
after 5 attempts. pastor servenow also shuts down cleanly on SIGTERM and SIGHUP, not just
SIGINT (ctrl-c). systemd counts all three as a clean exit; the head used to
handle only SIGINT, so a SIGTERM (a plainkill,systemctl stopof a
wrapper, a stray signal) killed it silently, left the socket file behind,
and theRestart=on-failureunit never came back.- The
pastor.serviceandherdr.servicetemplates now use
Restart=alwaysinstead ofRestart=on-failure, so a head or herdr
server killed by a signal systemd treats as clean restarts too.
systemctl --user stopstill stops it for good. pastor task pruneno longer deletes a worktree task whose checkout may
still be on disk. It keeps the row, names it, and points at
pastor task close t-N --remove-worktree, which clears the recorded
workspace so the next prune takes it.--jsonreports the kept ids as
kept_worktrees.