openclaw-openviking-setup-helper 0.3.0-beta.1 → 0.3.0-beta.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/install.js +109 -408
  2. package/package.json +1 -1
package/dist/install.js CHANGED
@@ -42,8 +42,8 @@ import "util";
42
42
  import g, { stdin, stdout } from "process";
43
43
  import f from "readline";
44
44
  import { WriteStream } from "tty";
45
- function getDefaultExportFromCjs(x4) {
46
- return x4 && x4.__esModule && Object.prototype.hasOwnProperty.call(x4, "default") ? x4["default"] : x4;
45
+ function getDefaultExportFromCjs(x3) {
46
+ return x3 && x3.__esModule && Object.prototype.hasOwnProperty.call(x3, "default") ? x3["default"] : x3;
47
47
  }
48
48
  function requireSrc() {
49
49
  if (hasRequiredSrc) return src;
@@ -52,14 +52,14 @@ function requireSrc() {
52
52
  const CSI = `${ESC}[`;
53
53
  const beep = "\x07";
54
54
  const cursor = {
55
- to(x4, y5) {
56
- if (!y5) return `${CSI}${x4 + 1}G`;
57
- return `${CSI}${y5 + 1};${x4 + 1}H`;
55
+ to(x3, y5) {
56
+ if (!y5) return `${CSI}${x3 + 1}G`;
57
+ return `${CSI}${y5 + 1};${x3 + 1}H`;
58
58
  },
59
- move(x4, y5) {
59
+ move(x3, y5) {
60
60
  let ret = "";
61
- if (x4 < 0) ret += `${CSI}${-x4}D`;
62
- else if (x4 > 0) ret += `${CSI}${x4}C`;
61
+ if (x3 < 0) ret += `${CSI}${-x3}D`;
62
+ else if (x3 > 0) ret += `${CSI}${x3}C`;
63
63
  if (y5 < 0) ret += `${CSI}${-y5}A`;
64
64
  else if (y5 > 0) ret += `${CSI}${y5}B`;
65
65
  return ret;
@@ -667,8 +667,8 @@ var init_prompt = __esm({
667
667
  let l3 = 0;
668
668
  n2 >= l3 + c3 - 3 ? l3 = Math.max(Math.min(n2 - c3 + 3, s2.length - c3), 0) : n2 < l3 + 2 && (l3 = Math.max(n2 - 2, 0));
669
669
  const $2 = c3 < s2.length && l3 > 0, p2 = c3 < s2.length && l3 + c3 < s2.length;
670
- return s2.slice(l3, l3 + c3).map((M3, v3, x4) => {
671
- const j2 = v3 === 0 && $2, E = v3 === x4.length - 1 && p2;
670
+ return s2.slice(l3, l3 + c3).map((M3, v3, x3) => {
671
+ const j2 = v3 === 0 && $2, E = v3 === x3.length - 1 && p2;
672
672
  return j2 || E ? e.dim("...") : r3(M3, v3 + l3 === n2);
673
673
  });
674
674
  };
@@ -988,14 +988,14 @@ var require_src = __commonJS({
988
988
  var CSI = `${ESC}[`;
989
989
  var beep = "\x07";
990
990
  var cursor = {
991
- to(x4, y5) {
992
- if (!y5) return `${CSI}${x4 + 1}G`;
993
- return `${CSI}${y5 + 1};${x4 + 1}H`;
991
+ to(x3, y5) {
992
+ if (!y5) return `${CSI}${x3 + 1}G`;
993
+ return `${CSI}${y5 + 1};${x3 + 1}H`;
994
994
  },
995
- move(x4, y5) {
995
+ move(x3, y5) {
996
996
  let ret = "";
997
- if (x4 < 0) ret += `${CSI}${-x4}D`;
998
- else if (x4 > 0) ret += `${CSI}${x4}C`;
997
+ if (x3 < 0) ret += `${CSI}${-x3}D`;
998
+ else if (x3 > 0) ret += `${CSI}${x3}C`;
999
999
  if (y5 < 0) ret += `${CSI}${-y5}A`;
1000
1000
  else if (y5 > 0) ret += `${CSI}${y5}B`;
1001
1001
  return ret;
@@ -1109,19 +1109,6 @@ function Y2(e3, u4, t2) {
1109
1109
  `).map((F4) => lD2(F4, u4, t2)).join(`
1110
1110
  `);
1111
1111
  }
1112
- function cD(e3) {
1113
- for (const u4 in e3) {
1114
- const t2 = u4;
1115
- if (!Object.hasOwn(e3, t2)) continue;
1116
- const F4 = e3[t2];
1117
- switch (t2) {
1118
- case "aliases": {
1119
- for (const s2 in F4) Object.hasOwn(F4, s2) && (B2.aliases.has(s2) || B2.aliases.set(s2, F4[s2]));
1120
- break;
1121
- }
1122
- }
1123
- }
1124
- }
1125
1112
  function $(e3, u4) {
1126
1113
  if (typeof e3 == "string") return B2.aliases.get(e3) === u4;
1127
1114
  for (const t2 of e3) if (t2 !== void 0 && $(t2, u4)) return true;
@@ -1163,7 +1150,7 @@ function fD2({ input: e3 = j, output: u4 = M, overwrite: t2 = true, hideCursor:
1163
1150
  e3.off("keypress", i2), F4 && u4.write(import_sisteransi.cursor.show), e3.isTTY && !AD2 && e3.setRawMode(false), s2.terminal = false, s2.close();
1164
1151
  };
1165
1152
  }
1166
- var import_sisteransi, import_picocolors, uD2, W2, tD2, eD2, FD2, sD2, w2, N3, I3, R3, C3, iD2, rD2, ED2, d2, oD2, y3, V2, nD2, G3, _3, z2, K, aD2, k2, hD, lD2, xD, B2, AD2, S3, gD, vD, h2, x2, dD, mD2, bD2, Z, q2, T3, wD2, yD, A3, _D, kD, $D2, H, SD2, TD, jD2, U, MD, OD, PD2, J2, LD, WD, ND, Q2, ID, RD;
1153
+ var import_sisteransi, import_picocolors, uD2, W2, tD2, eD2, FD2, sD2, w2, N3, I3, R3, C3, iD2, rD2, ED2, d2, oD2, y3, V2, nD2, G3, _3, z2, K, aD2, k2, hD, lD2, xD, B2, AD2, S3, gD, vD, h2, x2, dD, A3, TD, jD2, U, MD, OD, PD2, J2, LD, RD;
1167
1154
  var init_dist = __esm({
1168
1155
  "node_modules/@clack/core/dist/index.mjs"() {
1169
1156
  "use strict";
@@ -1400,97 +1387,7 @@ var init_dist = __esm({
1400
1387
  });
1401
1388
  }
1402
1389
  };
1403
- mD2 = Object.defineProperty;
1404
- bD2 = (e3, u4, t2) => u4 in e3 ? mD2(e3, u4, { enumerable: true, configurable: true, writable: true, value: t2 }) : e3[u4] = t2;
1405
- Z = (e3, u4, t2) => (bD2(e3, typeof u4 != "symbol" ? u4 + "" : u4, t2), t2);
1406
- q2 = (e3, u4, t2) => {
1407
- if (!u4.has(e3)) throw TypeError("Cannot " + t2);
1408
- };
1409
- T3 = (e3, u4, t2) => (q2(e3, u4, "read from private field"), t2 ? t2.call(e3) : u4.get(e3));
1410
- wD2 = (e3, u4, t2) => {
1411
- if (u4.has(e3)) throw TypeError("Cannot add the same private member more than once");
1412
- u4 instanceof WeakSet ? u4.add(e3) : u4.set(e3, t2);
1413
- };
1414
- yD = (e3, u4, t2, F4) => (q2(e3, u4, "write to private field"), F4 ? F4.call(e3, t2) : u4.set(e3, t2), t2);
1415
- _D = class extends x2 {
1416
- constructor(u4) {
1417
- super(u4, false), Z(this, "options"), Z(this, "cursor", 0), wD2(this, A3, void 0);
1418
- const { options: t2 } = u4;
1419
- yD(this, A3, u4.selectableGroups !== false), this.options = Object.entries(t2).flatMap(([F4, s2]) => [{ value: F4, group: true, label: F4 }, ...s2.map((i2) => ({ ...i2, group: F4 }))]), this.value = [...u4.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F4 }) => F4 === u4.cursorAt), T3(this, A3) ? 0 : 1), this.on("cursor", (F4) => {
1420
- switch (F4) {
1421
- case "left":
1422
- case "up": {
1423
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
1424
- const s2 = this.options[this.cursor]?.group === true;
1425
- !T3(this, A3) && s2 && (this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1);
1426
- break;
1427
- }
1428
- case "down":
1429
- case "right": {
1430
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1431
- const s2 = this.options[this.cursor]?.group === true;
1432
- !T3(this, A3) && s2 && (this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1);
1433
- break;
1434
- }
1435
- case "space":
1436
- this.toggleValue();
1437
- break;
1438
- }
1439
- });
1440
- }
1441
- getGroupItems(u4) {
1442
- return this.options.filter((t2) => t2.group === u4);
1443
- }
1444
- isGroupSelected(u4) {
1445
- return this.getGroupItems(u4).every((t2) => this.value.includes(t2.value));
1446
- }
1447
- toggleValue() {
1448
- const u4 = this.options[this.cursor];
1449
- if (u4.group === true) {
1450
- const t2 = u4.value, F4 = this.getGroupItems(t2);
1451
- this.isGroupSelected(t2) ? this.value = this.value.filter((s2) => F4.findIndex((i2) => i2.value === s2) === -1) : this.value = [...this.value, ...F4.map((s2) => s2.value)], this.value = Array.from(new Set(this.value));
1452
- } else {
1453
- const t2 = this.value.includes(u4.value);
1454
- this.value = t2 ? this.value.filter((F4) => F4 !== u4.value) : [...this.value, u4.value];
1455
- }
1456
- }
1457
- };
1458
1390
  A3 = /* @__PURE__ */ new WeakMap();
1459
- kD = Object.defineProperty;
1460
- $D2 = (e3, u4, t2) => u4 in e3 ? kD(e3, u4, { enumerable: true, configurable: true, writable: true, value: t2 }) : e3[u4] = t2;
1461
- H = (e3, u4, t2) => ($D2(e3, typeof u4 != "symbol" ? u4 + "" : u4, t2), t2);
1462
- SD2 = class extends x2 {
1463
- constructor(u4) {
1464
- super(u4, false), H(this, "options"), H(this, "cursor", 0), this.options = u4.options, this.value = [...u4.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: t2 }) => t2 === u4.cursorAt), 0), this.on("key", (t2) => {
1465
- t2 === "a" && this.toggleAll();
1466
- }), this.on("cursor", (t2) => {
1467
- switch (t2) {
1468
- case "left":
1469
- case "up":
1470
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
1471
- break;
1472
- case "down":
1473
- case "right":
1474
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
1475
- break;
1476
- case "space":
1477
- this.toggleValue();
1478
- break;
1479
- }
1480
- });
1481
- }
1482
- get _value() {
1483
- return this.options[this.cursor].value;
1484
- }
1485
- toggleAll() {
1486
- const u4 = this.value.length === this.options.length;
1487
- this.value = u4 ? [] : this.options.map((t2) => t2.value);
1488
- }
1489
- toggleValue() {
1490
- const u4 = this.value.includes(this._value);
1491
- this.value = u4 ? this.value.filter((t2) => t2 !== this._value) : [...this.value, this._value];
1492
- }
1493
- };
1494
1391
  TD = Object.defineProperty;
1495
1392
  jD2 = (e3, u4, t2) => u4 in e3 ? TD(e3, u4, { enumerable: true, configurable: true, writable: true, value: t2 }) : e3[u4] = t2;
1496
1393
  U = (e3, u4, t2) => (jD2(e3, typeof u4 != "symbol" ? u4 + "" : u4, t2), t2);
@@ -1539,20 +1436,6 @@ var init_dist = __esm({
1539
1436
  this.value = this._value.value;
1540
1437
  }
1541
1438
  };
1542
- WD = Object.defineProperty;
1543
- ND = (e3, u4, t2) => u4 in e3 ? WD(e3, u4, { enumerable: true, configurable: true, writable: true, value: t2 }) : e3[u4] = t2;
1544
- Q2 = (e3, u4, t2) => (ND(e3, typeof u4 != "symbol" ? u4 + "" : u4, t2), t2);
1545
- ID = class extends x2 {
1546
- constructor(u4) {
1547
- super(u4, false), Q2(this, "options"), Q2(this, "cursor", 0), this.options = u4.options;
1548
- const t2 = this.options.map(({ value: [F4] }) => F4?.toLowerCase());
1549
- this.cursor = Math.max(t2.indexOf(u4.initialValue), 0), this.on("key", (F4) => {
1550
- if (!t2.includes(F4)) return;
1551
- const s2 = this.options.find(({ value: [i2] }) => i2?.toLowerCase() === F4);
1552
- s2 && (this.value = s2.value, this.state = "submit", this.emit("submit"));
1553
- });
1554
- }
1555
- };
1556
1439
  RD = class extends x2 {
1557
1440
  get valueWithCursor() {
1558
1441
  if (this.state === "submit") return this.value;
@@ -1573,33 +1456,12 @@ var init_dist = __esm({
1573
1456
  });
1574
1457
 
1575
1458
  // node_modules/@clack/prompts/dist/index.mjs
1576
- var dist_exports = {};
1577
- __export(dist_exports, {
1578
- cancel: () => xe,
1579
- confirm: () => ye2,
1580
- group: () => Ce,
1581
- groupMultiselect: () => be,
1582
- intro: () => Ie,
1583
- isCancel: () => pD2,
1584
- log: () => M2,
1585
- multiselect: () => fe2,
1586
- note: () => Me,
1587
- outro: () => Se,
1588
- password: () => ge,
1589
- select: () => ve2,
1590
- selectKey: () => we,
1591
- spinner: () => Y3,
1592
- stream: () => x3,
1593
- tasks: () => Te,
1594
- text: () => he2,
1595
- updateSettings: () => cD
1596
- });
1597
1459
  import { stripVTControlCharacters as S4 } from "util";
1598
1460
  import y4 from "process";
1599
1461
  function ce2() {
1600
1462
  return y4.platform !== "win32" ? y4.env.TERM !== "linux" : !!y4.env.CI || !!y4.env.WT_SESSION || !!y4.env.TERMINUS_SUBLIME || y4.env.ConEmuTask === "{cmd::Cmder}" || y4.env.TERM_PROGRAM === "Terminus-Sublime" || y4.env.TERM_PROGRAM === "vscode" || y4.env.TERM === "xterm-256color" || y4.env.TERM === "alacritty" || y4.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1601
1463
  }
1602
- var import_picocolors2, import_sisteransi2, V3, u3, le2, L4, W3, C4, ue, o3, d3, k3, P4, A4, T4, F3, $e, _4, me, de, pe, q3, D2, U2, K2, b3, G4, he2, ge, ye2, ve2, we, fe2, be, Me, xe, Ie, Se, M2, J3, x3, Y3, Ce, Te;
1464
+ var import_picocolors2, import_sisteransi2, V3, u3, le2, L4, W3, C4, ue, o3, d3, k3, P4, A4, T3, F3, $e, _4, me, de, pe, q2, D2, U2, K2, b3, G4, he2, ge, ye2, ve2, xe, Ie, Se, M2, J3, Y3;
1603
1465
  var init_dist2 = __esm({
1604
1466
  "node_modules/@clack/prompts/dist/index.mjs"() {
1605
1467
  "use strict";
@@ -1619,14 +1481,14 @@ var init_dist2 = __esm({
1619
1481
  k3 = u3("\u25CF", ">");
1620
1482
  P4 = u3("\u25CB", " ");
1621
1483
  A4 = u3("\u25FB", "[\u2022]");
1622
- T4 = u3("\u25FC", "[+]");
1484
+ T3 = u3("\u25FC", "[+]");
1623
1485
  F3 = u3("\u25FB", "[ ]");
1624
1486
  $e = u3("\u25AA", "\u2022");
1625
1487
  _4 = u3("\u2500", "-");
1626
1488
  me = u3("\u256E", "+");
1627
1489
  de = u3("\u251C", "+");
1628
1490
  pe = u3("\u256F", "+");
1629
- q3 = u3("\u25CF", "\u2022");
1491
+ q2 = u3("\u25CF", "\u2022");
1630
1492
  D2 = u3("\u25C6", "*");
1631
1493
  U2 = u3("\u25B2", "!");
1632
1494
  K2 = u3("\u25A0", "x");
@@ -1746,138 +1608,6 @@ ${import_picocolors2.default.cyan(d3)}
1746
1608
  }
1747
1609
  } }).prompt();
1748
1610
  };
1749
- we = (t2) => {
1750
- const n2 = (r3, i2 = "inactive") => {
1751
- const s2 = r3.label ?? String(r3.value);
1752
- return i2 === "selected" ? `${import_picocolors2.default.dim(s2)}` : i2 === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(s2))}` : i2 === "active" ? `${import_picocolors2.default.bgCyan(import_picocolors2.default.gray(` ${r3.value} `))} ${s2} ${r3.hint ? import_picocolors2.default.dim(`(${r3.hint})`) : ""}` : `${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(` ${r3.value} `)))} ${s2} ${r3.hint ? import_picocolors2.default.dim(`(${r3.hint})`) : ""}`;
1753
- };
1754
- return new ID({ options: t2.options, initialValue: t2.initialValue, render() {
1755
- const r3 = `${import_picocolors2.default.gray(o3)}
1756
- ${b3(this.state)} ${t2.message}
1757
- `;
1758
- switch (this.state) {
1759
- case "submit":
1760
- return `${r3}${import_picocolors2.default.gray(o3)} ${n2(this.options.find((i2) => i2.value === this.value) ?? t2.options[0], "selected")}`;
1761
- case "cancel":
1762
- return `${r3}${import_picocolors2.default.gray(o3)} ${n2(this.options[0], "cancelled")}
1763
- ${import_picocolors2.default.gray(o3)}`;
1764
- default:
1765
- return `${r3}${import_picocolors2.default.cyan(o3)} ${this.options.map((i2, s2) => n2(i2, s2 === this.cursor ? "active" : "inactive")).join(`
1766
- ${import_picocolors2.default.cyan(o3)} `)}
1767
- ${import_picocolors2.default.cyan(d3)}
1768
- `;
1769
- }
1770
- } }).prompt();
1771
- };
1772
- fe2 = (t2) => {
1773
- const n2 = (r3, i2) => {
1774
- const s2 = r3.label ?? String(r3.value);
1775
- return i2 === "active" ? `${import_picocolors2.default.cyan(A4)} ${s2} ${r3.hint ? import_picocolors2.default.dim(`(${r3.hint})`) : ""}` : i2 === "selected" ? `${import_picocolors2.default.green(T4)} ${import_picocolors2.default.dim(s2)} ${r3.hint ? import_picocolors2.default.dim(`(${r3.hint})`) : ""}` : i2 === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(s2))}` : i2 === "active-selected" ? `${import_picocolors2.default.green(T4)} ${s2} ${r3.hint ? import_picocolors2.default.dim(`(${r3.hint})`) : ""}` : i2 === "submitted" ? `${import_picocolors2.default.dim(s2)}` : `${import_picocolors2.default.dim(F3)} ${import_picocolors2.default.dim(s2)}`;
1776
- };
1777
- return new SD2({ options: t2.options, initialValues: t2.initialValues, required: t2.required ?? true, cursorAt: t2.cursorAt, validate(r3) {
1778
- if (this.required && r3.length === 0) return `Please select at least one option.
1779
- ${import_picocolors2.default.reset(import_picocolors2.default.dim(`Press ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" space ")))} to select, ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" enter ")))} to submit`))}`;
1780
- }, render() {
1781
- const r3 = `${import_picocolors2.default.gray(o3)}
1782
- ${b3(this.state)} ${t2.message}
1783
- `, i2 = (s2, c3) => {
1784
- const a2 = this.value.includes(s2.value);
1785
- return c3 && a2 ? n2(s2, "active-selected") : a2 ? n2(s2, "selected") : n2(s2, c3 ? "active" : "inactive");
1786
- };
1787
- switch (this.state) {
1788
- case "submit":
1789
- return `${r3}${import_picocolors2.default.gray(o3)} ${this.options.filter(({ value: s2 }) => this.value.includes(s2)).map((s2) => n2(s2, "submitted")).join(import_picocolors2.default.dim(", ")) || import_picocolors2.default.dim("none")}`;
1790
- case "cancel": {
1791
- const s2 = this.options.filter(({ value: c3 }) => this.value.includes(c3)).map((c3) => n2(c3, "cancelled")).join(import_picocolors2.default.dim(", "));
1792
- return `${r3}${import_picocolors2.default.gray(o3)} ${s2.trim() ? `${s2}
1793
- ${import_picocolors2.default.gray(o3)}` : ""}`;
1794
- }
1795
- case "error": {
1796
- const s2 = this.error.split(`
1797
- `).map((c3, a2) => a2 === 0 ? `${import_picocolors2.default.yellow(d3)} ${import_picocolors2.default.yellow(c3)}` : ` ${c3}`).join(`
1798
- `);
1799
- return `${r3 + import_picocolors2.default.yellow(o3)} ${G4({ options: this.options, cursor: this.cursor, maxItems: t2.maxItems, style: i2 }).join(`
1800
- ${import_picocolors2.default.yellow(o3)} `)}
1801
- ${s2}
1802
- `;
1803
- }
1804
- default:
1805
- return `${r3}${import_picocolors2.default.cyan(o3)} ${G4({ options: this.options, cursor: this.cursor, maxItems: t2.maxItems, style: i2 }).join(`
1806
- ${import_picocolors2.default.cyan(o3)} `)}
1807
- ${import_picocolors2.default.cyan(d3)}
1808
- `;
1809
- }
1810
- } }).prompt();
1811
- };
1812
- be = (t2) => {
1813
- const { selectableGroups: n2 = true } = t2, r3 = (i2, s2, c3 = []) => {
1814
- const a2 = i2.label ?? String(i2.value), l3 = typeof i2.group == "string", $2 = l3 && (c3[c3.indexOf(i2) + 1] ?? { group: true }), g4 = l3 && $2.group === true, p2 = l3 ? n2 ? `${g4 ? d3 : o3} ` : " " : "";
1815
- if (s2 === "active") return `${import_picocolors2.default.dim(p2)}${import_picocolors2.default.cyan(A4)} ${a2} ${i2.hint ? import_picocolors2.default.dim(`(${i2.hint})`) : ""}`;
1816
- if (s2 === "group-active") return `${p2}${import_picocolors2.default.cyan(A4)} ${import_picocolors2.default.dim(a2)}`;
1817
- if (s2 === "group-active-selected") return `${p2}${import_picocolors2.default.green(T4)} ${import_picocolors2.default.dim(a2)}`;
1818
- if (s2 === "selected") {
1819
- const f3 = l3 || n2 ? import_picocolors2.default.green(T4) : "";
1820
- return `${import_picocolors2.default.dim(p2)}${f3} ${import_picocolors2.default.dim(a2)} ${i2.hint ? import_picocolors2.default.dim(`(${i2.hint})`) : ""}`;
1821
- }
1822
- if (s2 === "cancelled") return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(a2))}`;
1823
- if (s2 === "active-selected") return `${import_picocolors2.default.dim(p2)}${import_picocolors2.default.green(T4)} ${a2} ${i2.hint ? import_picocolors2.default.dim(`(${i2.hint})`) : ""}`;
1824
- if (s2 === "submitted") return `${import_picocolors2.default.dim(a2)}`;
1825
- const v3 = l3 || n2 ? import_picocolors2.default.dim(F3) : "";
1826
- return `${import_picocolors2.default.dim(p2)}${v3} ${import_picocolors2.default.dim(a2)}`;
1827
- };
1828
- return new _D({ options: t2.options, initialValues: t2.initialValues, required: t2.required ?? true, cursorAt: t2.cursorAt, selectableGroups: n2, validate(i2) {
1829
- if (this.required && i2.length === 0) return `Please select at least one option.
1830
- ${import_picocolors2.default.reset(import_picocolors2.default.dim(`Press ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" space ")))} to select, ${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(" enter ")))} to submit`))}`;
1831
- }, render() {
1832
- const i2 = `${import_picocolors2.default.gray(o3)}
1833
- ${b3(this.state)} ${t2.message}
1834
- `;
1835
- switch (this.state) {
1836
- case "submit":
1837
- return `${i2}${import_picocolors2.default.gray(o3)} ${this.options.filter(({ value: s2 }) => this.value.includes(s2)).map((s2) => r3(s2, "submitted")).join(import_picocolors2.default.dim(", "))}`;
1838
- case "cancel": {
1839
- const s2 = this.options.filter(({ value: c3 }) => this.value.includes(c3)).map((c3) => r3(c3, "cancelled")).join(import_picocolors2.default.dim(", "));
1840
- return `${i2}${import_picocolors2.default.gray(o3)} ${s2.trim() ? `${s2}
1841
- ${import_picocolors2.default.gray(o3)}` : ""}`;
1842
- }
1843
- case "error": {
1844
- const s2 = this.error.split(`
1845
- `).map((c3, a2) => a2 === 0 ? `${import_picocolors2.default.yellow(d3)} ${import_picocolors2.default.yellow(c3)}` : ` ${c3}`).join(`
1846
- `);
1847
- return `${i2}${import_picocolors2.default.yellow(o3)} ${this.options.map((c3, a2, l3) => {
1848
- const $2 = this.value.includes(c3.value) || c3.group === true && this.isGroupSelected(`${c3.value}`), g4 = a2 === this.cursor;
1849
- return !g4 && typeof c3.group == "string" && this.options[this.cursor].value === c3.group ? r3(c3, $2 ? "group-active-selected" : "group-active", l3) : g4 && $2 ? r3(c3, "active-selected", l3) : $2 ? r3(c3, "selected", l3) : r3(c3, g4 ? "active" : "inactive", l3);
1850
- }).join(`
1851
- ${import_picocolors2.default.yellow(o3)} `)}
1852
- ${s2}
1853
- `;
1854
- }
1855
- default:
1856
- return `${i2}${import_picocolors2.default.cyan(o3)} ${this.options.map((s2, c3, a2) => {
1857
- const l3 = this.value.includes(s2.value) || s2.group === true && this.isGroupSelected(`${s2.value}`), $2 = c3 === this.cursor;
1858
- return !$2 && typeof s2.group == "string" && this.options[this.cursor].value === s2.group ? r3(s2, l3 ? "group-active-selected" : "group-active", a2) : $2 && l3 ? r3(s2, "active-selected", a2) : l3 ? r3(s2, "selected", a2) : r3(s2, $2 ? "active" : "inactive", a2);
1859
- }).join(`
1860
- ${import_picocolors2.default.cyan(o3)} `)}
1861
- ${import_picocolors2.default.cyan(d3)}
1862
- `;
1863
- }
1864
- } }).prompt();
1865
- };
1866
- Me = (t2 = "", n2 = "") => {
1867
- const r3 = `
1868
- ${t2}
1869
- `.split(`
1870
- `), i2 = S4(n2).length, s2 = Math.max(r3.reduce((a2, l3) => {
1871
- const $2 = S4(l3);
1872
- return $2.length > a2 ? $2.length : a2;
1873
- }, 0), i2) + 2, c3 = r3.map((a2) => `${import_picocolors2.default.gray(o3)} ${import_picocolors2.default.dim(a2)}${" ".repeat(s2 - S4(a2).length)}${import_picocolors2.default.gray(o3)}`).join(`
1874
- `);
1875
- process.stdout.write(`${import_picocolors2.default.gray(o3)}
1876
- ${import_picocolors2.default.green(C4)} ${import_picocolors2.default.reset(n2)} ${import_picocolors2.default.gray(_4.repeat(Math.max(s2 - i2 - 1, 1)) + me)}
1877
- ${c3}
1878
- ${import_picocolors2.default.gray(de + _4.repeat(s2 + 2) + pe)}
1879
- `);
1880
- };
1881
1611
  xe = (t2 = "") => {
1882
1612
  process.stdout.write(`${import_picocolors2.default.gray(d3)} ${import_picocolors2.default.red(t2)}
1883
1613
 
@@ -1904,7 +1634,7 @@ ${import_picocolors2.default.gray(d3)} ${t2}
1904
1634
  `)}
1905
1635
  `);
1906
1636
  }, info: (t2) => {
1907
- M2.message(t2, { symbol: import_picocolors2.default.blue(q3) });
1637
+ M2.message(t2, { symbol: import_picocolors2.default.blue(q2) });
1908
1638
  }, success: (t2) => {
1909
1639
  M2.message(t2, { symbol: import_picocolors2.default.green(D2) });
1910
1640
  }, step: (t2) => {
@@ -1917,22 +1647,6 @@ ${import_picocolors2.default.gray(d3)} ${t2}
1917
1647
  M2.message(t2, { symbol: import_picocolors2.default.red(K2) });
1918
1648
  } };
1919
1649
  J3 = `${import_picocolors2.default.gray(o3)} `;
1920
- x3 = { message: async (t2, { symbol: n2 = import_picocolors2.default.gray(o3) } = {}) => {
1921
- process.stdout.write(`${import_picocolors2.default.gray(o3)}
1922
- ${n2} `);
1923
- let r3 = 3;
1924
- for await (let i2 of t2) {
1925
- i2 = i2.replace(/\n/g, `
1926
- ${J3}`), i2.includes(`
1927
- `) && (r3 = 3 + S4(i2.slice(i2.lastIndexOf(`
1928
- `))).length);
1929
- const s2 = S4(i2).length;
1930
- r3 + s2 < process.stdout.columns ? (r3 += s2, process.stdout.write(i2)) : (process.stdout.write(`
1931
- ${J3}${i2.trimStart()}`), r3 = 3 + S4(i2.trimStart()).length);
1932
- }
1933
- process.stdout.write(`
1934
- `);
1935
- }, info: (t2) => x3.message(t2, { symbol: import_picocolors2.default.blue(q3) }), success: (t2) => x3.message(t2, { symbol: import_picocolors2.default.green(D2) }), step: (t2) => x3.message(t2, { symbol: import_picocolors2.default.green(C4) }), warn: (t2) => x3.message(t2, { symbol: import_picocolors2.default.yellow(U2) }), warning: (t2) => x3.warn(t2), error: (t2) => x3.message(t2, { symbol: import_picocolors2.default.red(K2) }) };
1936
1650
  Y3 = ({ indicator: t2 = "dots" } = {}) => {
1937
1651
  const n2 = V3 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r3 = V3 ? 80 : 120, i2 = process.env.CI === "true";
1938
1652
  let s2, c3, a2 = false, l3 = "", $2, g4 = performance.now();
@@ -1953,7 +1667,7 @@ ${J3}${i2.trimStart()}`), r3 = 3 + S4(i2.trimStart()).length);
1953
1667
  }, R4 = (m3) => m3.replace(/\.+$/, ""), O4 = (m3) => {
1954
1668
  const h3 = (performance.now() - m3) / 1e3, w3 = Math.floor(h3 / 60), I4 = Math.floor(h3 % 60);
1955
1669
  return w3 > 0 ? `[${w3}m ${I4}s]` : `[${I4}s]`;
1956
- }, H2 = (m3 = "") => {
1670
+ }, H = (m3 = "") => {
1957
1671
  a2 = true, s2 = fD2(), l3 = R4(m3), g4 = performance.now(), process.stdout.write(`${import_picocolors2.default.gray(o3)}
1958
1672
  `);
1959
1673
  let h3 = 0, w3 = 0;
@@ -1976,33 +1690,10 @@ ${J3}${i2.trimStart()}`), r3 = 3 + S4(i2.trimStart()).length);
1976
1690
  `) : process.stdout.write(`${w3} ${l3}
1977
1691
  `), E(), s2();
1978
1692
  };
1979
- return { start: H2, stop: N4, message: (m3 = "") => {
1693
+ return { start: H, stop: N4, message: (m3 = "") => {
1980
1694
  l3 = R4(m3 ?? l3);
1981
1695
  } };
1982
1696
  };
1983
- Ce = async (t2, n2) => {
1984
- const r3 = {}, i2 = Object.keys(t2);
1985
- for (const s2 of i2) {
1986
- const c3 = t2[s2], a2 = await c3({ results: r3 })?.catch((l3) => {
1987
- throw l3;
1988
- });
1989
- if (typeof n2?.onCancel == "function" && pD2(a2)) {
1990
- r3[s2] = "canceled", n2.onCancel({ results: r3 });
1991
- continue;
1992
- }
1993
- r3[s2] = a2;
1994
- }
1995
- return r3;
1996
- };
1997
- Te = async (t2) => {
1998
- for (const n2 of t2) {
1999
- if (n2.enabled === false) continue;
2000
- const r3 = Y3();
2001
- r3.start(n2.title);
2002
- const i2 = await n2.task(r3.message);
2003
- r3.stop(i2 || n2.title);
2004
- }
2005
- };
2006
1697
  }
2007
1698
  });
2008
1699
 
@@ -2952,7 +2643,7 @@ function writeStream(data, stream) {
2952
2643
  const write = stream.__write || stream.write;
2953
2644
  return write.call(stream, data);
2954
2645
  }
2955
- var bracket = (x4) => x4 ? `[${x4}]` : "";
2646
+ var bracket = (x3) => x3 ? `[${x3}]` : "";
2956
2647
  var BasicReporter = class {
2957
2648
  formatStack(stack, message, opts) {
2958
2649
  const indent = " ".repeat((opts?.errorLevel || 0) + 1);
@@ -3330,14 +3021,14 @@ function stripAnsi2(string) {
3330
3021
  }
3331
3022
  return string.replace(regex, "");
3332
3023
  }
3333
- function isAmbiguous(x4) {
3334
- return x4 === 161 || x4 === 164 || x4 === 167 || x4 === 168 || x4 === 170 || x4 === 173 || x4 === 174 || x4 >= 176 && x4 <= 180 || x4 >= 182 && x4 <= 186 || x4 >= 188 && x4 <= 191 || x4 === 198 || x4 === 208 || x4 === 215 || x4 === 216 || x4 >= 222 && x4 <= 225 || x4 === 230 || x4 >= 232 && x4 <= 234 || x4 === 236 || x4 === 237 || x4 === 240 || x4 === 242 || x4 === 243 || x4 >= 247 && x4 <= 250 || x4 === 252 || x4 === 254 || x4 === 257 || x4 === 273 || x4 === 275 || x4 === 283 || x4 === 294 || x4 === 295 || x4 === 299 || x4 >= 305 && x4 <= 307 || x4 === 312 || x4 >= 319 && x4 <= 322 || x4 === 324 || x4 >= 328 && x4 <= 331 || x4 === 333 || x4 === 338 || x4 === 339 || x4 === 358 || x4 === 359 || x4 === 363 || x4 === 462 || x4 === 464 || x4 === 466 || x4 === 468 || x4 === 470 || x4 === 472 || x4 === 474 || x4 === 476 || x4 === 593 || x4 === 609 || x4 === 708 || x4 === 711 || x4 >= 713 && x4 <= 715 || x4 === 717 || x4 === 720 || x4 >= 728 && x4 <= 731 || x4 === 733 || x4 === 735 || x4 >= 768 && x4 <= 879 || x4 >= 913 && x4 <= 929 || x4 >= 931 && x4 <= 937 || x4 >= 945 && x4 <= 961 || x4 >= 963 && x4 <= 969 || x4 === 1025 || x4 >= 1040 && x4 <= 1103 || x4 === 1105 || x4 === 8208 || x4 >= 8211 && x4 <= 8214 || x4 === 8216 || x4 === 8217 || x4 === 8220 || x4 === 8221 || x4 >= 8224 && x4 <= 8226 || x4 >= 8228 && x4 <= 8231 || x4 === 8240 || x4 === 8242 || x4 === 8243 || x4 === 8245 || x4 === 8251 || x4 === 8254 || x4 === 8308 || x4 === 8319 || x4 >= 8321 && x4 <= 8324 || x4 === 8364 || x4 === 8451 || x4 === 8453 || x4 === 8457 || x4 === 8467 || x4 === 8470 || x4 === 8481 || x4 === 8482 || x4 === 8486 || x4 === 8491 || x4 === 8531 || x4 === 8532 || x4 >= 8539 && x4 <= 8542 || x4 >= 8544 && x4 <= 8555 || x4 >= 8560 && x4 <= 8569 || x4 === 8585 || x4 >= 8592 && x4 <= 8601 || x4 === 8632 || x4 === 8633 || x4 === 8658 || x4 === 8660 || x4 === 8679 || x4 === 8704 || x4 === 8706 || x4 === 8707 || x4 === 8711 || x4 === 8712 || x4 === 8715 || x4 === 8719 || x4 === 8721 || x4 === 8725 || x4 === 8730 || x4 >= 8733 && x4 <= 8736 || x4 === 8739 || x4 === 8741 || x4 >= 8743 && x4 <= 8748 || x4 === 8750 || x4 >= 8756 && x4 <= 8759 || x4 === 8764 || x4 === 8765 || x4 === 8776 || x4 === 8780 || x4 === 8786 || x4 === 8800 || x4 === 8801 || x4 >= 8804 && x4 <= 8807 || x4 === 8810 || x4 === 8811 || x4 === 8814 || x4 === 8815 || x4 === 8834 || x4 === 8835 || x4 === 8838 || x4 === 8839 || x4 === 8853 || x4 === 8857 || x4 === 8869 || x4 === 8895 || x4 === 8978 || x4 >= 9312 && x4 <= 9449 || x4 >= 9451 && x4 <= 9547 || x4 >= 9552 && x4 <= 9587 || x4 >= 9600 && x4 <= 9615 || x4 >= 9618 && x4 <= 9621 || x4 === 9632 || x4 === 9633 || x4 >= 9635 && x4 <= 9641 || x4 === 9650 || x4 === 9651 || x4 === 9654 || x4 === 9655 || x4 === 9660 || x4 === 9661 || x4 === 9664 || x4 === 9665 || x4 >= 9670 && x4 <= 9672 || x4 === 9675 || x4 >= 9678 && x4 <= 9681 || x4 >= 9698 && x4 <= 9701 || x4 === 9711 || x4 === 9733 || x4 === 9734 || x4 === 9737 || x4 === 9742 || x4 === 9743 || x4 === 9756 || x4 === 9758 || x4 === 9792 || x4 === 9794 || x4 === 9824 || x4 === 9825 || x4 >= 9827 && x4 <= 9829 || x4 >= 9831 && x4 <= 9834 || x4 === 9836 || x4 === 9837 || x4 === 9839 || x4 === 9886 || x4 === 9887 || x4 === 9919 || x4 >= 9926 && x4 <= 9933 || x4 >= 9935 && x4 <= 9939 || x4 >= 9941 && x4 <= 9953 || x4 === 9955 || x4 === 9960 || x4 === 9961 || x4 >= 9963 && x4 <= 9969 || x4 === 9972 || x4 >= 9974 && x4 <= 9977 || x4 === 9979 || x4 === 9980 || x4 === 9982 || x4 === 9983 || x4 === 10045 || x4 >= 10102 && x4 <= 10111 || x4 >= 11094 && x4 <= 11097 || x4 >= 12872 && x4 <= 12879 || x4 >= 57344 && x4 <= 63743 || x4 >= 65024 && x4 <= 65039 || x4 === 65533 || x4 >= 127232 && x4 <= 127242 || x4 >= 127248 && x4 <= 127277 || x4 >= 127280 && x4 <= 127337 || x4 >= 127344 && x4 <= 127373 || x4 === 127375 || x4 === 127376 || x4 >= 127387 && x4 <= 127404 || x4 >= 917760 && x4 <= 917999 || x4 >= 983040 && x4 <= 1048573 || x4 >= 1048576 && x4 <= 1114109;
3024
+ function isAmbiguous(x3) {
3025
+ return x3 === 161 || x3 === 164 || x3 === 167 || x3 === 168 || x3 === 170 || x3 === 173 || x3 === 174 || x3 >= 176 && x3 <= 180 || x3 >= 182 && x3 <= 186 || x3 >= 188 && x3 <= 191 || x3 === 198 || x3 === 208 || x3 === 215 || x3 === 216 || x3 >= 222 && x3 <= 225 || x3 === 230 || x3 >= 232 && x3 <= 234 || x3 === 236 || x3 === 237 || x3 === 240 || x3 === 242 || x3 === 243 || x3 >= 247 && x3 <= 250 || x3 === 252 || x3 === 254 || x3 === 257 || x3 === 273 || x3 === 275 || x3 === 283 || x3 === 294 || x3 === 295 || x3 === 299 || x3 >= 305 && x3 <= 307 || x3 === 312 || x3 >= 319 && x3 <= 322 || x3 === 324 || x3 >= 328 && x3 <= 331 || x3 === 333 || x3 === 338 || x3 === 339 || x3 === 358 || x3 === 359 || x3 === 363 || x3 === 462 || x3 === 464 || x3 === 466 || x3 === 468 || x3 === 470 || x3 === 472 || x3 === 474 || x3 === 476 || x3 === 593 || x3 === 609 || x3 === 708 || x3 === 711 || x3 >= 713 && x3 <= 715 || x3 === 717 || x3 === 720 || x3 >= 728 && x3 <= 731 || x3 === 733 || x3 === 735 || x3 >= 768 && x3 <= 879 || x3 >= 913 && x3 <= 929 || x3 >= 931 && x3 <= 937 || x3 >= 945 && x3 <= 961 || x3 >= 963 && x3 <= 969 || x3 === 1025 || x3 >= 1040 && x3 <= 1103 || x3 === 1105 || x3 === 8208 || x3 >= 8211 && x3 <= 8214 || x3 === 8216 || x3 === 8217 || x3 === 8220 || x3 === 8221 || x3 >= 8224 && x3 <= 8226 || x3 >= 8228 && x3 <= 8231 || x3 === 8240 || x3 === 8242 || x3 === 8243 || x3 === 8245 || x3 === 8251 || x3 === 8254 || x3 === 8308 || x3 === 8319 || x3 >= 8321 && x3 <= 8324 || x3 === 8364 || x3 === 8451 || x3 === 8453 || x3 === 8457 || x3 === 8467 || x3 === 8470 || x3 === 8481 || x3 === 8482 || x3 === 8486 || x3 === 8491 || x3 === 8531 || x3 === 8532 || x3 >= 8539 && x3 <= 8542 || x3 >= 8544 && x3 <= 8555 || x3 >= 8560 && x3 <= 8569 || x3 === 8585 || x3 >= 8592 && x3 <= 8601 || x3 === 8632 || x3 === 8633 || x3 === 8658 || x3 === 8660 || x3 === 8679 || x3 === 8704 || x3 === 8706 || x3 === 8707 || x3 === 8711 || x3 === 8712 || x3 === 8715 || x3 === 8719 || x3 === 8721 || x3 === 8725 || x3 === 8730 || x3 >= 8733 && x3 <= 8736 || x3 === 8739 || x3 === 8741 || x3 >= 8743 && x3 <= 8748 || x3 === 8750 || x3 >= 8756 && x3 <= 8759 || x3 === 8764 || x3 === 8765 || x3 === 8776 || x3 === 8780 || x3 === 8786 || x3 === 8800 || x3 === 8801 || x3 >= 8804 && x3 <= 8807 || x3 === 8810 || x3 === 8811 || x3 === 8814 || x3 === 8815 || x3 === 8834 || x3 === 8835 || x3 === 8838 || x3 === 8839 || x3 === 8853 || x3 === 8857 || x3 === 8869 || x3 === 8895 || x3 === 8978 || x3 >= 9312 && x3 <= 9449 || x3 >= 9451 && x3 <= 9547 || x3 >= 9552 && x3 <= 9587 || x3 >= 9600 && x3 <= 9615 || x3 >= 9618 && x3 <= 9621 || x3 === 9632 || x3 === 9633 || x3 >= 9635 && x3 <= 9641 || x3 === 9650 || x3 === 9651 || x3 === 9654 || x3 === 9655 || x3 === 9660 || x3 === 9661 || x3 === 9664 || x3 === 9665 || x3 >= 9670 && x3 <= 9672 || x3 === 9675 || x3 >= 9678 && x3 <= 9681 || x3 >= 9698 && x3 <= 9701 || x3 === 9711 || x3 === 9733 || x3 === 9734 || x3 === 9737 || x3 === 9742 || x3 === 9743 || x3 === 9756 || x3 === 9758 || x3 === 9792 || x3 === 9794 || x3 === 9824 || x3 === 9825 || x3 >= 9827 && x3 <= 9829 || x3 >= 9831 && x3 <= 9834 || x3 === 9836 || x3 === 9837 || x3 === 9839 || x3 === 9886 || x3 === 9887 || x3 === 9919 || x3 >= 9926 && x3 <= 9933 || x3 >= 9935 && x3 <= 9939 || x3 >= 9941 && x3 <= 9953 || x3 === 9955 || x3 === 9960 || x3 === 9961 || x3 >= 9963 && x3 <= 9969 || x3 === 9972 || x3 >= 9974 && x3 <= 9977 || x3 === 9979 || x3 === 9980 || x3 === 9982 || x3 === 9983 || x3 === 10045 || x3 >= 10102 && x3 <= 10111 || x3 >= 11094 && x3 <= 11097 || x3 >= 12872 && x3 <= 12879 || x3 >= 57344 && x3 <= 63743 || x3 >= 65024 && x3 <= 65039 || x3 === 65533 || x3 >= 127232 && x3 <= 127242 || x3 >= 127248 && x3 <= 127277 || x3 >= 127280 && x3 <= 127337 || x3 >= 127344 && x3 <= 127373 || x3 === 127375 || x3 === 127376 || x3 >= 127387 && x3 <= 127404 || x3 >= 917760 && x3 <= 917999 || x3 >= 983040 && x3 <= 1048573 || x3 >= 1048576 && x3 <= 1114109;
3335
3026
  }
3336
- function isFullWidth(x4) {
3337
- return x4 === 12288 || x4 >= 65281 && x4 <= 65376 || x4 >= 65504 && x4 <= 65510;
3027
+ function isFullWidth(x3) {
3028
+ return x3 === 12288 || x3 >= 65281 && x3 <= 65376 || x3 >= 65504 && x3 <= 65510;
3338
3029
  }
3339
- function isWide(x4) {
3340
- return x4 >= 4352 && x4 <= 4447 || x4 === 8986 || x4 === 8987 || x4 === 9001 || x4 === 9002 || x4 >= 9193 && x4 <= 9196 || x4 === 9200 || x4 === 9203 || x4 === 9725 || x4 === 9726 || x4 === 9748 || x4 === 9749 || x4 >= 9776 && x4 <= 9783 || x4 >= 9800 && x4 <= 9811 || x4 === 9855 || x4 >= 9866 && x4 <= 9871 || x4 === 9875 || x4 === 9889 || x4 === 9898 || x4 === 9899 || x4 === 9917 || x4 === 9918 || x4 === 9924 || x4 === 9925 || x4 === 9934 || x4 === 9940 || x4 === 9962 || x4 === 9970 || x4 === 9971 || x4 === 9973 || x4 === 9978 || x4 === 9981 || x4 === 9989 || x4 === 9994 || x4 === 9995 || x4 === 10024 || x4 === 10060 || x4 === 10062 || x4 >= 10067 && x4 <= 10069 || x4 === 10071 || x4 >= 10133 && x4 <= 10135 || x4 === 10160 || x4 === 10175 || x4 === 11035 || x4 === 11036 || x4 === 11088 || x4 === 11093 || x4 >= 11904 && x4 <= 11929 || x4 >= 11931 && x4 <= 12019 || x4 >= 12032 && x4 <= 12245 || x4 >= 12272 && x4 <= 12287 || x4 >= 12289 && x4 <= 12350 || x4 >= 12353 && x4 <= 12438 || x4 >= 12441 && x4 <= 12543 || x4 >= 12549 && x4 <= 12591 || x4 >= 12593 && x4 <= 12686 || x4 >= 12688 && x4 <= 12773 || x4 >= 12783 && x4 <= 12830 || x4 >= 12832 && x4 <= 12871 || x4 >= 12880 && x4 <= 42124 || x4 >= 42128 && x4 <= 42182 || x4 >= 43360 && x4 <= 43388 || x4 >= 44032 && x4 <= 55203 || x4 >= 63744 && x4 <= 64255 || x4 >= 65040 && x4 <= 65049 || x4 >= 65072 && x4 <= 65106 || x4 >= 65108 && x4 <= 65126 || x4 >= 65128 && x4 <= 65131 || x4 >= 94176 && x4 <= 94180 || x4 === 94192 || x4 === 94193 || x4 >= 94208 && x4 <= 100343 || x4 >= 100352 && x4 <= 101589 || x4 >= 101631 && x4 <= 101640 || x4 >= 110576 && x4 <= 110579 || x4 >= 110581 && x4 <= 110587 || x4 === 110589 || x4 === 110590 || x4 >= 110592 && x4 <= 110882 || x4 === 110898 || x4 >= 110928 && x4 <= 110930 || x4 === 110933 || x4 >= 110948 && x4 <= 110951 || x4 >= 110960 && x4 <= 111355 || x4 >= 119552 && x4 <= 119638 || x4 >= 119648 && x4 <= 119670 || x4 === 126980 || x4 === 127183 || x4 === 127374 || x4 >= 127377 && x4 <= 127386 || x4 >= 127488 && x4 <= 127490 || x4 >= 127504 && x4 <= 127547 || x4 >= 127552 && x4 <= 127560 || x4 === 127568 || x4 === 127569 || x4 >= 127584 && x4 <= 127589 || x4 >= 127744 && x4 <= 127776 || x4 >= 127789 && x4 <= 127797 || x4 >= 127799 && x4 <= 127868 || x4 >= 127870 && x4 <= 127891 || x4 >= 127904 && x4 <= 127946 || x4 >= 127951 && x4 <= 127955 || x4 >= 127968 && x4 <= 127984 || x4 === 127988 || x4 >= 127992 && x4 <= 128062 || x4 === 128064 || x4 >= 128066 && x4 <= 128252 || x4 >= 128255 && x4 <= 128317 || x4 >= 128331 && x4 <= 128334 || x4 >= 128336 && x4 <= 128359 || x4 === 128378 || x4 === 128405 || x4 === 128406 || x4 === 128420 || x4 >= 128507 && x4 <= 128591 || x4 >= 128640 && x4 <= 128709 || x4 === 128716 || x4 >= 128720 && x4 <= 128722 || x4 >= 128725 && x4 <= 128727 || x4 >= 128732 && x4 <= 128735 || x4 === 128747 || x4 === 128748 || x4 >= 128756 && x4 <= 128764 || x4 >= 128992 && x4 <= 129003 || x4 === 129008 || x4 >= 129292 && x4 <= 129338 || x4 >= 129340 && x4 <= 129349 || x4 >= 129351 && x4 <= 129535 || x4 >= 129648 && x4 <= 129660 || x4 >= 129664 && x4 <= 129673 || x4 >= 129679 && x4 <= 129734 || x4 >= 129742 && x4 <= 129756 || x4 >= 129759 && x4 <= 129769 || x4 >= 129776 && x4 <= 129784 || x4 >= 131072 && x4 <= 196605 || x4 >= 196608 && x4 <= 262141;
3030
+ function isWide(x3) {
3031
+ return x3 >= 4352 && x3 <= 4447 || x3 === 8986 || x3 === 8987 || x3 === 9001 || x3 === 9002 || x3 >= 9193 && x3 <= 9196 || x3 === 9200 || x3 === 9203 || x3 === 9725 || x3 === 9726 || x3 === 9748 || x3 === 9749 || x3 >= 9776 && x3 <= 9783 || x3 >= 9800 && x3 <= 9811 || x3 === 9855 || x3 >= 9866 && x3 <= 9871 || x3 === 9875 || x3 === 9889 || x3 === 9898 || x3 === 9899 || x3 === 9917 || x3 === 9918 || x3 === 9924 || x3 === 9925 || x3 === 9934 || x3 === 9940 || x3 === 9962 || x3 === 9970 || x3 === 9971 || x3 === 9973 || x3 === 9978 || x3 === 9981 || x3 === 9989 || x3 === 9994 || x3 === 9995 || x3 === 10024 || x3 === 10060 || x3 === 10062 || x3 >= 10067 && x3 <= 10069 || x3 === 10071 || x3 >= 10133 && x3 <= 10135 || x3 === 10160 || x3 === 10175 || x3 === 11035 || x3 === 11036 || x3 === 11088 || x3 === 11093 || x3 >= 11904 && x3 <= 11929 || x3 >= 11931 && x3 <= 12019 || x3 >= 12032 && x3 <= 12245 || x3 >= 12272 && x3 <= 12287 || x3 >= 12289 && x3 <= 12350 || x3 >= 12353 && x3 <= 12438 || x3 >= 12441 && x3 <= 12543 || x3 >= 12549 && x3 <= 12591 || x3 >= 12593 && x3 <= 12686 || x3 >= 12688 && x3 <= 12773 || x3 >= 12783 && x3 <= 12830 || x3 >= 12832 && x3 <= 12871 || x3 >= 12880 && x3 <= 42124 || x3 >= 42128 && x3 <= 42182 || x3 >= 43360 && x3 <= 43388 || x3 >= 44032 && x3 <= 55203 || x3 >= 63744 && x3 <= 64255 || x3 >= 65040 && x3 <= 65049 || x3 >= 65072 && x3 <= 65106 || x3 >= 65108 && x3 <= 65126 || x3 >= 65128 && x3 <= 65131 || x3 >= 94176 && x3 <= 94180 || x3 === 94192 || x3 === 94193 || x3 >= 94208 && x3 <= 100343 || x3 >= 100352 && x3 <= 101589 || x3 >= 101631 && x3 <= 101640 || x3 >= 110576 && x3 <= 110579 || x3 >= 110581 && x3 <= 110587 || x3 === 110589 || x3 === 110590 || x3 >= 110592 && x3 <= 110882 || x3 === 110898 || x3 >= 110928 && x3 <= 110930 || x3 === 110933 || x3 >= 110948 && x3 <= 110951 || x3 >= 110960 && x3 <= 111355 || x3 >= 119552 && x3 <= 119638 || x3 >= 119648 && x3 <= 119670 || x3 === 126980 || x3 === 127183 || x3 === 127374 || x3 >= 127377 && x3 <= 127386 || x3 >= 127488 && x3 <= 127490 || x3 >= 127504 && x3 <= 127547 || x3 >= 127552 && x3 <= 127560 || x3 === 127568 || x3 === 127569 || x3 >= 127584 && x3 <= 127589 || x3 >= 127744 && x3 <= 127776 || x3 >= 127789 && x3 <= 127797 || x3 >= 127799 && x3 <= 127868 || x3 >= 127870 && x3 <= 127891 || x3 >= 127904 && x3 <= 127946 || x3 >= 127951 && x3 <= 127955 || x3 >= 127968 && x3 <= 127984 || x3 === 127988 || x3 >= 127992 && x3 <= 128062 || x3 === 128064 || x3 >= 128066 && x3 <= 128252 || x3 >= 128255 && x3 <= 128317 || x3 >= 128331 && x3 <= 128334 || x3 >= 128336 && x3 <= 128359 || x3 === 128378 || x3 === 128405 || x3 === 128406 || x3 === 128420 || x3 >= 128507 && x3 <= 128591 || x3 >= 128640 && x3 <= 128709 || x3 === 128716 || x3 >= 128720 && x3 <= 128722 || x3 >= 128725 && x3 <= 128727 || x3 >= 128732 && x3 <= 128735 || x3 === 128747 || x3 === 128748 || x3 >= 128756 && x3 <= 128764 || x3 >= 128992 && x3 <= 129003 || x3 === 129008 || x3 >= 129292 && x3 <= 129338 || x3 >= 129340 && x3 <= 129349 || x3 >= 129351 && x3 <= 129535 || x3 >= 129648 && x3 <= 129660 || x3 >= 129664 && x3 <= 129673 || x3 >= 129679 && x3 <= 129734 || x3 >= 129742 && x3 <= 129756 || x3 >= 129759 && x3 <= 129769 || x3 >= 129776 && x3 <= 129784 || x3 >= 131072 && x3 <= 196605 || x3 >= 196608 && x3 <= 262141;
3341
3032
  }
3342
3033
  function validate(codePoint) {
3343
3034
  if (!Number.isSafeInteger(codePoint)) {
@@ -3633,9 +3324,9 @@ function toArr(any) {
3633
3324
  return any == void 0 ? [] : Array.isArray(any) ? any : [any];
3634
3325
  }
3635
3326
  function toVal(out, key, val, opts) {
3636
- let x4;
3327
+ let x3;
3637
3328
  const old = out[key];
3638
- const nxt = ~opts.string.indexOf(key) ? val == void 0 || val === true ? "" : String(val) : typeof val === "boolean" ? val : ~opts.boolean.indexOf(key) ? val === "false" ? false : val === "true" || (out._.push((x4 = +val, x4 * 0 === 0) ? x4 : val), !!val) : (x4 = +val, x4 * 0 === 0) ? x4 : val;
3329
+ const nxt = ~opts.string.indexOf(key) ? val == void 0 || val === true ? "" : String(val) : typeof val === "boolean" ? val : ~opts.boolean.indexOf(key) ? val === "false" ? false : val === "true" || (out._.push((x3 = +val, x3 * 0 === 0) ? x3 : val), !!val) : (x3 = +val, x3 * 0 === 0) ? x3 : val;
3639
3330
  out[key] = old == void 0 ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
3640
3331
  }
3641
3332
  function parseRawArgs(args = [], opts = {}) {
@@ -4100,7 +3791,7 @@ function deriveOpenvikingVersionFromPluginVersion(version) {
4100
3791
  }
4101
3792
 
4102
3793
  // src/commands/install.ts
4103
- var import_picocolors5 = __toESM(require_picocolors(), 1);
3794
+ var import_picocolors6 = __toESM(require_picocolors(), 1);
4104
3795
  import { existsSync as existsSync8 } from "fs";
4105
3796
  import { writeFile as writeFile9 } from "fs/promises";
4106
3797
  import { join as join11 } from "path";
@@ -4506,12 +4197,28 @@ async function configureOvConf(ctx) {
4506
4197
  const openvikingDir = ctx.openvikingDir;
4507
4198
  await mkdir2(openvikingDir, { recursive: true });
4508
4199
  const configPath = join3(openvikingDir, "ov.conf");
4509
- if (!ctx.interactive && existsSync2(configPath)) {
4200
+ if (existsSync2(configPath)) {
4510
4201
  const port = await readPortFromOvConf(configPath) || DEFAULT_SERVER_PORT;
4511
- logInfo(
4512
- tr(ctx.langZh, `Preserved existing config: ${configPath}`, `\u5DF2\u4FDD\u7559\u73B0\u6709\u914D\u7F6E: ${configPath}`)
4202
+ if (!ctx.interactive) {
4203
+ logSuccess(
4204
+ tr(ctx.langZh, `Existing config preserved: ${configPath}`, `\u5DF2\u4FDD\u7559\u73B0\u6709\u914D\u7F6E: ${configPath}`)
4205
+ );
4206
+ return { ...ctx, selectedServerPort: port };
4207
+ }
4208
+ const reconfigure = await confirmPrompt(
4209
+ tr(
4210
+ ctx.langZh,
4211
+ `ov.conf already exists at ${configPath}. Reconfigure?`,
4212
+ `ov.conf \u5DF2\u5B58\u5728\u4E8E ${configPath}\u3002\u662F\u5426\u91CD\u65B0\u914D\u7F6E\uFF1F`
4213
+ ),
4214
+ false
4513
4215
  );
4514
- return { ...ctx, selectedServerPort: port };
4216
+ if (!reconfigure) {
4217
+ logSuccess(
4218
+ tr(ctx.langZh, `Existing config preserved: ${configPath}`, `\u5DF2\u4FDD\u7559\u73B0\u6709\u914D\u7F6E: ${configPath}`)
4219
+ );
4220
+ return { ...ctx, selectedServerPort: port };
4221
+ }
4515
4222
  }
4516
4223
  let workspace = join3(openvikingDir, "data");
4517
4224
  let serverPort = String(DEFAULT_SERVER_PORT);
@@ -4525,13 +4232,11 @@ async function configureOvConf(ctx) {
4525
4232
  embeddingApiKey = await passwordInput(
4526
4233
  tr(ctx.langZh, "Embedding API Key (press Enter to use same as VLM)", "Embedding API Key\uFF08\u56DE\u8F66\u4F7F\u7528\u4E0E VLM \u76F8\u540C\u7684 Key\uFF09")
4527
4234
  ) || vlmApiKey;
4528
- const showAdvanced = await Promise.resolve().then(() => (init_dist2(), dist_exports)).then(
4529
- (p2) => p2.confirm({
4530
- message: tr(ctx.langZh, "Show advanced options? (port, model, workspace path)", "\u663E\u793A\u9AD8\u7EA7\u9009\u9879\uFF1F\uFF08\u7AEF\u53E3\u3001\u6A21\u578B\u3001\u6570\u636E\u76EE\u5F55\uFF09"),
4531
- initialValue: false
4532
- })
4235
+ const showAdvanced = await confirmPrompt(
4236
+ tr(ctx.langZh, "Show advanced options? (port, model, workspace path)", "\u663E\u793A\u9AD8\u7EA7\u9009\u9879\uFF1F\uFF08\u7AEF\u53E3\u3001\u6A21\u578B\u3001\u6570\u636E\u76EE\u5F55\uFF09"),
4237
+ false
4533
4238
  );
4534
- if (showAdvanced && typeof showAdvanced === "boolean") {
4239
+ if (showAdvanced) {
4535
4240
  workspace = await textInput(
4536
4241
  tr(ctx.langZh, "OpenViking workspace path", "OpenViking \u6570\u636E\u76EE\u5F55"),
4537
4242
  { defaultValue: workspace }
@@ -4810,72 +4515,72 @@ ${installResult.err}`;
4810
4515
  }
4811
4516
 
4812
4517
  // src/steps/deploy-plugin.ts
4518
+ var import_picocolors5 = __toESM(require_picocolors(), 1);
4813
4519
  import { cp, mkdir as mkdir4, rm, rename as rename2, writeFile as writeFile4 } from "fs/promises";
4814
4520
  import { join as join5, dirname as dirname2, relative } from "path";
4815
4521
  init_process();
4816
4522
  init_messages();
4817
4523
  init_prompts();
4818
- async function downloadPluginFile(destDir, fileName, url, required, index, total, langZh) {
4524
+ async function downloadPluginFile(destDir, fileName, url, required) {
4819
4525
  const destPath = join5(destDir, fileName);
4820
- process.stdout.write(` [${index}/${total}] ${fileName} `);
4821
4526
  const { ok, status, saw404 } = await downloadFile(url, destPath);
4822
- if (ok) {
4823
- console.log(" OK");
4824
- return;
4825
- }
4527
+ if (ok) return "ok";
4826
4528
  if (saw404 || status === 404) {
4827
4529
  if (fileName === ".gitignore") {
4828
4530
  await mkdir4(dirname2(destPath), { recursive: true });
4829
4531
  await writeFile4(destPath, "node_modules/\n", "utf8");
4830
- console.log(" OK");
4831
- return;
4532
+ return "ok";
4832
4533
  }
4833
- console.log(tr(langZh, " skip", " \u8DF3\u8FC7"));
4834
- return;
4534
+ return "skip";
4835
4535
  }
4836
- if (!required) {
4837
- console.log("");
4838
- logError(
4839
- tr(
4840
- langZh,
4841
- `Optional file failed after retries (HTTP ${status || "network"}): ${url}`,
4842
- `\u53EF\u9009\u6587\u4EF6\u91CD\u8BD5\u5931\u8D25\uFF08HTTP ${status || "\u7F51\u7EDC\u9519\u8BEF"}\uFF09: ${url}`
4843
- )
4844
- );
4845
- process.exit(1);
4846
- }
4847
- console.log("");
4848
- logError(tr(langZh, `Download failed after retries: ${url}`, `\u4E0B\u8F7D\u5931\u8D25\uFF08\u5DF2\u91CD\u8BD5\uFF09: ${url}`));
4849
- process.exit(1);
4536
+ if (!required) return "skip";
4537
+ return "fail";
4850
4538
  }
4851
4539
  async function downloadPlugin(destDir, ctx) {
4852
4540
  const config = ctx.pluginConfig;
4853
4541
  const ghRaw = `https://raw.githubusercontent.com/${ctx.repo}/${ctx.pluginVersion}`;
4854
- const total = config.files.required.length + config.files.optional.length;
4542
+ const allFiles = [
4543
+ ...config.files.required.map((f3) => ({ name: f3, required: true })),
4544
+ ...config.files.optional.map((f3) => ({ name: f3, required: false }))
4545
+ ].filter((f3) => f3.name);
4546
+ const total = allFiles.length;
4855
4547
  await mkdir4(destDir, { recursive: true });
4856
- logInfo(
4857
- tr(
4858
- ctx.langZh,
4859
- `Downloading plugin from ${ctx.repo}@${ctx.pluginVersion} (${total} files)...`,
4860
- `\u6B63\u5728\u4ECE ${ctx.repo}@${ctx.pluginVersion} \u4E0B\u8F7D\u63D2\u4EF6\uFF08\u5171 ${total} \u4E2A\u6587\u4EF6\uFF09...`
4861
- )
4862
- );
4863
- let i2 = 0;
4864
- for (const name of config.files.required) {
4865
- if (!name) continue;
4866
- i2++;
4548
+ const results = [];
4549
+ let failed = false;
4550
+ for (let i2 = 0; i2 < allFiles.length; i2++) {
4551
+ const { name, required } = allFiles[i2];
4867
4552
  const url = `${ghRaw}/examples/${config.dir}/${name}`;
4868
- await downloadPluginFile(destDir, name, url, true, i2, total, ctx.langZh);
4553
+ const result = await downloadPluginFile(destDir, name, url, required);
4554
+ if (result === "ok") {
4555
+ results.push(` ${import_picocolors5.default.green("\u2713")} ${name}`);
4556
+ } else if (result === "skip") {
4557
+ results.push(` ${import_picocolors5.default.dim("\u2013")} ${name} ${import_picocolors5.default.dim("(skipped)")}`);
4558
+ } else {
4559
+ results.push(` ${import_picocolors5.default.red("\u2717")} ${name} ${import_picocolors5.default.red("FAILED")}`);
4560
+ failed = true;
4561
+ }
4869
4562
  }
4870
- for (const name of config.files.optional) {
4871
- if (!name) continue;
4872
- i2++;
4873
- const url = `${ghRaw}/examples/${config.dir}/${name}`;
4874
- await downloadPluginFile(destDir, name, url, false, i2, total, ctx.langZh);
4563
+ logStep(
4564
+ [
4565
+ tr(
4566
+ ctx.langZh,
4567
+ `Plugin files (${ctx.repo}@${ctx.pluginVersion}, ${total} files)`,
4568
+ `\u63D2\u4EF6\u6587\u4EF6 (${ctx.repo}@${ctx.pluginVersion}\uFF0C\u5171 ${total} \u4E2A)`
4569
+ ),
4570
+ ...results
4571
+ ].join("\n")
4572
+ );
4573
+ if (failed) {
4574
+ logError(
4575
+ tr(ctx.langZh, "Some required files failed to download.", "\u90E8\u5206\u5FC5\u9700\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25\u3002")
4576
+ );
4577
+ process.exit(1);
4875
4578
  }
4876
- logInfo(tr(ctx.langZh, "Installing plugin npm dependencies...", "\u6B63\u5728\u5B89\u88C5\u63D2\u4EF6 npm \u4F9D\u8D56..."));
4579
+ const s2 = createSpinner();
4580
+ s2.start(tr(ctx.langZh, "Installing plugin npm dependencies...", "\u6B63\u5728\u5B89\u88C5\u63D2\u4EF6 npm \u4F9D\u8D56..."));
4877
4581
  const npmArgs = config.npmOmitDev ? ["install", "--omit=dev", "--no-audit", "--no-fund", "--registry", ctx.npmRegistry] : ["install", "--no-audit", "--no-fund", "--registry", ctx.npmRegistry];
4878
- await run("npm", npmArgs, { cwd: destDir, silent: false });
4582
+ await run("npm", npmArgs, { cwd: destDir, silent: true });
4583
+ s2.stop(tr(ctx.langZh, "npm dependencies installed \u2713", "npm \u4F9D\u8D56\u5B89\u88C5\u5B8C\u6210 \u2713"));
4879
4584
  }
4880
4585
  async function deployLocalPlugin(localPluginDir, destDir) {
4881
4586
  await rm(destDir, { recursive: true, force: true });
@@ -4910,38 +4615,34 @@ async function finalizePluginDeployment(stagingDir, pluginDest) {
4910
4615
  }
4911
4616
  }
4912
4617
  async function deployPluginFromRemote(ctx) {
4913
- const s2 = createSpinner();
4914
- s2.start(tr(ctx.langZh, "Deploying plugin files...", "\u6B63\u5728\u90E8\u7F72\u63D2\u4EF6\u6587\u4EF6..."));
4915
4618
  const stagingDir = await createPluginStagingDir(ctx);
4916
4619
  try {
4917
4620
  await downloadPlugin(stagingDir, ctx);
4918
4621
  await finalizePluginDeployment(stagingDir, ctx.pluginDest);
4919
- s2.stop(
4622
+ logInfo(
4920
4623
  tr(ctx.langZh, `Plugin deployed: ${ctx.pluginDest}`, `\u63D2\u4EF6\u90E8\u7F72\u5B8C\u6210: ${ctx.pluginDest}`)
4921
4624
  );
4922
4625
  } catch (error) {
4923
4626
  await rm(stagingDir, { recursive: true, force: true });
4924
- s2.stop(tr(ctx.langZh, "Plugin deployment failed", "\u63D2\u4EF6\u90E8\u7F72\u5931\u8D25"));
4925
4627
  throw error;
4926
4628
  }
4927
4629
  }
4928
4630
  async function deployPluginFromLocal(ctx, localPluginDir) {
4929
- const s2 = createSpinner();
4930
- s2.start(tr(ctx.langZh, "Deploying local plugin...", "\u6B63\u5728\u90E8\u7F72\u672C\u5730\u63D2\u4EF6..."));
4931
4631
  const stagingDir = await createPluginStagingDir(ctx);
4932
4632
  try {
4933
4633
  await deployLocalPlugin(localPluginDir, stagingDir);
4934
- logInfo(tr(ctx.langZh, "Installing plugin npm dependencies...", "\u6B63\u5728\u5B89\u88C5\u63D2\u4EF6 npm \u4F9D\u8D56..."));
4634
+ const s2 = createSpinner();
4635
+ s2.start(tr(ctx.langZh, "Installing plugin npm dependencies...", "\u6B63\u5728\u5B89\u88C5\u63D2\u4EF6 npm \u4F9D\u8D56..."));
4935
4636
  const config = ctx.pluginConfig;
4936
4637
  const npmArgs = config.npmOmitDev ? ["install", "--omit=dev", "--no-audit", "--no-fund", "--registry", ctx.npmRegistry] : ["install", "--no-audit", "--no-fund", "--registry", ctx.npmRegistry];
4937
- await run("npm", npmArgs, { cwd: stagingDir, silent: false });
4638
+ await run("npm", npmArgs, { cwd: stagingDir, silent: true });
4639
+ s2.stop(tr(ctx.langZh, "npm dependencies installed \u2713", "npm \u4F9D\u8D56\u5B89\u88C5\u5B8C\u6210 \u2713"));
4938
4640
  await finalizePluginDeployment(stagingDir, ctx.pluginDest);
4939
- s2.stop(
4641
+ logInfo(
4940
4642
  tr(ctx.langZh, `Plugin deployed: ${ctx.pluginDest}`, `\u63D2\u4EF6\u90E8\u7F72\u5B8C\u6210: ${ctx.pluginDest}`)
4941
4643
  );
4942
4644
  } catch (error) {
4943
4645
  await rm(stagingDir, { recursive: true, force: true });
4944
- s2.stop(tr(ctx.langZh, "Plugin deployment failed", "\u63D2\u4EF6\u90E8\u7F72\u5931\u8D25"));
4945
4646
  throw error;
4946
4647
  }
4947
4648
  }
@@ -5836,7 +5537,7 @@ async function runInstall(ctx) {
5836
5537
  ctx = { ...ctx, envFiles };
5837
5538
  console.log("");
5838
5539
  logSuccess(
5839
- import_picocolors5.default.bold(tr(ctx.langZh, "Installation complete!", "\u5B89\u88C5\u5B8C\u6210\uFF01"))
5540
+ import_picocolors6.default.bold(tr(ctx.langZh, "Installation complete!", "\u5B89\u88C5\u5B8C\u6210\uFF01"))
5840
5541
  );
5841
5542
  if (ctx.upgradeAudit) {
5842
5543
  logInfo(
@@ -5885,7 +5586,7 @@ var platform2 = detectPlatform();
5885
5586
  var main = defineCommand({
5886
5587
  meta: {
5887
5588
  name: "ov-install",
5888
- version: "0.3.0-beta.1",
5589
+ version: "0.3.0-beta.2",
5889
5590
  description: "OpenClaw + OpenViking cross-platform installer"
5890
5591
  },
5891
5592
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-openviking-setup-helper",
3
- "version": "0.3.0-beta.1",
3
+ "version": "0.3.0-beta.2",
4
4
  "description": "Setup helper for installing OpenViking memory plugin into OpenClaw",
5
5
  "type": "module",
6
6
  "bin": {