Wire rehearsal commands and tagged workflows

This commit is contained in:
2026-12-05 23:35:52 +00:00
parent 8caeeb3d78
commit 3524d8bbb6
32 changed files with 831 additions and 47 deletions

View File

@@ -14,6 +14,22 @@ case "$mode" in
*) usage ;;
esac
# A diagnostic ref carries its dispatch selector before the tool is available.
if [ "$mode" = tag ]; then
case "$value" in
releasekit-test/*)
diagnostic=${value#releasekit-test/}
selector=${diagnostic%%/*}
attempt=${diagnostic#*/}
case "$diagnostic" in */*) ;; *) echo "invalid diagnostic tag" >&2; exit 2 ;; esac
case "$attempt" in *[!0-9a-f]*|'') echo "invalid diagnostic attempt" >&2; exit 2 ;; esac
[ "${#attempt}" -eq 32 ] && [ -n "$selector" ] || { echo "invalid diagnostic tag" >&2; exit 2; }
mode=selector
value=$selector
;;
esac
fi
script_dir=$(CDPATH= cd "$(dirname "$0")" && pwd)
mapping=${RELEASEKIT_MODULE_MAP:-$script_dir/release-modules.tsv}
[ -f "$mapping" ] || { echo "module map not found: $mapping" >&2; exit 2; }