chiefwiggum 1.2.0 → 1.2.3

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.
Files changed (2) hide show
  1. package/chiefwiggum +15 -4
  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.0.0"
12
+ VERSION="$(grep '"version"' "$(dirname "$(realpath "$0")")/package.json" 2>/dev/null | sed 's/.*"version": "\([^"]*\)".*/\1/' || echo "dev")"
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
- plan_path=$(ask_text "Path to plan file" "plans/plan.md")
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
@@ -747,10 +758,10 @@ cmd_install() {
747
758
  fi
748
759
 
749
760
  # Install globally
750
- echo "Running: npm install -g chiefwiggum"
761
+ echo "Running: npm install -g chiefwiggum@latest"
751
762
  echo ""
752
763
 
753
- if npm install -g chiefwiggum; then
764
+ if npm install -g chiefwiggum@latest; then
754
765
  echo ""
755
766
  # Set up templates after install
756
767
  # Need to get the installed location
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chiefwiggum",
3
- "version": "1.2.0",
3
+ "version": "1.2.3",
4
4
  "description": "Autonomous coding agent CLI. Point it at a plan, watch it build.",
5
5
  "bin": {
6
6
  "chiefwiggum": "./chiefwiggum"