chiefwiggum 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chiefwiggum +13 -2
- package/package.json +1 -1
package/chiefwiggum
CHANGED
|
@@ -9,7 +9,7 @@ set -euo pipefail
|
|
|
9
9
|
# Autonomous coding agent CLI
|
|
10
10
|
###########################################
|
|
11
11
|
|
|
12
|
-
VERSION="1.
|
|
12
|
+
VERSION="1.2.1"
|
|
13
13
|
|
|
14
14
|
# =========================================
|
|
15
15
|
# COLORS
|
|
@@ -243,8 +243,19 @@ cmd_new() {
|
|
|
243
243
|
case $setup_choice in
|
|
244
244
|
0)
|
|
245
245
|
# From plan file
|
|
246
|
+
echo ""
|
|
247
|
+
# Show available plans
|
|
248
|
+
if [ -d "plans" ] && [ "$(ls -A plans/*.md 2>/dev/null)" ]; then
|
|
249
|
+
echo -e "${BOLD}Available plans:${NC}"
|
|
250
|
+
for f in plans/*.md; do
|
|
251
|
+
echo -e " ${CYAN}${f}${NC}"
|
|
252
|
+
done
|
|
253
|
+
echo ""
|
|
254
|
+
fi
|
|
255
|
+
# Use read -e for tab completion
|
|
246
256
|
local plan_path
|
|
247
|
-
|
|
257
|
+
read -e -p "Path to plan file [plans/plan.md]: " plan_path
|
|
258
|
+
plan_path="${plan_path:-plans/plan.md}"
|
|
248
259
|
if [ ! -f "$plan_path" ]; then
|
|
249
260
|
echo -e "${RED}Plan file not found: ${plan_path}${NC}"
|
|
250
261
|
exit 1
|