deel-local-cli 1.4.2 → 1.5.0

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/src/ui/status.js CHANGED
@@ -464,6 +464,7 @@ export function headerLines(session, found) {
464
464
  // 뜻인지 여기서 한 번 읽고 나면 그 다음부터는 글자만 봐도 안다.
465
465
  `${c.gray(자리(말('head.approve')))}${승인표시(session.mode)} ${c.gray('— ' + 승인고르기(session.mode).한줄)}`,
466
466
  `${빈자리}${c.gray(말('head.shiftTab'))}${c.gray(말('head.shiftTabHint'))}${c.gray(말('head.tabHint'))}`,
467
+ `${빈자리}${c.gray(말('head.newlineHint'))}`,
467
468
  ];
468
469
  if (found.skills.length || found.commands.length) {
469
470
  lines.push(`${c.gray(자리(말('head.thisPC')))}${c.white(말('head.skills', { n: found.skills.length }))}${c.gray(' · ')}${c.white(말('head.commands', { n: found.commands.length }))}${c.gray(' · ')}${c.white(말('head.plugins', { n: found.plugins.length }))}`);
package/src/ui/wrap.js CHANGED
@@ -14,6 +14,17 @@ import { width } from './ansi.js';
14
14
  */
15
15
  export function 접어쓰기(글, 폭) {
16
16
  const s = String(글 ?? '');
17
+ /*
18
+ * 줄바꿈(\n)이 있으면 그 자리에서 반드시 갈라진다.
19
+ *
20
+ * 안 가르고 그냥 폭만 재면, \n 도 그저 글자 하나로 세여서(너비는
21
+ * width() 가 정하는 대로) 다음 글자와 한 '줄'에 같이 담긴다. 입력 상자를
22
+ * 그리는 쪽(inputbox.js 의 그리기())은 여기서 나온 배열 길이를 그대로
23
+ * "화면에 몇 줄 찍었나" 로 믿고 커서를 되짚어 올라가므로, \n 이 숨어
24
+ * 있으면 터미널이 실제로 그린 줄 수와 어긋나 화면이 깨진다. 문단마다
25
+ * 따로 접어서 이 배열이 실제 화면 줄 수와 늘 같게 만든다.
26
+ */
27
+ if (s.includes('\n')) return s.split('\n').flatMap((줄) => 접어쓰기(줄, 폭));
17
28
  if (폭 < 2) return [s];
18
29
  if (width(s) <= 폭) return [s];
19
30