File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
.github/workflows/scripts Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -116,11 +116,15 @@ build_variant() {
116116 plan_norm=$( tr -d ' \r' < " $plan_tpl " )
117117 # Extract script command from YAML frontmatter
118118 script_command=$( printf ' %s\n' " $plan_norm " | awk -v sv=" $script " ' /^[[:space:]]*' " $script " ' :[[:space:]]*/ {sub(/^[[:space:]]*' " $script " ' :[[:space:]]*/, ""); print; exit}' )
119-
120119 if [[ -n $script_command ]]; then
120+ # Always prefix with .specify/ for plan usage
121+ script_command=" .specify/$script_command "
121122 tmp_file=$( mktemp)
122123 # Replace {SCRIPT} placeholder with the script command and __AGENT__ with agent name
123- sed " s|{SCRIPT}|${script_command} |g" " $plan_tpl " | tr -d ' \r' | sed " s|__AGENT__|${agent} |g" > " $tmp_file " && mv " $tmp_file " " $plan_tpl "
124+ substituted=$( sed " s|{SCRIPT}|${script_command} |g" " $plan_tpl " | tr -d ' \r' | sed " s|__AGENT__|${agent} |g" )
125+ # Strip YAML frontmatter from plan template output (keep body only)
126+ stripped=$( printf ' %s\n' " $substituted " | awk ' BEGIN{fm=0;dash=0} /^---$/ {dash++; if(dash==1){fm=1; next} else if(dash==2){fm=0; next}} {if(!fm) print}' )
127+ printf ' %s\n' " $stripped " > " $plan_tpl "
124128 else
125129 echo " Warning: no plan-template script command found for $script in YAML frontmatter" >&2
126130 fi
Original file line number Diff line number Diff line change 11---
22description : Create or update the feature specification from a natural language feature description.
33scripts :
4- sh : .specify/ scripts/bash/create-new-feature.sh --json "{ARGS}"
5- ps : .specify/ scripts/powershell/create-new-feature.ps1 -Json "{ARGS}"
4+ sh : scripts/bash/create-new-feature.sh --json "{ARGS}"
5+ ps : scripts/powershell/create-new-feature.ps1 -Json "{ARGS}"
66---
77
88Given the feature description provided as an argument, do this:
Original file line number Diff line number Diff line change 11---
22description : Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
33scripts :
4- sh : .specify/ scripts/bash/check-task-prerequisites.sh --json
5- ps : .specify/ scripts/powershell/check-task-prerequisites.ps1 -Json
4+ sh : scripts/bash/check-task-prerequisites.sh --json
5+ ps : scripts/powershell/check-task-prerequisites.ps1 -Json
66---
77
88Given the context provided as an argument, do this:
Original file line number Diff line number Diff line change 11---
22description : " Implementation plan template for feature development"
33scripts :
4- sh : .specify/ scripts/bash/update-agent-context.sh __AGENT__
5- ps : .specify/ scripts/powershell/update-agent-context.ps1 -AgentType __AGENT__
4+ sh : scripts/bash/update-agent-context.sh __AGENT__
5+ ps : scripts/powershell/update-agent-context.ps1 -AgentType __AGENT__
66---
77
88# Implementation Plan: [ FEATURE]
You can’t perform that action at this time.
0 commit comments