projectops 4.104.6 → 4.104.7

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 +19 -19
  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 +115 -115
  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,42 +1,42 @@
1
- // @wizard env 토큰 엔진: 값 치환, 잔여 토큰 치환, 미변경 판정.
2
- // ⚠️ YAML 파싱/재직렬화 금지 — 라인 단위 문자열 처리 (포맷·주석 보존이 unchanged 판정 전제).
1
+ // @wizard env token engine: value substitution, leftover token substitution, unchanged check.
2
+ // ⚠️ No YAML parse/re-serialize — line-based string handling (keeping format and comments is a premise of the unchanged check).
3
3
  import { substituteBranches } from "./branch-sub.js";
4
4
 
5
- // KEY 정규식: [A-Z_]+ (대문자+언더스코어만). ask/auto 마커가 있는 라인만 대상.
5
+ // KEY regex: [A-Z_]+ (uppercase and underscore only). Only lines with an ask/auto marker.
6
6
  const MARKER_RE = /#\s*@wizard\s+(ask|auto):(.*)$/;
7
7
  const KEY_RE = /^(\s*)([A-Z_]+):/;
8
8
  const PATHS_ANCHOR_RE = /#\s*@wizard\s+paths-anchor/;
9
9
 
10
- // 한 라인을 파싱해 {indent,key,action,arg} 반환. ask/auto 마커 없으면 null.
10
+ // Parse one line and return {indent,key,action,arg}. null without an ask/auto marker.
11
11
  export function parseWizardLine(line) {
12
12
  const marker = line.match(MARKER_RE);
13
13
  if (!marker) return null;
14
14
  const km = line.match(KEY_RE);
15
- if (!km) return null; // KEY: 형식 아니면 (예: paths-anchor 주석) 무시
15
+ if (!km) return null; // Ignore anything not in KEY: form (e.g. the paths-anchor comment)
16
16
  return { indent: km[1], key: km[2], action: marker[1], arg: marker[2].trim() };
17
17
  }
18
18
 
