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
package/src/ui/prompts.js CHANGED
@@ -1,14 +1,14 @@
1
- // 대화형 프롬프트 래핑 (메뉴·선택·질문).
2
- // node:readline 기반 자체 엔진 사용 (@clack/prompts 는 Windows TTY에서 Enter가 멈추는 버그로 제거).
3
- // 취소(ESC/Ctrl+C)는 각 함수가 CANCEL 심볼을 반환 → 호출부가 정상 종료(exit 0) 처리.
1
+ // Interactive prompt wrappers (menus, selection, questions).
2
+ // Uses an in-house node:readline engine (@clack/prompts was removed because Enter froze on Windows TTYs).
3
+ // Cancel (ESC/Ctrl+C) makes each function return the CANCEL symbol → the caller exits normally (exit 0).
4
4
  import * as engine from "./readline-engine.js";
5
5
  import { t } from "../i18n/index.js";
6
6
 
7
7
  export const CANCEL = engine.CANCEL;
8
8
 
9
- // 모드 선택 — 한국어 라벨, 내부 키 반환. 취소 시 CANCEL.
10
- // update(#502): { from, to } — 기존 통합 레포로 판별된 경우. 맨 위에 업데이트 항목을 추가하고
11
- // 기본 선택으로 둔다 (첫 항목 = 기본). 신규 레포(update 미전달)는 현행 5개 그대로.
9
+ // Mode selection — localized labels, returns the internal key. CANCEL on cancel.
10
+ // update (#502): { from, to } — when detected as an already integrated repo. Adds the update item at the top
11
+ // as the default selection (first item = default). New repos (no update passed) keep the current 5 items.
12
12
  export async function selectMode({ update = null } = {}) {
13
13
  const options = [];
14
14
  if (update) {
@@ -25,7 +25,7 @@ export async function selectMode({ update = null } = {}) {
25
25
  return engine.select({ message: t("mode.prompt"), options });
26
26
  }
27
27
 
28
- // 프로젝트 확인 화면 메뉴 (계속/수정/취소).
28
+ // Project confirmation screen menu (continue/edit/cancel).
29
29
  export async function confirmProjectMenu() {
30
30
  return engine.select({
31
31
  message: t("confirm.prompt"),
@@ -37,9 +37,9 @@ export async function confirmProjectMenu() {
37
37
  });
38
38
  }
39
39
 
40
- // 수정 메뉴 — 어떤 항목을 고칠지. showOptional=full/workflows에서만 nexus/secret 노출.
41
- // axes(#498): applicableTargets(types) 결과 — 적용 불가 축의 항목은 숨긴다 (모바일 앱/basic 단독 등).
42
- // null이면 기존처럼 전부 노출 (테스트 스텁 하위호환).
40
+ // Edit menu — which item to change. showOptional exposes nexus/secret only for full/workflows.
41
+ // axes (#498): applicableTargets(types) result — items for non-applicable axes are hidden (mobile app/basic alone, etc.).
42
+ // null shows everything as before (backward compat for test stubs).
43
43
  export async function editMenu({ showOptional = false, axes = null } = {}) {
44
44
  const options = [
45
45
  { value: "type", label: t("edit.type") },
@@ -49,9 +49,9 @@ export async function editMenu({ showOptional = false, axes = null } = {}) {
49
49
  if (showOptional) {
50
50
  const hasDeploy = axes == null || axes.deploy.length > 0;
51
51
  const hasPublish = axes == null || axes.publish.length > 0;
52
- // #485 — 프로젝트 성격(intent): 재선택 시 배포/publish 축을 재유도한다. 축이 하나도 없으면 무의미 → 숨김.
52
+ // #485 — project nature (intent): re-selecting re-derives the deploy/publish axes. Meaningless with no axes → hidden.
53
53
  if (hasDeploy || hasPublish) options.push({ value: "intent", label: t("edit.intent") });
54
- // #483 — 항목별 격리: 한 축만 골라 그 축만 재질문한다 (통짜 "배포/Publish 방식" 분해)
54
+ // #483 — per-item isolation: pick one axis and re-ask only that axis (splits the all-in-one "deploy/publish method")
55
55
  if (hasDeploy) options.push({ value: "deploy", label: t("edit.deploy") });
56
56
  if (hasPublish) options.push({ value: "publish", label: t("edit.publish") });
57
57
  options.push({ value: "code-review", label: t("edit.codeReview") });
@@ -63,7 +63,7 @@ export async function editMenu({ showOptional = false, axes = null } = {}) {
63
63
  return engine.select({ message: t("edit.prompt"), options });
64
64
  }
65
65
 
66
- // 타입 멀티선택.
66
+ // Type multiselect.
67
67
  export async function selectTypes(current = []) {
68
68
  const all = ["spring", "flutter", "react", "react-native", "react-native-expo", "node", "python", "basic"];
69
69
  return engine.multiselect({
@@ -74,27 +74,27 @@ export async function selectTypes(current = []) {
74
74
  });
75
75
  }
76
76
 
77
- // 텍스트 입력 (빈 입력=기본값 유지).
77
+ // Text input (empty input = keep default).
78
78
  export async function askText(message, defaultValue = "") {
79
79
  const v = await engine.text({ message, defaultValue });
80
80
  if (v === CANCEL) return CANCEL;
81
81
  return v === "" || v == null ? defaultValue : v;
82
82
  }
83
83
 
84
- // 예/아니오.
84
+ // Yes/no.
85
85
  export async function askYesNo(message, initial = true) {
86
86
  return engine.confirm({ message, initialValue: initial });
87
87
  }
88
88
 
89
- // 배너·안내 출력.
89
+ // Banner and notice output.
90
90
  export function intro(text) { engine.intro(text); }
91
91
  export function outro(text) { engine.outro(text); }
92
92
  export function note(text, title) { engine.note(text, title); }
93
- export function cancelMessage(text = "취소했습니다.") { engine.cancelMessage(text); }
93
+ export function cancelMessage(text = "Cancelled.") { engine.cancelMessage(text); }
94
94
 
95
- // ── #446 첫 화면 UI 5층 + SP2-C 대화형 계층 실물 io ─────────────────
96
- // runInteractive는 io.<method>?.() 옵셔널 호출 — 테스트 스텁은 이 메서드들을 생략해
97
- // 시각 층·env 질문을 건너뛴다 (실행 계약은 그대로).
95
+ // ── #446 first-screen UI 5 layers + SP2-C interactive layer real io ─────────────────
96
+ // runInteractive calls io.<method>?.() optionally — test stubs omit these methods
97
+ // to skip the visual layers and env questions (the run contract is the same).
98
98
  import { printBanner as _printBanner } from "./banner.js";
99
99
  import {
100
100
  printDetectionLog as _detLog, printAnalysisCard as _card,
@@ -110,7 +110,7 @@ export function installKind(info) { _installKind(info); }
110
110
  export function ideStatus() { _ideStatus(collectIdeStatuses(defaultIo())); }
111
111
  export function summary(ctx, targetRoot) { _summary(ctx, targetRoot); }
112
112
 
113
- // env 계획·경로 해석·충돌 메뉴가 쓰는 저수준 엔진 io (env-plan/paths-resolve의 io 계약)
113
+ // Low-level engine io used by the env plan, path resolution and conflict menus (the io contract of env-plan/paths-resolve)
114
114
  export const engineIo = {
115
115
  select: engine.select,
116
116
  multiselect: engine.multiselect,
@@ -1,9 +1,9 @@
1
- // node:readline 기반 대화형 프롬프트 엔진 (@clack/prompts 대체).
2
- // WHY: @clack/prompts 1.7.0 이 Windows TTY 콘솔에서 Enter(return) 키를 처리하지 못하고
3
- // 멈추는 버그가 있다(실측 확정). node:readline 의 keypress 이벤트는 Windows에서 정상 동작한다.
4
- // 외부 의존성 0 → 내부망에서도 안전.
1
+ // node:readline based interactive prompt engine (replaces @clack/prompts).
2
+ // WHY: @clack/prompts 1.7.0 fails to handle the Enter (return) key in Windows TTY consoles
3
+ // and freezes (confirmed by measurement). node:readline keypress events work fine on Windows.
4
+ // Zero external dependencies → safe on internal networks too.
5
5
  //
6
- // 계약: 취소(ESC/Ctrl+C)는 CANCEL 심볼 반환. 각 함수 async.
6
+ // Contract: cancel (ESC/Ctrl+C) returns the CANCEL symbol. Every function is async.
7
7
  import { emitKeypressEvents } from "node:readline";
8
8
  import { stdin, stdout } from "node:process";
9
9
  import { visualWidth } from "./ansi.js";
@@ -11,7 +11,7 @@ import { t } from "../i18n/index.js";
11
11
 
12
12
  export const CANCEL = Symbol("cancel");
13
13
 
14
- // ── ANSI 헬퍼 (picocolors 대체 — 의존성 0) ───────────────────────────
14
+ // ── ANSI helpers (replaces picocolors — zero dependencies) ───────────────────────────
15
15
  const ESC = "\x1b[";
16
16
  const c = {
17
17
  reset: `${ESC}0m`, dim: `${ESC}2m`, bold: `${ESC}1m`,
@@ -21,7 +21,7 @@ const paint = (s, color) => `${color}${s}${c.reset}`;
21
21
  const hideCursor = () => stdout.write(`${ESC}?25l`);
22
22
  const showCursor = () => stdout.write(`${ESC}?25h`);
23
23
 
24
- // 심볼 (clack 톤 유지)
24
+ // Symbols (keeps the clack look)
25
25
  const S_ACTIVE = paint("●", c.green);
26
26
  const S_INACTIVE = paint("○", c.dim);
27
27
  const S_CHECK_ON = paint("◼", c.green);
@@ -30,36 +30,36 @@ const S_BAR = paint("│", c.gray);
30
30
  const S_Q = paint("◆", c.cyan);
31
31
  const S_DONE = paint("◇", c.green);
32
32
 
33
- // 한 논리 라인이 터미널 폭에서 차지하는 물리 줄 수 (wrap 고려).
34
- // WHY: 긴 라벨(한글 2칸 포함)이 터미널 폭을 넘으면 터미널이 자동 줄바꿈해 물리적으로 2줄+가 된다.
35
- // 커서 되감기(ESC[nA)는 물리 줄 기준이므로, 논리 줄 수만 세면 wrap된 만큼 덜 올라가
36
- // 이전 출력이 안 지워지고 매 렌더마다 화면이 아래로 밀린다. (실측: Windows PowerShell 폭 80)
33
+ // Number of physical rows a logical line takes at the terminal width (accounts for wrapping).
34
+ // WHY: when a long label (with 2-cell Korean) exceeds the terminal width, the terminal wraps it into 2+ physical rows.
35
+ // Cursor rewind (ESC[nA) counts physical rows, so counting only logical lines rewinds too little by the wrapped amount,
36
+ // leaving old output and pushing the screen down on every render. (Measured: Windows PowerShell width 80)
37
37
  export function physicalRows(line, cols) {
38
- const w = visualWidth(line); // ANSI 시퀀스 제외 + CJK 2칸
38
+ const w = visualWidth(line); // Excludes ANSI sequences + CJK 2 cells
39
39
  if (cols <= 0) return 1;
40
- // 빈 줄도 최소 1행. 폭의 정수배로 딱 떨어지면 wrap 안 되므로 그대로(80칸 라인@80폭 = 1행).
40
+ // Even an empty line takes at least 1 row. An exact multiple of the width does not wrap, so as is (80-cell line @ width 80 = 1 row).
41
41
  if (w === 0) return 1;
42
42
  return Math.max(1, Math.ceil(w / cols));
43
43
  }
44
44
 
45
- // 여러 줄 지운 뒤 커서를 블록 시작으로 되돌리는 렌더러.
46
- // 직전 렌더의 "물리 줄 수"만큼 위로 올라가 지우고 새로 그린다 (wrap 안전).
45
+ // Renderer that clears several lines and returns the cursor to the block start.
46
+ // Moves up by the "physical row count" of the previous render, clears and redraws (wrap safe).
47
47
  function makeRenderer() {
48
- let prevRows = 0; // 직전 렌더가 실제로 차지한 물리 줄 수
48
+ let prevRows = 0; // Physical rows actually taken by the previous render
49
49
  return {
50
50
  render(lines) {
51
- if (prevRows > 0) stdout.write(`${ESC}${prevRows}A`); // 물리 줄 기준으로 위로
52
- stdout.write(`${ESC}0J`); // 커서 아래 전부 지우기
51
+ if (prevRows > 0) stdout.write(`${ESC}${prevRows}A`); // Up by physical rows
52
+ stdout.write(`${ESC}0J`); // Clear everything below the cursor
53
53
  stdout.write(lines.join("\n") + "\n");
54
- const cols = stdout.columns || 80; // 터미널 폭 (파이프 등으로 없으면 80 가정)
54
+ const cols = stdout.columns || 80; // Terminal width (assume 80 when missing, e.g. a pipe)
55
55
  prevRows = lines.reduce((sum, l) => sum + physicalRows(l, cols), 0);
56
56
  },
57
57
  reset() { prevRows = 0; },
58
58
  };
59
59
  }
60
60
 
61
- // raw keypress 세션 공통 래퍼. onKey(str,key) → true 반환 시 종료.
62
- // 반환값은 finalize()가 만든다. 취소 시 CANCEL.
61
+ // Shared wrapper for raw keypress sessions. onKey(str,key) returning true ends it.
62
+ // The return value is built by finalize(). CANCEL on cancel.
63
63
  function keySession(renderFn, onKey) {
64
64
  return new Promise((resolve) => {
65
65
  const wasRaw = stdin.isTTY ? stdin.isRaw : false;
@@ -77,7 +77,7 @@ function keySession(renderFn, onKey) {
77
77
 
78
78
  const handler = (str, key) => {
79
79
  key = key || {};
80
- // 취소: Ctrl+C / ESC
80
+ // Cancel: Ctrl+C / ESC
81
81
  if ((key.ctrl && key.name === "c") || key.name === "escape") {
82
82
  cleanup();
83
83
  resolve(CANCEL);
@@ -92,15 +92,15 @@ function keySession(renderFn, onKey) {
92
92
  }
93
93
  };
94
94
  stdin.on("keypress", handler);
95
- renderFn(); // 최초 렌더
95
+ renderFn(); // First render
96
96
  });
97
97
  }
98
98
 
99
- // ── 단일 선택 (방향키 + Enter) ───────────────────────────────────────
100
- // options: [{value,label,hint?}]. 반환: 선택 value 또는 CANCEL.
99
+ // ── Single select (arrow keys + Enter) ───────────────────────────────────────
100
+ // options: [{value,label,hint?}]. Returns the selected value or CANCEL.
101
101
  export async function select({ message, options, initialIndex = 0 }) {
102
102
  if (!stdin.isTTY) {
103
- // 비-TTY: 기본값(첫 항목) 반환 — 파이프 환경 방어
103
+ // Non-TTY: return the default (first item) — guards pipe environments
104
104
  return options[initialIndex]?.value;
105
105
  }
106
106
  const r = makeRenderer();
@@ -122,17 +122,17 @@ export async function select({ message, options, initialIndex = 0 }) {
122
122
  const result = await keySession(draw, (str, key) => {
123
123
  if (key.name === "up" || key.name === "k") { idx = (idx - 1 + options.length) % options.length; return; }
124
124
  if (key.name === "down" || key.name === "j") { idx = (idx + 1) % options.length; return; }
125
- // 숫자 점프 (1-9)
125
+ // Number jump (1-9)
126
126
  if (/^[1-9]$/.test(str || "")) {
127
127
  const n = Number(str) - 1;
128
128
  if (n < options.length) { idx = n; return; }
129
129
  return;
130
130
  }
131
131
  if (key.name === "return" || key.name === "enter") return options[idx].value;
132
- return; // 그 외 키: 무시하고 계속
132
+ return; // Any other key: ignore and continue
133
133
  });
134
134
 
135
- // 확정 화면 다시 그리기 (◇ 완료 심볼 + 선택값)
135
+ // Redraw the confirmed screen (◇ done symbol + selected value)
136
136
  if (result !== CANCEL) {
137
137
  const chosen = options.find((o) => o.value === result);
138
138
  r.render([S_BAR, `${S_DONE} ${paint(message, c.dim)}`, `${S_BAR} ${paint(chosen?.label ?? "", c.dim)}`]);
@@ -140,8 +140,8 @@ export async function select({ message, options, initialIndex = 0 }) {
140
140
  return result;
141
141
  }
142
142
 
143
- // ── 다중 선택 (Space 토글 + Enter) ──────────────────────────────────
144
- // options: [{value,label,hint?,disabled?}]. 반환: 선택 value 배열 또는 CANCEL.
143
+ // ── Multi select (Space toggles + Enter) ──────────────────────────────────
144
+ // options: [{value,label,hint?,disabled?}]. Returns an array of selected values or CANCEL.
145
145
  export async function multiselect({ message, options, initialValues = [], required = false }) {
146
146
  if (!stdin.isTTY) {
147
147
  return initialValues.length ? [...initialValues] : (required ? [options[0]?.value].filter(Boolean) : []);
@@ -197,8 +197,8 @@ export async function multiselect({ message, options, initialValues = [], requir
197
197
  return result;
198
198
  }
199
199
 
200
- // ── 텍스트 입력 (Enter 확정, 빈 입력=기본값) ─────────────────────────
201
- // 반환: 입력 문자열(빈 입력 시 defaultValue) 또는 CANCEL.
200
+ // ── Text input (Enter confirms, empty input = default) ─────────────────────────
201
+ // Returns the input string (defaultValue on empty input) or CANCEL.
202
202
  export async function text({ message, defaultValue = "" }) {
203
203
  if (!stdin.isTTY) return defaultValue;
204
204
  return new Promise((resolve) => {
@@ -209,7 +209,7 @@ export async function text({ message, defaultValue = "" }) {
209
209
  let buf = "";
210
210
 
211
211
  const prompt = () => {
212
- stdout.write(`\r${ESC}0K`); // 줄 초기화
212
+ stdout.write(`\r${ESC}0K`); // Reset the line
213
213
  const shown = buf.length ? buf : paint(defaultValue || "", c.dim);
214
214
  stdout.write(`${S_Q} ${paint(message, c.bold)} ${shown}`);
215
215
  };
@@ -230,7 +230,7 @@ export async function text({ message, defaultValue = "" }) {
230
230
  return;
231
231
  }
232
232
  if (key.name === "backspace") { buf = buf.slice(0, -1); prompt(); return; }
233
- // 일반 문자 (제어문자 제외)
233
+ // Regular characters (excluding control characters)
234
234
  if (str && !key.ctrl && !key.meta && str.length === 1 && str >= " ") { buf += str; prompt(); return; }
235
235
  };
236
236
  stdin.on("keypress", handler);
@@ -238,8 +238,8 @@ export async function text({ message, defaultValue = "" }) {
238
238
  });
239
239
  }
240
240
 
241
- // ── Y/N 확인 (←→ 또는 y/n, Enter 확정) ──────────────────────────────
242
- // 반환: true/false 또는 CANCEL.
241
+ // ── Y/N confirm (←→ or y/n, Enter confirms) ──────────────────────────────
242
+ // Returns true/false or CANCEL.
243
243
  export async function confirm({ message, initialValue = true }) {
244
244
  if (!stdin.isTTY) return initialValue;
245
245
  const r = makeRenderer();
@@ -266,7 +266,7 @@ export async function confirm({ message, initialValue = true }) {
266
266
  return result;
267
267
  }
268
268
 
269
- // ── 출력 헬퍼 (clack intro/outro/note/cancel 대체) ──────────────────
269
+ // ── Output helpers (replace clack intro/outro/note/cancel) ──────────────────
270
270
  export function intro(text) { stdout.write(`\n${paint("┌", c.gray)} ${paint(text, c.bold)}\n`); }
271
271
  export function outro(text) { stdout.write(`${paint("└", c.gray)} ${paint(text, c.green)}\n\n`); }
272
272
  export function cancelMessage(text = t("engine.cancelled")) { stdout.write(`${paint("■", c.yellow)} ${paint(text, c.yellow)}\n`); }
@@ -1,11 +1,11 @@
1
- // IDE Skills 대화형 프롬프트.
2
- // node:readline 기반 자체 엔진 사용 (@clack/prompts 는 Windows TTY Enter 버그로 제거).
1
+ // IDE skills interactive prompts.
2
+ // Uses an in-house node:readline engine (@clack/prompts was removed because of the Windows TTY Enter bug).
3
3
  import * as engine from "./readline-engine.js";
4
4
  import { t } from "../i18n/index.js";
5
5
 
6
6
  export const CANCEL = engine.CANCEL;
7
7
 
8
- // 동작 선택: 설치/업데이트 · 제거 · 그대로. 취소=skip.
8
+ // Action choice: install/update · remove · leave as is. Cancel = skip.
9
9
  export async function selectAction() {
10
10
  const v = await engine.select({
11
11
  message: t("skills.action.prompt"),
@@ -18,7 +18,7 @@ export async function selectAction() {
18
18
  return v === CANCEL ? "skip" : v;
19
19
  }
20
20
 
21
- // IDE 멀티셀렉트. choices=[{id,label,disabled}], preselect=[id...], action.
21
+ // IDE multiselect. choices=[{id,label,disabled}], preselect=[id...], action.
22
22
  export async function selectTargets(choices, preselect = [], action = "apply") {
23
23
  const options = choices.map((c) => ({
24
24
  value: c.id,