@tacuchi/updater 2.0.0 → 2.0.2

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 (2) hide show
  1. package/dist/cli.js +194 -221
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import { render } from "ink";
5
5
  import { execaSync } from "execa";
6
6
 
7
7
  // src/app.tsx
8
- import { Box as Box10, Text as Text11, useInput as useInput6, useApp as useInkApp } from "ink";
8
+ import { Box as Box8, Text as Text9, useInput as useInput6, useApp as useInkApp } from "ink";
9
9
 
10
10
  // src/hooks/use-app-machine.tsx
11
11
  import { createContext, useContext, useReducer, useEffect, useRef, useCallback } from "react";
@@ -463,9 +463,6 @@ function logResult(r) {
463
463
  const memLevel = ok ? "info" : r.status === "partial" ? "warn" : "error";
464
464
  addToMemory(memLevel, `${id}: ${r.status} (${r.upgraded} ok, ${r.failed} fail)`);
465
465
  }
466
- function getLogEntries() {
467
- return [...inMemoryLog];
468
- }
469
466
  function getLogFilePath() {
470
467
  return localLogPath ?? configLogPath;
471
468
  }
@@ -529,7 +526,9 @@ function fromDescriptor(d, cfg, deps = defaultDeps) {
529
526
  const startedAt = Date.now();
530
527
  if (d.escapeHatch?.upgrade) {
531
528
  const r = yield* d.escapeHatch.upgrade(packages, c);
532
- return { managerId: d.id, startedAt, finishedAt: Date.now(), ...r };
529
+ const result2 = { managerId: d.id, startedAt, finishedAt: Date.now(), ...r };
530
+ logResult(result2);
531
+ return result2;
533
532
  }
534
533
  const manual = d.manualCommand?.(c) ?? "";
535
534
  if (d.kind === "readonly" || d.requiresAdmin && !c.sudoMode) {
@@ -695,7 +694,6 @@ var pip = {
695
694
  yield { type: "phase", phase: "verifying", message: "Verificando resultado..." };
696
695
  const after = await listOutdated();
697
696
  const result = reconcile(packages, before, { stillOutdated: after.map((p) => ({ name: p.name })) }, commands);
698
- logResult(result);
699
697
  return result;
700
698
  }
701
699
  }
@@ -836,7 +834,6 @@ var gem = {
836
834
  yield { type: "phase", phase: "verifying", message: "Verificando resultado..." };
837
835
  const after = await listOutdated2();
838
836
  const result = reconcile(packages, before, { stillOutdated: after.map((p) => ({ name: p.name })) }, commands);
839
- logResult(result);
840
837
  return result;
841
838
  }
842
839
  }
@@ -1154,7 +1151,6 @@ var flutter = {
1154
1151
  const latest = await latestStable(ctx.platform);
1155
1152
  const stillOutdated = after && latest && after !== latest ? [{ name: PACKAGE_NAME }] : [];
1156
1153
  const result = reconcile(packages, before, { stillOutdated }, commands);
1157
- logResult(result);
1158
1154
  return result;
1159
1155
  }
1160
1156
  }
@@ -1217,7 +1213,6 @@ var angular = {
1217
1213
  yield { type: "phase", phase: "verifying", message: "Verificando resultado..." };
1218
1214
  const after = await listOutdated4();
1219
1215
  const result = reconcile(packages, before, { stillOutdated: after.map((p) => ({ name: p.name })) }, commands);
1220
- logResult(result);
1221
1216
  return result;
1222
1217
  }
1223
1218
  }
@@ -1346,7 +1341,6 @@ var goLang = {
1346
1341
  yield { type: "phase", phase: "verifying", message: "Verificando resultado..." };
1347
1342
  const after = await listOutdated5();
1348
1343
  const result = reconcile(packages, before, { stillOutdated: after.map((p) => ({ name: p.name })) }, commands);
1349
- logResult(result);
1350
1344
  return result;
1351
1345
  }
1352
1346
  }
@@ -1500,7 +1494,6 @@ var pnpm = {
1500
1494
  yield { type: "phase", phase: "verifying", message: "Verificando resultado..." };
1501
1495
  const after = await listOutdated6();
1502
1496
  const result = reconcile(packages, before, { stillOutdated: after.map((p) => ({ name: p.name })) }, commands);
1503
- logResult(result);
1504
1497
  return result;
1505
1498
  }
1506
1499
  }
@@ -1588,7 +1581,6 @@ var yarn = {
1588
1581
  manualCommand: BERRY_MANUAL,
1589
1582
  managerId: "yarn"
1590
1583
  };
1591
- logResult(result2);
1592
1584
  return result2;
1593
1585
  }
1594
1586
  yield { type: "phase", phase: "upgrading", message: "Actualizando yarn (global)..." };
@@ -1605,7 +1597,6 @@ var yarn = {
1605
1597
  yield { type: "phase", phase: "verifying", message: "Verificando resultado..." };
1606
1598
  const after = await listClassicOutdated();
1607
1599
  const result = reconcile(packages, before, { stillOutdated: after.map((p) => ({ name: p.name })) }, commands);
1608
- logResult(result);
1609
1600
  return result;
1610
1601
  }
1611
1602
  }
@@ -1669,7 +1660,6 @@ var bun = {
1669
1660
  }));
1670
1661
  const stillOutdated = candidates.filter((name) => (afterMap.get(name) ?? beforeMap.get(name)) === beforeMap.get(name)).map((name) => ({ name }));
1671
1662
  const result = reconcile(packages, before, { stillOutdated }, commands);
1672
- logResult(result);
1673
1663
  return result;
1674
1664
  }
1675
1665
  }
@@ -1810,7 +1800,6 @@ var asdf = {
1810
1800
  const commands = [];
1811
1801
  if (!before.length) {
1812
1802
  const result2 = reconcile(packages, before, { stillOutdated: [] }, commands);
1813
- logResult(result2);
1814
1803
  return result2;
1815
1804
  }
1816
1805
  yield { type: "log", message: `Comando manual: ${MANUAL_COMMAND}` };
@@ -1831,7 +1820,6 @@ var asdf = {
1831
1820
  toVersion: p.newVersion
1832
1821
  }))
1833
1822
  };
1834
- logResult(result);
1835
1823
  return result;
1836
1824
  }
1837
1825
  }