19
- // `KEY: "..."` 따옴표 안 값 치환 + 그 줄 끝 `# @wizard ...` 주석 제거.
20
- // 라인 하나에 대해 수행. value가 빈문자면 치환 스킵.
19
+ // Replace the quoted value in `KEY: "..."` + drop the trailing `# @wizard ...` comment on that line.
20
+ // Works on a single line. Skips substitution when value is an empty string.
21
21
  export function setEnvLine(line, key, value) {
22
22
  if (value === "" || value == null) return line;
23
- // CRLF 안전: 라인 끝 \r을 분리해 처리 후 복원 (autocrlf 프로젝트 대응)
23
+ // CRLF safe: split off the trailing \r, process, then restore (for autocrlf projects)
24
24
  const cr = line.endsWith("\r") ? "\r" : "";
25
25
  const body = cr ? line.slice(0, -1) : line;
26
- // 값 치환: KEY: "기존값" → KEY: "value"
26
+ // Value substitution: KEY: "old" → KEY: "value"
27
27
  let out = body.replace(
28
28
  new RegExp(`^(\\s*${key}:\\s*")[^"]*(")`),
29
29
  (_m, p1, p2) => `${p1}${value}${p2}`,
30
30
  );
31
- // 그 줄 끝 # @wizard ... 주석 제거 (앞 공백째)
31
+ // Drop the trailing # @wizard ... comment on that line (including the leading space)
32
32
  out = out.replace(/(\S)[^\S\r\n]*#[^\S\r\n]*@wizard[^\S\r\n].*$/, "$1");
33
33
  return out + cr;
34
34
  }
35
35
 
36
- // 설치본에서 env 실값 추출 (#502 — 업데이트 모드 carryover).
37
- // 치환 시 @wizard 주석은 제거되지만 `KEY: "값"` 라인은 남는다(setEnvLine) — 그 값을 걷어온다.
38
- // 템플릿 지식 불필요: substituteEnv가 values를 ask 키에만 참조하므로 무관 키가 섞여도 무해하다.
39
- // 빈 값("")은 제외 — substituteEnv도 빈 chosen을 무시하고 기본값을 쓴다 (동일 규칙).
36
+ // Extract real env values from the installed copy (#502 — update mode carryover).
37
+ // Substitution drops the @wizard comment but keeps the `KEY: "value"` line (setEnvLine) — collect that value.
38
+ // No template knowledge needed: substituteEnv looks up values only for ask keys, so unrelated keys are harmless.
39
+ // Empty values ("") are excluded — substituteEnv also ignores an empty choice and uses the default (same rule).
40
40
  export function extractEnvValues(installedContent) {
41
41
  const values = new Map();
42
42
  for (const raw of String(installedContent || "").split(/\r?\n/)) {
@@ -46,47 +46,47 @@ export function extractEnvValues(installedContent) {
46
46
  return values;
47
47
  }
48
48
 
49
- // 예시용 기본값 (#810) — 그대로 배포되면 남의 도메인으로 요청이 간다.
50
- // 사용자가 값을 고르지 않은 경로(--force·기본값 사용)에서는 채우지 않고 __KEY__ 를 남긴다.
51
- // 그러면 설치 후 검증(verify.js)이 미치환으로 잡아 완료 화면에 "직접 채울 것"으로 보여준다.
49
+ // Sample defaults (#810) — deployed as is, requests would go to someone else's domain.
50
+ // On paths where the user picked no value (--force, defaults), leave __KEY__ unfilled.
51
+ // Post-install verification (verify.js) then flags it as unreplaced and the finish screen shows it as "fill in yourself".
52
52
  export function isPlaceholderDefault(value) {
53
53
  return /(^|\.)example\.(com|org|net)$/i.test(String(value || "").trim());
54
54
  }
55
55
 
56
- // resolver — 값 계산은 주입된 resolvers로 위임(순수성 유지).
56
+ // resolver — value computation is delegated to injected resolvers (keeps it pure).
57
57
  // resolvers: { repo, "spring-app-yml-dir"(type), "spring-app-yml-path"(type), "flutter-root" }
58
58
  export function resolveToken(name, type, resolvers = {}) {
59
59
  const fn = resolvers[name];
60
60
  return typeof fn === "function" ? (fn(type) ?? "") : "";
61
61
  }
62
62
 
63
- // 잔여 전역 토큰 치환 — 파일 본문·수집값(#489)·카드 표시가 전부 같은 규칙을 쓴다.
64
- // 파일에 실제 써지는 값과 version.yml deploy 블록 기억값이 어긋나지 않게 하는 단일 지점.
63
+ // Leftover global token substitution — the file body, collected values (#489) and card display all use this rule.
64
+ // The single point that keeps values written to files and the version.yml deploy block memory in sync.
65
65
  export function resolveGlobalTokens(s, repoName = "") {
66
66
  if (typeof s !== "string" || (!s.includes("__PROJECT_NAME__") && !s.includes("__APP_ARTIFACT_NAME__"))) return s;
67
67
  return s.replaceAll("__PROJECT_NAME__", repoName).replaceAll("__APP_ARTIFACT_NAME__", repoName);
68
68
  }
69
69
 
70
- // 파일 전체 치환.
71
- // content: 원본 워크플로우 텍스트. 반환: 치환된 텍스트.
70
+ // Whole-file substitution.
71
+ // content: original workflow text. Returns: substituted text.
72
72
  // opts:
73
- // type - 프로젝트 타입 (resolver·값 조회용)
74
- // values - Map<key,value>: ask 키의 사용자 선택값 (없으면 기본값=arg 또는 resolver)
75
- // useDefaults - true면 ask도 기본값 사용 (WF_USE_DEFAULTS=true, unchanged 비교의 전제)
76
- // resolvers - resolveToken용
77
- // repoName - __PROJECT_NAME__/__APP_ARTIFACT_NAME__ 치환값
78
- // projectPath - paths-anchor 치환용 ('.'이면 anchor 미변경)
79
- // collectSubs - 배열이면 치환 1건당 {key, action, before, after}를 push (#494 트레이스용)
73
+ // type - project type (for resolvers and value lookup)
74
+ // values - Map<key,value>: user choices for ask keys (default = arg or resolver when missing)
75
+ // useDefaults - when true, ask keys also use defaults (WF_USE_DEFAULTS=true, the premise of the unchanged comparison)
76
+ // resolvers - for resolveToken
77
+ // repoName - value for __PROJECT_NAME__/__APP_ARTIFACT_NAME__
78
+ // projectPath - for paths-anchor substitution ('.' leaves the anchor unchanged)
79
+ // collectSubs - if an array, push {key, action, before, after} per substitution (for the #494 trace)
80
80
  export function substituteEnv(content, opts = {}) {
81
81
  const { type = "", values = new Map(), useDefaults = true, resolvers = {}, repoName = "", projectPath = ".", collectAsks = null, collectSubs = null } = opts;
82
82
  if (!content.includes("@wizard")) return content;
83
83
 
84
- // CRLF 안전: EOL을 분리해 LF 기준으로 파싱·치환하고, 원래 EOL 스타일을 복원한다.
85
- // (JS 정규식의 `.`은 \r을 매칭하지 않아 `(.*)$` 마커 파싱이 CRLF에서 실패하기 때문.)
84
+ // CRLF safe: split off EOLs, parse and substitute on LF, then restore the original EOL style.
85
+ // (A JS regex `.` does not match \r, so `(.*)$` marker parsing fails on CRLF.)
86
86
  const usesCRLF = content.includes("\r\n");
87
87
  const lines = content.split(/\r?\n/);
88
88
  for (let i = 0; i < lines.length; i++) {
89
- const p = parseWizardLine(lines[i]); // 이미 \r 제거된 라인
89
+ const p = parseWizardLine(lines[i]); // Line already stripped of \r
90
90
  if (!p) continue;
91
91
  let val = "";
92
92
  if (p.action === "auto") {
@@ -95,14 +95,14 @@ export function substituteEnv(content, opts = {}) {
95
95
  let def = p.arg.startsWith("@") ? resolveToken(p.arg.slice(1), type, resolvers) : p.arg;
96
96
  const chosen = values.get(p.key);
97
97
  if (chosen != null && chosen !== "" && !useDefaults) val = chosen;
98
- else if (isPlaceholderDefault(def)) continue; // 예시값은 쓰지 않는다 — 토큰·마커 그대로 (#810)
98
+ else if (isPlaceholderDefault(def)) continue; // Sample values are not written — token and marker stay (#810)
99
99
  else val = def;
100
- // ask 키만 수집 (auto는 저장 안 함). deploy 블록용.
101
- // #489 — 파일 본문은 아래 전역 토큰 치환을 거치므로 수집값도 동일 치환해
102
- // version.yml deploy 블록이 설치본과 항상 바이트 일치하게 한다.
100
+ // Collect ask keys only (auto is not saved). For the deploy block.
101
+ // #489 — the file body goes through the global token substitution below, so collected values get the same substitution
102
+ // to keep the version.yml deploy block byte-identical to the installed copy.
103
103
  if (collectAsks) collectAsks.set(p.key, resolveGlobalTokens(val, repoName));
104
104
  }
105
- // #494 트레이스 — 치환 전후값 기록 (after는 파일 최종형과 동일하게 전역 토큰까지 해석)
105
+ // #494 trace — record before/after values (after resolves global tokens too, matching the final file)
106
106
  if (Array.isArray(collectSubs) && val !== "" && val != null) {
107
107
  const before = (lines[i].match(/:\s*"([^"]*)"/) || [])[1] ?? "";
108
108
  collectSubs.push({ key: p.key, action: p.action, before, after: resolveGlobalTokens(val, repoName) });
@@ -111,10 +111,10 @@ export function substituteEnv(content, opts = {}) {
111
111
  }
112
112
  let out = lines.join(usesCRLF ? "\r\n" : "\n");
113
113
 
114
- // 잔여 전역 토큰
114
+ // Leftover global tokens
115
115
  out = resolveGlobalTokens(out, repoName);
116
116
 
117
- // paths-anchor: 경로가 '.'이 아니면 주석 라인 전체를 paths 라인으로 교체
117
+ // paths-anchor: when the path is not '.', replace the whole comment line with a paths line
118
118
  if (PATHS_ANCHOR_RE.test(out) && projectPath && projectPath !== ".") {
119
119
  const eol = out.includes("\r\n") ? "\r\n" : "\n";
120
120
  out = out.split(/\r?\n/).map((line) => {
@@ -128,10 +128,10 @@ export function substituteEnv(content, opts = {}) {
128
128
  return out;
129
129
  }
130
130
 
131
- // 미변경 판정: 원본을 "기본값으로 가상 치환한 최종형"과 설치본을 바이트 비교.
131
+ // Unchanged check: byte-compare the installed copy with the original "virtually substituted with defaults".
132
132
  export function isUnchanged(templateContent, installedContent, opts = {}) {
133
- // 브랜치 치환(#477)도 가상 비교에 포함 — 치환 설치본이 "변경됨"으로 오판되어 매 업데이트마다
134
- // 재복사(.bak churn)되는 것을 막는다. opts.branches 미지정/표준값이면 no-op.
133
+ // Branch substitution (#477) is part of the virtual comparison — otherwise substituted installs are misjudged as "changed" and
134
+ // recopied on every update (.bak churn). No-op when opts.branches is unset or standard.
135
135
  const virtual = substituteBranches(
136
136
  substituteEnv(templateContent, { ...opts, useDefaults: true }),
137
137
  opts.branches ?? null, opts.filename ?? "",
@@ -1,39 +1,39 @@
1
- // wizard-prompts.yml 라벨 메타 파서: 파일 위치, 필드 조회, 워크플로우 표시 이름.
2
- // ⚠️ YAML 라이브러리 금지 — 라인 기반 파싱만 한다(외부 의존성 0 + 포맷 관용성).
1
+ // wizard-prompts.yml label metadata parser: file location, field lookup, workflow display names.
2
+ // ⚠️ No YAML library — line-based parsing only (zero external dependencies + format tolerance).
3
3
  import { join } from "node:path";
4
4
  import * as nodeFs from "node:fs";
5
5
  import { PATHS } from "./paths.js";
6
6
  import { getLang } from "../i18n/index.js";
7
7
 
8
- // wizard-prompts.yml 위치 (레포 루트 기준 상대경로)
8
+ // wizard-prompts.yml location (relative to the repo root)
9
9
  export const LABELS_FILE = ".github/config/wizard-prompts.yml";
10
10
 
11
- // 따옴표 감싸진 값이면 벗기고 trim ("값" → 값).
11
+ // Strip surrounding quotes and trim ("value" → value).
12
12
  function unquote(s) {
13
13
  const t = s.trim();
14
14
  if (t.startsWith('"') && t.endsWith('"') && t.length >= 2) return t.slice(1, -1);
15
15
  return t;
16
16
  }
17
17
 
18
- // wizard-prompts.yml 텍스트 → 파싱 객체 (순수 함수 — 테스트 직접 사용 가능).
19
- // 반환: { fields: Map<조회키, {label?,help?,example?,label_ko?...}>, workflowNames: [{key,value}],
20
- // workflowNamesByLang: Map<언어, [{key,value}]> }
21
- // - 조회키: "PROJECT_NAME" 또는 "flutter.APP_ARTIFACT_NAME" (dotted 타입 오버라이드)
22
- // - 언어별 문구 (#976): label/help/example = 영어 원문, label_ko 등 = 번역. _workflow_names_ko = 번역 블록
23
- // - 구형 1줄(KEY: "라벨")은 fields의 label로 흡수 (label만 의미)
18
+ // wizard-prompts.yml text → parsed object (pure function — tests can use it directly).
19
+ // Returns { fields: Map<lookup key, {label?,help?,example?,label_ko?...}>, workflowNames: [{key,value}],
20
+ // workflowNamesByLang: Map<language, [{key,value}]> }
21
+ // - lookup key: "PROJECT_NAME" or "flutter.APP_ARTIFACT_NAME" (dotted type override)
22
+ // - per-language text (#976): label/help/example = English original, label_ko etc. = translation. _workflow_names_ko = translation block
23
+ // - old one-line form (KEY: "label") is absorbed as the label in fields (label only)
24
24
  export function parseWizardPrompts(text) {
25
25
  const fields = new Map();
26
26
  const workflowNames = [];
27
27
  const workflowNamesByLang = new Map();
28
- let current = null; // 현재 블록의 fields 엔트리 (들여쓰기 라인 소속처)
29
- let currentWfNames = null; // _workflow_names(_언어) 블록 내부면 그 목록
28
+ let current = null; // fields entry of the current block (owner of indented lines)
29
+ let currentWfNames = null; // the list when inside a _workflow_names(_lang) block
30
30
 
31
31
  for (const raw of String(text).split(/\r?\n/)) {
32
32
  const line = raw.replace(/\r$/, "");
33
- if (!line.trim() || line.trim().startsWith("#")) continue; // 빈 줄·주석은 블록을 끊지 않음
33
+ if (!line.trim() || line.trim().startsWith("#")) continue; // Blank lines and comments do not end a block
34
34
 
35
35
  if (!/^\s/.test(line)) {
36
- // 최상위 키 라인 — 이전 블록 종료
36
+ // Top-level key line — ends the previous block
37
37
  current = null; currentWfNames = null;
38
38
  const m = line.match(/^([A-Za-z_][A-Za-z0-9_.\-]*):(.*)$/);
39
39
  if (!m) continue;
@@ -51,7 +51,7 @@ export function parseWizardPrompts(text) {
51
51
  }
52
52
  const entry = fields.get(key) || {};
53
53
  if (rest) {
54
- // 구형 1줄: KEY: "라벨" (label로만 사용)
54
+ // Old one-line form: KEY: "label" (used only as label)
55
55
  const q = rest.match(/^"([^"]*)"\s*$/);
56
56
  if (q) entry.label = q[1];
57
57
  }
@@ -60,29 +60,29 @@ export function parseWizardPrompts(text) {
60
60
  continue;
61
61
  }
62
62
 
63
- // 들여쓰기 라인 — 현재 블록 소속
63
+ // Indented line — belongs to the current block
64
64
  const m = line.match(/^\s+([A-Za-z_][A-Za-z0-9_.\-]*):\s*(.*)$/);
65
65
  if (!m) continue;
66
66
  if (currentWfNames) {
67
- // " KEY: "값"" 형식만 인정
67
+ // Only the " KEY: "value"" form is accepted
68
68
  const q = m[2].match(/^"(.*)"\s*$/);
69
69
  if (q) currentWfNames.push({ key: m[1], value: q[1] });
70
70
  continue;
71
71
  }
72
- // 필드명: label | help | example, 번역은 _언어 접미사 (label_ko)
72
+ // Field name: label | help | example; translations use a _lang suffix (label_ko)
73
73
  if (current && /^(label|help|example)(_[a-z]{2}(-[A-Z]{2})?)?$/.test(m[1])) {
74
- // 블록 내 첫 등장만 채택
74
+ // Take only the first occurrence in a block
75
75
  if (current[m[1]] == null) current[m[1]] = unquote(m[2]);
76
76
  }
77
77
  }
78
78
  return { fields, workflowNames, workflowNamesByLang };
79
79
  }
80
80
 
81
- // wizard-prompts.yml을 찾아 읽고 파싱.
82
- // 우선순위: 대상 프로젝트(targetRoot) → 다운로드 원본(tempDir) 폴백 → null.
83
- // WHY 폴백: 신규 통합에서는 copy_config_folder가 configure_workflow_env보다 늦게 실행되어
84
- // 대상에 아직 파일이 없다 — 폴백 없으면 label/help/example이 전부 빈값(KEY명만 출력)이 된다.
85
- // fs 주입 가능(테스트용) — 기본 node:fs.
81
+ // Find, read and parse wizard-prompts.yml.
82
+ // Priority: target project (targetRoot) → downloaded original (tempDir) fallback → null.
83
+ // WHY fallback: in a new integration, copy_config_folder runs after configure_workflow_env, so the
84
+ // target has no file yet — without the fallback, label/help/example are all empty (only KEY names shown).
85
+ // fs can be injected (for tests) — default node:fs.
86
86
  export function loadWizardPrompts(targetRoot = ".", tempDir = "", fs = nodeFs) {
87
87
  const candidates = [join(targetRoot, LABELS_FILE)];
88
88
  if (tempDir) candidates.push(join(tempDir, LABELS_FILE));
@@ -92,9 +92,9 @@ export function loadWizardPrompts(targetRoot = ".", tempDir = "", fs = nodeFs) {
92
92
  return null;
93
93
  }
94
94
 
95
- // 필드 조회. field: "label" | "help" | "example", lang: 화면 언어 (기본 현재 CLI 언어)
96
- // 우선순위: "{type}.KEY" 블록 → "KEY" 블록(구형 1줄 포함) → 폴백(label이면 KEY명, 아니면 "").
97
- // 블록마다 번역(label_ko) 먼저, 없으면 영어 원문(label)
95
+ // Field lookup. field: "label" | "help" | "example", lang: screen language (default: current CLI language)
96
+ // Priority: "{type}.KEY" block → "KEY" block (including the old one-line form) → fallback (KEY name for label, else "").
97
+ // Per block, translation (label_ko) first, else the English original (label)
98
98
  export function wfField(prompts, type, key, field, lang = getLang()) {
99
99
  if (prompts && prompts.fields) {
100
100
  for (const q of [`${type}.${key}`, key]) {
@@ -108,11 +108,11 @@ export function wfField(prompts, type, key, field, lang = getLang()) {
108
108
  return field === "label" ? key : "";
109
109
  }
110
110
 
111
- // 워크플로우 파일명 → 사람이 읽는 짧은 이름.
112
- // _workflow_names에서 "키가 파일명에 포함되면" 그 값 사용 — 최장 키 우선(REACT-CI vs REACT-CICD 구분).
113
- // 미매칭이면 .yaml/.yml 확장자만 제거해 반환. 언어 번역 블록(_workflow_names_ko)에 키가 있으면 그 값
111
+ // Workflow file name → short human-readable name.
112
+ // Use the _workflow_names value whose "key is contained in the file name" — longest key first (tells REACT-CI from REACT-CICD).
113
+ // If none match, strip only the .yaml/.yml extension. If the language translation block (_workflow_names_ko) has the key, use that value
114
114
  export function workflowDisplayName(prompts, filename, lang = getLang()) {
115
- const base = String(filename).split("/").pop().split("\\").pop(); // 경로 제거
115
+ const base = String(filename).split("/").pop().split("\\").pop(); // Strip the path
116
116
  const translated = new Map((prompts?.workflowNamesByLang?.get(lang) ?? []).map(({ key, value }) => [key, value]));
117
117
  let best = null; let bestLen = 0;
118
118
  for (const { key, value } of prompts?.workflowNames ?? []) {
@@ -1,43 +1,43 @@
1
- // 선택형 워크플로 그룹의 켜짐/꺼짐을 정하는 단 한 곳 (#851).
1
+ // The single place that decides whether optional workflow groups are on or off (#851).
2
2
  //
3
- // 복사(copy/workflows.js), 충돌 목록(listWorkflowConflicts), 고아 감지(orphan-workflows.js)가 같은 조건을 쓴다.
4
- // 각자 들고 있으면 한쪽만 고쳐 "켰는데 안 깔림" 또는 "껐는데 계속 돎"이 된다 (#567).
5
- // 새 조건부 폴더를 만들면 여기에 한 줄을 넣는다. 세 곳이 함께 따라온다.
3
+ // Copy (copy/workflows.js), the conflict list (listWorkflowConflicts) and orphan detection (orphan-workflows.js) share these conditions.
4
+ // Keeping separate copies means fixing only one, giving "turned on but not installed" or "turned off but still runs" (#567).
5
+ // Add one line here for each new conditional folder. All three places follow.
6
6
  import { readdirSync } from "node:fs";
7
7
  import { join } from "node:path";
8
8
  import { exists } from "./fsutil.js";
9
9
 
10
- // 서버 배포(<type>/server-deploy/)는 docker-ssh 일 때만 깐다 (#439)
10
+ // Server deploy (<type>/server-deploy/) is installed only for docker-ssh (#439)
11
11
  export const SERVER_DEPLOY_DIR = "server-deploy";
12
12
  export function serverDeployEnabled(deployTarget) {
13
13
  return (deployTarget || "docker-ssh") === "docker-ssh";
14
14
  }
15
15
 
16
- // common/ 아래 선택형 폴더 목록. 순서가 복사 순서다 (기록·요약에 나오는 순서를 바꾸지 않는다).
17
- // policy: "bak-replace" — 템플릿과 다르면 .bak 으로 남기고 교체
18
- // "new-only" — 이미 있으면 건드리지 않는다 (secret-backup: 서버 경로를 사용자가 고쳐 쓴다)
19
- // copyLabel / orphanLabel — trace 그룹 이름과 고아 안내 이름. 기존 기록과 같게 둔다.
16
+ // Optional folders under common/. Order is copy order (do not change the order shown in logs and summaries).
17
+ // policy: "bak-replace" — if different from the template, keep a .bak and replace
18
+ // "new-only" — leave alone if it already exists (secret-backup: users edit the server path)
19
+ // copyLabel / orphanLabel — trace group name and orphan notice name. Keep them as in existing logs.
20
20
  export function commonOptionalGroups(commonDir, opts = {}) {
21
21
  const { includeSecretBackup = false, aiPrSummary = true, projectsSync = true, deployTarget = "docker-ssh" } = opts;
22
22
  const selectedDeploy = deployTarget || "docker-ssh";
23
23
  const groups = [];
24
24
 
25
- // deploy/<target> — 타입 비종속 배포 타겟(vercel 등). 고른 타겟 폴더만 켠다.
25
+ // deploy/<target> — type-independent deploy targets (vercel, etc.). Only the chosen target folder is on.
26
26
  const deployRoot = join(commonDir, "deploy");
27
27
  const deployNames = exists(deployRoot)
28
28
  ? readdirSync(deployRoot, { withFileTypes: true }).filter((e) => e.isDirectory()).map((e) => e.name)
29
29
  : [];
30
- if (!deployNames.includes(selectedDeploy)) deployNames.push(selectedDeploy); // 폴더가 없으면 아래에서 exists 로 걸러진다
30
+ if (!deployNames.includes(selectedDeploy)) deployNames.push(selectedDeploy); // A missing folder is filtered out below by exists
31
31
  for (const name of deployNames) {
32
32
  groups.push({ dir: join("deploy", name), enabled: name === selectedDeploy, policy: "bak-replace",
33
33
  copyLabel: "common-deploy", orphanLabel: `deploy/${name}` });
34
34
  }
35
35
  groups.push(
36
- // #566 — AI 변경 요약. 설정 없이 바로 동작
36
+ // #566 — AI change summary. Works with no setup
37
37
  { dir: "pr-summary", enabled: aiPrSummary === true, policy: "bak-replace", copyLabel: "pr-summary", orphanLabel: "pr-summary" },
38
- // #716 — Projects 보드 동기화. Secret·변수를 등록해야 동작해 신규는 기본 꺼짐
38
+ // #716 — Projects board sync. Needs secrets and variables, so off by default for new installs
39
39
  { dir: "projects-sync", enabled: projectsSync === true, policy: "bak-replace", copyLabel: "projects-sync", orphanLabel: "projects-sync" },
40
- // Secret 서버 백업
40
+ // Secret server backup
41
41
  { dir: "secret-backup", enabled: includeSecretBackup === true, policy: "new-only", copyLabel: "secret-backup", orphanLabel: "secret-backup" },
42
42
  );
43
43
  return groups;
@@ -1,4 +1,4 @@
1
- // core 영역 메시지 (en). 키는 <영역>.<의미> 형식.
1
+ // core area messages (en). Keys use the <area>.<meaning> format.
2
2
  export default {
3
3
  "args.mode": "--mode must be one of {values}: '{v}'",
4
4
  "args.projectVersion": "--project-version must look like x.y.z (e.g. 1.0.0): '{v}'",
@@ -1,4 +1,4 @@
1
- // doctor 영역 메시지 (en). 키는 doctor.* 형식.
1
+ // doctor area messages (en). Keys use the doctor.* format.
2
2
  export default {
3
3
  "doctor.perm.purpose": "Automatic commits, tags and downstream workflow runs",
4
4
  "doctor.integ.name": "Integration status",
@@ -1,4 +1,4 @@
1
- // ide 영역 메시지 (en). 키는 <영역>.<의미> 형식.
1
+ // ide area messages (en). Keys use the <area>.<meaning> format.
2
2
  export default {
3
3
  "ide.claude.legacy": " Removed legacy plugin: {name} (scope: {scope})",
4
4
  "ide.claude.marketAdding": "Registering the Claude Code marketplace...",
@@ -1,4 +1,4 @@
1
- // migrate 영역 메시지 (en). 키는 <영역>.<의미> 형식.
1
+ // migrate area messages (en). Keys use the <area>.<meaning> format.
2
2
  export default {
3
3
  "migrate.reason.gen1VersionControl": "1st-gen rename: running both bumps the version twice",
4
4
  "migrate.reason.releasePublish1": "removed from the template; its trunk-based branch calls a command that no longer exists (changelog_manager.py ai-summary) and fails at release time",
@@ -1,4 +1,4 @@
1
- // options 영역 메시지 (en). 키는 <영역>.<의미> 형식.
1
+ // options area messages (en). Keys use the <area>.<meaning> format.
2
2
  export default {
3
3
  "options.branch.remoteOnly": "Branch '{branch}' exists on the remote but not locally. Run 'git switch {branch}' if you need it.",
4
4
  "options.branch.missing": "Development (release source) branch '{branch}' does not exist. It is required for releases ({branch} to {base} PR) to work.",