vibe-commander 0.2.2 → 0.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.
@@ -79,17 +79,24 @@ function renderDepUnits(lines, context) {
79
79
  }
80
80
  }
81
81
  /**
82
- * 의존성 문서 경로를 렌더링한다
82
+ * 의존성 문서 경로를 유닛별로 그룹핑하여 렌더링한다
83
83
  *
84
- * 형식: `- @{path}` (docPrefix 제어 가능)
84
+ * 의존 유닛의 계획서, 결과서, 런북 3종을 `- @{path}` 형식으로 한줄씩 렌더링.
85
+ * 유닛이 여러 개일 때 유닛 ID 주석으로 그룹 구분.
85
86
  */
86
87
  function renderDepDocs(lines, context, docPrefix) {
87
88
  lines.push('');
88
89
  lines.push('### 의존성 문서:');
89
- const allDocs = context.depDocs.flatMap((d) => d.found);
90
- if (allDocs.length > 0) {
91
- for (const doc of allDocs) {
92
- lines.push(`- ${docPrefix}${doc.path}`);
90
+ const nonEmptyGroups = context.depDocs.filter((d) => d.found.length > 0);
91
+ if (nonEmptyGroups.length > 0) {
92
+ const useGroupHeaders = nonEmptyGroups.length > 1;
93
+ for (const group of nonEmptyGroups) {
94
+ if (useGroupHeaders) {
95
+ lines.push(`<!-- ${group.unitId} -->`);
96
+ }
97
+ for (const doc of group.found) {
98
+ lines.push(`- ${docPrefix}${doc.path}`);
99
+ }
93
100
  }
94
101
  }
95
102
  else {
@@ -100,10 +107,11 @@ function renderDepDocs(lines, context, docPrefix) {
100
107
  * 의존성 커밋 SHA를 렌더링한다
101
108
  *
102
109
  * 형식: `- {sha}`
110
+ * 헤딩에 "(변경점 확인하여 맥락으로 사용)" 주석 포함
103
111
  */
104
112
  function renderDepCommits(lines, context) {
105
113
  lines.push('');
106
- lines.push('### 의존성 Commits:');
114
+ lines.push('### 의존성 Commits (변경점 확인하여 맥락으로 사용):');
107
115
  if (context.depCommits.length > 0) {
108
116
  for (const sha of context.depCommits) {
109
117
  lines.push(`- ${sha}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-commander",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Unit-based vibe coding workflow automation CLI — automate context collection from unit ID to command file in 10 seconds",
6
6
  "license": "MIT",