specrails-core 3.4.0 → 3.4.2

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.
@@ -57,7 +57,7 @@ If no persona files are found in either location:
57
57
  Error: No VPC persona files found.
58
58
  Expected location: .claude/agents/*.md or {{PERSONA_DIR}}/*.md
59
59
  Each persona file must contain a ## Value Proposition Canvas section.
60
- Run /setup to generate persona files from templates.
60
+ Run /specrails:setup to generate persona files from templates.
61
61
  ```
62
62
 
63
63
  Stop.
@@ -44,7 +44,7 @@ Always exclude the following from all analysis:
44
44
 
45
45
  ## Phase 1.5: VPC Context
46
46
 
47
- Check whether persona files exist at `.claude/agents/personas/`. This path is present in any repo that has run `/setup`.
47
+ Check whether persona files exist at `.claude/agents/personas/`. This path is present in any repo that has run `/specrails:setup`.
48
48
 
49
49
  ```bash
50
50
  ls .claude/agents/personas/ 2>/dev/null
@@ -212,5 +212,5 @@ Issues created: {N} (or "dry-run: no issues created")
212
212
  ```
213
213
 
214
214
  Where:
215
- - `{vpc_header}` is `VPC personas loaded: {persona names}` when `VPC_AVAILABLE=true`, or `VPC personas: not found (run /setup to enable)` otherwise.
215
+ - `{vpc_header}` is `VPC personas loaded: {persona names}` when `VPC_AVAILABLE=true`, or `VPC personas: not found (run /specrails:setup to enable)` otherwise.
216
216
  - `{vpc_detail}` is `**VPC Value**: {vpc_value}/5 — {vpc_persona}: {vpc_rationale}` when `VPC_AVAILABLE=true`, omitted otherwise.
package/update.sh CHANGED
@@ -175,7 +175,7 @@ generate_manifest() {
175
175
  artifacts_json="${artifacts_json},"
176
176
  fi
177
177
  artifacts_json="${artifacts_json}
178
- \"commands/setup.md\": \"${setup_checksum}\""
178
+ \"commands/specrails/setup.md\": \"${setup_checksum}\""
179
179
 
180
180
  # Include prompts/
181
181
  if [[ -d "$SCRIPT_DIR/prompts" ]]; then
@@ -282,7 +282,7 @@ except Exception:
282
282
  import json, sys
283
283
  try:
284
284
  data = json.load(open(sys.argv[1]))
285
- print(data['artifacts'].get('commands/setup.md', ''))
285
+ print(data['artifacts'].get('commands/specrails/setup.md', data['artifacts'].get('commands/setup.md', '')))
286
286
  except Exception:
287
287
  print('')
288
288
  " "$local_manifest" 2>/dev/null || echo "")"
@@ -495,11 +495,11 @@ except Exception:
495
495
  return 1 # Unchanged
496
496
  }
497
497
 
498
- # Update /setup command (selective)
499
- mkdir -p "$REPO_ROOT/.claude/commands"
500
- if _file_changed "$SCRIPT_DIR/commands/setup.md" "commands/setup.md"; then
501
- cp "$SCRIPT_DIR/commands/setup.md" "$REPO_ROOT/.claude/commands/setup.md"
502
- ok "Updated /setup command"
498
+ # Update /specrails:setup command (selective)
499
+ mkdir -p "$REPO_ROOT/.claude/commands/specrails"
500
+ if _file_changed "$SCRIPT_DIR/commands/setup.md" "commands/specrails/setup.md"; then
501
+ cp "$SCRIPT_DIR/commands/setup.md" "$REPO_ROOT/.claude/commands/specrails/setup.md"
502
+ ok "Updated /specrails:setup command"
503
503
  updated_count=$(( updated_count + 1 ))
504
504
  fi
505
505
 
@@ -660,9 +660,9 @@ except Exception:
660
660
  read -p " Regenerate agents? (y/N): " answer || answer="n"
661
661
  if [[ "$answer" == "y" ]] || [[ "$answer" == "Y" ]]; then
662
662
  NEEDS_SETUP_UPDATE=true
663
- ok "Will regenerate agents via /setup --update"
663
+ ok "Will regenerate agents via /specrails:setup --update"
664
664
  else
665
- warn "Workflow may break with outdated agents. Run '/setup --update' inside Claude Code when ready."
665
+ warn "Workflow may break with outdated agents. Run '/specrails:setup --update' inside Claude Code when ready."
666
666
  fi
667
667
  else
668
668
  ok "All agent/rule templates unchanged — no regeneration needed"
@@ -675,7 +675,7 @@ except Exception:
675
675
  for t in "${new_templates[@]}"; do
676
676
  echo " $t"
677
677
  done
678
- info "These will be evaluated during /setup --update"
678
+ info "These will be evaluated during /specrails:setup --update"
679
679
  NEEDS_SETUP_UPDATE=true
680
680
  fi
681
681
  }
@@ -794,10 +794,10 @@ UPDATE_SUCCESS=true
794
794
  rm -rf "$BACKUP_DIR"
795
795
  ok "Backup removed"
796
796
 
797
- # Clean up setup-templates if no /setup re-run is needed
797
+ # Clean up setup-templates if no /specrails:setup re-run is needed
798
798
  if [[ "$NEEDS_SETUP_UPDATE" != true ]] && [[ -d "$REPO_ROOT/.claude/setup-templates" ]]; then
799
799
  rm -rf "$REPO_ROOT/.claude/setup-templates"
800
- ok "Cleaned up setup-templates (no /setup re-run needed)"
800
+ ok "Cleaned up setup-templates (no /specrails:setup re-run needed)"
801
801
  fi
802
802
 
803
803
  echo ""
@@ -811,7 +811,7 @@ if [[ "$NEEDS_SETUP_UPDATE" == true ]]; then
811
811
  echo ""
812
812
  echo " Open Claude Code in this repo and run:"
813
813
  echo ""
814
- echo -e " ${BOLD}/setup --update${NC}"
814
+ echo -e " ${BOLD}/specrails:setup --update${NC}"
815
815
  echo ""
816
816
  echo " Claude will re-analyze your codebase and regenerate only the"
817
817
  echo " agents and rules whose templates have changed."