[]
= "Worked example of source-level lifecycle hooks (see README.md)."
# Required install hook: runs on meld. The user is shown a disclosure and must
# approve (run/skip/abort) before the command runs. It builds the tooling the
# shipped skill relies on.
[[]]
= "build helper tooling"
= "bash ./bin/build.sh"
= "install"
# Optional install hook: also runs on meld, but the prompt offers only run/skip
# (no abort), so declining it never blocks the meld.
[[]]
= "warm an optional cache"
= "bash ./bin/build.sh --cache"
= true
= "install"
# Uninstall hook: runs on unmeld to tear down what the install hooks built.
[[]]
= "remove helper tooling"
= "bash ./bin/clean.sh"
= "uninstall"
# Update hook: the third lifecycle event. It runs at `mind upgrade`, in place
# of the install hooks above, once this source has already been melded and
# moves to a new commit -- never at meld (HOOK-120, HOOK-121). Declare one when
# a re-run of the install hook cannot express the change, e.g. a one-shot
# migration step (HOOK-123).
[[]]
= "migrate helper tooling"
= "bash ./bin/migrate.sh"
= "update"