@taejung3852/project-scaffold 0.1.1 → 0.1.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.
package/README.kr.md CHANGED
@@ -27,7 +27,7 @@ project-scaffold는 두 레이어로 이 문제를 해결한다.
27
27
 
28
28
  ## 빠른 시작
29
29
 
30
- Node.js 20 이상과 Git 저장소가 필요하다.
30
+ Node.js 20.12 이상과 Git 저장소가 필요하다.
31
31
 
32
32
  ### 새 프로젝트
33
33
 
@@ -181,7 +181,7 @@ npx @taejung3852/project-scaffold@latest agents
181
181
 
182
182
  전체 목록과 실제 설치 경로는 위 명령으로 확인한다. `--agent all`과 `--agent '*'`도 지원한다.
183
183
 
184
- CLI는 루트 `skills/{wiki,brief,review}`를 한 번 설치한 뒤 같은 경로를 사용하는 에이전트를 묶어서 상대 심링크를 생성한다. `--agent`를 생략하면 로컬 설치 흔적을 감지해 후보를 추천하고, 감지하지 못하면 범용 `.agents/skills/`를 기본값으로 사용한다. `claude`, `hermes` 같은 기존 별칭도 계속 지원한다.
184
+ CLI는 루트 `skills/{wiki,brief,review}`를 한 번 설치한 뒤 같은 프로젝트 경로를 사용하는 에이전트를 묶어서 상대 심링크를 생성한다. 대화형 선택에서는 `.agents/skills/`를 사용하는 에이전트가 `universal` 공용 그룹 하나로 표시되고, 전용 프로젝트 경로가 필요한 에이전트만 별도 선택지로 표시된다. `--agent`를 생략하면 로컬 설치 흔적을 감지해 후보를 추천하고, 감지하지 못하면 범용 그룹을 기본값으로 사용한다. `claude`, `hermes`, `gemini`, `agy` 같은 별칭도 지원한다. Gemini CLI, Antigravity CLI, Antigravity 2.0은 제품 표면과 전역 스킬 경로가 다르므로 레지스트리에서는 별도 대상으로 유지한다.
185
185
 
186
186
  ## 설치되는 구조
187
187
 
@@ -244,4 +244,4 @@ npm publish --access public
244
244
  | skills@1.5.16 기반 73개 에이전트 레지스트리 | ✅ 구현 |
245
245
  | 핵심 스킬 3개 (`wiki`, `brief`, `review`) | ✅ 구현 |
246
246
  | Hermes식 스킬 사용 추적·자가 진화 | 🗑️ 제거 |
247
- | npm 최초 publish | 전체 수정 완료 후 진행 |
247
+ | npm publish (`0.1.1`) | 완료 |
package/README.md CHANGED
@@ -27,7 +27,7 @@ Users do not memorize twelve commands. The agent routes each request to one of t
27
27
 
28
28
  ## Quick start
29
29
 
30
- Requires Node.js 20+ and a Git repository.
30
+ Requires Node.js 20.12+ and a Git repository.
31
31
 
32
32
  ### New project
33
33
 
@@ -181,7 +181,7 @@ npx @taejung3852/project-scaffold@latest agents
181
181
 
182
182
  Use this command to see every ID and path. `--agent all` and `--agent '*'` are also supported.
183
183
 
184
- The CLI installs canonical `skills/{wiki,brief,review}` once and deduplicates agents that share the same target directory. Without `--agent`, it recommends reliably detected local agents and falls back to universal `.agents/skills/` when none are found. Existing aliases such as `claude` and `hermes` remain supported.
184
+ The CLI installs canonical `skills/{wiki,brief,review}` once and deduplicates agents that share the same target directory. In the interactive flow, agents that share `.agents/skills/` are selected as one `universal` group; only agents with dedicated project paths appear as separate options. Without `--agent`, it recommends reliably detected local agents and falls back to the universal group when none are found. Existing aliases such as `claude`, `hermes`, `gemini`, and `agy` remain supported. Google agents are kept as separate registry targets because Gemini CLI, Antigravity CLI, and Antigravity 2.0 use different product surfaces and global skill paths.
185
185
 
186
186
  ## Installed structure
187
187
 
@@ -244,4 +244,4 @@ npm publish --access public
244
244
  | 73-agent registry based on skills@1.5.16 | ✅ Implemented |
245
245
  | Three core skills (`wiki`, `brief`, `review`) | ✅ Implemented |
246
246
  | Hermes-style usage tracking and self-evolution | 🗑️ Removed |