@@ -1983,7 +1971,6 @@ var pipx = {
1983
1971
  const afterSnap = await snapshot();
1984
1972
  const stillOutdated = before.filter((p) => afterSnap[p.name] === void 0 || afterSnap[p.name] === beforeSnap[p.name]).map((p) => ({ name: p.name }));
1985
1973
  const result = reconcile(packages, before, { stillOutdated }, commands);
1986
- logResult(result);
1987
1974
  return result;
1988
1975
  }
1989
1976
  }
@@ -2653,8 +2640,13 @@ function useAppMachine(sudoMode2) {
2653
2640
  if (e.phase === "queued") {
2654
2641
  enqueue({ type: "MGR_QUEUED", id });
2655
2642
  } else if (e.phase === "upgrading") {
2656
- if (e.event && (e.event.percent !== void 0 || e.event.package)) {
2657
- enqueue({ type: "MGR_PROGRESS", id, percent: e.event.percent, currentPackage: e.event.package });
2643
+ if (e.event && (e.event.percent !== void 0 || e.event.package || e.event.message)) {
2644
+ enqueue({
2645
+ type: "MGR_PROGRESS",
2646
+ id,
2647
+ percent: e.event.percent,
2648
+ currentPackage: e.event.package ?? e.event.message
2649
+ });
2658
2650
  } else if (!e.event) {
2659
2651
  enqueue({ type: "MGR_RUNNING", id });
2660
2652
  }
@@ -2727,8 +2719,7 @@ function MachineProvider({ value, children }) {
2727
2719
  }
2728
2720
 
2729
2721
  // src/screens/detect.tsx
2730
- import { Box as Box3, Text as Text4 } from "ink";
2731
- import { Spinner as Spinner2 } from "@inkjs/ui";
2722
+ import { Box as Box2, Text as Text3 } from "ink";
2732
2723
 
2733
2724
  // src/components/step-header.tsx
2734
2725
  import { Box, Text } from "ink";
@@ -2823,22 +2814,16 @@ function StepHeader({ phase }) {
2823
2814
  ] });
2824
2815
  }
2825
2816
 
2826
- // src/components/manager-row.tsx
2827
- import React2 from "react";
2828
- import { Box as Box2, Text as Text3 } from "ink";
2829
- import { ProgressBar } from "@inkjs/ui";
2830
-
2831
2817
  // src/components/status-glyph.tsx
2832
2818
  import { Text as Text2 } from "ink";
2833
- import { Spinner } from "@inkjs/ui";
2834
2819
  import { jsx as jsx3 } from "react/jsx-runtime";
