Skip to content

Commit cdc61ae

Browse files
committed
fix: architect commands should not have spec. prefix in release packages
The architect.* commands (architect.specify, architect.clarify, architect.init, architect.implement) are intentionally separate from the spec.* namespace and should be invoked as /architect.* not /spec.architect.*
1 parent d00934c commit cdc61ae

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/scripts/create-release-packages.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,15 @@ function Generate-Commands {
159159
$body = $body -replace '__AGENT__', $Agent
160160
$body = Rewrite-Paths -Content $body
161161

162+
# Determine output filename - architect commands don't get spec. prefix
163+
if ($name -like 'architect.*') {
164+
$outputName = $name
165+
} else {
166+
$outputName = "spec.$name"
167+
}
168+
162169
# Generate output file based on extension
163-
$outputFile = Join-Path $OutputDir "spec.$name.$Extension"
170+
$outputFile = Join-Path $OutputDir "$outputName.$Extension"
164171

165172
switch ($Extension) {
166173
'toml' {

.github/workflows/scripts/create-release-packages.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,22 @@ generate_commands() {
101101
# Apply other substitutions
102102
body=$(printf '%s\n' "$body" | sed "s/{ARGS}/$arg_format/g" | sed "s/__AGENT__/$agent/g" | rewrite_paths)
103103

104+
# Determine output filename - architect commands don't get spec. prefix
105+
local output_name
106+
if [[ $name == architect.* ]]; then
107+
output_name="$name"
108+
else
109+
output_name="spec.$name"
110+
fi
111+
104112
case $ext in
105113
toml)
106114
body=$(printf '%s\n' "$body" | sed 's/\\/\\\\/g')
107-
{ echo "description = \"$description\""; echo; echo "prompt = \"\"\""; echo "$body"; echo "\"\"\""; } > "$output_dir/spec.$name.$ext" ;;
115+
{ echo "description = \"$description\""; echo; echo "prompt = \"\"\""; echo "$body"; echo "\"\"\""; } > "$output_dir/$output_name.$ext" ;;
108116
md)
109-
echo "$body" > "$output_dir/spec.$name.$ext" ;;
117+
echo "$body" > "$output_dir/$output_name.$ext" ;;
110118
agent.md)
111-
echo "$body" > "$output_dir/spec.$name.$ext" ;;
119+
echo "$body" > "$output_dir/$output_name.$ext" ;;
112120
esac
113121
done
114122
}

0 commit comments

Comments
 (0)