chiefwiggum 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/chiefwiggum +14 -7
  2. package/package.json +1 -1
package/chiefwiggum CHANGED
@@ -192,11 +192,10 @@ cmd_new() {
192
192
  exit 0
193
193
  fi
194
194
 
195
- # Check for existing files
195
+ # Check for existing chiefwiggum files (not CLAUDE.md - that's project-specific)
196
196
  local existing_files=()
197
197
  [ -f "$TODO_FILE" ] && existing_files+=("TODO.md")
198
198
  [ -d "specs" ] && existing_files+=("specs/")
199
- [ -f "CLAUDE.md" ] && existing_files+=("CLAUDE.md")
200
199
 
201
200
  if [ ${#existing_files[@]} -gt 0 ]; then
202
201
  echo ""
@@ -211,6 +210,10 @@ cmd_new() {
211
210
  fi
212
211
  fi
213
212
 
213
+ # Note if CLAUDE.md exists (we'll preserve it)
214
+ local has_claude_md=false
215
+ [ -f "CLAUDE.md" ] && has_claude_md=true
216
+
214
217
  # If plan file provided, use it directly
215
218
  if [ -n "$plan_file" ]; then
216
219
  if [ ! -f "$plan_file" ]; then
@@ -425,11 +428,14 @@ Do NOT ask questions — infer everything from the PRD."
425
428
  echo "$tech_prompt" | claude -p --dangerously-skip-permissions 2>/dev/null
426
429
  echo -e "${GREEN} ✓ specs/technical.md${NC}"
427
430
 
428
- # Step 3: Generate CLAUDE.md
431
+ # Step 3: Generate CLAUDE.md (skip if exists)
429
432
  echo ""
430
- echo -e "${YELLOW}[3/4] Generating CLAUDE.md...${NC}"
433
+ if [ -f "CLAUDE.md" ]; then
434
+ echo -e "${YELLOW}[3/4] Skipping CLAUDE.md (already exists)${NC}"
435
+ else
436
+ echo -e "${YELLOW}[3/4] Generating CLAUDE.md...${NC}"
431
437
 
432
- local claude_prompt="You are generating a CLAUDE.md file for a project.
438
+ local claude_prompt="You are generating a CLAUDE.md file for a project.
433
439
 
434
440
  Here is the PRD:
435
441
  <prd>
@@ -451,8 +457,9 @@ Generate a CLAUDE.md with:
451
457
  Write it directly to CLAUDE.md.
452
458
  Keep it concise - this is a quick reference for AI agents."
453
459
 
454
- echo "$claude_prompt" | claude -p --dangerously-skip-permissions 2>/dev/null
455
- echo -e "${GREEN} ✓ CLAUDE.md${NC}"
460
+ echo "$claude_prompt" | claude -p --dangerously-skip-permissions 2>/dev/null
461
+ echo -e "${GREEN} ✓ CLAUDE.md${NC}"
462
+ fi
456
463
 
457
464
  # Step 4: Generate TODO
458
465
  echo ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chiefwiggum",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Autonomous coding agent CLI. Point it at a plan, watch it build.",
5
5
  "bin": {
6
6
  "chiefwiggum": "./chiefwiggum"