Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5828e58f84 |
@@ -116,11 +116,15 @@ build_variant() {
|
|||||||
plan_norm=$(tr -d '\r' < "$plan_tpl")
|
plan_norm=$(tr -d '\r' < "$plan_tpl")
|
||||||
# Extract script command from YAML frontmatter
|
# Extract script command from YAML frontmatter
|
||||||
script_command=$(printf '%s\n' "$plan_norm" | awk -v sv="$script" '/^[[:space:]]*'"$script"':[[:space:]]*/ {sub(/^[[:space:]]*'"$script"':[[:space:]]*/, ""); print; exit}')
|
script_command=$(printf '%s\n' "$plan_norm" | awk -v sv="$script" '/^[[:space:]]*'"$script"':[[:space:]]*/ {sub(/^[[:space:]]*'"$script"':[[:space:]]*/, ""); print; exit}')
|
||||||
|
|
||||||
if [[ -n $script_command ]]; then
|
if [[ -n $script_command ]]; then
|
||||||
|
# Always prefix with .specify/ for plan usage
|
||||||
|
script_command=".specify/$script_command"
|
||||||
tmp_file=$(mktemp)
|
tmp_file=$(mktemp)
|
||||||
# Replace {SCRIPT} placeholder with the script command and __AGENT__ with agent name
|
# Replace {SCRIPT} placeholder with the script command and __AGENT__ with agent name
|
||||||
sed "s|{SCRIPT}|${script_command}|g" "$plan_tpl" | tr -d '\r' | sed "s|__AGENT__|${agent}|g" > "$tmp_file" && mv "$tmp_file" "$plan_tpl"
|
substituted=$(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)
|
||||||
|
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}')
|
||||||
|
printf '%s\n' "$stripped" > "$plan_tpl"
|
||||||
else
|
else
|
||||||
echo "Warning: no plan-template script command found for $script in YAML frontmatter" >&2
|
echo "Warning: no plan-template script command found for $script in YAML frontmatter" >&2
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
description: Create or update the feature specification from a natural language feature description.
|
description: Create or update the feature specification from a natural language feature description.
|
||||||
scripts:
|
scripts:
|
||||||
sh: .specify/scripts/bash/create-new-feature.sh --json "{ARGS}"
|
sh: scripts/bash/create-new-feature.sh --json "{ARGS}"
|
||||||
ps: .specify/scripts/powershell/create-new-feature.ps1 -Json "{ARGS}"
|
ps: scripts/powershell/create-new-feature.ps1 -Json "{ARGS}"
|
||||||
---
|
---
|
||||||
|
|
||||||
Given the feature description provided as an argument, do this:
|
Given the feature description provided as an argument, do this:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
|
description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
|
||||||
scripts:
|
scripts:
|
||||||
sh: .specify/scripts/bash/check-task-prerequisites.sh --json
|
sh: scripts/bash/check-task-prerequisites.sh --json
|
||||||
ps: .specify/scripts/powershell/check-task-prerequisites.ps1 -Json
|
ps: scripts/powershell/check-task-prerequisites.ps1 -Json
|
||||||
---
|
---
|
||||||
|
|
||||||
Given the context provided as an argument, do this:
|
Given the context provided as an argument, do this:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
description: "Implementation plan template for feature development"
|
description: "Implementation plan template for feature development"
|
||||||
scripts:
|
scripts:
|
||||||
sh: .specify/scripts/bash/update-agent-context.sh __AGENT__
|
sh: scripts/bash/update-agent-context.sh __AGENT__
|
||||||
ps: .specify/scripts/powershell/update-agent-context.ps1 -AgentType __AGENT__
|
ps: scripts/powershell/update-agent-context.ps1 -AgentType __AGENT__
|
||||||
---
|
---
|
||||||
|
|
||||||
# Implementation Plan: [FEATURE]
|
# Implementation Plan: [FEATURE]
|
||||||
|
|||||||
Reference in New Issue
Block a user