@kood/claude-code 0.5.7 → 0.5.9

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/dist/index.js CHANGED
@@ -632,7 +632,8 @@ import path8 from "path";
632
632
  var CLAUDE_GENERATED_FOLDERS = [
633
633
  ".claude/plan/",
634
634
  ".claude/ralph/",
635
- ".claude/refactor/"
635
+ ".claude/refactor/",
636
+ ".claude/prd/"
636
637
  ];
637
638
  async function updateGitignore(targetDir) {
638
639
  const gitignorePath = path8.join(targetDir, ".gitignore");
@@ -645,10 +646,6 @@ async function updateGitignore(targetDir) {
645
646
  } catch (error) {
646
647
  content = "";
647
648
  }
648
- if (content.includes(sectionComment)) {
649
- logger.info(".gitignore already contains Claude Code section");
650
- return;
651
- }
652
649
  const linesToAdd = [];
653
650
  const existingLines = content.split("\n").map((line) => line.trim());
654
651
  for (const folder of CLAUDE_GENERATED_FOLDERS) {
@@ -660,15 +657,33 @@ async function updateGitignore(targetDir) {
660
657
  logger.info(".gitignore already contains all Claude Code patterns");
661
658
  return;
662
659
  }
660
+ const needsSection = !content.includes(sectionComment);
663
661
  let newContent = content;
664
662
  if (newContent && !newContent.endsWith("\n")) {
665
663
  newContent += "\n";
666
664
  }
667
- if (newContent) {
668
- newContent += "\n";
665
+ if (needsSection) {
666
+ if (newContent) {
667
+ newContent += "\n";
668
+ }
669
+ newContent += sectionComment + "\n";
670
+ newContent += linesToAdd.join("\n") + "\n";
671
+ } else {
672
+ const lines = newContent.split("\n");
673
+ const sectionIndex = lines.findIndex(
674
+ (line) => line.includes(sectionComment)
675
+ );
676
+ if (sectionIndex !== -1) {
677
+ lines.splice(sectionIndex + 1, 0, ...linesToAdd);
678
+ newContent = lines.join("\n");
679
+ } else {
680
+ if (newContent) {
681
+ newContent += "\n";
682
+ }
683
+ newContent += sectionComment + "\n";
684
+ newContent += linesToAdd.join("\n") + "\n";
685
+ }
669
686
  }
670
- newContent += sectionComment + "\n";
671
- newContent += linesToAdd.join("\n") + "\n";
672
687
  await fs6.writeFile(gitignorePath, newContent, "utf-8");
673
688
  if (hasGitignore) {
674
689
  logger.success(`.gitignore updated with ${linesToAdd.length} patterns`);
@@ -839,7 +854,7 @@ var init = async (options) => {
839
854
 
840
855
  // src/index.ts
841
856
  var program = new Command();
842
- program.name("claude-code").description("Claude Code documentation installer for projects").version("0.5.7");
857
+ program.name("claude-code").description("Claude Code documentation installer for projects").version("0.5.9");
843
858
  program.option(
844
859
  "-t, --template <names>",
845
860
  "template names (comma-separated: tanstack-start,hono)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kood/claude-code",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "description": "Claude Code documentation installer for projects",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",
@@ -22,7 +22,7 @@ user-invocable: true
22
22
 
23
23
  | 상황 | 설명 |
24
24
  |------|------|
25
- | 계획 파일 실행 | `.claude/plans/*.md` 계획을 코드로 구현 |
25
+ | 계획 파일 실행 | `.claude/plan/*.md` 계획을 코드로 구현 |
26
26
  | 기능 추가 | 새 기능을 분석 후 즉시 구현 |
27
27
  | 버그 수정 | 문제 파악 → 수정 → 검증 |
28
28
  | 리팩토링 | 코드 구조 개선, 성능 최적화 |
@@ -431,7 +431,7 @@ PRD 작성 시작 전 확인:
431
431
  | 1 | 복잡도 판단 및 PRD 구조 계획 | Sequential Thinking (3-5단계) |
432
432
  | 2 | 코드베이스/문서 조사 (필요시) | Task (Explore) |
433
433
  | 3 | 병렬 Agent 실행 (복잡한 경우) | Task (analyst, architect, document-writer) |
434
- | 4 | 15개 섹션 구조로 PRD 작성 | Write → `.claude/plans/` 또는 `docs/prd/` |
434
+ | 4 | 15개 섹션 구조로 PRD 작성 | Write → `.claude/plan/` 또는 `docs/prd/` |
435
435
 
436
436
  **핵심 원칙**:
437
437
  - 짧고 명확한 문장, 구체적 예시
@@ -734,7 +734,7 @@ PRD 작성 시작 전 확인:
734
734
  Task (Explore): "User 모델 및 인증 구조 분석"
735
735
 
736
736
  3. PRD 작성:
737
- → .claude/plans/profile-edit-prd.md
737
+ → .claude/plan/profile-edit-prd.md
738
738
 
739
739
  4. 주요 섹션:
740
740
  - 문제: 사용자가 정보를 수정할 방법이 없음
@@ -123,7 +123,7 @@ $ARGUMENTS 있음 → 다음 단계 진행
123
123
  → 사용자에게 2-3개 옵션 제시
124
124
 
125
125
  3. 선택 후 계획 문서 작성
126
- → .claude/plans/refactor-[이름].md
126
+ → .claude/plan/refactor-[이름].md
127
127
  ```
128
128
 
129
129
  ### Agent 미사용 케이스