projectops 4.104.6 → 4.104.8

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 (85) hide show
  1. package/README.md +1 -1
  2. package/bin/projectops.js +4 -4
  3. package/package.json +1 -1
  4. package/src/cli/args.js +43 -43
  5. package/src/cli/errors.js +8 -8
  6. package/src/cli/help.js +4 -4
  7. package/src/commands/doctor.js +39 -39
  8. package/src/commands/full.js +29 -29
  9. package/src/commands/interactive.js +86 -86
  10. package/src/commands/issues.js +5 -5
  11. package/src/commands/skills.js +13 -13
  12. package/src/commands/version.js +8 -8
  13. package/src/commands/workflows.js +23 -22
  14. package/src/context.js +24 -24
  15. package/src/core/agent-guide.js +5 -5
  16. package/src/core/assets.js +11 -11
  17. package/src/core/baseline.js +24 -24
  18. package/src/core/branch-sub.js +23 -23
  19. package/src/core/breaking-check.js +21 -21
  20. package/src/core/breaking.js +6 -6
  21. package/src/core/ci-minutes-sub.js +13 -13
  22. package/src/core/constants.js +17 -17
  23. package/src/core/copy/coderabbit.js +10 -10
  24. package/src/core/copy/gitignore.js +9 -9
  25. package/src/core/copy/readme.js +7 -7
  26. package/src/core/copy/simple.js +35 -35
  27. package/src/core/copy/util.js +9 -9
  28. package/src/core/copy/workflows.js +99 -99
  29. package/src/core/detect-fs.js +21 -21
  30. package/src/core/detect.js +12 -12
  31. package/src/core/development-branch.js +11 -11
  32. package/src/core/exclusions.js +12 -12
  33. package/src/core/fsutil.js +9 -9
  34. package/src/core/git-branch.js +11 -11
  35. package/src/core/ide/adapter.js +23 -23
  36. package/src/core/ide/adapters/claude.js +12 -12
  37. package/src/core/ide/adapters/codex.js +4 -4
  38. package/src/core/ide/adapters/copilot.js +12 -12
  39. package/src/core/ide/adapters/cursor.js +7 -7
  40. package/src/core/ide/adapters/gemini.js +5 -5
  41. package/src/core/ide/adapters/pi-common.js +12 -12
  42. package/src/core/ide/adapters/pi-harness.js +7 -7
  43. package/src/core/ide/adapters/pi.js +3 -3
  44. package/src/core/ide/home-skills.js +6 -6
  45. package/src/core/ide/legacy.js +8 -8
  46. package/src/core/ide/registry.js +6 -6
  47. package/src/core/ide/runner.js +15 -15
  48. package/src/core/ide/skills-copy.js +34 -34
  49. package/src/core/ide/stable-entry.js +11 -11
  50. package/src/core/ide/util.js +4 -4
  51. package/src/core/incoming.js +13 -13
  52. package/src/core/label-style.js +12 -12
  53. package/src/core/migration-guide.js +19 -19
  54. package/src/core/migrations/index.js +16 -16
  55. package/src/core/migrations/registry.js +39 -39
  56. package/src/core/migrations/rules/legacy-dirs.js +6 -6
  57. package/src/core/migrations/rules/obsolete-workflows.js +4 -4
  58. package/src/core/migrations/rules/root-files.js +3 -3
  59. package/src/core/migrations/rules/settings-extractors.js +8 -8
  60. package/src/core/options-ask.js +104 -104
  61. package/src/core/options-schema.js +23 -23
  62. package/src/core/orphan-workflows.js +14 -14
  63. package/src/core/paths-resolve.js +54 -54
  64. package/src/core/paths.js +2 -2
  65. package/src/core/placeholder-triggers.js +10 -10
  66. package/src/core/repo-language.js +10 -10
  67. package/src/core/resolve-options.js +30 -30
  68. package/src/core/run-trace.js +54 -54
  69. package/src/core/store-locales-hint.js +13 -13
  70. package/src/core/verify.js +27 -27
  71. package/src/core/version-yml.js +117 -116
  72. package/src/core/wizard-env.js +42 -42
  73. package/src/core/wizard-labels.js +31 -31
  74. package/src/core/workflow-groups.js +14 -14
  75. package/src/i18n/core.en.js +1 -1
  76. package/src/i18n/doctor.en.js +1 -1
  77. package/src/i18n/ide.en.js +1 -1
  78. package/src/i18n/migrate.en.js +1 -1
  79. package/src/i18n/options.en.js +1 -1
  80. package/src/index.js +60 -60
  81. package/src/ui/ansi.js +5 -5
  82. package/src/ui/env-plan.js +44 -44
  83. package/src/ui/prompts.js +21 -21
  84. package/src/ui/readline-engine.js +38 -38
  85. package/src/ui/skills-prompts.js +4 -4
@@ -1,6 +1,6 @@
1
- // full 모드 오케스트레이터.
2
- // 복사 순서: version.yml → readme → workflows → (deploy블록) → scripts → config →
3
- // util(타입별) → issue → discussion → coderabbit → gitignore → setup_guide → (옵션저장)
1
+ // full mode orchestrator.
2
+ // Copy order: version.yml → readme → workflows → (deploy block) → scripts → config →
3
+ // util (per type) → issue → discussion → coderabbit → gitignore → setup_guide → (save options)
4
4
  import { join } from "node:path";
5
5
  import { existsSync, readFileSync } from "node:fs";
6
6
  import { writeText } from "../core/fsutil.js";
@@ -25,87 +25,87 @@ import { toTemplateOptions } from "../core/resolve-options.js";
25
25
 
26
26
  // context: { version, types, paths:Map, branch, versionCode, deployTarget, publishTargets, includeSecretBackup,
27
27
  // force, repoName, resolvers, now, today }