2835
2820
  var SPECS = {
2836
- pending: { glyph: "\u25CB", color: semantic.muted },
2837
- scanning: { glyph: "\u27F3", color: semantic.action, spinner: true },
2821
+ pending: { glyph: "\xB7", color: semantic.muted },
2822
+ scanning: { glyph: "\u25CC", color: semantic.action },
2838
2823
  outdated: { glyph: "\u203A", color: semantic.warning },
2839
2824
  uptodate: { glyph: "\u2713", color: semantic.muted },
2840
2825
  queued: { glyph: "\xB7", color: semantic.muted },
2841
- running: { glyph: "\u27F3", color: semantic.action, spinner: true },
2826
+ running: { glyph: "\u25B8", color: semantic.action },
2842
2827
  done: { glyph: "\u2713", color: semantic.success },
2843
2828
  failed: { glyph: "\u2717", color: semantic.error },
2844
2829
  skipped: { glyph: "\u2298", color: semantic.warning }
@@ -2848,64 +2833,53 @@ function statusColor(status) {
2848
2833
  }
2849
2834
  function StatusGlyph({ status }) {
2850
2835
  const spec = SPECS[status];
2851
- if (spec.spinner) return /* @__PURE__ */ jsx3(Spinner, {});
2852
2836
  return /* @__PURE__ */ jsx3(Text2, { color: spec.color, children: spec.glyph });
2853
2837
  }
2854
2838
 
2855
- // src/components/manager-row.tsx
2856
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
2857
- function ManagerRowImpl({ entry, selectedCount, showProgress }) {
2858
- return /* @__PURE__ */ jsxs2(Box2, { flexDirection: "column", children: [
2859
- /* @__PURE__ */ jsxs2(Box2, { children: [
2860
- /* @__PURE__ */ jsx4(Box2, { width: 3, children: /* @__PURE__ */ jsx4(StatusGlyph, { status: entry.status }) }),
2861
- /* @__PURE__ */ jsx4(Box2, { width: 18, children: /* @__PURE__ */ jsx4(Text3, { color: semantic.text, bold: entry.status === "outdated" || entry.status === "running", children: managerName(entry.id) }) }),
2862
- /* @__PURE__ */ jsx4(Box2, { width: 12, children: /* @__PURE__ */ jsx4(Text3, { color: statusColor(entry.status), children: t("status", entry.status) }) }),
2863
- entry.status === "outdated" && /* @__PURE__ */ jsxs2(Text3, { color: semantic.warning, children: [
2864
- entry.outdated.length,
2865
- selectedCount ? /* @__PURE__ */ jsxs2(Text3, { color: semantic.action, children: [
2866
- " (",
2867
- selectedCount,
2868
- " \u2713)"
2869
- ] }) : null
2870
- ] }),
2871
- entry.requiresAdmin && /* @__PURE__ */ jsx4(Text3, { color: semantic.muted, children: " ADMIN" })
2872
- ] }),
2873
- showProgress && entry.status === "running" && /* @__PURE__ */ jsxs2(Box2, { marginLeft: 3, children: [
2874
- /* @__PURE__ */ jsx4(Box2, { width: 24, children: entry.percent > 0 ? /* @__PURE__ */ jsx4(ProgressBar, { value: entry.percent }) : /* @__PURE__ */ jsx4(Text3, { color: colors.outline, children: "\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591" }) }),
2875
- /* @__PURE__ */ jsxs2(Text3, { color: semantic.muted, children: [
2876
- " ",
2877
- entry.currentPackage ?? ""
2878
- ] })
2879
- ] })
2880
- ] });
2881
- }
2882
- var ManagerRow = React2.memo(ManagerRowImpl);
2883
-
2884
2839
  // src/screens/detect.tsx
2885
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
2840
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
2886
2841
  function DetectScreen() {
2887
2842
  const { state } = useMachine();
2888
2843
  const scanning = state.phase === "scanning";
2889
- return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", children: [
2890
- /* @__PURE__ */ jsx5(StepHeader, { phase: state.phase }),
2891
- /* @__PURE__ */ jsxs3(Box3, { marginBottom: 1, children: [
2892
- /* @__PURE__ */ jsx5(Spinner2, {}),
2893
- /* @__PURE__ */ jsxs3(Text4, { color: semantic.text, children: [
2844
+ const done = state.order.filter((id) => {
2845
+ const s = state.managers[id]?.status;
2846
+ return s === "outdated" || s === "uptodate";
2847
+ }).length;
2848
+ return /* @__PURE__ */ jsxs2(Box2, { flexDirection: "column", children: [
2849
+ /* @__PURE__ */ jsx4(StepHeader, { phase: state.phase }),
2850
+ /* @__PURE__ */ jsxs2(Box2, { marginBottom: 1, children: [
2851
+ /* @__PURE__ */ jsx4(Text3, { color: semantic.text, children: scanning ? t("ui", "scanning") : t("ui", "detecting") }),
2852
+ scanning && /* @__PURE__ */ jsxs2(Text3, { color: semantic.muted, children: [
2894
2853
  " ",
2895
- scanning ? t("ui", "scanning") : t("ui", "detecting")
2854
+ "(",
2855
+ done,
2856
+ "/",
2857
+ state.order.length,
2858
+ ")"
2896
2859
  ] })
2897
2860
  ] }),
2898
- scanning && /* @__PURE__ */ jsx5(Box3, { flexDirection: "column", children: state.order.map((id) => {
2861
+ scanning && state.order.map((id) => {
2899
2862
  const e = state.managers[id];
2900
- return e ? /* @__PURE__ */ jsx5(ManagerRow, { entry: e }, id) : null;
2901
- }) })
2863
+ if (!e) return null;
2864
+ return /* @__PURE__ */ jsxs2(Box2, { children: [
2865
+ /* @__PURE__ */ jsx4(Box2, { width: 2, children: /* @__PURE__ */ jsx4(StatusGlyph, { status: e.status }) }),
2866
+ /* @__PURE__ */ jsx4(Box2, { width: 18, children: /* @__PURE__ */ jsx4(Text3, { color: e.status === "outdated" ? semantic.text : semantic.muted, children: managerName(id) }) }),
2867
+ e.status === "outdated" ? /* @__PURE__ */ jsxs2(Text3, { color: semantic.warning, children: [
2868
+ e.outdated.length,
2869
+ " \u203A"
2870
+ ] }) : e.status === "uptodate" ? /* @__PURE__ */ jsx4(Text3, { color: colors.outline, children: "\u2014" }) : /* @__PURE__ */ jsx4(Text3, { color: semantic.muted, children: "\u2026" })
2871
+ ] }, id);
2872
+ })
2902
2873
  ] });
2903
2874
  }
2904
2875
 
2905
2876
  // src/screens/select.tsx
2906
2877
  import { useState } from "react";
2907
- import { Box as Box4, Text as Text5, useInput } from "ink";
2908
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
2878
+ import { Box as Box3, Text as Text4, useInput } from "ink";
2879
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
2880
+ function clip(s, n) {
2881
+ return s.length > n ? s.slice(0, n - 1) + "\u2026" : s;
2882
+ }
2909
2883
  function SelectScreen() {
2910
2884
  const { state, toggleItem, selectAll, selectNone, goConfirm, openSettings } = useMachine();
2911
2885
  const [cursor, setCursor] = useState(0);
@@ -2927,56 +2901,76 @@ function SelectScreen() {
2927
2901
  else if (input === "s" || input === "S") openSettings();
2928
2902
  });
2929
2903
  if (rows.length === 0) {
2930
- return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", children: [
2931
- /* @__PURE__ */ jsx6(StepHeader, { phase: state.phase }),
2932
- /* @__PURE__ */ jsxs4(Text5, { color: semantic.success, children: [
2904
+ return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", children: [
2905
+ /* @__PURE__ */ jsx5(StepHeader, { phase: state.phase }),
2906
+ /* @__PURE__ */ jsxs3(Text4, { color: semantic.success, children: [
2933
2907
  "\u2713 ",
2934
2908
  t("ui", "noUpdates")
2935
- ] })
2909
+ ] }),
2910
+ /* @__PURE__ */ jsx5(Box3, { marginTop: 1, children: /* @__PURE__ */ jsxs3(Text4, { color: semantic.muted, children: [
2911
+ "R ",
2912
+ t("flow", "detecting"),
2913
+ " \xB7 Q"
2914
+ ] }) })
2936
2915
  ] });
2937
2916
  }
2938
- let lastManager = "";
2939
- return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", children: [
2940
- /* @__PURE__ */ jsx6(StepHeader, { phase: state.phase }),
2941
- /* @__PURE__ */ jsxs4(Box4, { marginBottom: 1, children: [
2942
- /* @__PURE__ */ jsx6(Text5, { color: semantic.action, bold: true, children: state.selection.size }),
2943
- /* @__PURE__ */ jsxs4(Text5, { color: semantic.muted, children: [
2944
- " / ",
2917
+ const width = Math.min((process.stdout.columns ?? 90) - 4, 92);
2918
+ const view = Math.max(6, (process.stdout.rows ?? 24) - 11);
2919
+ let start = clamped - Math.floor(view / 2);
2920
+ start = Math.max(0, Math.min(start, Math.max(0, rows.length - view)));
2921
+ const end = Math.min(rows.length, start + view);
2922
+ const visible = rows.slice(start, end);
2923
+ let prevManager = "";
2924
+ return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", children: [
2925
+ /* @__PURE__ */ jsx5(StepHeader, { phase: state.phase }),
2926
+ /* @__PURE__ */ jsxs3(Box3, { marginBottom: 1, children: [
2927
+ /* @__PURE__ */ jsx5(Text4, { color: semantic.action, bold: true, children: state.selection.size }),
2928
+ /* @__PURE__ */ jsxs3(Text4, { color: semantic.muted, children: [
2929
+ " ",
2930
+ "/ ",
2945
2931
  rows.length,
2946
2932
  " ",
2947
2933
  t("ui", "selected")
2948
2934
  ] })
2949
2935
  ] }),
2950
- rows.map((r, i) => {
2951
- const header = r.managerId !== lastManager ? managerName(r.managerId) : null;
2952
- lastManager = r.managerId;
2936
+ start > 0 && /* @__PURE__ */ jsxs3(Text4, { color: colors.outline, children: [
2937
+ "\u25B2 ",
2938
+ start,
2939
+ " \u2191"
2940
+ ] }),
2941
+ visible.map((r) => {
2942
+ const header = r.managerId !== prevManager ? managerName(r.managerId) : null;
2943
+ prevManager = r.managerId;
2953
2944
  const selected = state.selection.has(selectionKey(r.managerId, r.pkg.name));
2954
- const isCursor = i === clamped;
2955
- return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", children: [
2956
- header && /* @__PURE__ */ jsx6(Text5, { color: semantic.muted, bold: true, children: header }),
2957
- /* @__PURE__ */ jsxs4(Box4, { children: [
2958
- /* @__PURE__ */ jsx6(Text5, { color: isCursor ? semantic.action : colors.outline, children: isCursor ? "\u276F " : " " }),
2959
- /* @__PURE__ */ jsxs4(Text5, { color: selected ? semantic.success : colors.outline, children: [
2960
- selected ? "[\u2713]" : "[ ]",
2961
- " "
2962
- ] }),
2963
- /* @__PURE__ */ jsx6(Box4, { width: 22, children: /* @__PURE__ */ jsx6(Text5, { color: semantic.text, bold: isCursor, children: r.pkg.name }) }),
2964
- /* @__PURE__ */ jsxs4(Text5, { color: semantic.muted, children: [
2965
- r.pkg.currentVersion,
2945
+ const isCursor = rows[clamped] === r;
2946
+ return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", children: [
2947
+ header && /* @__PURE__ */ jsx5(Text4, { color: semantic.muted, bold: true, children: header }),
2948
+ /* @__PURE__ */ jsxs3(Box3, { children: [
2949
+ /* @__PURE__ */ jsx5(Text4, { color: isCursor ? semantic.action : colors.outline, children: isCursor ? "\u276F " : " " }),
2950
+ /* @__PURE__ */ jsx5(Text4, { color: selected ? semantic.success : colors.outline, children: selected ? "[\u2713] " : "[ ] " }),
2951
+ /* @__PURE__ */ jsx5(Box3, { width: 22, children: /* @__PURE__ */ jsx5(Text4, { color: semantic.text, bold: isCursor, children: clip(r.pkg.name, 21) }) }),
2952
+ /* @__PURE__ */ jsxs3(Text4, { color: semantic.muted, wrap: "truncate-end", children: [
2953
+ clip(r.pkg.currentVersion, 14),
2966
2954
  " ",
2967
- /* @__PURE__ */ jsx6(Text5, { color: semantic.action, children: "\u2192" }),
2955
+ /* @__PURE__ */ jsx5(Text4, { color: semantic.action, children: "\u2192" }),
2968
2956
  " ",
2969
- r.pkg.newVersion
2957
+ clip(r.pkg.newVersion, 14)
2970
2958
  ] })
2971
2959
  ] })
2972
- ] }, `${r.managerId} ${r.pkg.name}`);
2973
- })
2960
+ ] }, `${r.managerId}:${r.pkg.name}`);
2961
+ }),
2962
+ end < rows.length && /* @__PURE__ */ jsxs3(Text4, { color: colors.outline, children: [
2963
+ "\u25BC ",
2964
+ rows.length - end,
2965
+ " \u2193"
2966
+ ] }),
2967
+ /* @__PURE__ */ jsx5(Box3, { marginTop: 1, children: /* @__PURE__ */ jsx5(Text4, { color: semantic.muted, children: clip(t("ui", "selectHint"), width) }) })
2974
2968
  ] });
2975
2969
  }
2976
2970
 
2977
2971
  // src/screens/confirm.tsx
2978
- import { Box as Box5, Text as Text6, useInput as useInput2 } from "ink";
2979
- import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
2972
+ import { Box as Box4, Text as Text5, useInput as useInput2 } from "ink";
2973
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
2980
2974
  function ConfirmScreen() {
2981
2975
  const { state, startRun, goSelect, sudoMode: sudoMode2 } = useMachine();
2982
2976
  const byManager = /* @__PURE__ */ new Map();
@@ -2988,108 +2982,87 @@ function ConfirmScreen() {
2988
2982
  if (key.return || input === "y" || input === "Y") startRun();
2989
2983
  else if (key.escape) goSelect();
2990
2984
  });
2991
- return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
2992
- /* @__PURE__ */ jsx7(StepHeader, { phase: state.phase }),
2993
- /* @__PURE__ */ jsx7(Text6, { color: semantic.text, children: t("ui", "willRun") }),
2994
- /* @__PURE__ */ jsx7(Box5, { flexDirection: "column", marginTop: 1, marginBottom: 1, children: [...byManager.entries()].map(([id, count]) => {
2985
+ return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", children: [
2986
+ /* @__PURE__ */ jsx6(StepHeader, { phase: state.phase }),
2987
+ /* @__PURE__ */ jsx6(Text5, { color: semantic.text, children: t("ui", "willRun") }),
2988
+ /* @__PURE__ */ jsx6(Box4, { flexDirection: "column", marginTop: 1, marginBottom: 1, children: [...byManager.entries()].map(([id, count]) => {
2995
2989
  const m = state.managers[id];
2996
2990
  const willSkip = m?.requiresAdmin && !sudoMode2;
2997
- return /* @__PURE__ */ jsxs5(Box5, { children: [
2998
- /* @__PURE__ */ jsx7(Text6, { color: semantic.action, children: "\u25B8 " }),
2999
- /* @__PURE__ */ jsx7(Box5, { width: 20, children: /* @__PURE__ */ jsx7(Text6, { color: semantic.text, bold: true, children: managerName(id) }) }),
3000
- /* @__PURE__ */ jsxs5(Text6, { color: semantic.muted, children: [
2991
+ return /* @__PURE__ */ jsxs4(Box4, { children: [
2992
+ /* @__PURE__ */ jsx6(Text5, { color: semantic.action, children: "\u25B8 " }),
2993
+ /* @__PURE__ */ jsx6(Box4, { width: 20, children: /* @__PURE__ */ jsx6(Text5, { color: semantic.text, bold: true, children: managerName(id) }) }),
2994
+ /* @__PURE__ */ jsxs4(Text5, { color: semantic.muted, children: [
3001
2995
  count,
3002
2996
  " paquete(s)"
3003
2997
  ] }),
3004
- willSkip && /* @__PURE__ */ jsx7(Text6, { color: semantic.warning, children: " \xB7 requiere sudo \u2192 manual" })
2998
+ willSkip && /* @__PURE__ */ jsx6(Text5, { color: semantic.warning, children: " \xB7 requiere sudo \u2192 manual" })
3005
2999
  ] }, id);
3006
3000
  }) }),
3007
- /* @__PURE__ */ jsx7(Text6, { color: semantic.muted, children: t("ui", "confirmHint") })
3001
+ /* @__PURE__ */ jsx6(Text5, { color: semantic.muted, children: t("ui", "confirmHint") })
3008
3002
  ] });
3009
3003
  }
3010
3004
 
3011
3005
  // src/screens/update.tsx
3012
- import { useEffect as useEffect2, useState as useState2 } from "react";
3013
- import { Box as Box7, Text as Text8, useInput as useInput3 } from "ink";
3014
-
3015
- // src/components/log-pane.tsx
3016
- import React4 from "react";
3017
- import { Box as Box6, Text as Text7 } from "ink";
3018
- import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
3019
- var levelColor = {
3020
- info: colors.onSurfaceVariant,
3021
- debug: colors.outline,
3022
- warn: semantic.warning,
3023
- error: semantic.error,
3024
- success: semantic.success
3025
- };
3026
- function LogPaneImpl({ entries, maxLines = 14, width = 60, title = "LOG" }) {
3027
- const slice = entries.slice(-maxLines);
3028
- const clip = Math.max(20, width - 2);
3029
- return /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", width, children: [
3030
- /* @__PURE__ */ jsxs6(Text7, { color: colors.outline, children: [
3031
- "\u250C ",
3032
- title,
3033
- " ",
3034
- "\u2500".repeat(Math.max(0, clip - title.length - 2))
3035
- ] }),
3036
- slice.length === 0 ? /* @__PURE__ */ jsx8(Text7, { color: colors.outline, dimColor: true, children: "(sin actividad)" }) : slice.map((e) => /* @__PURE__ */ jsx8(Text7, { color: levelColor[e.level], wrap: "truncate-end", children: e.message.slice(0, clip) }, e.id))
3006
+ import { Box as Box5, Text as Text6, useInput as useInput3 } from "ink";
3007
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
3008
+ function clip2(s, n) {
3009
+ return s.length > n ? s.slice(0, Math.max(0, n - 1)) + "\u2026" : s;
3010
+ }
3011
+ function Row({ e, width }) {
3012
+ let detail = "";
3013
+ if (e.status === "running") detail = `${e.percent > 0 ? `${e.percent}% ` : ""}${e.currentPackage ?? ""}`;
3014
+ else if (e.status === "skipped") detail = e.manualCommand ?? "manual";
3015
+ else if (e.status === "failed") detail = e.result?.failures[0]?.message ?? "";
3016
+ return /* @__PURE__ */ jsxs5(Box5, { children: [
3017
+ /* @__PURE__ */ jsx7(Box5, { width: 2, children: /* @__PURE__ */ jsx7(StatusGlyph, { status: e.status }) }),
3018
+ /* @__PURE__ */ jsx7(Box5, { width: 16, children: /* @__PURE__ */ jsx7(Text6, { color: semantic.text, bold: e.status === "running", children: clip2(managerName(e.id), 15) }) }),
3019
+ /* @__PURE__ */ jsx7(Box5, { width: 13, children: /* @__PURE__ */ jsx7(Text6, { color: statusColor(e.status), children: t("status", e.status) }) }),
3020
+ /* @__PURE__ */ jsx7(Text6, { color: semantic.muted, children: clip2(detail, Math.max(0, width - 33)) })
3037
3021
  ] });
3038
3022
  }
3039
- var LogPane = React4.memo(LogPaneImpl);
3040
-
3041
- // src/screens/update.tsx
3042
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
3043
3023
  function UpdateScreen() {
3044
3024
  const { state, cancelRun } = useMachine();
3045
- const [logs, setLogs] = useState2([]);
3046
- useEffect2(() => {
3047
- const id = setInterval(() => setLogs(getLogEntries()), 250);
3048
- return () => clearInterval(id);
3049
- }, []);
3050
3025
  useInput3((_input, key) => {
3051
3026
  if (key.escape) cancelRun();
3052
3027
  });
3053
3028
  const total = state.run.queue.length;
3054
3029
  const finished = state.run.doneCount + state.run.failedCount + state.run.skippedCount;
3055
- return /* @__PURE__ */ jsxs7(Box7, { flexDirection: "column", children: [
3056
- /* @__PURE__ */ jsx9(StepHeader, { phase: state.phase }),
3057
- /* @__PURE__ */ jsxs7(Box7, { marginBottom: 1, children: [
3058
- /* @__PURE__ */ jsxs7(Text8, { color: semantic.text, bold: true, children: [
3030
+ const width = Math.min((process.stdout.columns ?? 90) - 4, 92);
3031
+ return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
3032
+ /* @__PURE__ */ jsx7(StepHeader, { phase: state.phase }),
3033
+ /* @__PURE__ */ jsxs5(Box5, { marginBottom: 1, children: [
3034
+ /* @__PURE__ */ jsxs5(Text6, { color: semantic.text, bold: true, children: [
3059
3035
  finished,
3060
3036
  "/",
3061
3037
  total,
3062
- " "
3038
+ " "
3063
3039
  ] }),
3064
- /* @__PURE__ */ jsxs7(Text8, { color: semantic.success, children: [
3065
- "\u2713",
3040
+ /* @__PURE__ */ jsxs5(Text6, { color: semantic.success, children: [
3041
+ "\u2713 ",
3066
3042
  state.run.doneCount,
3067
- " "
3043
+ " "
3068
3044
  ] }),
3069
- /* @__PURE__ */ jsxs7(Text8, { color: semantic.error, children: [
3070
- "\u2717",
3045
+ /* @__PURE__ */ jsxs5(Text6, { color: semantic.error, children: [
3046
+ "\u2717 ",
3071
3047
  state.run.failedCount,
3072
- " "
3048
+ " "
3073
3049
  ] }),
3074
- /* @__PURE__ */ jsxs7(Text8, { color: semantic.warning, children: [
3075
- "\u2298",
3050
+ /* @__PURE__ */ jsxs5(Text6, { color: semantic.warning, children: [
3051
+ "\u2298 ",
3076
3052
  state.run.skippedCount
3077
3053
  ] })
3078
3054
  ] }),
3079
- /* @__PURE__ */ jsxs7(Box7, { children: [
3080
- /* @__PURE__ */ jsx9(Box7, { flexDirection: "column", width: 42, children: state.run.queue.map((id) => {
3081
- const e = state.managers[id];
3082
- return e ? /* @__PURE__ */ jsx9(ManagerRow, { entry: e, showProgress: true }, id) : null;
3083
- }) }),
3084
- /* @__PURE__ */ jsx9(LogPane, { entries: logs, width: 56, maxLines: Math.max(6, state.run.queue.length + 2), title: "STDOUT" })
3085
- ] }),
3086
- /* @__PURE__ */ jsx9(Box7, { marginTop: 1, children: /* @__PURE__ */ jsx9(Text8, { color: semantic.muted, children: t("ui", "updatingHint") }) })
3055
+ state.run.queue.map((id) => {
3056
+ const e = state.managers[id];
3057
+ return e ? /* @__PURE__ */ jsx7(Row, { e, width }, id) : null;
3058
+ }),
3059
+ /* @__PURE__ */ jsx7(Box5, { marginTop: 1, children: /* @__PURE__ */ jsx7(Text6, { color: semantic.muted, children: t("ui", "updatingHint") }) })
3087
3060
  ] });
3088
3061
  }
3089
3062
 
3090
3063
  // src/screens/summary.tsx
3091
- import { Box as Box8, Text as Text9, useInput as useInput4 } from "ink";
3092
- import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
3064
+ import { Box as Box6, Text as Text7, useInput as useInput4 } from "ink";
3065
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
3093
3066
  function SummaryScreen() {
3094
3067
  const { state, rescan } = useMachine();
3095
3068
  useInput4((input) => {
@@ -3116,65 +3089,65 @@ function SummaryScreen() {
3116
3089
  }
3117
3090
  }
3118
3091
  const hasErrors = failed > 0;
3119
- return /* @__PURE__ */ jsxs8(Box8, { flexDirection: "column", children: [
3120
- /* @__PURE__ */ jsx10(StepHeader, { phase: state.phase }),
3121
- /* @__PURE__ */ jsx10(Box8, { marginBottom: 1, children: /* @__PURE__ */ jsx10(Text9, { color: hasErrors ? semantic.error : semantic.success, bold: true, children: hasErrors ? `\u2717 ${t("ui", "withErrors")}` : `\u2713 ${t("ui", "allDone")}` }) }),
3122
- /* @__PURE__ */ jsxs8(Box8, { marginBottom: 1, children: [
3123
- /* @__PURE__ */ jsxs8(Text9, { color: semantic.success, children: [
3092
+ return /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", children: [
3093
+ /* @__PURE__ */ jsx8(StepHeader, { phase: state.phase }),
3094
+ /* @__PURE__ */ jsx8(Box6, { marginBottom: 1, children: /* @__PURE__ */ jsx8(Text7, { color: hasErrors ? semantic.error : semantic.success, bold: true, children: hasErrors ? `\u2717 ${t("ui", "withErrors")}` : `\u2713 ${t("ui", "allDone")}` }) }),
3095
+ /* @__PURE__ */ jsxs6(Box6, { marginBottom: 1, children: [
3096
+ /* @__PURE__ */ jsxs6(Text7, { color: semantic.success, children: [
3124
3097
  upgraded,
3125
3098
  " ",
3126
3099
  t("ui", "upgraded")
3127
3100
  ] }),
3128
- /* @__PURE__ */ jsx10(Text9, { color: semantic.muted, children: " \xB7 " }),
3129
- /* @__PURE__ */ jsxs8(Text9, { color: hasErrors ? semantic.error : semantic.muted, children: [
3101
+ /* @__PURE__ */ jsx8(Text7, { color: semantic.muted, children: " \xB7 " }),
3102
+ /* @__PURE__ */ jsxs6(Text7, { color: hasErrors ? semantic.error : semantic.muted, children: [
3130
3103
  failed,
3131
3104
  " ",
3132
3105
  t("ui", "failed")
3133
3106
  ] }),
3134
- /* @__PURE__ */ jsx10(Text9, { color: semantic.muted, children: " \xB7 " }),
3135
- /* @__PURE__ */ jsxs8(Text9, { color: semantic.warning, children: [
3107
+ /* @__PURE__ */ jsx8(Text7, { color: semantic.muted, children: " \xB7 " }),
3108
+ /* @__PURE__ */ jsxs6(Text7, { color: semantic.warning, children: [
3136
3109
  skipped,
3137
3110
  " ",
3138
3111
  t("ui", "skipped")
3139
3112
  ] })
3140
3113
  ] }),
3141
- failures.length > 0 && /* @__PURE__ */ jsx10(Box8, { flexDirection: "column", marginBottom: 1, children: failures.slice(0, 8).map((f, i) => /* @__PURE__ */ jsxs8(Text9, { color: semantic.error, wrap: "truncate-end", children: [
3114
+ failures.length > 0 && /* @__PURE__ */ jsx8(Box6, { flexDirection: "column", marginBottom: 1, children: failures.slice(0, 8).map((f, i) => /* @__PURE__ */ jsxs6(Text7, { color: semantic.error, wrap: "truncate-end", children: [
3142
3115
  "\u2717 ",
3143
3116
  managerName(f.manager),
3144
3117
  ": ",
3145
3118
  f.message,
3146
- f.kind ? /* @__PURE__ */ jsxs8(Text9, { color: semantic.muted, children: [
3119
+ f.kind ? /* @__PURE__ */ jsxs6(Text7, { color: semantic.muted, children: [
3147
3120
  " [",
3148
3121
  f.kind,
3149
3122
  "]"
3150
3123
  ] }) : null
3151
3124
  ] }, i)) }),
3152
- manuals.length > 0 && /* @__PURE__ */ jsxs8(Box8, { flexDirection: "column", marginBottom: 1, children: [
3153
- /* @__PURE__ */ jsx10(Text9, { color: semantic.warning, children: t("ui", "manualNeeded") }),
3154
- manuals.map((m, i) => /* @__PURE__ */ jsxs8(Text9, { color: semantic.muted, children: [
3125
+ manuals.length > 0 && /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", marginBottom: 1, children: [
3126
+ /* @__PURE__ */ jsx8(Text7, { color: semantic.warning, children: t("ui", "manualNeeded") }),
3127
+ manuals.map((m, i) => /* @__PURE__ */ jsxs6(Text7, { color: semantic.muted, children: [
3155
3128
  " ",
3156
3129
  managerName(m.manager),
3157
3130
  ": ",
3158
- /* @__PURE__ */ jsx10(Text9, { color: semantic.text, children: m.command })
3131
+ /* @__PURE__ */ jsx8(Text7, { color: semantic.text, children: m.command })
3159
3132
  ] }, i))
3160
3133
  ] }),
3161
- hasErrors && /* @__PURE__ */ jsxs8(Text9, { color: semantic.muted, children: [
3134
+ hasErrors && /* @__PURE__ */ jsxs6(Text7, { color: semantic.muted, children: [
3162
3135
  t("ui", "logAt"),
3163
3136
  " ",
3164
3137
  getLogFilePath() ?? "~/.tacuchi-updater/logs/"
3165
3138
  ] }),
3166
- /* @__PURE__ */ jsx10(Box8, { marginTop: 1, children: /* @__PURE__ */ jsx10(Text9, { color: semantic.muted, children: t("ui", "summaryHint") }) })
3139
+ /* @__PURE__ */ jsx8(Box6, { marginTop: 1, children: /* @__PURE__ */ jsx8(Text7, { color: semantic.muted, children: t("ui", "summaryHint") }) })
3167
3140
  ] });
3168
3141
  }
3169
3142
 
3170
3143
  // src/screens/settings-screen.tsx
3171
- import { useState as useState3 } from "react";
3172
- import { Box as Box9, Text as Text10, useInput as useInput5 } from "ink";
3173
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
3144
+ import { useState as useState2 } from "react";
3145
+ import { Box as Box7, Text as Text8, useInput as useInput5 } from "ink";
3146
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
3174
3147
  function SettingsScreen() {
3175
3148
  const { state, toggleEnabled, setLang, closeSettings } = useMachine();
3176
3149
  const ids = state.order;
3177
- const [cursor, setCursor] = useState3(0);
3150
+ const [cursor, setCursor] = useState2(0);
3178
3151
  const clamped = Math.min(cursor, Math.max(0, ids.length - 1));
3179
3152
  useInput5((input, key) => {
3180
3153
  if (key.escape) closeSettings();
@@ -3187,35 +3160,35 @@ function SettingsScreen() {
3187
3160
  setLang(state.config.language === "es" ? "en" : "es");
3188
3161
  }
3189
3162
  });
3190
- return /* @__PURE__ */ jsxs9(Box9, { flexDirection: "column", children: [
3191
- /* @__PURE__ */ jsx11(StepHeader, { phase: "settings" }),
3192
- /* @__PURE__ */ jsxs9(Box9, { marginBottom: 1, children: [
3193
- /* @__PURE__ */ jsx11(Text10, { color: semantic.text, children: "Idioma / Language: " }),
3194
- /* @__PURE__ */ jsx11(Text10, { color: semantic.action, bold: true, children: state.config.language.toUpperCase() }),
3195
- /* @__PURE__ */ jsx11(Text10, { color: semantic.muted, children: " (L)" })
3163
+ return /* @__PURE__ */ jsxs7(Box7, { flexDirection: "column", children: [
3164
+ /* @__PURE__ */ jsx9(StepHeader, { phase: "settings" }),
3165
+ /* @__PURE__ */ jsxs7(Box7, { marginBottom: 1, children: [
3166
+ /* @__PURE__ */ jsx9(Text8, { color: semantic.text, children: "Idioma / Language: " }),
3167
+ /* @__PURE__ */ jsx9(Text8, { color: semantic.action, bold: true, children: state.config.language.toUpperCase() }),
3168
+ /* @__PURE__ */ jsx9(Text8, { color: semantic.muted, children: " (L)" })
3196
3169
  ] }),
3197
3170
  ids.map((id, i) => {
3198
3171
  const enabled = isManagerEnabled(state.config, id);
3199
3172
  const isCursor = i === clamped;
3200
- return /* @__PURE__ */ jsxs9(Box9, { children: [
3201
- /* @__PURE__ */ jsx11(Text10, { color: isCursor ? semantic.action : colors.outline, children: isCursor ? "\u276F " : " " }),
3202
- /* @__PURE__ */ jsxs9(Text10, { color: enabled ? semantic.success : colors.outline, children: [
3173
+ return /* @__PURE__ */ jsxs7(Box7, { children: [
3174
+ /* @__PURE__ */ jsx9(Text8, { color: isCursor ? semantic.action : colors.outline, children: isCursor ? "\u276F " : " " }),
3175
+ /* @__PURE__ */ jsxs7(Text8, { color: enabled ? semantic.success : colors.outline, children: [
3203
3176
  enabled ? "[on ]" : "[off]",
3204
3177
  " "
3205
3178
  ] }),
3206
- /* @__PURE__ */ jsx11(Text10, { color: enabled ? semantic.text : semantic.muted, children: managerName(id) })
3179
+ /* @__PURE__ */ jsx9(Text8, { color: enabled ? semantic.text : semantic.muted, children: managerName(id) })
3207
3180
  ] }, id);
3208
3181
  }),
3209
- /* @__PURE__ */ jsx11(Box9, { marginTop: 1, children: /* @__PURE__ */ jsx11(Text10, { color: semantic.muted, children: "Espacio activar/desactivar \xB7 L idioma \xB7 Esc volver" }) })
3182
+ /* @__PURE__ */ jsx9(Box7, { marginTop: 1, children: /* @__PURE__ */ jsx9(Text8, { color: semantic.muted, children: "Espacio activar/desactivar \xB7 L idioma \xB7 Esc volver" }) })
3210
3183
  ] });
3211
3184
  }
3212
3185
 
3213
3186
  // src/app.tsx
3214
- import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
3187
+ import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
3215
3188
  function Header({ sudoMode: sudoMode2 }) {
3216
- return /* @__PURE__ */ jsxs10(Box10, { justifyContent: "space-between", marginBottom: 1, children: [
3217
- /* @__PURE__ */ jsx12(Text11, { color: semantic.action, bold: true, children: "@tacuchi/updater" }),
3218
- /* @__PURE__ */ jsx12(Text11, { color: sudoMode2 ? semantic.warning : colors.outline, children: sudoMode2 ? "SUDO" : `${process.platform}` })
3189
+ return /* @__PURE__ */ jsxs8(Box8, { justifyContent: "space-between", marginBottom: 1, children: [
3190
+ /* @__PURE__ */ jsx10(Text9, { color: semantic.action, bold: true, children: "@tacuchi/updater" }),
3191
+ /* @__PURE__ */ jsx10(Text9, { color: sudoMode2 ? semantic.warning : colors.outline, children: sudoMode2 ? "SUDO" : `${process.platform}` })
3219
3192
  ] });
3220
3193
  }
3221
3194
  function PhaseRouter() {
@@ -3224,17 +3197,17 @@ function PhaseRouter() {
3224
3197
  case "boot":
3225
3198
  case "detecting":
3226
3199
  case "scanning":
3227
- return /* @__PURE__ */ jsx12(DetectScreen, {});
3200
+ return /* @__PURE__ */ jsx10(DetectScreen, {});
3228
3201
  case "select":
3229
- return /* @__PURE__ */ jsx12(SelectScreen, {});
3202
+ return /* @__PURE__ */ jsx10(SelectScreen, {});
3230
3203
  case "confirm":
3231
- return /* @__PURE__ */ jsx12(ConfirmScreen, {});
3204
+ return /* @__PURE__ */ jsx10(ConfirmScreen, {});
3232
3205
  case "updating":
3233
- return /* @__PURE__ */ jsx12(UpdateScreen, {});
3206
+ return /* @__PURE__ */ jsx10(UpdateScreen, {});
3234
3207
  case "summary":
3235
- return /* @__PURE__ */ jsx12(SummaryScreen, {});
3208
+ return /* @__PURE__ */ jsx10(SummaryScreen, {});
3236
3209
  case "settings":
3237
- return /* @__PURE__ */ jsx12(SettingsScreen, {});
3210
+ return /* @__PURE__ */ jsx10(SettingsScreen, {});
3238
3211
  default:
3239
3212
  return null;
3240
3213
  }
@@ -3247,18 +3220,18 @@ function Shell({ sudoMode: sudoMode2 }) {
3247
3220
  process.exit(0);
3248
3221
  }
3249
3222
  });
3250
- return /* @__PURE__ */ jsxs10(Box10, { flexDirection: "column", paddingX: 1, width: Math.min(process.stdout.columns ?? 100, 100), children: [
3251
- /* @__PURE__ */ jsx12(Header, { sudoMode: sudoMode2 }),
3252
- /* @__PURE__ */ jsx12(PhaseRouter, {})
3223
+ return /* @__PURE__ */ jsxs8(Box8, { flexDirection: "column", paddingX: 1, width: Math.min(process.stdout.columns ?? 100, 100), children: [
3224
+ /* @__PURE__ */ jsx10(Header, { sudoMode: sudoMode2 }),
3225
+ /* @__PURE__ */ jsx10(PhaseRouter, {})
3253
3226
  ] });
3254
3227
  }
3255
3228
  function App({ sudoMode: sudoMode2 = false }) {
3256
3229
  const machine = useAppMachine(sudoMode2);
3257
- return /* @__PURE__ */ jsx12(MachineProvider, { value: machine, children: /* @__PURE__ */ jsx12(Shell, { sudoMode: sudoMode2 }) });
3230
+ return /* @__PURE__ */ jsx10(MachineProvider, { value: machine, children: /* @__PURE__ */ jsx10(Shell, { sudoMode: sudoMode2 }) });
3258
3231
  }
3259
3232
 
3260
3233
  // src/cli.tsx
3261
- import { jsx as jsx13 } from "react/jsx-runtime";
3234
+ import { jsx as jsx11 } from "react/jsx-runtime";
3262
3235
  var args = process.argv.slice(2);
3263
3236
  var sudoRequested = args.includes("--sudo") || args.includes("-s");
3264
3237
  var isRoot = process.getuid?.() === 0;
@@ -3284,10 +3257,10 @@ if (args.includes("--version") || args.includes("-v")) {
3284
3257
  process.exit(0);
3285
3258
  }
3286
3259
  if (sudoRequested && process.platform === "win32") {
3287
- console.log("\x1B[33m\u27E9 En Windows, ejecuta la terminal como Administrador en vez de usar --sudo\x1B[0m");
3260
+ console.log("\x1B[33m\xBB En Windows, ejecuta la terminal como Administrador en vez de usar --sudo\x1B[0m");
3288
3261
  }
3289
3262
  if (sudoRequested && !isRoot && process.platform !== "win32") {
3290
- console.log("\x1B[35m\u27E9 Modo SUDO: ingresa tu contrase\xF1a para continuar...\x1B[0m");
3263
+ console.log("\x1B[35m\xBB Modo SUDO: ingresa tu contrase\xF1a para continuar...\x1B[0m");
3291
3264
  try {
3292
3265
  const scriptPath = process.argv[1] ?? "";
3293
3266
  const isDevMode = scriptPath.endsWith(".tsx") || scriptPath.endsWith(".ts");
@@ -3303,7 +3276,7 @@ if (sudoRequested && !isRoot && process.platform !== "win32") {
3303
3276
  }
3304
3277
  }
3305
3278
  var sudoMode = isRoot || sudoRequested;
3306
- var { unmount } = render(/* @__PURE__ */ jsx13(App, { sudoMode }));
3279
+ var { unmount } = render(/* @__PURE__ */ jsx11(App, { sudoMode }));
3307
3280
  process.on("SIGINT", () => {
3308
3281
  unmount();
3309
3282
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tacuchi/updater",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "CLI multiplataforma para actualizar gestores de paquetes del sistema",
5
5
  "type": "module",
6
6
  "bin": {