💫 Toolkit to help you get started with SDD or any other process!
Cleanup
Den Delimarsky 🌺d90cc167860e
diff --git a/.github/workflows/scripts/create-release-packages.sh b/.github/workflows/scripts/create-release-packages.shindex 84eae5475..d45f33e91 100644--- a/.github/workflows/scripts/create-release-packages.sh+++ b/.github/workflows/scripts/create-release-packages.sh@@ -25,7 +25,7 @@ fiecho "Building release packages for $NEW_VERSION"-rm -rf sdd-package-base* sdd-*-package-* spec-kit-template-*-${NEW_VERSION}.zip || true+rm -rf sdd-package-base* sdd-*-package-* spec-kit-template-*-"${NEW_VERSION}".zip || truerewrite_paths() {sed -E \@@ -119,7 +119,6 @@ build_variant() {if [[ -n $script_command ]]; then# Always prefix with .specify/ for plan usagescript_command=".specify/$script_command"- tmp_file=$(mktemp)# Replace {SCRIPT} placeholder with the script command and __AGENT__ with agent namesubstituted=$(sed "s|{SCRIPT}|${script_command}|g" "$plan_tpl" | tr -d '\r' | sed "s|__AGENT__|${agent}|g")# Strip YAML frontmatter from plan template output (keep body only)@@ -129,6 +128,11 @@ build_variant() {echo "Warning: no plan-template script command found for $script in YAML frontmatter" >&2fifi+ # NOTE: We substitute {ARGS} internally. Outward tokens differ intentionally:+ # * Markdown/prompt (claude, copilot, cursor, opencode): $ARGUMENTS+ # * TOML (gemini, qwen): {{args}}+ # This keeps formats readable without extra abstraction.+case $agent inclaude)mkdir -p "$base_dir/.claude/commands"@@ -159,17 +163,18 @@ build_variant() {ALL_AGENTS=(claude gemini copilot cursor qwen opencode)ALL_SCRIPTS=(sh ps)+norm_list() {# convert comma+space separated -> space separated unique while preserving order of first occurrencetr ',\n' ' ' | awk '{for(i=1;i<=NF;i++){if(!seen[$i]++){printf((out?" ":"") $i)}}}END{printf("\n")}'}validate_subset() {- local type=$1; shift; local -n allowed=$1; shift; local items=($@)+ local type=$1; shift; local -n allowed=$1; shift; local items=("$@")local ok=1for it in "${items[@]}"; dolocal found=0- for a in "${allowed[@]}"; do [[ $it == $a ]] && { found=1; break; }; done+ for a in "${allowed[@]}"; do [[ $it == "$a" ]] && { found=1; break; }; doneif [[ $found -eq 0 ]]; thenecho "Error: unknown $type '$it' (allowed: ${allowed[*]})" >&2ok=0@@ -179,17 +184,17 @@ validate_subset() {}if [[ -n ${AGENTS:-} ]]; then- AGENT_LIST=($(printf '%s' "$AGENTS" | norm_list))+ mapfile -t AGENT_LIST < <(printf '%s' "$AGENTS" | norm_list)validate_subset agent ALL_AGENTS "${AGENT_LIST[@]}" || exit 1else- AGENT_LIST=(${ALL_AGENTS[@]})+ AGENT_LIST=("${ALL_AGENTS[@]}")fiif [[ -n ${SCRIPTS:-} ]]; then- SCRIPT_LIST=($(printf '%s' "$SCRIPTS" | norm_list))+ mapfile -t SCRIPT_LIST < <(printf '%s' "$SCRIPTS" | norm_list)validate_subset script ALL_SCRIPTS "${SCRIPT_LIST[@]}" || exit 1else- SCRIPT_LIST=(${ALL_SCRIPTS[@]})+ SCRIPT_LIST=("${ALL_SCRIPTS[@]}")fiecho "Agents: ${AGENT_LIST[*]}"@@ -202,4 +207,4 @@ for agent in "${AGENT_LIST[@]}"; dodoneecho "Archives:"-ls -1 spec-kit-template-*-${NEW_VERSION}.zip+ls -1 spec-kit-template-*-"${NEW_VERSION}".zip