28
- // tempDir: 획득된 템플릿. targetRoot: 통합 대상.
28
+ // tempDir: the fetched template. targetRoot: the integration target.
29
29
  export function runFull(context, tempDir, targetRoot = ".", hooks = {}) {
30
- // 옵션 값은 resolveOptions 가 정해 context 에 넣는다 — 여기서 기본값을 다시 고르지 않는다
30
+ // Option values are decided by resolveOptions and put in context — defaults are not picked again here
31
31
  const { version, types = [], paths = new Map(), branch = "main", versionCode = 1,
32
32
  force = true, now, today, templateVersion, deployBranch = "",
33
33
  deployTarget, publishTargets, codeReviewCoderabbit, labelStyle, language } = context;
34
34
 
35
- // project_paths 마커 계산 (대표 마커명)
35
+ // project_paths marker computation (main marker names)
36
36
  const pathMarkers = new Map();
37
37
  for (const [t] of paths) pathMarkers.set(t, markerForType(t));
38
38
 
39
- // 3. 워크플로우 복사 (+ env 치환) — deploy 블록에 쓸 ask 값을 수집한다.
40
- // hooks.decisions: 대화형 충돌 3지선 결정 Map (미지정=skip — 현행 force 동작)
39
+ // 3. Copy workflows (+ env substitution) — collects the ask values for the deploy block.
40
+ // hooks.decisions: Map of interactive 3-way conflict decisions (unset = skip — current force behavior)
41
41
  const step = (name, fn, d) => (hooks.trace ? hooks.trace.step(name, fn, d) : fn());
42
42
  const wfCounters = step("copy-workflows", () => copyWorkflows(context, tempDir, targetRoot, hooks),
43
43
  { types, deploy: deployTarget, publish: publishTargets });
44
- // 기존 version.yml 의 deploy 값은 보존한다 (#670) — 전체 재생성이라 읽지 않으면 사용자 수정이 사라진다.
44
+ // Keep the deploy values of the existing version.yml (#670) — it is fully regenerated, so without reading them user edits vanish.
45
45
  const vyFile = join(targetRoot, PATHS.versionFile);
46
46
  const deployValues = mergeDeployValues(existsSync(vyFile) ? readFileSync(vyFile, "utf8") : "",
47
47
  wfCounters.deployValues || new Map()); // Map<type, Map<key,value>
48
48
 
49
- // 1. version.yml 생성 (전체 재생성 — metadata → deploy → template 순)
49
+ // 1. Generate version.yml (full regeneration — metadata → deploy → template order)
50
50
  step("write-version-yml", () => writeText(join(targetRoot, PATHS.versionFile),
51
51
  buildVersionYml({
52
52
  version, types, paths, pathMarkers, branch, deployBranch, versionCode, now, today,
53
53
  deployValues,
54
- // 생성기가 모르는 키(issue_helper 등)를 지킨다 — version.yml 을 매번 다시 쓰므로 안 그러면 업데이트마다 사라진다 (#835)
54
+ // Keep keys the generator does not know (issue_helper, etc.) — version.yml is rewritten every time, so otherwise they vanish on every update (#835)
55
55
  ...customYml(vyFile),
56
56
  updatedBy: resolveUpdatedBy(existsSync(vyFile) ? readFileSync(vyFile, "utf8") : "", targetRoot), // #811
57
57
  templateOptions: toTemplateOptions(context, { mode: "full", optionsDate: today }),
58
58
  })), { version, versionCode });
59
59
 
60
- // 2. README 버전 섹션
60
+ // 2. README version section
61
61
  step("update-readme", () => addVersionSectionToReadme(version, targetRoot, language), { version });
62
62
 
63
63
  // 5. scripts / config
64
- // 워크플로우 밖 영역도 기록한다 (#561) — "내 스크립트가 갱신됐나"를 로그만 보고 알 수 있게.
64
+ // Areas outside workflows are recorded too (#561) — so the log alone shows "were my scripts updated".
65
65
  step("copy-scripts", () => copyScripts(tempDir, targetRoot));
66
66
  step("copy-config", () => copyConfigFolder(tempDir, targetRoot));
67
67
 
68
- // 6. util (타입별)
68
+ // 6. util (per type)
69
69
  for (const t of types) step("copy-util", () => copyUtilModules(tempDir, t, { force }, targetRoot), { type: t });
70
70
 
71
- // 7. issue / discussion 템플릿
71
+ // 7. issue / discussion templates
72
72
  step("copy-templates", () => {
73
73
  copyIssueTemplates(tempDir, targetRoot);
74
- // Discussion 템플릿도 오버레이 대상 (#988) — 오버레이보다 먼저 복사해야 한국어판이 덮인다
74
+ // Discussion templates are overlay targets too (#988) — must be copied before the overlay so the Korean version covers them
75
75
  copyDiscussionTemplates(tempDir, targetRoot);
76
- // 템플릿 언어(#769) — 원본은 영문이라 한국어 레포는 복사 직후 오버레이로 덮는다.
77
- // 라벨 표기 변환(apply-label-style)보다 반드시 먼저여야 한다.
76
+ // Template language (#769) — the source is English, so Korean repos are covered by the overlay right after copying.
77
+ // Must come before the label style conversion (apply-label-style).
78
78
  const { changed: overlaid, failed: overlayFailed } = applyRepoLanguage(tempDir, targetRoot, language);
79
79
  hooks.trace?.event("copy", "repo-language", language, { overlaid: overlaid.length, failed: overlayFailed.length });
80
80
  for (const f of overlayFailed) hooks.trace?.event("copy", "overlay-failed", f.file, { reason: f.error });
81
- // 담당자 고정값 제거(#782) — 오버레이가 다시 넣으므로 그 뒤에 한다.
81
+ // Remove the fixed assignee (#782) — done after the overlay, since the overlay puts it back.
82
82
  hooks.trace?.event("copy", "strip-assignees", "", { files: stripIssueTemplateAssignees(targetRoot).length });
83
83
  if (overlayFailed.length) console.error(t("language.overlayFailed", { n: overlayFailed.length, files: overlayFailed.map((f) => f.file).join(", ") }));
84
84
  });
85
85
 
86
86
  // 8. coderabbit / gitignore / setup guide
87
- // CodeRabbit 코드리뷰 미사용 선택(#457)이면 .coderabbit.yaml을 복사하지 않는다.
87
+ // If CodeRabbit code review is not used (#457), .coderabbit.yaml is not copied.
88
88
  step("copy-coderabbit", () => copyCoderabbit(tempDir, { force, enabled: codeReviewCoderabbit }, targetRoot),
89
89
  { enabled: codeReviewCoderabbit });
90
90
  step("ensure-gitignore", () => ensureGitignore(targetRoot));
91
91
  step("copy-setup-guide", () => copySetupGuide(tempDir, targetRoot));
92
- step("install-agent-guide", () => installAgentGuide(targetRoot, templateVersion)); // agent 가 옵션을 확인하는 법 안내
92
+ step("install-agent-guide", () => installAgentGuide(targetRoot, templateVersion)); // Tells agents how to check options
93
93
 
94
- // 상태 라벨 표기(#776) — 템플릿 원본은 영문이라, 한글 레포는 복사가 끝난 뒤 이름만 되돌린다.
94
+ // Status label style (#776) — the template source is English, so Korean repos rename back after copying is done.
95
95
  step("apply-label-style", () => applyLabelStyle(targetRoot, labelStyle), { labelStyle });
96
96
 
97
- // 9. 설치 후 검증 (#549) — 디스크에 쓰인 최종 결과물을 다시 읽는다.
98
- // 치환은 파일 단위로 흩어져 일어나고 auto 토큰은 resolver 결과에 의존하므로,
99
- // 최종 내용을 보는 것이 실제 배포될 것과 같은 것을 보는 유일한 방법이다.
97
+ // 9. Post-install verification (#549) — rereads the final result written to disk.
98
+ // Substitution happens scattered per file and auto tokens depend on resolver results,
99
+ // so looking at the final content is the only way to see what will actually deploy.
100
100
  const verification = step("verify-install", () => verifyInstall(targetRoot));
101
- // detail 키 이름 주의: run-trace의 민감값 가드가 pat|token|secret|password|credential을
102
- // 키에서 걸러낸다(#494). 여기서 다루는 값은 비밀이 아니라 "치환 플레이스홀더 이름"과
103
- // "등록이 필요한 키 이름"이라 가드에 걸리지 않는 이름을 쓴다 — 가드 자체는 우회하지 않는다.
101
+ // Mind the detail key names: the run-trace sensitive value guard filters pat|token|secret|password|credential
102
+ // out of keys (#494). These values are not secrets but "substitution placeholder names" and
103
+ // "key names that need registering", so names that do not trip the guard are used — the guard itself is not bypassed.
104
104
  hooks.trace?.event("verify", "scan", "", {
105
105
  unresolved: verification.unresolved.length,
106
106
  requiredKeys: verification.secrets.size,
107
107
  });
108
- // 미치환 값은 배포 시점에 실패할 자리다 — 어느 파일 몇 번째 줄인지 로그에 남긴다.
108
+ // Unreplaced values are spots that will fail at deploy time — log which file and line.
109
109
  for (const u of verification.unresolved) {
110
110
  hooks.trace?.event("verify", "unresolved", u.filename, { line: u.line, placeholder: u.token });
111
111
  }
@@ -1,7 +1,7 @@
1
- // 대화형 마법사 (#446 UI 5층).
2
- // io 주입으로 테스트 가능. 실제 실행은 src/ui/prompts.js 함수를 io로 넘긴다.
3
- // 새 시각 층(banner/detectionLog/analysisCard/ideStatus/installKind/summary)과 저수준 엔진(engineIo)은
4
- // io의 "옵셔널 멤버" — 스텁이 생략하면 해당 층만 건너뛰고 실행 계약은 동일하다.
1
+ // Interactive wizard (#446 UI, 5 layers).
2
+ // Testable via io injection. A real run passes the src/ui/prompts.js functions as io.
3
+ // The new visual layers (banner/detectionLog/analysisCard/ideStatus/installKind/summary) and the low-level engine (engineIo) are
4
+ // "optional members" of io — if a stub omits one, only that layer is skipped and the run contract stays the same.
5
5
  import { resolveOptions } from "../core/resolve-options.js";
6
6
  import { detectStoreLocalesHint } from "../core/store-locales-hint.js";
7
7
  import { join } from "node:path";
@@ -37,56 +37,56 @@ import { printSummary } from "../ui/summary.js";
37
37
  const CANCEL = prompts.CANCEL;
38
38
  const isCancel = (v) => v === CANCEL || typeof v === "symbol";
39
39
 
40
- // io 기본값 = 실제 prompts. 테스트는 스텁 io 주입.
41
- // skills = runSkills 주입 지점(테스트가 실제 IDE CLI를 안 건드리게). 기본은 실제 runSkills.
40
+ // io default = real prompts. Tests inject a stub io.
41
+ // skills = injection point for runSkills (so tests do not touch real IDE CLIs). Default is the real runSkills.
42
42
  export async function runInteractive(baseCtx, { cwd = process.cwd(), source = { type: "git" }, clock, io = prompts, skills = runSkills } = {}) {
43
43
  const tempDir = join(cwd, PATHS.tempDir);
44
- // 실행 트레이스 (#494) — 실제 CLI(io=prompts)에서만 터미널 미러를 켠다 (테스트 스텁 io는 이벤트만).
44
+ // Run trace (#494) — the terminal mirror is on only in the real CLI (io=prompts) (test stub io records events only).
45
45
  const trace = createRunTrace();
46
- // Ctrl+C로 끊어도 기록이 남는다 (#561) — 대화형은 사람이 중간에 끊는 일이 잦다.
46
+ // The record stays even when cut off with Ctrl+C (#561) — people often stop the interactive wizard midway.
47
47
  const disarmSignals = trace.armSignals({ targetRoot: cwd, now: clock?.now || "" });
48
- // finally에서 기록할 때 쓰는 값 — try 안에서 확정되기 전에 취소될 수 있으므로 바깥에 둔다 (#561).
48
+ // Values used when recording in finally — kept outside because a cancel may come before try settles them (#561).
49
49
  let traceFrom = "";
50
50
  let traceTo = "";
51
- // 기록 파일을 남기는 모드인지 — 모드 선택 전에 취소될 수 있어 기본값은 false.
51
+ // Whether this mode leaves record files — false by default since a cancel may come before mode selection.
52
52
  let recordArtifacts = false;
53
- // 기록을 남기지 않고 끝낼 경우(version/issues 모드의 정상 완주)에만 true.
54
- // 취소·예외는 모드와 무관하게 남긴다 — 끊겼을 때가 "어디까지 갔는지"가 가장 궁금한 순간이다.
53
+ // true only when ending without a record (normal finish of version/issues modes).
54
+ // Cancels and exceptions are recorded regardless of mode — when cut off is exactly when "how far did it get" matters most.
55
55
  let skipRecord = false;
56
56
  if (io === prompts) trace.mirrorStart();
57
57
  try {
58
- // 템플릿 먼저 획득 — 배너에 실제 템플릿 버전을 표시
59
- // 대화형도 끝에 스킬 설치·업데이트 > scripts/common 유지 (#994)
58
+ // Fetch the template first — the banner shows the real template version
59
+ // Interactive also installs/updates skills at the end > keep scripts/common (#994)
60
60
  trace.step("acquire-template", () => acquireTemplate({ tempDir, source, keep: [SHARED_SCRIPTS_DIR_NAME] }), { source: source?.type || "git" });
61
61
  const templateVersion = readTemplateVersion(tempDir);
62
62
  traceTo = templateVersion;
63
63
 
64
- // 층1 — 시작 배너 (#446 확정 시안 A). 스텁엔 banner 없음 → intro 폴백.
64
+ // Layer 1 — start banner (#446 settled mockup A). Stubs have no banner → intro fallback.
65
65
  if (io.banner) io.banner({ version: templateVersion, modeLabel: t("banner.interactive") });
66
66
  else io.intro?.(`projectops, ${t("banner.interactive")}`);
67
67
 
68
- // 기존 version.yml — version/version_code/paths/옵션 보존의 단일 진실
68
+ // Existing version.yml — single source of truth for keeping version/version_code/paths/options
69
69
  const vyPath = join(cwd, "version.yml");
70
70
  const existing = existsSync(vyPath) ? parseExisting(readFileSync(vyPath, "utf8")) : null;
71
71
  traceFrom = existing?.templateVersion || "";
72
72
 
73
- // 층4 — IDE Skills 현재 상태 · 층5 — 신규/업데이트 판별 (#446)
73
+ // Layer 4 — current IDE skills status · Layer 5 — new vs. update (#446)
74
74
  io.installKind?.({ currentTemplateVersion: existing?.templateVersion || "", templateVersion });
75
75
 
76
- // 1) 모드 선택 — 기존 통합 레포면 업데이트 항목을 맨 위에 노출 (#502)
76
+ // 1) Mode selection — for an already integrated repo, show the update item at the top (#502)
77
77
  const updateInfo = existing?.templateVersion ? { from: existing.templateVersion, to: templateVersion } : null;
78
- // 실행 경계(#561) — 대화형은 사람이 무엇을 골랐는지가 핵심 기록이다.
78
+ // Run boundary (#561) — for interactive, what the person chose is the key record.
79
79
  trace.event("run", "start", "interactive", { templateVersion, isUpdate: !!updateInfo });
80
80
  const picked = await io.selectMode(updateInfo ? { update: updateInfo } : {});
81
81
  trace.event("prompt", "mode", String(picked ?? ""), { update: !!updateInfo });
82
82
  if (picked === CANCEL || picked == null) { trace.event("run", "cancelled", "mode-select", { reason: "user-cancel" }); io.cancelMessage?.(t("flow.cancelInstall")); return 0; }
83
- // 업데이트 모드(#502): 저장된 통합 범위(templateMode, 없으면 full)를 재실행하고
84
- // 이하 updateRun 분기가 질문을 최소화한다 ("저장된 설정 그대로 반영"이 계약).
83
+ // Update mode (#502): re-runs the saved integration scope (templateMode, full if missing),
84
+ // and the updateRun branches below minimize questions ("apply the saved settings as is" is the contract).
85
85
  const updateRun = picked === "update";
86
86
  const mode = updateRun ? (existing?.templateMode || "full") : picked;
87
87
 
88
- // Breaking Changes 게이트 (모든 모드 공통, 대화형은 확인 질문)
89
- let breakingReport = null; // #493 — 통과 구간 항목을 가이드에 조치 방법 전문으로 임베드
88
+ // Breaking changes gate (all modes; interactive asks for confirmation)
89
+ let breakingReport = null; // #493 — embeds the full action steps of entries in range into the guide
90
90
  const proceed = await trace.stepAsync("breaking-check", () => runBreakingCheck({
91
91
  cwd, tempDir, templateVersion,
92
92
  askYesNo: (msg, def) => io.askYesNo(msg, def),
@@ -94,7 +94,7 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
94
94
  }));
95
95
  if (!proceed) { trace.event("run", "cancelled", "breaking-gate", { reason: "user-declined" }); io.cancelMessage?.(t("flow.cancelBreaking")); return 0; }
96
96
 
97
- // skills 모드 — IDE 스킬 설치 (템플릿 통합 없음). 대화형으로 실행.
97
+ // skills mode — install IDE skills (no template integration). Runs interactively.
98
98
  if (mode === "skills") {
99
99
  io.ideStatus?.();
100
100
  await skills({ templateVersion, tempDir, interactive: true });
@@ -102,10 +102,10 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
102
102
  return 0;
103
103
  }
104
104
 
105
- // issues 모드는 정보 수집 없이 바로 실행
105
+ // issues mode runs right away without gathering info
106
106
  if (mode === "issues") {
107
- // 기존 레포의 템플릿 언어와 라벨 표기는 저장값을 따른다. 빈 baseCtx 로 만들면 둘 다 null 이 되어
108
- // runIssues 의 기본값(en)이 적용돼, 키 없는 기존 한국어 레포가 질문 없이 영문으로 바뀐다 (#769).
107
+ // Existing repos keep the saved template language and label style. Starting from an empty baseCtx would make both null,
108
+ // applying runIssues' default (en) and silently switching existing Korean repos without the key to English (#769).
109
109
  const ctx = createContext({
110
110
  ...baseCtx, mode, force: true,
111
111
  language: resolveRepoLanguage({ flag: null, stored: existing?.options?.language, existing: !!existing }),
@@ -117,9 +117,9 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
117
117
  return 0;
118
118
  }
119
119
 
120
- // full/version/workflows — 감지 (version은 기존 version.yml 최우선)
120
+ // full/version/workflows — detection (version: existing version.yml first)
121
121
  let types = detectTypes(cwd);
122
- // 업데이트 모드 — 저장된 타입 우선 (재감지로 타입 집합이 흔들리지 않게, #502)
122
+ // Update mode — saved types first (so re-detection does not shake the type set, #502)
123
123
  if (updateRun && existing?.types?.length) {
124
124
  const saved = existing.types.filter((t) => VALID_TYPES.includes(t));
125
125
  if (saved.length) types = saved;
@@ -127,9 +127,9 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
127
127
  let version = (existing?.version) || detectVersion(cwd);
128
128
  let branch = detectDefaultBranch(cwd);
129
129
  const repoName = detectRepoName(cwd);
130
- const versionCode = existing?.versionCode ?? 1; // 기존 빌드번호 보존
131
- // 옵션 초기값은 비대화형과 같은 resolve-options.js 에서 받는다 (#851).
132
- // 질문을 건너뛰는 모드(version 등)도 이 값이 그대로 기록되므로 타입 적용성 정리까지 거친 값이어야 한다.
130
+ const versionCode = existing?.versionCode ?? 1; // Keep the existing build number
131
+ // Initial option values come from resolve-options.js, same as non-interactive (#851).
132
+ // Modes that skip questions (version, etc.) record these values as is, so they must already include the type applicability cleanup.
133
133
  const { values: init, sources: initSources } = resolveOptions({ existing, types, cwd });
134
134
  let deployTarget = init.deployTarget;
135
135
  let publishTargets = init.publishTargets;
@@ -138,20 +138,20 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
138
138
  let codeReviewCoderabbit = init.codeReviewCoderabbit;
139
139
  let changelogProvider = init.changelogProvider;
140
140
  let changelogBaseUrl = init.changelogBaseUrl;
141
- let deployBranch = init.deployBranch; // #456 — 비어 있으면 기록하지 않는다. 질문에서 고른 값만 남긴다
142
- let deployBranchReady = null; // #490 — 이번 실행에서 개발 브랜치 존재/생성이 확인됐는지
143
- let deployBranchCreated = null; // #493 — 마법사가 직접 생성했는지 (가이드 기록용)
144
- let intent = init.intent; // #485 프로젝트 성격
145
- // 묻지 않는 값 — 저장값 보존 규칙은 resolve-options.js 에 있다
141
+ let deployBranch = init.deployBranch; // #456 — not recorded when empty. Only a value picked in the question is kept
142
+ let deployBranchReady = null; // #490 — whether the development branch was confirmed/created in this run
143
+ let deployBranchCreated = null; // #493 — whether the wizard created it (for the guide record)
144
+ let intent = init.intent; // #485 project nature
145
+ // Values not asked — the saved-value rule lives in resolve-options.js
146
146
  const { semverAuto, appRelease, closeOnRelease, excludedWorkflows, storeLocales, storeLocalesIos, storeLocalesPlay, projectsSync, deployTriggerBranch, ciMinutesSaver } = init;
147
147
  const semverAutoNewlyOn = initSources.semverAutoNewlyOn;
148
- // 레포 문구 언어(#769)·라벨 표기(#776): 기존 레포에는 영문 전환을 한 번만 제안한다(아래).
148
+ // Repo text language (#769) and label style (#776): existing repos get the English switch offered only once (below).
149
149
  let language = init.language;
150
150
  let labelStyle = init.labelStyle;
151
151
  const showOptional = mode === "full" || mode === "workflows";
152
152
  const realTty = process.stdout.isTTY === true;
153
- // 기존 한글 라벨 레포에는 영문 표준 전환을 한 번만 제안한다(#776). 거절하면 한글을 저장해 다시 묻지 않는다.
154
- // 라벨 정의의 from_name 이 이슈에 붙은 라벨을 그대로 옮기므로 이슈 이력은 보존된다.
153
+ // Existing repos with Korean labels get the English standard switch offered only once (#776). If declined, Korean is saved so it is not asked again.
154
+ // from_name in the label definitions carries over the labels attached to issues, so issue history is kept.
155
155
  if (existing && !existing.options?.labelStyle && realTty && showOptional && io.askYesNo) {
156
156
  const adopt = await io.askYesNo(t("labelStyle.propose"), false);
157
157
  labelStyle = adopt ? "en" : "ko";
@@ -161,10 +161,10 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
161
161
  language = adopt ? "en" : "ko";
162
162
  }
163
163
 
164
- // 층2 — 감지 로그 (#446)
164
+ // Layer 2 — detection log (#446)
165
165
  io.detectionLog?.({ types, version, branch });
166
166
 
167
- // 배포/publish 축 + Secret 백업 질문 (#439 — full/workflows만)
167
+ // Deploy/publish axes + secret backup questions (#439 — full/workflows only)
168
168
  if (showOptional) {
169
169
  const r = await askAllOptionalWorkflows({
170
170
  tempDir, types, targetRoot: cwd, defaultBranch: branch,
@@ -188,7 +188,7 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
188
188
  publishTargets = r.publish;
189
189
  includeSecretBackup = r.secretBackup;
190
190
  codeReviewCoderabbit = r.codeReviewCoderabbit;
191
- aiPrSummary = r.aiPrSummary; // #851 — 빠져 있어 PR 요약 선택이 버려졌다
191
+ aiPrSummary = r.aiPrSummary; // #851 — was missing, so the PR summary choice was dropped
192
192
  changelogProvider = r.changelogProvider;
193
193
  changelogBaseUrl = r.changelogBaseUrl;
194
194
  deployBranch = r.deployBranch;
@@ -197,10 +197,10 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
197
197
  intent = r.intent;
198
198
  }
199
199
 
200
- // 확인/수정 루프 — ESC는 '머무르기' (명시적 '아니오'만 종료)
200
+ // Confirm/edit loop — ESC means 'stay' (only an explicit 'no' exits)
201
201
  let paths = new Map();
202
202
  let confirmed = false;
203
- // 업데이트 모드 — 카드는 보여주되 확인 루프 생략 (#502: 설정 변경은 기존 모드의 몫)
203
+ // Update mode — show the card but skip the confirm loop (#502: changing settings belongs to the existing modes)
204
204
  if (updateRun) {
205
205
  if (io.analysisCard) {
206
206
  io.analysisCard({ mode, modeLabel: t("flow.updateScope", { scope: modeLabel(mode) }), types, version, branch, deployTarget, publishTargets, includeSecretBackup, showOptional, paths });
@@ -210,7 +210,7 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
210
210
  confirmed = true;
211
211
  }
212
212
  while (!confirmed) {
213
- // 층3 — 프로젝트 분석 개요 카드 (#446). 스텁엔 없음 → note 폴백.
213
+ // Layer 3 — project analysis overview card (#446). Missing in stubs → note fallback.
214
214
  if (io.analysisCard) {
215
215
  io.analysisCard({ mode, modeLabel: modeLabel(mode), types, version, branch, deployTarget, publishTargets, includeSecretBackup, showOptional, paths });
216
216
  } else {
@@ -218,19 +218,19 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
218
218
  }
219
219
  const choice = await io.confirmProjectMenu();
220
220
  if (choice === "cancel") { trace.event("run", "cancelled", "confirm-loop", { reason: "user-cancel" }); io.cancelMessage?.(t("flow.cancelInstall")); return 0; }
221
- if (isCancel(choice) || choice == null) continue; // ESC = 머무르기 (루프 재출력)
221
+ if (isCancel(choice) || choice == null) continue; // ESC = stay (redraw the loop)
222
222
  if (choice === "continue") { confirmed = true; break; }
223
- // edit 루프
223
+ // edit loop
224
224
  let editing = true;
225
225
  while (editing) {
226
- // #498 — 타입에 적용 불가한 배포 축 항목은 메뉴에서 숨김 (타입을 바꾸면 다음 진입부터 다시 노출)
226
+ // #498 — hide deploy axis items that do not apply to the types (shown again from the next entry if types change)
227
227
  const what = await io.editMenu({ showOptional, axes: applicableTargets(types) });
228
228
  if (isCancel(what) || what === "done") { editing = false; break; }
229
229
  if (what === "type") {
230
230
  const t = await io.selectTypes(types);
231
231
  trace.event("prompt", "types", (Array.isArray(t) ? t : []).join(",") || "", { before: types });
232
232
  if (!isCancel(t) && Array.isArray(t) && t.length) {
233
- // 타입 집합이 실제로 바뀌면 경로 재해석 대상으로 초기화 (정렬 집합 비교)
233
+ // When the type set really changes, reset it for path re-resolution (sorted set comparison)
234
234
  const oldSorted = [...types].sort().join(",");
235
235
  types = t.filter((x) => VALID_TYPES.includes(x));
236
236
  if ([...types].sort().join(",") !== oldSorted) paths = new Map();
@@ -238,7 +238,7 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
238
238
  } else if (what === "version") {
239
239
  const v = await io.askText(t("flow.askVersion"), version);
240
240
  if (!isCancel(v) && v !== version) {
241
- // semver 형식 검증
241
+ // semver format check
242
242
  if (/^\d+\.\d+\.\d+$/.test(v)) version = v;
243
243
  else io.note?.(t("flow.badVersion"), t("flow.badVersionTitle"));
244
244
  }
@@ -246,7 +246,7 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
246
246
  const b = await io.askText(t("flow.askBranch"), branch);
247
247
  if (!isCancel(b) && b) branch = b;
248
248
  } else if (OPTION_AXES.includes(what)) {
249
- // #483 — 선택한 축 하나만 재질문 (scope). 나머지 옵션은 현재값 그대로 유지.
249
+ // #483 — re-ask only the one chosen axis (scope). Other options keep their current values.
250
250
  const r = await askAllOptionalWorkflows({
251
251
  tempDir, types, targetRoot: cwd, defaultBranch: branch,
252
252
  current: {
@@ -276,22 +276,22 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
276
276
  }
277
277
  }
278
278
 
279
- // 경로 확정 (full/version만. 저장값·후보 스캔·질문)
279
+ // Settle paths (full/version only. saved values, candidate scan, questions)
280
280
  if (mode === "full" || mode === "version") {
281
281
  paths = await resolveProjectPaths({
282
282
  root: cwd, types, paths, existingPaths: existing?.paths ?? new Map(),
283
283
  force: false, tty: realTty, io: io.engineIo ?? {},
284
284
  });
285
- // 타입 탈출구 (#487) — 경로 단계에서 제외된 타입은 version.yml·복사·env 전 단계에서 뺀다
285
+ // Type escape hatch (#487) — types excluded at the path step are dropped from version.yml, copy and env steps
286
286
  types = filterExcludedTypes(types, paths);
287
287
  } else {
288
288
  for (const t of types) if (t !== "basic" && !paths.has(t)) paths.set(t, existing?.paths.get(t) || ".");
289
289
  }
290
290
 
291
- // @wizard env 계획 질문 (full/workflows만).
292
- // 업데이트 모드는 생략 — 신규 파일은 기본값, 교체 파일은 아래 carryover가 기존 실값을 이월한다.
291
+ // @wizard env plan questions (full/workflows only).
292
+ // Skipped in update mode — new files get defaults; replaced files carry over existing values via carryover below.
293
293
  const resolvers = makeResolvers(cwd, repoName, paths);
294
- // 다국어 스토어인데 store_locales 미설정이면 안내만 한다 (#843) — 복사 전 상태로 판정
294
+ // Multi-language store with store_locales unset: notice only (#843) — judged on the state before copying
295
295
  const storeLocalesHint = detectStoreLocalesHint({ root: cwd, existing, paths, trace });
296
296
  let envValues = new Map(), envUseDefaults = true;
297
297
  if (showOptional && !updateRun) {
@@ -303,9 +303,9 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
303
303
  envUseDefaults = plan.useDefaults;
304
304
  }
305
305
 
306
- // 업데이트 모드 충돌 처리 (#502) — 타입별 3지선다 대신 일괄 확인 1회(기본 Y: .bak 백업 후 교체).
307
- // 교체를 선택하면 기존 설치본의 env 실값을 추출해 새 파일에 이월(carryover)한다 —
308
- // 기본값 재치환으로 사용자가 채운 값(FIREBASE_APP_ID 등)이 초기화되는 것을 막는 핵심.
306
+ // Update mode conflict handling (#502) — one bulk confirmation (default Y: .bak backup then replace) instead of a 3-way choice per type.
307
+ // When replacing, real env values are extracted from the existing install and carried over into the new file —
308
+ // the key to keeping values the user filled in (FIREBASE_APP_ID, etc.) from being reset by default re-substitution.
309
309
  let updateDecisions = null;
310
310
  if (showOptional && updateRun) {
311
311
  const liteCtx = { types, paths, deployTarget, publishTargets, repoName, resolvers, branch, deployBranch };
@@ -335,13 +335,13 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
335
335
  aiPrSummary, codeReviewCoderabbit, changelogProvider, changelogBaseUrl, deployBranch, intent, semverAuto, appRelease, labelStyle, closeOnRelease, projectsSync, language, excludedWorkflows, storeLocales, storeLocalesIos, storeLocalesPlay,
336
336
  deployTriggerBranch, ciMinutesSaver,
337
337
  repoName, templateVersion, resolvers, envValues, envUseDefaults, now, today,
338
- // #502 — version 모드가 기존 full 기록을 강등하지 않도록 (full이 우세)
338
+ // #502 — keeps version mode from downgrading an existing full record (full wins)
339
339
  recordMode: init.recordMode,
340
340
  });
341
341
  ctx.templateVersion = templateVersion;
342
342
 
343
- // 기존 워크플로우 충돌 3지선 — 타입당 1회 결정을 파일에 캐시 적용
344
- // 업데이트 모드는 위에서 일괄 결정(updateDecisions)했으므로 3지선다를 건너뛴다 (#502).
343
+ // 3-way choice for existing workflow conflicts — one decision per type, cached and applied to its files
344
+ // Update mode decided in bulk above (updateDecisions), so the 3-way choice is skipped (#502).
345
345
  let hooks = updateDecisions ? { decisions: updateDecisions } : {};
346
346
  if (showOptional && io.engineIo?.select && !updateRun) {
347
347
  const conflicts = listWorkflowConflicts(ctx, tempDir, cwd);
@@ -358,7 +358,7 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
358
358
  { value: "template", label: t("flow.opt.template") },
359
359
  ],
360
360
  });
361
- perType.set(type, isCancel(sel) || sel == null ? "skip" : sel); // ESC = 건너뛰기
361
+ perType.set(type, isCancel(sel) || sel == null ? "skip" : sel); // ESC = skip
362
362
  }
363
363
  decisions.set(filename, perType.get(type));
364
364
  }
@@ -366,8 +366,8 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
366
366
  }
367
367
  }
368
368
 
369
- // 레거시 마이그레이션 (#470) — 워크플로우를 만지는 모드에서만. 대화형은 safe 티어 확인 1회.
370
- let migrationsResult = null; // #493 — 가이드 기록용
369
+ // Legacy migration (#470) — only in modes that touch workflows. Interactive confirms the safe tier once.
370
+ let migrationsResult = null; // #493 — for the guide record
371
371
  if (mode === "full" || mode === "workflows") {
372
372
  migrationsResult = await runMigrations({
373
373
  targetRoot: cwd,
@@ -377,11 +377,11 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
377
377
  for (const e of migrationsResult.confirmPending ?? []) trace.event("legacy", "leftover-old-gen", e.file, { replacement: e.replacedBy ?? "", reason: e.reason ?? "" });
378
378
  }
379
379
 
380
- // 고아 타입 워크플로우 정리 (#487) — 타입 변경으로 선택에서 빠진 타입의 잔존 워크플로우
381
- const orphanReport = { cleaned: [], pending: [] }; // #493 — 가이드 기록용
380
+ // Orphan type workflow cleanup (#487) — leftover workflows of types dropped from the selection by a type change
381
+ const orphanReport = { cleaned: [], pending: [] }; // #493 — for the guide record
382
382
  if (mode === "full" || mode === "workflows") {
383
383
  const orphans = detectOrphanWorkflows({ tempDir, targetRoot: cwd, selectedTypes: types,
384
- // 껐는데 남아 계속 도는 워크플로우도 함께 잡는다 (#566)
384
+ // Also catch workflows that were turned off but remain and keep running (#566)
385
385
  options: { includeSecretBackup, aiPrSummary: aiPrSummary !== false, projectsSync, deployTarget } });
386
386
  if (orphans.length > 0) {
387
387
  io.note?.(
@@ -408,8 +408,8 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
408
408
  else if (mode === "version") result = trace.step("install-version", () => runVersion(ctx, tempDir, cwd));
409
409
  else if (mode === "workflows") result = trace.step("install-workflows", () => runWorkflows(ctx, tempDir, cwd, { ...hooks, trace }));
410
410
 
411
- // 통합 후 IDE 스킬 제안 (사전 질문 게이트, 기본 N)
412
- // 업데이트 모드(#502): 이미 설치된 IDE 스킬만 질문 없이 최신화 (미설치 IDE는 건드리지 않음)
411
+ // IDE skills offer after integration (gate question first, default N)
412
+ // Update mode (#502): update only already-installed IDE skills without asking (IDEs not installed are left alone)
413
413
  if (updateRun) {
414
414
  await skills({ templateVersion, tempDir, interactive: false, installedOnly: true });
415
415
  } else {
@@ -417,10 +417,10 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
417
417
  if (wantSkills === true) { io.ideStatus?.(); await skills({ templateVersion, tempDir, interactive: true }); }
418
418
  }
419
419
 
420
- // 마이그레이션 기록 (#493/#494) — Layer 2/3 트레이스 파일 + Layer 1 가이드 엔트리 (full/workflows만)
420
+ // Migration record (#493/#494) — Layer 2/3 trace files + Layer 1 guide entry (full/workflows only)
421
421
  let migrationGuidePath = null;
422
422
  recordArtifacts = mode === "full" || mode === "workflows";
423
- // 경로는 먼저 계산하고 실제 쓰기는 완료 화면 뒤로 미룬다 — 요약까지 터미널 미러에 담기 위함 (#561)
423
+ // Compute paths first and delay the actual write until after the finish screen — so the summary is captured in the terminal mirror (#561)
424
424
  const files = recordArtifacts
425
425
  ? trace.paths({ fromVersion: existing?.templateVersion || "", toVersion: templateVersion, now })
426
426
  : null;
@@ -429,7 +429,7 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
429
429
  now, mode, types, repoName,
430
430
  templateFrom: existing?.templateVersion || "", templateTo: templateVersion,
431
431
  options: { deploy: deployTarget, publish: publishTargets, secretBackup: includeSecretBackup, coderabbit: codeReviewCoderabbit, changelogProvider, intent, semverAuto , appRelease, labelStyle, closeOnRelease, projectsSync, language, excludedWorkflows, storeLocales, storeLocalesIos, storeLocalesPlay },
432
- storeLocalesHint, // #843 체크리스트 한 항목
432
+ storeLocalesHint, // #843 one checklist item
433
433
  branches: { defaultBranch: branch, deployBranch, ready: deployBranchReady, created: deployBranchCreated },
434
434
  breaking: breakingReport, migrations: migrationsResult, orphans: orphanReport,
435
435
  events: trace.events, counters: { skipped: result?.workflows?.skipped ?? 0 },
@@ -437,19 +437,19 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
437
437
  }).guidePath;
438
438
  }
439
439
 
440
- // 완료 요약
440
+ // Finish summary
441
441
  const summaryCtx = {
442
442
  mode, types, version, deployBranch, deployBranchReady, migrationGuidePath,
443
443
  counters: { workflows: result?.workflows?.copied ?? 0, workflowFiles: result?.workflows?.copiedFiles ?? [], utilModules: 0 },
444
- skippedConflicts: result?.workflows?.skippedConflicts ?? [], // #654 병합 안내
445
- replacedBak: result?.workflows?.replacedBak ?? [], // #673 기준점 없이 교체한 파일 안내
446
- legacyLeftover: migrationsResult?.confirmPending ?? [], // #809 신·구 세대 동시 실행 안내
447
- notInstalled: result?.workflows?.notInstalled ?? [], // #810 깔지 않은 워크플로우 안내
444
+ skippedConflicts: result?.workflows?.skippedConflicts ?? [], // #654 merge notice
445
+ replacedBak: result?.workflows?.replacedBak ?? [], // #673 notice for files replaced without a reference point
446
+ legacyLeftover: migrationsResult?.confirmPending ?? [], // #809 notice for old and new generations running together
447
+ notInstalled: result?.workflows?.notInstalled ?? [], // #810 notice for workflows not installed
448
448
  semverAutoNewlyOn,
449
- storeLocalesHint, // #843 다국어 스토어 안내
450
- verification: result?.verification, // #549 설치 검증 결과
451
- aiPrSummary, codeReviewCoderabbit, // #569 — 고른 것만 안내
452
- logDir: files ? MIGRATION_DIR : null, // #561 기록 위치 안내
449
+ storeLocalesHint, // #843 multi-language store notice
450
+ verification: result?.verification, // #549 install verification result
451
+ aiPrSummary, codeReviewCoderabbit, // #569 — mention only what was picked
452
+ logDir: files ? MIGRATION_DIR : null, // #561 record location notice
453
453
  logFile: files?.logFile ?? null,
454
454
  traceFile: files?.traceFile ?? null,
455
455
  };
@@ -462,7 +462,7 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
462
462
  }
463
463
  io.outro?.(t("flow.done", { mode }));
464
464
 
465
- // 완료 화면까지 출력한 뒤 finally에서 닫는다 (#561) — 여기서 닫으면 이 아래 화면이 안 담긴다.
465
+ // Close in finally after printing the finish screen (#561) — closing here would drop the screen below from the record.
466
466
  trace.event("run", "end", mode || "", {
467
467
  workflowsCopied: result?.workflows?.copied ?? 0,
468
468
  workflowsSkipped: result?.workflows?.skipped ?? 0,
@@ -476,8 +476,8 @@ export async function runInteractive(baseCtx, { cwd = process.cwd(), source = {
476
476
  });
477
477
  throw err;
478
478
  } finally {
479
- // 어떤 경로로 빠져나가든 기록을 남긴다 (#561) — 중간 취소·예외·Ctrl+C 포함.
480
- // 완료 화면 출력이 try 안에 있어야 그 화면까지 미러에 담긴 채로 여기서 닫힌다.
479
+ // Leave a record however it exits (#561) — including mid-run cancel, exceptions and Ctrl+C.
480
+ // The finish screen output must be inside try so it is captured in the mirror before closing here.
481
481
  if (skipRecord) trace.mirrorStop();
482
482
  else trace.finalize({ targetRoot: cwd, fromVersion: traceFrom, toVersion: traceTo, now: clock?.now || "" });
483
483
  disarmSignals();
@@ -1,5 +1,5 @@
1
- // issues 모드 (이슈·PR 템플릿만 설치).
2
- // 이슈/PR 템플릿 + Discussion 템플릿만 복사.
1
+ // issues mode (installs issue/PR templates only).
2
+ // Copies only issue/PR templates + Discussion templates.
3
3
  import { applyLabelStyle } from "../core/label-style.js";
4
4
  import { applyRepoLanguage } from "../core/repo-language.js";
5
5
  import { t } from "../i18n/index.js";
@@ -7,9 +7,9 @@ import { copyIssueTemplates, copyDiscussionTemplates, stripIssueTemplateAssignee
7
7
 
8
8
  export function runIssues(context, tempDir, targetRoot = ".") {
9
9
  copyIssueTemplates(tempDir, targetRoot);
10
- copyDiscussionTemplates(tempDir, targetRoot); // #988 — 오버레이·라벨 변환 대상이라 그보다 먼저
11
- const { failed } = applyRepoLanguage(tempDir, targetRoot, context.language ?? "en"); // #769 — 라벨 변환보다 먼저
10
+ copyDiscussionTemplates(tempDir, targetRoot); // #988 — overlay and label conversion targets, so before them
11
+ const { failed } = applyRepoLanguage(tempDir, targetRoot, context.language ?? "en"); // #769 — before the label conversion
12
12
  if (failed.length) console.error(t("language.overlayFailed", { n: failed.length, files: failed.map((f) => f.file).join(", ") }));
13
- stripIssueTemplateAssignees(targetRoot); // #782 — 오버레이가 다시 넣으므로 그 뒤에
13
+ stripIssueTemplateAssignees(targetRoot); // #782 — the overlay puts it back, so after it
14
14
  applyLabelStyle(targetRoot, context.labelStyle ?? "en"); // #776
15
15
  }