247
- | Initial npm publish | After all planned changes |
247
+ | npm publish (`0.1.1`) | Published |
@@ -100,6 +100,8 @@ const displayNameOverrides = {
100
100
  devin: "Devin for Terminal",
101
101
  droid: "Droid",
102
102
  "gemini-cli": "Gemini CLI",
103
+ antigravity: "Antigravity 2.0 (desktop)",
104
+ "antigravity-cli": "Antigravity CLI (agy)",
103
105
  "github-copilot": "GitHub Copilot",
104
106
  "hermes-agent": "Hermes Agent",
105
107
  "iflow-cli": "iFlow CLI",
@@ -121,6 +123,8 @@ const displayNameOverrides = {
121
123
  export const agentAliases = Object.freeze({
122
124
  claude: "claude-code",
123
125
  hermes: "hermes-agent",
126
+ gemini: "gemini-cli",
127
+ agy: "antigravity-cli",
124
128
  "continue-dev": "continue",
125
129
  });
126
130
 
@@ -165,7 +169,7 @@ const detectionPaths = {
165
169
  cursor: ["~/.cursor", ".cursor"],
166
170
  devin: ["~/.config/devin"],
167
171
  droid: ["~/.factory"],
168
- "gemini-cli": ["~/.gemini"],
172
+ "gemini-cli": ["~/.gemini/skills", "~/.gemini/settings.json"],
169
173
  goose: ["~/.config/goose"],
170
174
  "hermes-agent": ["~/.hermes"],
171
175
  "kiro-cli": ["~/.kiro"],
package/lib/agents.js CHANGED
@@ -17,6 +17,7 @@ import {
17
17
  } from "@clack/prompts";
18
18
 
19
19
  export const supportedAgents = supportedAgentIds;
20
+ const universalProjectSkillsDir = ".agents/skills";
20
21
 
21
22
  function writeFileSafely(file, content, force, managedFiles) {
22
23
  if (fs.existsSync(file) && !force) return false;
@@ -121,6 +122,53 @@ export function registryLines() {
121
122
  return lines;
122
123
  }
123
124
 
125
+ function isUniversalProjectAgent(agentId) {
126
+ return agentRegistry[agentId]?.projectSkillsDir === universalProjectSkillsDir;
127
+ }
128
+
129
+ const universalProjectAgents = supportedAgentIds.filter(isUniversalProjectAgent);
130
+
131
+ export function buildAgentSelectionOptions(detected = []) {
132
+ const detectedSet = new Set(detected);
133
+ const dedicatedAgents = supportedAgentIds.filter((agent) => !isUniversalProjectAgent(agent));
134
+ const universalNames = universalProjectAgents
135
+ .map((agent) => agentRegistry[agent]?.displayName ?? agent)
136
+ .filter(Boolean);
137
+ const previewNames = universalNames.slice(0, 4).join(", ");
138
+
139
+ return [
140
+ {
141
+ value: "all",
142
+ label: "모든 에이전트",
143
+ hint: `${supportedAgentIds.length}개 설치`,
144
+ },
145
+ {
146
+ value: "universal",
147
+ label: "공용 Agent Skills",
148
+ hint: `${universalProjectSkillsDir} · ${previewNames} 등 ${universalNames.length}개`,
149
+ },
150
+ ...dedicatedAgents.map((agent) => {
151
+ const entry = agentRegistry[agent];
152
+ return {
153
+ value: agent,
154
+ label: entry?.displayName ?? agent,
155
+ hint: detectedSet.has(agent)
156
+ ? `감지됨 · ${entry?.projectSkillsDir ?? ""}`
157
+ : entry?.projectSkillsDir,
158
+ };
159
+ }),
160
+ ];
161
+ }
162
+
163
+ export function buildAgentSelectionDefaults(detected = []) {
164
+ const detectedUniversal = detected.some(isUniversalProjectAgent);
165
+ const dedicatedDetected = detected.filter((agent) => !isUniversalProjectAgent(agent));
166
+ return [
167
+ ...(detectedUniversal || detected.length === 0 ? ["universal"] : []),
168
+ ...dedicatedDetected,
169
+ ];
170
+ }
171
+
124
172
  export async function chooseAgents(
125
173
  values,
126
174
  yes = false,
@@ -131,35 +179,24 @@ export async function chooseAgents(
131
179
  }
132
180
 
133
181
  const detected = detectAgents({ target });
134
- const defaults = detected.length > 0 ? detected : ["universal"];
182
+ const defaults = buildAgentSelectionDefaults(detected);
135
183
 
136
184
  if (yes || !process.stdin.isTTY) {
137
185
  return defaults;
138
186
  }
139
187
 
140
188
  if (detected.length > 0) {
141
- console.log(`\n감지된 에이전트: ${detected.join(", ")}`);
189
+ const detectedLabels = detected.map((agent) => agentRegistry[agent]?.displayName ?? agent);
190
+ console.log(`\n감지된 에이전트: ${detectedLabels.join(", ")}`);
142
191
  } else {
143
192
  console.log("\n자동 감지된 에이전트가 없습니다.");
144
193
  }
145
194
 
146
- const orderedAgents = [
147
- ...defaults,
148
- ...supportedAgentIds.filter(
149
- (agent) => !defaults.includes(agent),
150
- ),
151
- ];
152
-
153
195
  const selected = await multiselect({
154
- message: "설치할 에이전트를 선택하세요",
155
- options: orderedAgents.map((agent) => ({
156
- value: agent,
157
- label: agent,
158
- hint: detected.includes(agent) ? "감지됨" : undefined,
159
- })),
196
+ message: "설치할 스킬 경로를 선택하세요",
197
+ options: buildAgentSelectionOptions(detected),
160
198
  initialValues: defaults,
161
199
  required: true,
162
- maxItems: 10,
163
200
  });
164
201
 
165
202
  if (isCancel(selected)) {
package/lib/install.js CHANGED
@@ -306,6 +306,7 @@ function loadManifest(target) {
306
306
  export async function doctor(options) {
307
307
  const target = path.resolve(options.target ?? process.cwd());
308
308
  const manifest = loadManifest(target);
309
+ const legacy = legacyArtifacts(target);
309
310
  const checks = [
310
311
  { label: "Git 저장소", ok: fs.existsSync(path.join(target, ".git")) },
311
312
  { label: "설치 manifest", ok: manifest !== null },
@@ -315,7 +316,6 @@ export async function doctor(options) {
315
316
  },
316
317
  { label: "AGENT.md", ok: fs.existsSync(path.join(target, "AGENT.md")) },
317
318
  { label: "skills/", ok: fs.existsSync(path.join(target, "skills")) },
318
- { label: "legacy 스킬·자가 진화 상태 없음", ok: legacyArtifacts(target).length === 0 },
319
319
  { label: "wiki/index.md", ok: fs.existsSync(path.join(target, "wiki", "index.md")) },
320
320
  { label: "raw/", ok: fs.existsSync(path.join(target, "raw")) },
321
321
  ];
@@ -326,17 +326,41 @@ export async function doctor(options) {
326
326
  );
327
327
  }
328
328
  checks.push(...agentChecks(target, manifest?.agents ?? []));
329
- const result = { ok: checks.every((check) => check.ok), target, version: manifest?.version ?? null, checks };
329
+ const warnings = legacy.length > 0
330
+ ? [{
331
+ code: "legacy-artifacts",
332
+ message: `이전 설치 잔여물 ${legacy.length}개가 발견되었습니다.`,
333
+ fix: "정리하려면 project-scaffold add --force를 실행하세요.",
334
+ paths: legacy,
335
+ }]
336
+ : [];
337
+ const result = {
338
+ ok: checks.every((check) => check.ok),
339
+ target,
340
+ version: manifest?.version ?? null,
341
+ checks,
342
+ warnings,
343
+ };
330
344
 
331
345
  if (options.json) {
332
346
  console.log(JSON.stringify(result, null, 2));
333
347
  } else {
334
348
  console.log(`project-scaffold doctor\n대상: ${target}\n`);
335
349
  for (const check of checks) console.log(`${check.ok ? "✅" : "❌"} ${check.label}`);
350
+ for (const warning of warnings) {
351
+ console.log(`⚠️ ${warning.message}`);
352
+ console.log(` ${warning.fix}`);
353
+ }
336
354
  if (manifest?.agents?.includes("hermes-agent")) {
337
355
  console.log("ℹ️ Hermes는 ~/.hermes/config.yaml의 skills.external_dirs에 프로젝트 skills/ 경로를 등록해야 합니다.");
338
356
  }
339
- console.log(result.ok ? "\n✅ 설치 상태가 정상입니다." : "\n❌ 누락된 항목을 확인하세요.");
357
+ if (!result.ok) {
358
+ console.log("\n❌ 누락된 항목을 확인하세요.");
359
+ } else if (warnings.length > 0) {
360
+ console.log("\n✅ 핵심 설치 상태는 정상입니다.");
361
+ } else {
362
+ console.log("\n✅ 설치 상태가 정상입니다.");
363
+ }
340
364
  }
341
365
  return result;
342
366
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taejung3852/project-scaffold",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "LLM Wiki-based project context scaffold for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "pack:check": "npm pack --dry-run"
24
24
  },
25
25
  "engines": {
26
- "node": ">=20"
26
+ "node": ">=20.12.0"
27
27
  },
28
28
  "license": "MIT",
29
29
  "repository": {