feat(minder): rename glab govern to glab minder

What does this MR do and why?

Renames glab govern to glab minder, keeping everything that earlier glab versions installed working.

  • glab minder audit sync, glab minder doctor and glab minder setup replace the glab govern commands.
  • glab govern stays as a hidden command with the same subcommands. The Claude Code hooks, OpenCode plugin and fallback periodic sync job that earlier versions installed run it, so they keep syncing without any action. It is excluded from glab mcp serve, so the tools are not listed twice.
  • Setup now installs hooks, a plugin and a job that run glab minder:
    • Claude Code: the old glab govern hooks are replaced rather than kept next to the new ones, so a session is not synced twice. Uninstall removes both.
    • OpenCode: a plugin installed by an earlier version is recognised by its first line and replaced. The file name stays glab-govern.js.
    • Fallback periodic sync: the job now runs minder audit sync --all. The launchd label and systemd unit names are unchanged, so setup replaces the existing job.
  • Doctor reports old hooks and an old job as working, with a prompt to run glab minder setup again.
  • govern.AddSubcommands adds audit, doctor and setup to a given command, so they can be added to another glab minder command, such as the one in !4179 (merged). The Go packages stay under internal/commands/govern for now.
  • Docs are regenerated under docs/source/minder.

How to set up and validate locally

  1. With a glab built from main, run glab govern setup.
  2. Build this branch and run glab govern doctor and glab minder doctor. Both work, and the hooks check says they run glab govern.
  3. Run glab minder setup. ~/.claude/settings.json now has one glab minder audit sync Stop hook and one SessionEnd hook, and no glab govern hooks.
  4. Run glab minder setup --uninstall. The hooks, plugin and job are removed.

Merge request reports

Loading
Loading