@bonginkan/maria 4.2.24 → 4.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.cjs CHANGED
@@ -4,7 +4,7 @@
4
4
  var fs2 = require('fs');
5
5
  var path9 = require('path');
6
6
  var dotenv = require('dotenv');
7
- var chalk28 = require('chalk');
7
+ var chalk29 = require('chalk');
8
8
  var crypto3 = require('crypto');
9
9
  var http2 = require('http');
10
10
  var url2 = require('url');
@@ -51,7 +51,7 @@ function _interopNamespace(e) {
51
51
  var fs2__namespace = /*#__PURE__*/_interopNamespace(fs2);
52
52
  var path9__namespace = /*#__PURE__*/_interopNamespace(path9);
53
53
  var dotenv__namespace = /*#__PURE__*/_interopNamespace(dotenv);
54
- var chalk28__default = /*#__PURE__*/_interopDefault(chalk28);
54
+ var chalk29__default = /*#__PURE__*/_interopDefault(chalk29);
55
55
  var crypto3__namespace = /*#__PURE__*/_interopNamespace(crypto3);
56
56
  var http2__namespace = /*#__PURE__*/_interopNamespace(http2);
57
57
  var url2__namespace = /*#__PURE__*/_interopNamespace(url2);
@@ -252,7 +252,7 @@ var init_animations = __esm({
252
252
  start() {
253
253
  this.interval = setInterval(() => {
254
254
  process.stdout.write(
255
- `\r${chalk28__default.default.cyan(this.frames[this.currentFrame])} ${chalk28__default.default.gray(this.message)}...`
255
+ `\r${chalk29__default.default.cyan(this.frames[this.currentFrame])} ${chalk29__default.default.gray(this.message)}...`
256
256
  );
257
257
  this.currentFrame = (this.currentFrame + 1) % this.frames.length;
258
258
  }, 80);
@@ -290,7 +290,7 @@ var init_animations = __esm({
290
290
  const elapsed = Math.floor((Date.now() - this.startTime) / 1e3);
291
291
  const stage = this.stages[this.currentStage];
292
292
  process.stdout.write(
293
- `\r${chalk28__default.default.cyan(this.spinnerFrames[this.currentFrame])} ${stage.icon} ${chalk28__default.default.gray(stage.message)}... ${chalk28__default.default.dim(`[${elapsed}s]`)}`
293
+ `\r${chalk29__default.default.cyan(this.spinnerFrames[this.currentFrame])} ${stage.icon} ${chalk29__default.default.gray(stage.message)}... ${chalk29__default.default.dim(`[${elapsed}s]`)}`
294
294
  );
295
295
  this.currentFrame = (this.currentFrame + 1) % this.spinnerFrames.length;
296
296
  }, 80);
@@ -352,11 +352,11 @@ var init_animations = __esm({
352
352
  const stage = stages[this.currentStage];
353
353
  if (this.isComplex) {
354
354
  process.stdout.write(
355
- `\r${chalk28__default.default.cyan(this.spinnerFrames[this.currentFrame])} ${stage} ${chalk28__default.default.dim(`[${elapsed}s]`)}`
355
+ `\r${chalk29__default.default.cyan(this.spinnerFrames[this.currentFrame])} ${stage} ${chalk29__default.default.dim(`[${elapsed}s]`)}`
356
356
  );
357
357
  } else {
358
358
  process.stdout.write(
359
- `\r${chalk28__default.default.cyan(this.spinnerFrames[this.currentFrame])} ${chalk28__default.default.gray(stage)}...`
359
+ `\r${chalk29__default.default.cyan(this.spinnerFrames[this.currentFrame])} ${chalk29__default.default.gray(stage)}...`
360
360
  );
361
361
  }
362
362
  this.currentFrame = (this.currentFrame + 1) % this.spinnerFrames.length;
@@ -399,7 +399,7 @@ var init_animations = __esm({
399
399
  start() {
400
400
  this.interval = setInterval(() => {
401
401
  process.stdout.write(
402
- `\r${chalk28__default.default.cyan(this.message)}${this.dots[this.currentDot]}`
402
+ `\r${chalk29__default.default.cyan(this.message)}${this.dots[this.currentDot]}`
403
403
  );
404
404
  this.currentDot = (this.currentDot + 1) % this.dots.length;
405
405
  }, 300);
@@ -428,7 +428,7 @@ var init_animations = __esm({
428
428
  const frame = this.frames[this.currentFrame];
429
429
  const message = this.messages[this.currentFrame];
430
430
  process.stdout.write(
431
- `\r${frame} ${chalk28__default.default.cyan(message)}...`
431
+ `\r${frame} ${chalk29__default.default.cyan(message)}...`
432
432
  );
433
433
  this.currentFrame = (this.currentFrame + 1) % this.frames.length;
434
434
  }, 1e3);
@@ -456,7 +456,7 @@ var init_animations = __esm({
456
456
  const percentage = Math.floor(this.current / this.total * 100);
457
457
  const filled = Math.floor(this.current / this.total * this.width);
458
458
  const empty = this.width - filled;
459
- const bar = chalk28__default.default.green("\u2588").repeat(filled) + chalk28__default.default.gray("\u2591").repeat(empty);
459
+ const bar = chalk29__default.default.green("\u2588").repeat(filled) + chalk29__default.default.gray("\u2591").repeat(empty);
460
460
  process.stdout.write(`\r${this.label}: [${bar}] ${percentage}%`);
461
461
  if (this.current >= this.total) {
462
462
  process.stdout.write("\n");
@@ -1893,7 +1893,7 @@ var init_AuthenticationManager = __esm({
1893
1893
  const response2 = await fetch(`${this.apiBase}/api/user/profile`, {
1894
1894
  headers: {
1895
1895
  "Authorization": `Bearer ${tokens.accessToken}`,
1896
- "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.2.24"}`
1896
+ "User-Agent": `maria-cli/${process.env.CLI_VERSION || "4.2.26"}`
1897
1897
  }
1898
1898
  });
1899
1899
  if (response2.status === 401) {
@@ -2436,7 +2436,7 @@ function withAuth(fn) {
2436
2436
  try {
2437
2437
  const tokens = await authManager.getValidTokens();
2438
2438
  if (!tokens) {
2439
- console.log(chalk28__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
2439
+ console.log(chalk29__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
2440
2440
  if (!testMode) process.exit(AUTH_EXIT_CODES.AUTH_REQUIRED);
2441
2441
  return { success: false, message: "AUTH_REQUIRED" };
2442
2442
  }
@@ -2446,33 +2446,33 @@ function withAuth(fn) {
2446
2446
  return await fn(...args2);
2447
2447
  } catch (error2) {
2448
2448
  if (error2.code === "AUTH_REQUIRED") {
2449
- console.log(chalk28__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
2449
+ console.log(chalk29__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
2450
2450
  if (!testMode) process.exit(AUTH_EXIT_CODES.AUTH_REQUIRED);
2451
2451
  return { success: false, message: "AUTH_REQUIRED" };
2452
2452
  }
2453
2453
  if (error2.code === "REAUTH_REQUIRED" || error2.code === "TOKEN_EXPIRED") {
2454
- console.log(chalk28__default.default.yellow("\u{1F504} Please re-authenticate \xB7 Run: maria /login"));
2454
+ console.log(chalk29__default.default.yellow("\u{1F504} Please re-authenticate \xB7 Run: maria /login"));
2455
2455
  if (!testMode) process.exit(AUTH_EXIT_CODES.REAUTH_REQUIRED);
2456
2456
  return { success: false, message: "REAUTH_REQUIRED" };
2457
2457
  }
2458
2458
  if (error2.code === "QUOTA_EXCEEDED") {
2459
- console.log(chalk28__default.default.yellow("\u26A0 Quota exceeded \xB7 Run: maria /billing"));
2459
+ console.log(chalk29__default.default.yellow("\u26A0 Quota exceeded \xB7 Run: maria /billing"));
2460
2460
  if (!testMode) process.exit(AUTH_EXIT_CODES.QUOTA_EXCEEDED);
2461
2461
  return { success: false, message: "QUOTA_EXCEEDED" };
2462
2462
  }
2463
2463
  if (error2.code === "PLAN_RESTRICTED") {
2464
- console.log(chalk28__default.default.yellow("\u{1F512} Not available in current plan"));
2464
+ console.log(chalk29__default.default.yellow("\u{1F512} Not available in current plan"));
2465
2465
  if (!testMode) process.exit(AUTH_EXIT_CODES.PLAN_RESTRICTED);
2466
2466
  return { success: false, message: "PLAN_RESTRICTED" };
2467
2467
  }
2468
2468
  if (error2.code === "RATE_LIMITED") {
2469
2469
  const retryAfter = error2.retryAfter || 5;
2470
- console.log(chalk28__default.default.yellow(`\u23F1\uFE0F Rate limit: wait ${retryAfter}s`));
2470
+ console.log(chalk29__default.default.yellow(`\u23F1\uFE0F Rate limit: wait ${retryAfter}s`));
2471
2471
  if (!testMode) process.exit(AUTH_EXIT_CODES.RATE_LIMITED);
2472
2472
  return { success: false, message: "RATE_LIMITED" };
2473
2473
  }
2474
2474
  if (error2.code === "NETWORK_ERROR") {
2475
- console.log(chalk28__default.default.red("\u{1F310} Network error, check connection"));
2475
+ console.log(chalk29__default.default.red("\u{1F310} Network error, check connection"));
2476
2476
  if (!testMode) process.exit(AUTH_EXIT_CODES.NETWORK_ERROR);
2477
2477
  return { success: false, message: "NETWORK_ERROR" };
2478
2478
  }
@@ -12878,24 +12878,24 @@ var init_autocomplete_dropdown = __esm({
12878
12878
  }
12879
12879
  process.stdout.write(`\x1B[${linesToClear - 1}A`);
12880
12880
  process.stdout.write(
12881
- "\x1B[K" + chalk28__default.default.white(
12881
+ "\x1B[K" + chalk29__default.default.white(
12882
12882
  "\u250C\u2500 Suggestions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"
12883
12883
  ) + "\n"
12884
12884
  );
12885
12885
  this.suggestions.forEach((suggestion, index2) => {
12886
12886
  const isSelected = index2 === this.selectedIndex;
12887
- const prefix = isSelected ? chalk28__default.default.cyan("\u25BA ") : " ";
12888
- const nameStyle = isSelected ? chalk28__default.default.inverse : (s2) => s2;
12887
+ const prefix = isSelected ? chalk29__default.default.cyan("\u25BA ") : " ";
12888
+ const nameStyle = isSelected ? chalk29__default.default.inverse : (s2) => s2;
12889
12889
  const safeName = (suggestion?.name ?? "").toString();
12890
12890
  const safeDescRaw = suggestion?.description ?? "";
12891
12891
  const safeDesc = typeof safeDescRaw === "string" ? safeDescRaw : String(safeDescRaw ?? "");
12892
12892
  const displayName = safeName.padEnd(20);
12893
12893
  const displayDesc = safeDesc.length > 30 ? safeDesc.substring(0, 27) + "..." : safeDesc.padEnd(30);
12894
- const line = `\u2502${prefix}${nameStyle(chalk28__default.default.white(displayName) + " " + chalk28__default.default.gray(displayDesc))} \u2502`;
12894
+ const line = `\u2502${prefix}${nameStyle(chalk29__default.default.white(displayName) + " " + chalk29__default.default.gray(displayDesc))} \u2502`;
12895
12895
  process.stdout.write("\x1B[K" + line + "\n");
12896
12896
  });
12897
12897
  process.stdout.write(
12898
- "\x1B[K" + chalk28__default.default.white(
12898
+ "\x1B[K" + chalk29__default.default.white(
12899
12899
  "\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"
12900
12900
  )
12901
12901
  );
@@ -12929,6 +12929,142 @@ var init_autocomplete_dropdown = __esm({
12929
12929
  }
12930
12930
  });
12931
12931
 
12932
+ // node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
12933
+ function ansiRegex({ onlyFirst = false } = {}) {
12934
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
12935
+ const pattern2 = [
12936
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
12937
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
12938
+ ].join("|");
12939
+ return new RegExp(pattern2, onlyFirst ? void 0 : "g");
12940
+ }
12941
+ var init_ansi_regex = __esm({
12942
+ "node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js"() {
12943
+ }
12944
+ });
12945
+
12946
+ // node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
12947
+ function stripAnsi(string) {
12948
+ if (typeof string !== "string") {
12949
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
12950
+ }
12951
+ return string.replace(regex, "");
12952
+ }
12953
+ var regex;
12954
+ var init_strip_ansi = __esm({
12955
+ "node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js"() {
12956
+ init_ansi_regex();
12957
+ regex = ansiRegex();
12958
+ }
12959
+ });
12960
+
12961
+ // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
12962
+ function isAmbiguous(x2) {
12963
+ return x2 === 161 || x2 === 164 || x2 === 167 || x2 === 168 || x2 === 170 || x2 === 173 || x2 === 174 || x2 >= 176 && x2 <= 180 || x2 >= 182 && x2 <= 186 || x2 >= 188 && x2 <= 191 || x2 === 198 || x2 === 208 || x2 === 215 || x2 === 216 || x2 >= 222 && x2 <= 225 || x2 === 230 || x2 >= 232 && x2 <= 234 || x2 === 236 || x2 === 237 || x2 === 240 || x2 === 242 || x2 === 243 || x2 >= 247 && x2 <= 250 || x2 === 252 || x2 === 254 || x2 === 257 || x2 === 273 || x2 === 275 || x2 === 283 || x2 === 294 || x2 === 295 || x2 === 299 || x2 >= 305 && x2 <= 307 || x2 === 312 || x2 >= 319 && x2 <= 322 || x2 === 324 || x2 >= 328 && x2 <= 331 || x2 === 333 || x2 === 338 || x2 === 339 || x2 === 358 || x2 === 359 || x2 === 363 || x2 === 462 || x2 === 464 || x2 === 466 || x2 === 468 || x2 === 470 || x2 === 472 || x2 === 474 || x2 === 476 || x2 === 593 || x2 === 609 || x2 === 708 || x2 === 711 || x2 >= 713 && x2 <= 715 || x2 === 717 || x2 === 720 || x2 >= 728 && x2 <= 731 || x2 === 733 || x2 === 735 || x2 >= 768 && x2 <= 879 || x2 >= 913 && x2 <= 929 || x2 >= 931 && x2 <= 937 || x2 >= 945 && x2 <= 961 || x2 >= 963 && x2 <= 969 || x2 === 1025 || x2 >= 1040 && x2 <= 1103 || x2 === 1105 || x2 === 8208 || x2 >= 8211 && x2 <= 8214 || x2 === 8216 || x2 === 8217 || x2 === 8220 || x2 === 8221 || x2 >= 8224 && x2 <= 8226 || x2 >= 8228 && x2 <= 8231 || x2 === 8240 || x2 === 8242 || x2 === 8243 || x2 === 8245 || x2 === 8251 || x2 === 8254 || x2 === 8308 || x2 === 8319 || x2 >= 8321 && x2 <= 8324 || x2 === 8364 || x2 === 8451 || x2 === 8453 || x2 === 8457 || x2 === 8467 || x2 === 8470 || x2 === 8481 || x2 === 8482 || x2 === 8486 || x2 === 8491 || x2 === 8531 || x2 === 8532 || x2 >= 8539 && x2 <= 8542 || x2 >= 8544 && x2 <= 8555 || x2 >= 8560 && x2 <= 8569 || x2 === 8585 || x2 >= 8592 && x2 <= 8601 || x2 === 8632 || x2 === 8633 || x2 === 8658 || x2 === 8660 || x2 === 8679 || x2 === 8704 || x2 === 8706 || x2 === 8707 || x2 === 8711 || x2 === 8712 || x2 === 8715 || x2 === 8719 || x2 === 8721 || x2 === 8725 || x2 === 8730 || x2 >= 8733 && x2 <= 8736 || x2 === 8739 || x2 === 8741 || x2 >= 8743 && x2 <= 8748 || x2 === 8750 || x2 >= 8756 && x2 <= 8759 || x2 === 8764 || x2 === 8765 || x2 === 8776 || x2 === 8780 || x2 === 8786 || x2 === 8800 || x2 === 8801 || x2 >= 8804 && x2 <= 8807 || x2 === 8810 || x2 === 8811 || x2 === 8814 || x2 === 8815 || x2 === 8834 || x2 === 8835 || x2 === 8838 || x2 === 8839 || x2 === 8853 || x2 === 8857 || x2 === 8869 || x2 === 8895 || x2 === 8978 || x2 >= 9312 && x2 <= 9449 || x2 >= 9451 && x2 <= 9547 || x2 >= 9552 && x2 <= 9587 || x2 >= 9600 && x2 <= 9615 || x2 >= 9618 && x2 <= 9621 || x2 === 9632 || x2 === 9633 || x2 >= 9635 && x2 <= 9641 || x2 === 9650 || x2 === 9651 || x2 === 9654 || x2 === 9655 || x2 === 9660 || x2 === 9661 || x2 === 9664 || x2 === 9665 || x2 >= 9670 && x2 <= 9672 || x2 === 9675 || x2 >= 9678 && x2 <= 9681 || x2 >= 9698 && x2 <= 9701 || x2 === 9711 || x2 === 9733 || x2 === 9734 || x2 === 9737 || x2 === 9742 || x2 === 9743 || x2 === 9756 || x2 === 9758 || x2 === 9792 || x2 === 9794 || x2 === 9824 || x2 === 9825 || x2 >= 9827 && x2 <= 9829 || x2 >= 9831 && x2 <= 9834 || x2 === 9836 || x2 === 9837 || x2 === 9839 || x2 === 9886 || x2 === 9887 || x2 === 9919 || x2 >= 9926 && x2 <= 9933 || x2 >= 9935 && x2 <= 9939 || x2 >= 9941 && x2 <= 9953 || x2 === 9955 || x2 === 9960 || x2 === 9961 || x2 >= 9963 && x2 <= 9969 || x2 === 9972 || x2 >= 9974 && x2 <= 9977 || x2 === 9979 || x2 === 9980 || x2 === 9982 || x2 === 9983 || x2 === 10045 || x2 >= 10102 && x2 <= 10111 || x2 >= 11094 && x2 <= 11097 || x2 >= 12872 && x2 <= 12879 || x2 >= 57344 && x2 <= 63743 || x2 >= 65024 && x2 <= 65039 || x2 === 65533 || x2 >= 127232 && x2 <= 127242 || x2 >= 127248 && x2 <= 127277 || x2 >= 127280 && x2 <= 127337 || x2 >= 127344 && x2 <= 127373 || x2 === 127375 || x2 === 127376 || x2 >= 127387 && x2 <= 127404 || x2 >= 917760 && x2 <= 917999 || x2 >= 983040 && x2 <= 1048573 || x2 >= 1048576 && x2 <= 1114109;
12964
+ }
12965
+ function isFullWidth(x2) {
12966
+ return x2 === 12288 || x2 >= 65281 && x2 <= 65376 || x2 >= 65504 && x2 <= 65510;
12967
+ }
12968
+ function isWide(x2) {
12969
+ return x2 >= 4352 && x2 <= 4447 || x2 === 8986 || x2 === 8987 || x2 === 9001 || x2 === 9002 || x2 >= 9193 && x2 <= 9196 || x2 === 9200 || x2 === 9203 || x2 === 9725 || x2 === 9726 || x2 === 9748 || x2 === 9749 || x2 >= 9776 && x2 <= 9783 || x2 >= 9800 && x2 <= 9811 || x2 === 9855 || x2 >= 9866 && x2 <= 9871 || x2 === 9875 || x2 === 9889 || x2 === 9898 || x2 === 9899 || x2 === 9917 || x2 === 9918 || x2 === 9924 || x2 === 9925 || x2 === 9934 || x2 === 9940 || x2 === 9962 || x2 === 9970 || x2 === 9971 || x2 === 9973 || x2 === 9978 || x2 === 9981 || x2 === 9989 || x2 === 9994 || x2 === 9995 || x2 === 10024 || x2 === 10060 || x2 === 10062 || x2 >= 10067 && x2 <= 10069 || x2 === 10071 || x2 >= 10133 && x2 <= 10135 || x2 === 10160 || x2 === 10175 || x2 === 11035 || x2 === 11036 || x2 === 11088 || x2 === 11093 || x2 >= 11904 && x2 <= 11929 || x2 >= 11931 && x2 <= 12019 || x2 >= 12032 && x2 <= 12245 || x2 >= 12272 && x2 <= 12287 || x2 >= 12289 && x2 <= 12350 || x2 >= 12353 && x2 <= 12438 || x2 >= 12441 && x2 <= 12543 || x2 >= 12549 && x2 <= 12591 || x2 >= 12593 && x2 <= 12686 || x2 >= 12688 && x2 <= 12773 || x2 >= 12783 && x2 <= 12830 || x2 >= 12832 && x2 <= 12871 || x2 >= 12880 && x2 <= 42124 || x2 >= 42128 && x2 <= 42182 || x2 >= 43360 && x2 <= 43388 || x2 >= 44032 && x2 <= 55203 || x2 >= 63744 && x2 <= 64255 || x2 >= 65040 && x2 <= 65049 || x2 >= 65072 && x2 <= 65106 || x2 >= 65108 && x2 <= 65126 || x2 >= 65128 && x2 <= 65131 || x2 >= 94176 && x2 <= 94180 || x2 === 94192 || x2 === 94193 || x2 >= 94208 && x2 <= 100343 || x2 >= 100352 && x2 <= 101589 || x2 >= 101631 && x2 <= 101640 || x2 >= 110576 && x2 <= 110579 || x2 >= 110581 && x2 <= 110587 || x2 === 110589 || x2 === 110590 || x2 >= 110592 && x2 <= 110882 || x2 === 110898 || x2 >= 110928 && x2 <= 110930 || x2 === 110933 || x2 >= 110948 && x2 <= 110951 || x2 >= 110960 && x2 <= 111355 || x2 >= 119552 && x2 <= 119638 || x2 >= 119648 && x2 <= 119670 || x2 === 126980 || x2 === 127183 || x2 === 127374 || x2 >= 127377 && x2 <= 127386 || x2 >= 127488 && x2 <= 127490 || x2 >= 127504 && x2 <= 127547 || x2 >= 127552 && x2 <= 127560 || x2 === 127568 || x2 === 127569 || x2 >= 127584 && x2 <= 127589 || x2 >= 127744 && x2 <= 127776 || x2 >= 127789 && x2 <= 127797 || x2 >= 127799 && x2 <= 127868 || x2 >= 127870 && x2 <= 127891 || x2 >= 127904 && x2 <= 127946 || x2 >= 127951 && x2 <= 127955 || x2 >= 127968 && x2 <= 127984 || x2 === 127988 || x2 >= 127992 && x2 <= 128062 || x2 === 128064 || x2 >= 128066 && x2 <= 128252 || x2 >= 128255 && x2 <= 128317 || x2 >= 128331 && x2 <= 128334 || x2 >= 128336 && x2 <= 128359 || x2 === 128378 || x2 === 128405 || x2 === 128406 || x2 === 128420 || x2 >= 128507 && x2 <= 128591 || x2 >= 128640 && x2 <= 128709 || x2 === 128716 || x2 >= 128720 && x2 <= 128722 || x2 >= 128725 && x2 <= 128727 || x2 >= 128732 && x2 <= 128735 || x2 === 128747 || x2 === 128748 || x2 >= 128756 && x2 <= 128764 || x2 >= 128992 && x2 <= 129003 || x2 === 129008 || x2 >= 129292 && x2 <= 129338 || x2 >= 129340 && x2 <= 129349 || x2 >= 129351 && x2 <= 129535 || x2 >= 129648 && x2 <= 129660 || x2 >= 129664 && x2 <= 129673 || x2 >= 129679 && x2 <= 129734 || x2 >= 129742 && x2 <= 129756 || x2 >= 129759 && x2 <= 129769 || x2 >= 129776 && x2 <= 129784 || x2 >= 131072 && x2 <= 196605 || x2 >= 196608 && x2 <= 262141;
12970
+ }
12971
+ var init_lookup = __esm({
12972
+ "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js"() {
12973
+ }
12974
+ });
12975
+
12976
+ // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
12977
+ function validate(codePoint) {
12978
+ if (!Number.isSafeInteger(codePoint)) {
12979
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
12980
+ }
12981
+ }
12982
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
12983
+ validate(codePoint);
12984
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
12985
+ return 2;
12986
+ }
12987
+ return 1;
12988
+ }
12989
+ var init_get_east_asian_width = __esm({
12990
+ "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js"() {
12991
+ init_lookup();
12992
+ }
12993
+ });
12994
+
12995
+ // node_modules/.pnpm/string-width@8.0.0/node_modules/string-width/index.js
12996
+ function baseVisible(segment) {
12997
+ return segment.replace(leadingNonPrintingRegex, "");
12998
+ }
12999
+ function isZeroWidthCluster(segment) {
13000
+ return zeroWidthClusterRegex.test(segment);
13001
+ }
13002
+ function isDoubleWidthEmojiCluster(segment) {
13003
+ const visible = baseVisible(segment);
13004
+ const baseScalar = visible.codePointAt(0);
13005
+ const baseChar = String.fromCodePoint(baseScalar);
13006
+ const baseIsEmojiPresentation = emojiPresentationRegex.test(baseChar);
13007
+ const hasVs16 = segment.includes("\uFE0F");
13008
+ const hasVs15 = segment.includes("\uFE0E");
13009
+ const codePointCount = [...segment].length;
13010
+ const multiScalarMeaningful = codePointCount > 1 && !(codePointCount === 2 && hasVs15 && !hasVs16);
13011
+ return hasVs16 || baseIsEmojiPresentation && !hasVs15 || multiScalarMeaningful;
13012
+ }
13013
+ function trailingHalfwidthWidth(segment, eastAsianWidthOptions) {
13014
+ let extra = 0;
13015
+ if (segment.length > 1) {
13016
+ for (const char of segment.slice(1)) {
13017
+ if (char >= "\uFF00" && char <= "\uFFEF") {
13018
+ extra += eastAsianWidth(char.codePointAt(0), eastAsianWidthOptions);
13019
+ }
13020
+ }
13021
+ }
13022
+ return extra;
13023
+ }
13024
+ function stringWidth(input3, options2 = {}) {
13025
+ if (typeof input3 !== "string" || input3.length === 0) {
13026
+ return 0;
13027
+ }
13028
+ const {
13029
+ ambiguousIsNarrow = true,
13030
+ countAnsiEscapeCodes = false
13031
+ } = options2;
13032
+ let string = input3;
13033
+ if (!countAnsiEscapeCodes) {
13034
+ string = stripAnsi(string);
13035
+ }
13036
+ if (string.length === 0) {
13037
+ return 0;
13038
+ }
13039
+ let width = 0;
13040
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
13041
+ for (const { segment } of segmenter.segment(string)) {
13042
+ if (isZeroWidthCluster(segment)) {
13043
+ continue;
13044
+ }
13045
+ if (rgiEmojiRegex.test(segment) && isDoubleWidthEmojiCluster(segment)) {
13046
+ width += 2;
13047
+ continue;
13048
+ }
13049
+ const codePoint = baseVisible(segment).codePointAt(0);
13050
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
13051
+ width += trailingHalfwidthWidth(segment, eastAsianWidthOptions);
13052
+ }
13053
+ return width;
13054
+ }
13055
+ var segmenter, zeroWidthClusterRegex, leadingNonPrintingRegex, rgiEmojiRegex, emojiPresentationRegex;
13056
+ var init_string_width = __esm({
13057
+ "node_modules/.pnpm/string-width@8.0.0/node_modules/string-width/index.js"() {
13058
+ init_strip_ansi();
13059
+ init_get_east_asian_width();
13060
+ segmenter = new Intl.Segmenter();
13061
+ zeroWidthClusterRegex = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark}|\\p{Surrogate})+$", "v");
13062
+ leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+", "v");
13063
+ rgiEmojiRegex = new RegExp("^\\p{RGI_Emoji}$", "v");
13064
+ emojiPresentationRegex = new RegExp("^\\p{Emoji_Presentation}$", "v");
13065
+ }
13066
+ });
13067
+
12932
13068
  // src/services/interactive-cli.ts
12933
13069
  var interactive_cli_exports = {};
12934
13070
  __export(interactive_cli_exports, {
@@ -12939,6 +13075,7 @@ var init_interactive_cli = __esm({
12939
13075
  "src/services/interactive-cli.ts"() {
12940
13076
  init_command_groups();
12941
13077
  init_autocomplete_dropdown();
13078
+ init_string_width();
12942
13079
  InteractiveCLI = class {
12943
13080
  rl;
12944
13081
  currentInput = "";
@@ -12953,6 +13090,7 @@ var init_interactive_cli = __esm({
12953
13090
  // Added: suspend overlays during /code execution
12954
13091
  isWaitingForInput = false;
12955
13092
  // Added: prevent duplicate enter handling
13093
+ segmenter = null;
12956
13094
  constructor(options2 = {}) {
12957
13095
  this.options = {
12958
13096
  maxSuggestions: options2.maxSuggestions || 5,
@@ -12965,6 +13103,11 @@ var init_interactive_cli = __esm({
12965
13103
  terminal: true
12966
13104
  });
12967
13105
  this.dropdown = new AutocompleteDropdown();
13106
+ try {
13107
+ this.segmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
13108
+ } catch {
13109
+ this.segmenter = null;
13110
+ }
12968
13111
  if (process.stdin.isTTY) {
12969
13112
  process.stdin.setRawMode(true);
12970
13113
  }
@@ -13090,7 +13233,9 @@ var init_interactive_cli = __esm({
13090
13233
  * Handle character input
13091
13234
  */
13092
13235
  handleCharacter(char) {
13093
- this.currentInput = this.currentInput.slice(0, this.cursorPosition) + char + this.currentInput.slice(this.cursorPosition);
13236
+ const left = this.sliceByGraphemes(this.currentInput, 0, this.cursorPosition);
13237
+ const right = this.sliceByGraphemes(this.currentInput, this.cursorPosition);
13238
+ this.currentInput = left + char + right;
13094
13239
  this.cursorPosition++;
13095
13240
  void this.updateSuggestions();
13096
13241
  this.render();
@@ -13100,7 +13245,9 @@ var init_interactive_cli = __esm({
13100
13245
  */
13101
13246
  handleBackspace() {
13102
13247
  if (this.cursorPosition > 0) {
13103
- this.currentInput = this.currentInput.slice(0, this.cursorPosition - 1) + this.currentInput.slice(this.cursorPosition);
13248
+ const left = this.sliceByGraphemes(this.currentInput, 0, this.cursorPosition - 1);
13249
+ const right = this.sliceByGraphemes(this.currentInput, this.cursorPosition);
13250
+ this.currentInput = left + right;
13104
13251
  this.cursorPosition--;
13105
13252
  void this.updateSuggestions();
13106
13253
  this.render();
@@ -13187,7 +13334,7 @@ var init_interactive_cli = __esm({
13187
13334
  * Move cursor right
13188
13335
  */
13189
13336
  moveCursorRight() {
13190
- if (this.cursorPosition < this.currentInput.length) {
13337
+ if (this.cursorPosition < this.countGraphemes(this.currentInput)) {
13191
13338
  this.cursorPosition++;
13192
13339
  this.render();
13193
13340
  }
@@ -13226,13 +13373,45 @@ var init_interactive_cli = __esm({
13226
13373
  }
13227
13374
  readline__namespace.cursorTo(process.stdout, 0);
13228
13375
  readline__namespace.clearLine(process.stdout, 0);
13229
- const prompt = chalk28__default.default.cyan("> ");
13376
+ const prompt = chalk29__default.default.cyan("> ");
13230
13377
  const displayInput = this.currentInput;
13231
13378
  process.stdout.write(prompt + displayInput);
13232
- const promptLength = 2;
13233
- const actualCursorPos = promptLength + this.cursorPosition;
13379
+ const promptColumns = 2;
13380
+ const leftText = this.sliceByGraphemes(displayInput, 0, this.cursorPosition);
13381
+ const leftColumns = stringWidth(leftText);
13382
+ const actualCursorPos = promptColumns + leftColumns;
13234
13383
  readline__namespace.cursorTo(process.stdout, actualCursorPos);
13235
13384
  }
13385
+ /**
13386
+ * Count graphemes (visible characters)
13387
+ */
13388
+ countGraphemes(input3) {
13389
+ if (!input3) return 0;
13390
+ if (this.segmenter) {
13391
+ let count = 0;
13392
+ for (const _ of this.segmenter.segment(input3)) count++;
13393
+ return count;
13394
+ }
13395
+ return Array.from(input3).length;
13396
+ }
13397
+ /**
13398
+ * Slice string by grapheme indices [start, end)
13399
+ */
13400
+ sliceByGraphemes(input3, start, end) {
13401
+ if (!input3) return "";
13402
+ if (start < 0) start = 0;
13403
+ if (end !== void 0 && end < start) end = start;
13404
+ if (this.segmenter) {
13405
+ const segs = Array.from(this.segmenter.segment(input3));
13406
+ const s3 = Math.min(start, segs.length);
13407
+ const e3 = end === void 0 ? segs.length : Math.min(end, segs.length);
13408
+ return segs.slice(s3, e3).map((seg) => seg.segment).join("");
13409
+ }
13410
+ const arr = Array.from(input3);
13411
+ const s2 = Math.min(start, arr.length);
13412
+ const e2 = end === void 0 ? arr.length : Math.min(end, arr.length);
13413
+ return arr.slice(s2, e2).join("");
13414
+ }
13236
13415
  /**
13237
13416
  * Update only the selection indicator without redrawing the entire box
13238
13417
  */
@@ -13240,14 +13419,15 @@ var init_interactive_cli = __esm({
13240
13419
  if (!this.isShowingSuggestions || this.suggestions.length === 0) {
13241
13420
  return;
13242
13421
  }
13243
- const promptLength = 2;
13244
- const savedX = this.cursorPosition + promptLength;
13422
+ const promptColumns = 2;
13423
+ const leftText = this.sliceByGraphemes(this.currentInput, 0, this.cursorPosition);
13424
+ const savedX = promptColumns + stringWidth(leftText);
13245
13425
  readline__namespace.moveCursor(process.stdout, 0, 2);
13246
13426
  this.suggestions.forEach((suggestion, index2) => {
13247
13427
  const isSelected = index2 === this.selectedIndex;
13248
- const prefix = isSelected ? chalk28__default.default.cyan("\u25BA ") : " ";
13249
- const nameStyle = isSelected ? chalk28__default.default.inverse.white : chalk28__default.default.white;
13250
- const descStyle = isSelected ? chalk28__default.default.inverse.gray : chalk28__default.default.gray;
13428
+ const prefix = isSelected ? chalk29__default.default.cyan("\u25BA ") : " ";
13429
+ const nameStyle = isSelected ? chalk29__default.default.inverse.white : chalk29__default.default.white;
13430
+ const descStyle = isSelected ? chalk29__default.default.inverse.gray : chalk29__default.default.gray;
13251
13431
  const name2 = suggestion.name.padEnd(15);
13252
13432
  const desc = suggestion.description.length > 40 ? suggestion.description.substring(0, 37) + "..." : suggestion.description;
13253
13433
  readline__namespace.cursorTo(process.stdout, 0);
@@ -13265,23 +13445,24 @@ var init_interactive_cli = __esm({
13265
13445
  * Render autocomplete suggestions - downward only
13266
13446
  */
13267
13447
  renderSuggestionsDownward() {
13268
- const promptLength = 2;
13269
- const savedX = this.cursorPosition + promptLength;
13448
+ const promptColumns = 2;
13449
+ const leftText = this.sliceByGraphemes(this.currentInput, 0, this.cursorPosition);
13450
+ const savedX = promptColumns + stringWidth(leftText);
13270
13451
  process.stdout.write("\n");
13271
- process.stdout.write(chalk28__default.default.white("\u256D\u2500\u2500\u2500\u2500 Command Suggestions \u2500\u2500\u2500\u2500\u256E\n"));
13452
+ process.stdout.write(chalk29__default.default.white("\u256D\u2500\u2500\u2500\u2500 Command Suggestions \u2500\u2500\u2500\u2500\u256E\n"));
13272
13453
  this.suggestions.forEach((suggestion, index2) => {
13273
13454
  const isSelected = index2 === this.selectedIndex;
13274
- const prefix = isSelected ? chalk28__default.default.cyan("\u25BA ") : " ";
13275
- const nameStyle = isSelected ? chalk28__default.default.inverse.white : chalk28__default.default.white;
13276
- const descStyle = isSelected ? chalk28__default.default.inverse.gray : chalk28__default.default.gray;
13455
+ const prefix = isSelected ? chalk29__default.default.cyan("\u25BA ") : " ";
13456
+ const nameStyle = isSelected ? chalk29__default.default.inverse.white : chalk29__default.default.white;
13457
+ const descStyle = isSelected ? chalk29__default.default.inverse.gray : chalk29__default.default.gray;
13277
13458
  const name2 = suggestion.name.padEnd(15);
13278
13459
  const desc = suggestion.description.length > 40 ? suggestion.description.substring(0, 37) + "..." : suggestion.description;
13279
13460
  process.stdout.write(`${prefix}${nameStyle(name2)} ${descStyle(desc)}
13280
13461
  `);
13281
13462
  });
13282
- process.stdout.write(chalk28__default.default.white("\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F\n"));
13463
+ process.stdout.write(chalk29__default.default.white("\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F\n"));
13283
13464
  process.stdout.write(
13284
- chalk28__default.default.dim("\u2191/\u2193: Navigate \u2022 Tab/Enter: Select \u2022 Esc: Cancel")
13465
+ chalk29__default.default.dim("\u2191/\u2193: Navigate \u2022 Tab/Enter: Select \u2022 Esc: Cancel")
13285
13466
  );
13286
13467
  const totalLines = this.suggestions.length + 4;
13287
13468
  readline__namespace.moveCursor(process.stdout, 0, -totalLines);
@@ -13381,27 +13562,27 @@ var init_logger = __esm({
13381
13562
  }
13382
13563
  debug(...args2) {
13383
13564
  if (this.level <= 0 /* DEBUG */) {
13384
- console.log(chalk28__default.default.magenta(`${this.prefix} [DEBUG]`), ...args2);
13565
+ console.log(chalk29__default.default.magenta(`${this.prefix} [DEBUG]`), ...args2);
13385
13566
  }
13386
13567
  }
13387
13568
  info(...args2) {
13388
13569
  if (this.level <= 1 /* INFO */) {
13389
- console.log(chalk28__default.default.bold.magenta(`${this.prefix} [INFO]`), ...args2);
13570
+ console.log(chalk29__default.default.bold.magenta(`${this.prefix} [INFO]`), ...args2);
13390
13571
  }
13391
13572
  }
13392
13573
  warn(...args2) {
13393
13574
  if (this.level <= 2 /* WARN */) {
13394
- console.warn(chalk28__default.default.bold.magenta(`${this.prefix} [WARN]`), ...args2);
13575
+ console.warn(chalk29__default.default.bold.magenta(`${this.prefix} [WARN]`), ...args2);
13395
13576
  }
13396
13577
  }
13397
13578
  error(...args2) {
13398
13579
  if (this.level <= 3 /* ERROR */) {
13399
- console.error(chalk28__default.default.bold.magenta(`${this.prefix} [ERROR]`), ...args2);
13580
+ console.error(chalk29__default.default.bold.magenta(`${this.prefix} [ERROR]`), ...args2);
13400
13581
  }
13401
13582
  }
13402
13583
  success(...args2) {
13403
13584
  if (this.level <= 1 /* INFO */) {
13404
- console.log(chalk28__default.default.bold.magenta(`${this.prefix} [SUCCESS]`), ...args2);
13585
+ console.log(chalk29__default.default.bold.magenta(`${this.prefix} [SUCCESS]`), ...args2);
13405
13586
  }
13406
13587
  }
13407
13588
  task(taskName, status, message) {
@@ -13415,10 +13596,10 @@ var init_logger = __esm({
13415
13596
  error: "\u274C"
13416
13597
  };
13417
13598
  const statusColors = {
13418
- start: chalk28__default.default.bold.magenta,
13419
- progress: chalk28__default.default.magenta,
13420
- complete: chalk28__default.default.bold.magenta,
13421
- error: chalk28__default.default.bold.magenta
13599
+ start: chalk29__default.default.bold.magenta,
13600
+ progress: chalk29__default.default.magenta,
13601
+ complete: chalk29__default.default.bold.magenta,
13602
+ error: chalk29__default.default.bold.magenta
13422
13603
  };
13423
13604
  const icon = statusIcons[status];
13424
13605
  const color = statusColors[status];
@@ -13435,14 +13616,14 @@ var init_logger = __esm({
13435
13616
  if (this.level > 0 /* DEBUG */) {
13436
13617
  return;
13437
13618
  }
13438
- console.log(chalk28__default.default.magenta(`${this.prefix} [JSON]`));
13619
+ console.log(chalk29__default.default.magenta(`${this.prefix} [JSON]`));
13439
13620
  console.log(pretty ? JSON.stringify(obj, null, 2) : JSON.stringify(obj));
13440
13621
  }
13441
13622
  divider() {
13442
13623
  if (this.level > 1 /* INFO */) {
13443
13624
  return;
13444
13625
  }
13445
- console.log(chalk28__default.default.magenta("\u2500".repeat(60)));
13626
+ console.log(chalk29__default.default.magenta("\u2500".repeat(60)));
13446
13627
  }
13447
13628
  clear() {
13448
13629
  console.clear();
@@ -13462,7 +13643,7 @@ var init_logger = __esm({
13462
13643
  const progressText = `${current}/${total}`;
13463
13644
  const labelText = label ? ` ${label}` : "";
13464
13645
  process.stdout.write(
13465
- `\r${chalk28__default.default.bold.magenta(bar)} ${percentage}% ${progressText}${labelText}`
13646
+ `\r${chalk29__default.default.bold.magenta(bar)} ${percentage}% ${progressText}${labelText}`
13466
13647
  );
13467
13648
  if (current === total) {
13468
13649
  process.stdout.write("\n");
@@ -15072,9 +15253,9 @@ var init_HelpCommand = __esm({
15072
15253
  const stats = await this.readyService.getStatistics();
15073
15254
  const lines = [];
15074
15255
  lines.push("\u2550".repeat(60));
15075
- lines.push(chalk28__default.default.bold(`${stats.totalReady} READY Commands | ${stats.categoriesCount} Categories`));
15256
+ lines.push(chalk29__default.default.bold(`${stats.totalReady} READY Commands | ${stats.categoriesCount} Categories`));
15076
15257
  lines.push("");
15077
- lines.push(chalk28__default.default.bold("Quick Access:"));
15258
+ lines.push(chalk29__default.default.bold("Quick Access:"));
15078
15259
  lines.push(" /help <command> - Detailed help for specific command");
15079
15260
  lines.push(" /help --quickstart - Essential commands for new users");
15080
15261
  lines.push(" /help --stats - Performance statistics");
@@ -15089,7 +15270,7 @@ var init_HelpCommand = __esm({
15089
15270
  }
15090
15271
  globalMaxNameLength = Math.max(globalMaxNameLength, 18) + 1;
15091
15272
  for (const category of categories2) {
15092
- lines.push(chalk28__default.default.bold(`${category.name.toUpperCase()} (${category.count})`));
15273
+ lines.push(chalk29__default.default.bold(`${category.name.toUpperCase()} (${category.count})`));
15093
15274
  const showCommands = category.commands.slice(0, 4);
15094
15275
  for (const cmd of showCommands) {
15095
15276
  const needsGpu = this.hasGpuRequirement(cmd.description);
@@ -15109,7 +15290,7 @@ var init_HelpCommand = __esm({
15109
15290
  }
15110
15291
  lines.push("");
15111
15292
  }
15112
- lines.push(chalk28__default.default.bold("Pro Tips:"));
15293
+ lines.push(chalk29__default.default.bold("Pro Tips:"));
15113
15294
  lines.push(" \u2022 All listed commands are production-ready");
15114
15295
  lines.push(" \u2022 Use fuzzy search: /help --search config \u2192 finds /config");
15115
15296
  lines.push(" \u2022 Categories ordered by importance");
@@ -15148,33 +15329,33 @@ var init_HelpCommand = __esm({
15148
15329
  formatCommandHelp(command) {
15149
15330
  const lines = [];
15150
15331
  lines.push("");
15151
- lines.push(`\u{1F4D6} ${chalk28__default.default.bold(`/${command.name}`)} - ${command.description}`);
15332
+ lines.push(`\u{1F4D6} ${chalk29__default.default.bold(`/${command.name}`)} - ${command.description}`);
15152
15333
  lines.push("\u2550".repeat(50));
15153
15334
  lines.push("");
15154
- lines.push(chalk28__default.default.bold("\u2139\uFE0F Information:"));
15335
+ lines.push(chalk29__default.default.bold("\u2139\uFE0F Information:"));
15155
15336
  lines.push(` Category: ${this.readyService["getCategoryEmoji"](command.category)} ${command.category}`);
15156
15337
  lines.push(` Status: \u2705 READY (contract validated)`);
15157
15338
  if (command.aliases && command.aliases.length > 0) {
15158
15339
  lines.push(` Aliases: ${command.aliases.map((a2) => `/${a2}`).join(", ")}`);
15159
15340
  }
15160
15341
  lines.push("");
15161
- lines.push(chalk28__default.default.bold("\u{1F3AF} Usage:"));
15342
+ lines.push(chalk29__default.default.bold("\u{1F3AF} Usage:"));
15162
15343
  lines.push(` ${command.usage}`);
15163
15344
  lines.push("");
15164
- lines.push(chalk28__default.default.bold("\u{1F4CB} Contract Validation:"));
15345
+ lines.push(chalk29__default.default.bold("\u{1F4CB} Contract Validation:"));
15165
15346
  lines.push(` \u26A1 Performance: ${command.contract.maxResponseTime}ms (tested)`);
15166
15347
  lines.push(` \u{1F4BB} TTY Mode: ${command.contract.tty ? "\u2705 Supported" : "\u274C Not supported"}`);
15167
15348
  lines.push(` \u{1F527} Non-TTY Mode: ${command.contract.nonTty ? "\u2705 Supported" : "\u274C Not supported"}`);
15168
15349
  lines.push(` \u{1F500} Pipe Mode: ${command.contract.pipe ? "\u2705 Supported" : "\u274C Not supported"}`);
15169
15350
  lines.push("");
15170
15351
  if (command.examples && command.examples.length > 0) {
15171
- lines.push(chalk28__default.default.bold("\u{1F4DD} Examples:"));
15352
+ lines.push(chalk29__default.default.bold("\u{1F4DD} Examples:"));
15172
15353
  for (const example of command.examples) {
15173
15354
  lines.push(` ${example}`);
15174
15355
  }
15175
15356
  lines.push("");
15176
15357
  }
15177
- lines.push(chalk28__default.default.bold("\u{1F4A1} Quick Tips:"));
15358
+ lines.push(chalk29__default.default.bold("\u{1F4A1} Quick Tips:"));
15178
15359
  lines.push(` \u2022 This command is production-ready and fully tested`);
15179
15360
  lines.push(` \u2022 Try /${command.name} --help for additional options`);
15180
15361
  if (command.category !== "core") {
@@ -15225,7 +15406,7 @@ var init_HelpCommand = __esm({
15225
15406
  };
15226
15407
  const emoji = emojiMap[categoryName.toLowerCase()] || "\u{1F4CB}";
15227
15408
  lines.push("");
15228
- lines.push(`${emoji} ${chalk28__default.default.bold(categoryName.toUpperCase() + " COMMANDS")} (${commands.length} READY)`);
15409
+ lines.push(`${emoji} ${chalk29__default.default.bold(categoryName.toUpperCase() + " COMMANDS")} (${commands.length} READY)`);
15229
15410
  lines.push("\u2550".repeat(50));
15230
15411
  lines.push("");
15231
15412
  const maxNameLength = Math.max(...commands.map((c) => c.name.length)) + 1;
@@ -15259,7 +15440,7 @@ var init_HelpCommand = __esm({
15259
15440
  formatSearchResults(searchTerm, results) {
15260
15441
  const lines = [];
15261
15442
  lines.push("");
15262
- lines.push(`\u{1F50D} ${chalk28__default.default.bold("SEARCH RESULTS")} for "${searchTerm}" (${results.length} matches)`);
15443
+ lines.push(`\u{1F50D} ${chalk29__default.default.bold("SEARCH RESULTS")} for "${searchTerm}" (${results.length} matches)`);
15263
15444
  lines.push("\u2550".repeat(50));
15264
15445
  lines.push("");
15265
15446
  for (const result2 of results) {
@@ -15272,7 +15453,7 @@ var init_HelpCommand = __esm({
15272
15453
  }
15273
15454
  lines.push("");
15274
15455
  }
15275
- lines.push(chalk28__default.default.bold("\u{1F4A1} Tip:") + " Higher scores indicate better matches");
15456
+ lines.push(chalk29__default.default.bold("\u{1F4A1} Tip:") + " Higher scores indicate better matches");
15276
15457
  lines.push("");
15277
15458
  return lines.join("\n");
15278
15459
  }
@@ -15283,38 +15464,38 @@ var init_HelpCommand = __esm({
15283
15464
  const quickCommands = await this.readyService.getQuickStartCommands();
15284
15465
  const lines = [];
15285
15466
  lines.push("");
15286
- lines.push(`\u{1F680} ${chalk28__default.default.bold("MARIA QUICKSTART")} - Essential Commands`);
15467
+ lines.push(`\u{1F680} ${chalk29__default.default.bold("MARIA QUICKSTART")} - Essential Commands`);
15287
15468
  lines.push("\u2550".repeat(50));
15288
15469
  lines.push("");
15289
- lines.push(chalk28__default.default.bold("\u{1F3AF} Get Started in 3 Steps:"));
15470
+ lines.push(chalk29__default.default.bold("\u{1F3AF} Get Started in 3 Steps:"));
15290
15471
  lines.push("");
15291
- lines.push(chalk28__default.default.bold("1\uFE0F\u20E3 Configure Your AI Provider"));
15472
+ lines.push(chalk29__default.default.bold("1\uFE0F\u20E3 Configure Your AI Provider"));
15292
15473
  const modelCmd = quickCommands.find((c) => c.name === "model");
15293
15474
  if (modelCmd) {
15294
15475
  lines.push(` /${modelCmd.name} - ${modelCmd.description}`);
15295
15476
  lines.push(` Try: /model set provider=openai key=sk-...`);
15296
15477
  }
15297
15478
  lines.push("");
15298
- lines.push(chalk28__default.default.bold("2\uFE0F\u20E3 Check System Status"));
15479
+ lines.push(chalk29__default.default.bold("2\uFE0F\u20E3 Check System Status"));
15299
15480
  const statusCmd = quickCommands.find((c) => c.name === "status");
15300
15481
  if (statusCmd) {
15301
15482
  lines.push(` /${statusCmd.name} - ${statusCmd.description}`);
15302
15483
  lines.push(` Try: /status`);
15303
15484
  }
15304
15485
  lines.push("");
15305
- lines.push(chalk28__default.default.bold("3\uFE0F\u20E3 Start Coding"));
15486
+ lines.push(chalk29__default.default.bold("3\uFE0F\u20E3 Start Coding"));
15306
15487
  const codeCmd = quickCommands.find((c) => c.name === "code");
15307
15488
  if (codeCmd) {
15308
15489
  lines.push(` /${codeCmd.name} - ${codeCmd.description}`);
15309
15490
  lines.push(` Try: /code create a hello world function`);
15310
15491
  }
15311
15492
  lines.push("");
15312
- lines.push(chalk28__default.default.bold("\u{1F527} Essential Commands:"));
15493
+ lines.push(chalk29__default.default.bold("\u{1F527} Essential Commands:"));
15313
15494
  for (const cmd of quickCommands) {
15314
15495
  lines.push(` /${cmd.name.padEnd(12)} - ${cmd.description}`);
15315
15496
  }
15316
15497
  lines.push("");
15317
- lines.push(chalk28__default.default.bold("\u{1F4A1} Next Steps:"));
15498
+ lines.push(chalk29__default.default.bold("\u{1F4A1} Next Steps:"));
15318
15499
  lines.push(" \u2022 /help --category <name> - Explore command categories");
15319
15500
  lines.push(" \u2022 /help --search <term> - Find specific functionality");
15320
15501
  lines.push(" \u2022 /help <command> - Get detailed command help");
@@ -15329,20 +15510,20 @@ var init_HelpCommand = __esm({
15329
15510
  const categories2 = await this.readyService.getCategories();
15330
15511
  const lines = [];
15331
15512
  lines.push("");
15332
- lines.push(`\u{1F4CA} ${chalk28__default.default.bold("READY COMMANDS STATISTICS")}`);
15513
+ lines.push(`\u{1F4CA} ${chalk29__default.default.bold("READY COMMANDS STATISTICS")}`);
15333
15514
  lines.push("\u2550".repeat(40));
15334
15515
  lines.push("");
15335
- lines.push(chalk28__default.default.bold("\u{1F3AF} Overall:"));
15516
+ lines.push(chalk29__default.default.bold("\u{1F3AF} Overall:"));
15336
15517
  lines.push(` Total READY Commands: ${stats.totalReady}`);
15337
15518
  lines.push(` Categories: ${stats.categoriesCount}`);
15338
15519
  lines.push(` Last Updated: ${stats.lastUpdated?.toLocaleString() || "Unknown"}`);
15339
15520
  lines.push("");
15340
- lines.push(chalk28__default.default.bold("\u26A1 Performance:"));
15521
+ lines.push(chalk29__default.default.bold("\u26A1 Performance:"));
15341
15522
  lines.push(` Average Response Time: ${stats.avgResponseTime}ms`);
15342
15523
  lines.push(` Fastest Command: /${stats.fastestCommand}`);
15343
15524
  lines.push(` Slowest Command: /${stats.slowestCommand}`);
15344
15525
  lines.push("");
15345
- lines.push(chalk28__default.default.bold("\u{1F4CB} By Category:"));
15526
+ lines.push(chalk29__default.default.bold("\u{1F4CB} By Category:"));
15346
15527
  for (const category of categories2) {
15347
15528
  const avgTime = Math.round(
15348
15529
  category.commands.reduce((sum, cmd) => sum + cmd.contract.maxResponseTime, 0) / category.commands.length
@@ -15350,7 +15531,7 @@ var init_HelpCommand = __esm({
15350
15531
  lines.push(` ${category.emoji} ${category.name.padEnd(15)}: ${category.count.toString().padStart(2)} commands (${avgTime}ms avg)`);
15351
15532
  }
15352
15533
  lines.push("");
15353
- lines.push(chalk28__default.default.bold("\u2705 Contract Validation:"));
15534
+ lines.push(chalk29__default.default.bold("\u2705 Contract Validation:"));
15354
15535
  lines.push(" All commands tested for:");
15355
15536
  lines.push(" \u2022 Basic execution without crashes");
15356
15537
  lines.push(" \u2022 TTY/non-TTY/pipe compatibility");
@@ -15413,7 +15594,7 @@ var init_VersionCommand = __esm({
15413
15594
  if (context2.apiVersion) {
15414
15595
  apiBuild = ` \xB7 API: ${context2.apiVersion}`;
15415
15596
  }
15416
- const output3 = `${chalk28__default.default.bold("MARIA")} v${version}${apiBuild} \xB7 Node: ${process.version}`;
15597
+ const output3 = `${chalk29__default.default.bold("MARIA")} v${version}${apiBuild} \xB7 Node: ${process.version}`;
15417
15598
  await trackCommand({
15418
15599
  cmd: "version",
15419
15600
  status: "success",
@@ -15430,7 +15611,7 @@ var init_VersionCommand = __esm({
15430
15611
  plan: getUserPlan(),
15431
15612
  quotaLeft: context2.quotaLeft || 999
15432
15613
  });
15433
- return this.success(`${chalk28__default.default.bold("MARIA")} v${getVersion()}`);
15614
+ return this.success(`${chalk29__default.default.bold("MARIA")} v${getVersion()}`);
15434
15615
  }
15435
15616
  }
15436
15617
  };
@@ -15777,7 +15958,7 @@ var init_setup_command = __esm({
15777
15958
  if (flags["advanced"]) {
15778
15959
  return await this.advancedSetup(context2);
15779
15960
  }
15780
- if (flags["silent"] && options2["_config"]) {
15961
+ if (flags["silent"] && typeof options2["_config"] === "string" && options2["_config"].length > 0) {
15781
15962
  return await this.silentSetup(context2, options2["_config"]);
15782
15963
  }
15783
15964
  return await this.interactiveSetup(context2);
@@ -15837,15 +16018,14 @@ var init_setup_command = __esm({
15837
16018
  await this.showSuccessMessage(result2);
15838
16019
  result2.success = true;
15839
16020
  result2.duration = Date.now() - _startTime;
15840
- return this.success("\u{1F389} Setup completed successfully!", {
15841
- result: result2,
15842
- nextSteps: [
15843
- "Try: maria chat - Start interactive mode",
15844
- 'Try: maria code "create a React component"',
15845
- "Try: maria test - Generate tests",
15846
- "Try: maria help - View all commands"
15847
- ]
15848
- });
16021
+ const nextSteps = [
16022
+ "Try: maria chat - Start interactive mode",
16023
+ 'Try: maria code "create a React component"',
16024
+ "Try: maria test - Generate tests",
16025
+ "Try: maria help - View all commands"
16026
+ ];
16027
+ const output3 = this.formatSetupSuccess(result2, nextSteps);
16028
+ return this.success(output3);
15849
16029
  } catch (innerError) {
15850
16030
  result2.success = false;
15851
16031
  result2.duration = Date.now() - _startTime;
@@ -15881,14 +16061,10 @@ var init_setup_command = __esm({
15881
16061
  errors: [],
15882
16062
  warnings: []
15883
16063
  });
15884
- return this.success("\u26A1 Quick setup completed in under 2 minutes!", {
15885
- mode: "quick",
15886
- configured: ["OpenAI GPT-4", "Environment variables", "Git ignore"],
15887
- nextSteps: [
15888
- "Run: maria chat",
15889
- 'Try: maria code "Hello World function"'
15890
- ]
15891
- });
16064
+ const message = chalk29__default.default.green(
16065
+ '\u26A1 Quick setup completed in under 2 minutes!\n \u2022 Configured: OpenAI GPT-4, Environment variables, Git ignore\n \u2022 Next: Run `maria chat` or try `maria code "Hello World function"`'
16066
+ );
16067
+ return this.success(message);
15892
16068
  } catch (error2) {
15893
16069
  logger.error("Quick setup failed:", error2);
15894
16070
  return this.error(
@@ -16075,23 +16251,72 @@ Estimated time: 3-5 minutes
16075
16251
  `);
16076
16252
  }
16077
16253
  async showSuccessMessage(result2) {
16078
- logger.info(`
16079
- \u{1F389} Setup Complete! Welcome to MARIA CODE!
16080
-
16081
- \u2705 Environment configured
16082
- \u2705 AI providers connected: ${result2.providersConfigured.join(", ")}
16083
- \u2705 Project initialized
16084
- \u2705 All validation tests passed
16085
-
16086
- \u{1F680} Ready to start! Try these commands:
16087
- \u2022 maria chat - Start interactive mode
16088
- \u2022 maria code "create a React component"
16089
- \u2022 maria test - Generate tests
16090
- \u2022 maria help - View all commands
16091
-
16092
- Setup completed in ${Math.round(result2.duration / 1e3)}s
16093
- Happy coding! \u{1F680}
16094
- `);
16254
+ const lines = [];
16255
+ const durationSec = Math.max(1, Math.round(result2.duration / 1e3));
16256
+ const providers = result2.providersConfigured.length > 0 ? result2.providersConfigured.join(", ") : "none";
16257
+ const files = result2.filesGenerated.length > 0 ? result2.filesGenerated.join(", ") : "none";
16258
+ lines.push("");
16259
+ lines.push(chalk29__default.default.green.bold("\u{1F389} Setup Complete! Welcome to MARIA CODE!"));
16260
+ lines.push("");
16261
+ lines.push(chalk29__default.default.white(`\u2022 Status: ${chalk29__default.default.green("success")}`));
16262
+ lines.push(chalk29__default.default.white(`\u2022 Duration: ${chalk29__default.default.cyan(`${durationSec}s`)}`));
16263
+ lines.push(
16264
+ chalk29__default.default.white(
16265
+ `\u2022 Steps: ${chalk29__default.default.cyan(
16266
+ result2.stepsCompleted.map((s2) => s2.replace(/^_/, "")).join(", ") || "none"
16267
+ )}`
16268
+ )
16269
+ );
16270
+ lines.push(chalk29__default.default.white(`\u2022 Providers: ${chalk29__default.default.cyan(providers)}`));
16271
+ lines.push(chalk29__default.default.white(`\u2022 Files: ${chalk29__default.default.cyan(files)}`));
16272
+ if (result2.warnings.length > 0) {
16273
+ lines.push(
16274
+ chalk29__default.default.yellow(
16275
+ `\u2022 Warnings: ${result2.warnings.map((w) => w.replace(/^_/, "")).join(", ")}`
16276
+ )
16277
+ );
16278
+ }
16279
+ if (result2.errors.length > 0) {
16280
+ lines.push(chalk29__default.default.red(`\u2022 Errors: ${result2.errors.join(", ")}`));
16281
+ }
16282
+ lines.push("");
16283
+ lines.push(chalk29__default.default.white("\u{1F680} Ready to start! Try:"));
16284
+ lines.push(chalk29__default.default.white(" - maria chat \xB7 Start interactive mode"));
16285
+ lines.push(chalk29__default.default.white(' - maria code "create a React component"'));
16286
+ lines.push(chalk29__default.default.white(" - maria test \xB7 Generate tests"));
16287
+ lines.push(chalk29__default.default.white(" - maria help \xB7 View all commands"));
16288
+ lines.push("");
16289
+ lines.push(chalk29__default.default.green(`Setup completed in ${durationSec}s \xB7 Happy coding! \u{1F680}`));
16290
+ logger.info(lines.join("\n"));
16291
+ }
16292
+ /**
16293
+ * Build a green, human-readable success summary for CLI output
16294
+ */
16295
+ formatSetupSuccess(result2, nextSteps) {
16296
+ const durationSec = Math.max(1, Math.round(result2.duration / 1e3));
16297
+ const providers = result2.providersConfigured.length > 0 ? result2.providersConfigured.join(", ") : "none";
16298
+ const files = result2.filesGenerated.length > 0 ? result2.filesGenerated.join(", ") : "none";
16299
+ const steps = result2.stepsCompleted.map((s2) => s2.replace(/^_/, "")).join(", ") || "none";
16300
+ const lines = [];
16301
+ lines.push(chalk29__default.default.green.bold("\u{1F389} Setup completed successfully!"));
16302
+ lines.push("");
16303
+ lines.push(chalk29__default.default.green(`\u2022 Status: success`));
16304
+ lines.push(chalk29__default.default.green(`\u2022 Duration: ${durationSec}s`));
16305
+ lines.push(chalk29__default.default.green(`\u2022 Steps: ${steps}`));
16306
+ lines.push(chalk29__default.default.green(`\u2022 Providers: ${providers}`));
16307
+ lines.push(chalk29__default.default.green(`\u2022 Files: ${files}`));
16308
+ if (result2.warnings.length > 0) {
16309
+ lines.push(chalk29__default.default.yellow(`\u2022 Warnings: ${result2.warnings.map((w) => w.replace(/^_/, "")).join(", ")}`));
16310
+ }
16311
+ if (result2.errors.length > 0) {
16312
+ lines.push(chalk29__default.default.red(`\u2022 Errors: ${result2.errors.join(", ")}`));
16313
+ }
16314
+ if (nextSteps.length > 0) {
16315
+ lines.push("");
16316
+ lines.push(chalk29__default.default.green("Next steps:"));
16317
+ nextSteps.forEach((s2) => lines.push(chalk29__default.default.green(` - ${s2}`)));
16318
+ }
16319
+ return lines.join("\n");
16095
16320
  }
16096
16321
  // Helper methods
16097
16322
  async fileExists(_filePath) {
@@ -19671,8 +19896,8 @@ var require_package = __commonJS({
19671
19896
  "package.json"(exports, module) {
19672
19897
  module.exports = {
19673
19898
  name: "@bonginkan/maria",
19674
- version: "4.2.24",
19675
- description: "\u{1F680} MARIA v4.2.24 - Enterprise AI Development Platform with 100% Command Availability. Features 74 production-ready commands with comprehensive fallback implementation, local LLM support, and zero external dependencies. Includes natural language coding, AI safety evaluation, intelligent evolution system, episodic memory with PII masking, and real-time monitoring dashboard. Built with TypeScript AST-powered code generation, OAuth2.0 + PKCE authentication, quantum-resistant cryptography, and enterprise-grade performance.",
19899
+ version: "4.2.26",
19900
+ description: "\u{1F680} MARIA v4.2.26 - Enterprise AI Development Platform with 100% Command Availability. Features 74 production-ready commands with comprehensive fallback implementation, local LLM support, and zero external dependencies. Includes natural language coding, AI safety evaluation, intelligent evolution system, episodic memory with PII masking, and real-time monitoring dashboard. Built with TypeScript AST-powered code generation, OAuth2.0 + PKCE authentication, quantum-resistant cryptography, and enterprise-grade performance.",
19676
19901
  keywords: [
19677
19902
  "ai",
19678
19903
  "cli",
@@ -31052,7 +31277,7 @@ var init_clear_command = __esm({
31052
31277
  plan: getUserPlan(),
31053
31278
  quotaLeft: context2.quotaLeft || 999
31054
31279
  });
31055
- const message = chalk28__default.default.green("\u2705 Cleared") + chalk28__default.default.gray(" \xB7 context reset");
31280
+ const message = chalk29__default.default.green("\u2705 Cleared") + chalk29__default.default.gray(" \xB7 context reset");
31056
31281
  return this.success(withQuotaFooter(message, context2.quotaLeft));
31057
31282
  } catch (error2) {
31058
31283
  await trackCommand({
@@ -31063,7 +31288,7 @@ var init_clear_command = __esm({
31063
31288
  quotaLeft: context2.quotaLeft || 999
31064
31289
  });
31065
31290
  process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
31066
- return this.success(chalk28__default.default.green("\u2705 Cleared"));
31291
+ return this.success(chalk29__default.default.green("\u2705 Cleared"));
31067
31292
  }
31068
31293
  }
31069
31294
  };
@@ -32095,18 +32320,18 @@ var init_WhoAmICommand = __esm({
32095
32320
  });
32096
32321
  }
32097
32322
  const lines = [];
32098
- lines.push(chalk28__default.default.green("\u2705 Authenticated"));
32323
+ lines.push(chalk29__default.default.green("\u2705 Authenticated"));
32099
32324
  if (user.name) {
32100
- lines.push(chalk28__default.default.white(`\u{1F464} Name: ${chalk28__default.default.cyan(user.name)}`));
32325
+ lines.push(chalk29__default.default.white(`\u{1F464} Name: ${chalk29__default.default.cyan(user.name)}`));
32101
32326
  }
32102
32327
  if (user.email) {
32103
- lines.push(chalk28__default.default.white(`\u{1F4E7} Email: ${chalk28__default.default.cyan(user.email)}`));
32328
+ lines.push(chalk29__default.default.white(`\u{1F4E7} Email: ${chalk29__default.default.cyan(user.email)}`));
32104
32329
  }
32105
32330
  if (user.provider) {
32106
- lines.push(chalk28__default.default.white(`\u{1F511} Provider: ${chalk28__default.default.cyan(user.provider)}`));
32331
+ lines.push(chalk29__default.default.white(`\u{1F511} Provider: ${chalk29__default.default.cyan(user.provider)}`));
32107
32332
  }
32108
32333
  if (user.plan) {
32109
- lines.push(chalk28__default.default.white(`\u{1F48E} Plan: ${chalk28__default.default.cyan(user.plan)}`));
32334
+ lines.push(chalk29__default.default.white(`\u{1F48E} Plan: ${chalk29__default.default.cyan(user.plan)}`));
32110
32335
  }
32111
32336
  return this.success(lines.join("\n"), { authenticated: true, user });
32112
32337
  }
@@ -32133,40 +32358,40 @@ var init_about_command = __esm({
32133
32358
  async execute(args2, context2) {
32134
32359
  const output3 = [];
32135
32360
  output3.push("");
32136
- output3.push(chalk28__default.default.cyan.bold("\u{1F916} About MARIA v4.2.24"));
32137
- output3.push(chalk28__default.default.gray("\u2550".repeat(40)));
32361
+ output3.push(chalk29__default.default.cyan.bold("\u{1F916} About MARIA v4.2.26"));
32362
+ output3.push(chalk29__default.default.gray("\u2550".repeat(40)));
32138
32363
  output3.push("");
32139
- output3.push(chalk28__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
32364
+ output3.push(chalk29__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
32140
32365
  output3.push("");
32141
- output3.push(chalk28__default.default.white("\u{1F3AF} Revolutionary AI Development Platform:"));
32366
+ output3.push(chalk29__default.default.white("\u{1F3AF} Revolutionary AI Development Platform:"));
32142
32367
  output3.push(" \u2022 Natural Language Code Operations");
32143
32368
  output3.push(" \u2022 Graph RAG Knowledge System");
32144
32369
  output3.push(" \u2022 Dual Memory Architecture");
32145
32370
  output3.push(" \u2022 Enterprise-Grade Security");
32146
32371
  output3.push(" \u2022 Multimodal AI Generation");
32147
32372
  output3.push("");
32148
- output3.push(chalk28__default.default.white("\u{1F31F} Key Features:"));
32373
+ output3.push(chalk29__default.default.white("\u{1F31F} Key Features:"));
32149
32374
  output3.push(" \u2022 /code - Natural language coding");
32150
32375
  output3.push(" \u2022 68+ Slash Commands");
32151
32376
  output3.push(" \u2022 8 AI Provider Support");
32152
32377
  output3.push(" \u2022 Business Operations Suite");
32153
32378
  output3.push(" \u2022 Real-time Streaming");
32154
32379
  output3.push("");
32155
- output3.push(chalk28__default.default.white("\u{1F468}\u200D\u{1F4BB} Created by:"));
32380
+ output3.push(chalk29__default.default.white("\u{1F468}\u200D\u{1F4BB} Created by:"));
32156
32381
  output3.push(" \u2022 Bonginkan Team");
32157
32382
  output3.push(" \u2022 Enterprise AI Solutions");
32158
32383
  output3.push("");
32159
- output3.push(chalk28__default.default.white("\u{1F517} Links:"));
32160
- output3.push(chalk28__default.default.blue(" Website: https://maria-code.ai"));
32161
- output3.push(chalk28__default.default.blue(" Company: https://bonginkan.ai"));
32162
- output3.push(chalk28__default.default.blue(" Discord: https://discord.gg/SMSmSGcEQy"));
32163
- output3.push(chalk28__default.default.blue(" GitHub: https://github.com/bonginkan/maria"));
32164
- output3.push(chalk28__default.default.blue(" NPM: https://www.npmjs.com/package/@bonginkan/maria"));
32384
+ output3.push(chalk29__default.default.white("\u{1F517} Links:"));
32385
+ output3.push(chalk29__default.default.blue(" Website: https://maria-code.ai"));
32386
+ output3.push(chalk29__default.default.blue(" Company: https://bonginkan.ai"));
32387
+ output3.push(chalk29__default.default.blue(" Discord: https://discord.gg/SMSmSGcEQy"));
32388
+ output3.push(chalk29__default.default.blue(" GitHub: https://github.com/bonginkan/maria"));
32389
+ output3.push(chalk29__default.default.blue(" NPM: https://www.npmjs.com/package/@bonginkan/maria"));
32165
32390
  output3.push("");
32166
- output3.push(chalk28__default.default.white("\u{1F4C4} License: MIT"));
32167
- output3.push(chalk28__default.default.white("\u{1F3D7}\uFE0F Built with: TypeScript, Node.js, React"));
32391
+ output3.push(chalk29__default.default.white("\u{1F4C4} License: MIT"));
32392
+ output3.push(chalk29__default.default.white("\u{1F3D7}\uFE0F Built with: TypeScript, Node.js, React"));
32168
32393
  output3.push("");
32169
- output3.push(chalk28__default.default.green("Thank you for using MARIA! \u{1F680}"));
32394
+ output3.push(chalk29__default.default.green("Thank you for using MARIA! \u{1F680}"));
32170
32395
  output3.push("");
32171
32396
  return {
32172
32397
  success: true,
@@ -34185,8 +34410,8 @@ var init_ConfigCLI = __esm({
34185
34410
  // Default to interactive
34186
34411
  });
34187
34412
  if (options2.verbose) {
34188
- console.log(chalk28__default.default.gray(`Executing: ${operation} ${args2.join(" ")}`));
34189
- console.log(chalk28__default.default.gray(`Options: ${JSON.stringify(options2, null, 2)}`));
34413
+ console.log(chalk29__default.default.gray(`Executing: ${operation} ${args2.join(" ")}`));
34414
+ console.log(chalk29__default.default.gray(`Options: ${JSON.stringify(options2, null, 2)}`));
34190
34415
  }
34191
34416
  const result2 = await command.execute();
34192
34417
  if (result2.endReason === "success") {
@@ -34212,10 +34437,10 @@ var init_ConfigCLI = __esm({
34212
34437
  await this.displayPreview(data2.preview);
34213
34438
  if (data2.dryRun) {
34214
34439
  console.log(
34215
- chalk28__default.default.blue("\n\u{1F4CB} This was a dry run - no changes were applied.")
34440
+ chalk29__default.default.blue("\n\u{1F4CB} This was a dry run - no changes were applied.")
34216
34441
  );
34217
34442
  console.log(
34218
- chalk28__default.default.gray(
34443
+ chalk29__default.default.gray(
34219
34444
  "To apply changes, run the same command without --dry-run"
34220
34445
  )
34221
34446
  );
@@ -34223,30 +34448,30 @@ var init_ConfigCLI = __esm({
34223
34448
  }
34224
34449
  }
34225
34450
  if (data2.message) {
34226
- console.log(chalk28__default.default.green(data2.message));
34451
+ console.log(chalk29__default.default.green(data2.message));
34227
34452
  }
34228
34453
  if (data2.key && data2.value !== void 0) {
34229
- console.log(chalk28__default.default.green(`\u2705 Configuration updated:`));
34454
+ console.log(chalk29__default.default.green(`\u2705 Configuration updated:`));
34230
34455
  console.log(
34231
- ` ${chalk28__default.default.bold(data2.key)}: ${chalk28__default.default.cyan(this.formatValue(data2.value))}`
34456
+ ` ${chalk29__default.default.bold(data2.key)}: ${chalk29__default.default.cyan(this.formatValue(data2.value))}`
34232
34457
  );
34233
34458
  if (data2.layer) {
34234
- console.log(` Layer: ${chalk28__default.default.magenta(data2.layer)}`);
34459
+ console.log(` Layer: ${chalk29__default.default.magenta(data2.layer)}`);
34235
34460
  }
34236
34461
  }
34237
34462
  if (data2.deleted) {
34238
34463
  console.log(
34239
- chalk28__default.default.green(`\u2705 Configuration deleted: ${chalk28__default.default.bold(data2.key)}`)
34464
+ chalk29__default.default.green(`\u2705 Configuration deleted: ${chalk29__default.default.bold(data2.key)}`)
34240
34465
  );
34241
34466
  }
34242
34467
  if (data2.templateId) {
34243
34468
  console.log(
34244
- chalk28__default.default.green(`\u2705 Template applied: ${chalk28__default.default.bold(data2.templateId)}`)
34469
+ chalk29__default.default.green(`\u2705 Template applied: ${chalk29__default.default.bold(data2.templateId)}`)
34245
34470
  );
34246
34471
  }
34247
34472
  if (data2.rolledBack) {
34248
34473
  console.log(
34249
- chalk28__default.default.green(`\u2705 Rolled back to entry: ${chalk28__default.default.bold(data2.entryId)}`)
34474
+ chalk29__default.default.green(`\u2705 Rolled back to entry: ${chalk29__default.default.bold(data2.entryId)}`)
34250
34475
  );
34251
34476
  }
34252
34477
  if (data2.layers) {
@@ -34261,62 +34486,62 @@ var init_ConfigCLI = __esm({
34261
34486
  console.log(JSON.stringify({ error: error2 }, null, 2));
34262
34487
  return;
34263
34488
  }
34264
- console.error(chalk28__default.default.red(`\u274C Error: ${error2}`));
34489
+ console.error(chalk29__default.default.red(`\u274C Error: ${error2}`));
34265
34490
  if (error2.includes("not found")) {
34266
34491
  console.log(
34267
- chalk28__default.default.gray("\nTry: /config list # to see available configurations")
34492
+ chalk29__default.default.gray("\nTry: /config list # to see available configurations")
34268
34493
  );
34269
34494
  }
34270
34495
  if (error2.includes("required")) {
34271
- console.log(chalk28__default.default.gray("\nTry: /config help # to see command syntax"));
34496
+ console.log(chalk29__default.default.gray("\nTry: /config help # to see command syntax"));
34272
34497
  }
34273
34498
  }
34274
34499
  async displayPreview(preview) {
34275
- console.log(chalk28__default.default.bold.cyan("\n\u{1F50D} Configuration Preview\n"));
34276
- console.log(`${chalk28__default.default.bold("Operation:")} ${chalk28__default.default.cyan(preview.operation)}`);
34500
+ console.log(chalk29__default.default.bold.cyan("\n\u{1F50D} Configuration Preview\n"));
34501
+ console.log(`${chalk29__default.default.bold("Operation:")} ${chalk29__default.default.cyan(preview.operation)}`);
34277
34502
  if (preview.key) {
34278
- console.log(`${chalk28__default.default.bold("Key:")} ${chalk28__default.default.yellow(preview.key)}`);
34503
+ console.log(`${chalk29__default.default.bold("Key:")} ${chalk29__default.default.yellow(preview.key)}`);
34279
34504
  }
34280
34505
  if (preview.value !== void 0) {
34281
34506
  console.log(
34282
- `${chalk28__default.default.bold("Value:")} ${chalk28__default.default.green(this.formatValue(preview.value))}`
34507
+ `${chalk29__default.default.bold("Value:")} ${chalk29__default.default.green(this.formatValue(preview.value))}`
34283
34508
  );
34284
34509
  }
34285
34510
  if (preview.changes.length > 0) {
34286
- console.log(chalk28__default.default.bold("\n\u{1F4DD} Changes:"));
34511
+ console.log(chalk29__default.default.bold("\n\u{1F4DD} Changes:"));
34287
34512
  for (const change of preview.changes) {
34288
34513
  this.displayChange(change);
34289
34514
  }
34290
34515
  }
34291
34516
  if (preview.affected.length > 0) {
34292
- console.log(chalk28__default.default.bold("\n\u{1F517} Affected Configurations:"));
34517
+ console.log(chalk29__default.default.bold("\n\u{1F517} Affected Configurations:"));
34293
34518
  for (const affected of preview.affected) {
34294
34519
  this.displayAffectedConfig(affected);
34295
34520
  }
34296
34521
  }
34297
34522
  if (preview.risks.length > 0) {
34298
- console.log(chalk28__default.default.bold("\n\u26A0\uFE0F Safety Analysis:"));
34523
+ console.log(chalk29__default.default.bold("\n\u26A0\uFE0F Safety Analysis:"));
34299
34524
  for (const risk of preview.risks) {
34300
34525
  this.displaySafetyRisk(risk);
34301
34526
  }
34302
34527
  }
34303
34528
  if (!preview.validation.ok) {
34304
- console.log(chalk28__default.default.bold.red("\n\u274C Validation Errors:"));
34529
+ console.log(chalk29__default.default.bold.red("\n\u274C Validation Errors:"));
34305
34530
  if (preview.validation.errors) {
34306
34531
  for (const error2 of preview.validation.errors) {
34307
- console.log(` \u2022 ${chalk28__default.default.red(error2)}`);
34532
+ console.log(` \u2022 ${chalk29__default.default.red(error2)}`);
34308
34533
  }
34309
34534
  }
34310
34535
  } else if (preview.validation.warnings && preview.validation.warnings.length > 0) {
34311
- console.log(chalk28__default.default.bold.yellow("\n\u26A0\uFE0F Validation Warnings:"));
34536
+ console.log(chalk29__default.default.bold.yellow("\n\u26A0\uFE0F Validation Warnings:"));
34312
34537
  for (const warning of preview.validation.warnings) {
34313
- console.log(` \u2022 ${chalk28__default.default.yellow(warning)}`);
34538
+ console.log(` \u2022 ${chalk29__default.default.yellow(warning)}`);
34314
34539
  }
34315
34540
  }
34316
34541
  if (preview.requiresConfirmation && !preview.validation.dryRun) {
34317
34542
  const confirmed = await this.promptConfirmation();
34318
34543
  if (!confirmed) {
34319
- console.log(chalk28__default.default.yellow("\n\u274C Operation cancelled"));
34544
+ console.log(chalk29__default.default.yellow("\n\u274C Operation cancelled"));
34320
34545
  process.exit(0);
34321
34546
  }
34322
34547
  }
@@ -34328,42 +34553,42 @@ var init_ConfigCLI = __esm({
34328
34553
  delete: "\u{1F5D1}\uFE0F"
34329
34554
  };
34330
34555
  const typeColor = {
34331
- add: chalk28__default.default.green,
34332
- modify: chalk28__default.default.yellow,
34333
- delete: chalk28__default.default.red
34556
+ add: chalk29__default.default.green,
34557
+ modify: chalk29__default.default.yellow,
34558
+ delete: chalk29__default.default.red
34334
34559
  };
34335
34560
  console.log(
34336
- ` ${typeIcon[change.type]} ${typeColor[change.type](change.type.toUpperCase())}: ${chalk28__default.default.bold(change.key)}`
34561
+ ` ${typeIcon[change.type]} ${typeColor[change.type](change.type.toUpperCase())}: ${chalk29__default.default.bold(change.key)}`
34337
34562
  );
34338
34563
  if (change.oldValue !== void 0) {
34339
34564
  console.log(
34340
- ` ${chalk28__default.default.gray("Old:")} ${chalk28__default.default.gray(this.formatValue(change.oldValue))}`
34565
+ ` ${chalk29__default.default.gray("Old:")} ${chalk29__default.default.gray(this.formatValue(change.oldValue))}`
34341
34566
  );
34342
34567
  }
34343
34568
  if (change.newValue !== void 0) {
34344
34569
  console.log(
34345
- ` ${chalk28__default.default.gray("New:")} ${chalk28__default.default.cyan(this.formatValue(change.newValue))}`
34570
+ ` ${chalk29__default.default.gray("New:")} ${chalk29__default.default.cyan(this.formatValue(change.newValue))}`
34346
34571
  );
34347
34572
  }
34348
- console.log(` ${chalk28__default.default.gray("Layer:")} ${chalk28__default.default.magenta(change.layer)}`);
34349
- console.log(` ${chalk28__default.default.gray(change.description)}`);
34573
+ console.log(` ${chalk29__default.default.gray("Layer:")} ${chalk29__default.default.magenta(change.layer)}`);
34574
+ console.log(` ${chalk29__default.default.gray(change.description)}`);
34350
34575
  console.log();
34351
34576
  }
34352
34577
  displayAffectedConfig(affected) {
34353
34578
  const impactColor = {
34354
- low: chalk28__default.default.gray,
34355
- medium: chalk28__default.default.yellow,
34356
- high: chalk28__default.default.red,
34357
- critical: chalk28__default.default.red.bold
34579
+ low: chalk29__default.default.gray,
34580
+ medium: chalk29__default.default.yellow,
34581
+ high: chalk29__default.default.red,
34582
+ critical: chalk29__default.default.red.bold
34358
34583
  };
34359
34584
  console.log(
34360
- ` \u2022 ${chalk28__default.default.bold(affected.key)} (${chalk28__default.default.magenta(affected.layer)})`
34585
+ ` \u2022 ${chalk29__default.default.bold(affected.key)} (${chalk29__default.default.magenta(affected.layer)})`
34361
34586
  );
34362
34587
  console.log(
34363
34588
  ` Impact: ${impactColor[affected.impact](affected.impact.toUpperCase())}`
34364
34589
  );
34365
- console.log(` Relationship: ${chalk28__default.default.cyan(affected.relationship)}`);
34366
- console.log(` ${chalk28__default.default.gray(affected.description)}`);
34590
+ console.log(` Relationship: ${chalk29__default.default.cyan(affected.relationship)}`);
34591
+ console.log(` ${chalk29__default.default.gray(affected.description)}`);
34367
34592
  console.log();
34368
34593
  }
34369
34594
  displaySafetyRisk(risk) {
@@ -34374,78 +34599,78 @@ var init_ConfigCLI = __esm({
34374
34599
  critical: "\u{1F6A8}"
34375
34600
  };
34376
34601
  const levelColor = {
34377
- info: chalk28__default.default.blue,
34378
- warning: chalk28__default.default.yellow,
34379
- error: chalk28__default.default.red,
34380
- critical: chalk28__default.default.red.bold
34602
+ info: chalk29__default.default.blue,
34603
+ warning: chalk29__default.default.yellow,
34604
+ error: chalk29__default.default.red,
34605
+ critical: chalk29__default.default.red.bold
34381
34606
  };
34382
34607
  console.log(
34383
34608
  ` ${levelIcon[risk.level]} ${levelColor[risk.level](risk.level.toUpperCase())}: ${risk.message}`
34384
34609
  );
34385
34610
  if (risk.recommendation) {
34386
34611
  console.log(
34387
- ` ${chalk28__default.default.gray("Recommendation:")} ${risk.recommendation}`
34612
+ ` ${chalk29__default.default.gray("Recommendation:")} ${risk.recommendation}`
34388
34613
  );
34389
34614
  }
34390
34615
  if (risk.autoFixable) {
34391
- console.log(` ${chalk28__default.default.green("Auto-fixable: Yes")}`);
34616
+ console.log(` ${chalk29__default.default.green("Auto-fixable: Yes")}`);
34392
34617
  }
34393
34618
  console.log();
34394
34619
  }
34395
34620
  displayLayeredConfig(data2) {
34396
- console.log(chalk28__default.default.bold(`
34621
+ console.log(chalk29__default.default.bold(`
34397
34622
  \u{1F4CB} ${data2.key} Configuration
34398
34623
  `));
34399
34624
  console.log(
34400
- `${chalk28__default.default.bold("Effective Value:")} ${chalk28__default.default.cyan(this.formatValue(data2.value))}`
34625
+ `${chalk29__default.default.bold("Effective Value:")} ${chalk29__default.default.cyan(this.formatValue(data2.value))}`
34401
34626
  );
34402
- console.log(`${chalk28__default.default.bold("Source Layer:")} ${chalk28__default.default.magenta(data2.source)}`);
34627
+ console.log(`${chalk29__default.default.bold("Source Layer:")} ${chalk29__default.default.magenta(data2.source)}`);
34403
34628
  console.log(
34404
- `${chalk28__default.default.bold("Merged:")} ${data2.merged ? chalk28__default.default.yellow("Yes") : chalk28__default.default.gray("No")}`
34629
+ `${chalk29__default.default.bold("Merged:")} ${data2.merged ? chalk29__default.default.yellow("Yes") : chalk29__default.default.gray("No")}`
34405
34630
  );
34406
34631
  if (data2.layers) {
34407
- console.log(chalk28__default.default.bold("\nLayer Values:"));
34632
+ console.log(chalk29__default.default.bold("\nLayer Values:"));
34408
34633
  const layers = ["runtime", "project", "user", "global"];
34409
34634
  for (const layer of layers) {
34410
34635
  const value = data2.layers[layer];
34411
34636
  if (value !== void 0) {
34412
34637
  const isActive = layer === data2.source;
34413
- const layerDisplay = isActive ? chalk28__default.default.bold.magenta(`${layer} (active)`) : chalk28__default.default.gray(layer);
34638
+ const layerDisplay = isActive ? chalk29__default.default.bold.magenta(`${layer} (active)`) : chalk29__default.default.gray(layer);
34414
34639
  console.log(
34415
- ` ${layerDisplay}: ${chalk28__default.default.cyan(this.formatValue(value))}`
34640
+ ` ${layerDisplay}: ${chalk29__default.default.cyan(this.formatValue(value))}`
34416
34641
  );
34417
34642
  }
34418
34643
  }
34419
34644
  }
34420
34645
  }
34421
34646
  displayConfigList(configs) {
34422
- console.log(chalk28__default.default.bold("\n\u2699\uFE0F Configuration Settings\n"));
34647
+ console.log(chalk29__default.default.bold("\n\u2699\uFE0F Configuration Settings\n"));
34423
34648
  if (Object.keys(configs).length === 0) {
34424
- console.log(chalk28__default.default.gray("No configurations found."));
34649
+ console.log(chalk29__default.default.gray("No configurations found."));
34425
34650
  return;
34426
34651
  }
34427
34652
  const categorized = this.categorizeConfigs(configs);
34428
34653
  for (const [category, items] of Object.entries(categorized)) {
34429
34654
  if (Object.keys(items).length === 0) continue;
34430
34655
  console.log(
34431
- chalk28__default.default.bold.cyan(`${this.getCategoryIcon(category)} ${category}`)
34656
+ chalk29__default.default.bold.cyan(`${this.getCategoryIcon(category)} ${category}`)
34432
34657
  );
34433
- console.log(chalk28__default.default.gray("\u2500".repeat(category.length + 4)));
34658
+ console.log(chalk29__default.default.gray("\u2500".repeat(category.length + 4)));
34434
34659
  for (const [key2, value] of Object.entries(items)) {
34435
34660
  console.log(
34436
- ` ${chalk28__default.default.bold(key2)}: ${chalk28__default.default.cyan(this.formatValue(value))}`
34661
+ ` ${chalk29__default.default.bold(key2)}: ${chalk29__default.default.cyan(this.formatValue(value))}`
34437
34662
  );
34438
34663
  }
34439
34664
  console.log();
34440
34665
  }
34441
34666
  console.log(
34442
- chalk28__default.default.gray(`Total: ${Object.keys(configs).length} configuration(s)`)
34667
+ chalk29__default.default.gray(`Total: ${Object.keys(configs).length} configuration(s)`)
34443
34668
  );
34444
34669
  }
34445
34670
  async promptConfirmation() {
34446
34671
  return new Promise((resolve8) => {
34447
34672
  this.rl.question(
34448
- chalk28__default.default.bold("\nDo you want to proceed? [y/N]: "),
34673
+ chalk29__default.default.bold("\nDo you want to proceed? [y/N]: "),
34449
34674
  (answer) => {
34450
34675
  resolve8(["y", "yes", "Y", "YES"].includes(answer.trim()));
34451
34676
  }
@@ -34454,20 +34679,20 @@ var init_ConfigCLI = __esm({
34454
34679
  }
34455
34680
  formatValue(value) {
34456
34681
  if (value === null || value === void 0) {
34457
- return chalk28__default.default.gray("null");
34682
+ return chalk29__default.default.gray("null");
34458
34683
  }
34459
34684
  if (typeof value === "string") {
34460
34685
  const isSensitive = this.isSensitiveValue(value);
34461
34686
  if (isSensitive) {
34462
- return chalk28__default.default.gray("********");
34687
+ return chalk29__default.default.gray("********");
34463
34688
  }
34464
34689
  return `"${value}"`;
34465
34690
  }
34466
34691
  if (typeof value === "boolean") {
34467
- return value ? chalk28__default.default.green("true") : chalk28__default.default.red("false");
34692
+ return value ? chalk29__default.default.green("true") : chalk29__default.default.red("false");
34468
34693
  }
34469
34694
  if (typeof value === "number") {
34470
- return chalk28__default.default.blue(value.toString());
34695
+ return chalk29__default.default.blue(value.toString());
34471
34696
  }
34472
34697
  if (Array.isArray(value)) {
34473
34698
  return `[${value.map((v) => this.formatValue(v)).join(", ")}]`;
@@ -35942,8 +36167,8 @@ var init_api_caller = __esm({
35942
36167
  });
35943
36168
  function handleRateLimitError(error2) {
35944
36169
  console.log();
35945
- console.log(chalk28__default.default.yellow("\u23F1\uFE0F Rate Limit Exceeded"));
35946
- console.log(chalk28__default.default.gray("\u2501".repeat(50)));
36170
+ console.log(chalk29__default.default.yellow("\u23F1\uFE0F Rate Limit Exceeded"));
36171
+ console.log(chalk29__default.default.gray("\u2501".repeat(50)));
35947
36172
  const route = error2.route || error2.details?.endpoint || "API";
35948
36173
  const plan = error2.plan || error2.details?.plan || "Unknown";
35949
36174
  const limit = error2.limit || (error2.details?.limit ? parseInt(error2.details.limit) : null);
@@ -35961,24 +36186,24 @@ function handleRateLimitError(error2) {
35961
36186
  resetTime = `at ${resetDate.toLocaleTimeString()}`;
35962
36187
  }
35963
36188
  }
35964
- console.log(chalk28__default.default.white(`Plan: ${chalk28__default.default.bold(plan)}`));
35965
- console.log(chalk28__default.default.white(`Endpoint: ${chalk28__default.default.bold(route)}`));
36189
+ console.log(chalk29__default.default.white(`Plan: ${chalk29__default.default.bold(plan)}`));
36190
+ console.log(chalk29__default.default.white(`Endpoint: ${chalk29__default.default.bold(route)}`));
35966
36191
  if (limit !== null) {
35967
- console.log(chalk28__default.default.white(`Limit: ${chalk28__default.default.bold(limit)} requests`));
36192
+ console.log(chalk29__default.default.white(`Limit: ${chalk29__default.default.bold(limit)} requests`));
35968
36193
  }
35969
36194
  if (error2.remaining !== void 0) {
35970
- console.log(chalk28__default.default.white(`Remaining: ${chalk28__default.default.bold(error2.remaining)} requests`));
36195
+ console.log(chalk29__default.default.white(`Remaining: ${chalk29__default.default.bold(error2.remaining)} requests`));
35971
36196
  }
35972
36197
  console.log();
35973
- console.log(chalk28__default.default.cyan(`Please wait ${chalk28__default.default.bold(waitTime)} before trying again`));
36198
+ console.log(chalk29__default.default.cyan(`Please wait ${chalk29__default.default.bold(waitTime)} before trying again`));
35974
36199
  if (resetTime) {
35975
- console.log(chalk28__default.default.gray(`Rate limit resets ${resetTime}`));
36200
+ console.log(chalk29__default.default.gray(`Rate limit resets ${resetTime}`));
35976
36201
  }
35977
36202
  if (error2.hint) {
35978
36203
  console.log();
35979
- console.log(chalk28__default.default.magenta("\u{1F4A1} " + error2.hint));
36204
+ console.log(chalk29__default.default.magenta("\u{1F4A1} " + error2.hint));
35980
36205
  }
35981
- console.log(chalk28__default.default.gray("\u2501".repeat(50)));
36206
+ console.log(chalk29__default.default.gray("\u2501".repeat(50)));
35982
36207
  console.log();
35983
36208
  }
35984
36209
  async function parseRateLimitResponse(response2) {
@@ -40889,7 +41114,7 @@ var init_model_selector_ui = __esm({
40889
41114
  output: process.stdout,
40890
41115
  terminal: true
40891
41116
  });
40892
- console.log(chalk28__default.default.green(
41117
+ console.log(chalk29__default.default.green(
40893
41118
  "\u250C\u2500[ MODEL MATRIX ]\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"
40894
41119
  ));
40895
41120
  process.stdout.write("\x1B7");
@@ -40957,14 +41182,14 @@ var init_model_selector_ui = __esm({
40957
41182
  }
40958
41183
  renderFromSavedPosition() {
40959
41184
  if (this.isDestroyed) return;
40960
- console.log(chalk28__default.default.green(
40961
- "\u2502 " + chalk28__default.default.greenBright("SELECT MODEL:") + " ".repeat(62) + "\u2502"
41185
+ console.log(chalk29__default.default.green(
41186
+ "\u2502 " + chalk29__default.default.greenBright("SELECT MODEL:") + " ".repeat(62) + "\u2502"
40962
41187
  ));
40963
41188
  this.renderContent();
40964
41189
  const scrollInfo = `[${this.selectedIndex + 1}/${this.models.length}]`;
40965
41190
  const helpText = `\u2193:NEXT \u2191:PREV ENTER:EXEC ESC:ABORT ${scrollInfo}`;
40966
- console.log(chalk28__default.default.green("\u2502 ") + chalk28__default.default.dim.green(helpText.padEnd(76)) + chalk28__default.default.green(" \u2502"));
40967
- console.log(chalk28__default.default.green(
41191
+ console.log(chalk29__default.default.green("\u2502 ") + chalk29__default.default.dim.green(helpText.padEnd(76)) + chalk29__default.default.green(" \u2502"));
41192
+ console.log(chalk29__default.default.green(
40968
41193
  "\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"
40969
41194
  ));
40970
41195
  }
@@ -41005,19 +41230,19 @@ var init_model_selector_ui = __esm({
41005
41230
  const item = displayItems[i2];
41006
41231
  if (item.type === "group") {
41007
41232
  console.log(
41008
- chalk28__default.default.green("\u2502") + chalk28__default.default.dim.green(" \u2501\u2501\u2501 ") + chalk28__default.default.greenBright(item.content.substring(2, item.content.indexOf(" \u2500"))) + chalk28__default.default.dim.green(" " + "\u2501".repeat(71 - item.content.indexOf(" \u2500"))) + chalk28__default.default.green("\u2502")
41233
+ chalk29__default.default.green("\u2502") + chalk29__default.default.dim.green(" \u2501\u2501\u2501 ") + chalk29__default.default.greenBright(item.content.substring(2, item.content.indexOf(" \u2500"))) + chalk29__default.default.dim.green(" " + "\u2501".repeat(71 - item.content.indexOf(" \u2500"))) + chalk29__default.default.green("\u2502")
41009
41234
  );
41010
41235
  } else {
41011
41236
  const isSelected = item.modelIndex === this.selectedIndex;
41012
- const prefix = isSelected ? chalk28__default.default.greenBright("\u25B6 ") : " ";
41237
+ const prefix = isSelected ? chalk29__default.default.greenBright("\u25B6 ") : " ";
41013
41238
  const modelText = item.content;
41014
41239
  if (isSelected) {
41015
41240
  console.log(
41016
- chalk28__default.default.green("\u2502") + prefix + chalk28__default.default.black.bgGreen(modelText.padEnd(75)) + chalk28__default.default.green("\u2502")
41241
+ chalk29__default.default.green("\u2502") + prefix + chalk29__default.default.black.bgGreen(modelText.padEnd(75)) + chalk29__default.default.green("\u2502")
41017
41242
  );
41018
41243
  } else {
41019
41244
  console.log(
41020
- chalk28__default.default.green("\u2502") + prefix + chalk28__default.default.green(modelText.substring(0, 75).padEnd(75)) + chalk28__default.default.green("\u2502")
41245
+ chalk29__default.default.green("\u2502") + prefix + chalk29__default.default.green(modelText.substring(0, 75).padEnd(75)) + chalk29__default.default.green("\u2502")
41021
41246
  );
41022
41247
  }
41023
41248
  }
@@ -43162,129 +43387,129 @@ function displayStartupLogo() {
43162
43387
  process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
43163
43388
  console.log("");
43164
43389
  console.log(
43165
- chalk28__default.default.magentaBright(
43390
+ chalk29__default.default.magentaBright(
43166
43391
  "\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557"
43167
43392
  )
43168
43393
  );
43169
43394
  console.log(
43170
- chalk28__default.default.magentaBright(
43395
+ chalk29__default.default.magentaBright(
43171
43396
  "\u2551 \u2551"
43172
43397
  )
43173
43398
  );
43174
43399
  console.log(
43175
- chalk28__default.default.magentaBright(
43400
+ chalk29__default.default.magentaBright(
43176
43401
  "\u2551 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2551"
43177
43402
  )
43178
43403
  );
43179
43404
  console.log(
43180
- chalk28__default.default.magentaBright(
43405
+ chalk29__default.default.magentaBright(
43181
43406
  "\u2551 \u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557 \u2551"
43182
43407
  )
43183
43408
  );
43184
43409
  console.log(
43185
- chalk28__default.default.magentaBright(
43410
+ chalk29__default.default.magentaBright(
43186
43411
  "\u2551 \u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551 \u2551"
43187
43412
  )
43188
43413
  );
43189
43414
  console.log(
43190
- chalk28__default.default.magentaBright(
43415
+ chalk29__default.default.magentaBright(
43191
43416
  "\u2551 \u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551 \u2551"
43192
43417
  )
43193
43418
  );
43194
43419
  console.log(
43195
- chalk28__default.default.magentaBright(
43420
+ chalk29__default.default.magentaBright(
43196
43421
  "\u2551 \u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2551"
43197
43422
  )
43198
43423
  );
43199
43424
  console.log(
43200
- chalk28__default.default.magentaBright(
43425
+ chalk29__default.default.magentaBright(
43201
43426
  "\u2551 \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D \u2551"
43202
43427
  )
43203
43428
  );
43204
43429
  console.log(
43205
- chalk28__default.default.magentaBright(
43430
+ chalk29__default.default.magentaBright(
43206
43431
  "\u2551 \u2551"
43207
43432
  )
43208
43433
  );
43209
43434
  console.log(
43210
- chalk28__default.default.magentaBright(
43435
+ chalk29__default.default.magentaBright(
43211
43436
  "\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2551"
43212
43437
  )
43213
43438
  );
43214
43439
  console.log(
43215
- chalk28__default.default.magentaBright(
43440
+ chalk29__default.default.magentaBright(
43216
43441
  "\u2551 \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D \u2551"
43217
43442
  )
43218
43443
  );
43219
43444
  console.log(
43220
- chalk28__default.default.magentaBright(
43445
+ chalk29__default.default.magentaBright(
43221
43446
  "\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2551"
43222
43447
  )
43223
43448
  );
43224
43449
  console.log(
43225
- chalk28__default.default.magentaBright(
43450
+ chalk29__default.default.magentaBright(
43226
43451
  "\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255D \u2551"
43227
43452
  )
43228
43453
  );
43229
43454
  console.log(
43230
- chalk28__default.default.magentaBright(
43455
+ chalk29__default.default.magentaBright(
43231
43456
  "\u2551 \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2551"
43232
43457
  )
43233
43458
  );
43234
43459
  console.log(
43235
- chalk28__default.default.magentaBright(
43460
+ chalk29__default.default.magentaBright(
43236
43461
  "\u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u2551"
43237
43462
  )
43238
43463
  );
43239
43464
  console.log(
43240
- chalk28__default.default.magentaBright(
43465
+ chalk29__default.default.magentaBright(
43241
43466
  "\u2551 \u2551"
43242
43467
  )
43243
43468
  );
43244
43469
  console.log(
43245
- chalk28__default.default.magentaBright(
43470
+ chalk29__default.default.magentaBright(
43246
43471
  "\u2551 AI-Powered Development Platform \u2551"
43247
43472
  )
43248
43473
  );
43249
43474
  console.log(
43250
- chalk28__default.default.magentaBright(
43475
+ chalk29__default.default.magentaBright(
43251
43476
  "\u2551 (c) 2025 Bonginkan Inc. \u2551"
43252
43477
  )
43253
43478
  );
43254
43479
  console.log(
43255
- chalk28__default.default.magentaBright(
43480
+ chalk29__default.default.magentaBright(
43256
43481
  "\u2551 \u2551"
43257
43482
  )
43258
43483
  );
43259
43484
  console.log(
43260
- chalk28__default.default.magentaBright(
43485
+ chalk29__default.default.magentaBright(
43261
43486
  "\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D"
43262
43487
  )
43263
43488
  );
43264
43489
  console.log("");
43265
43490
  console.log(
43266
- chalk28__default.default.cyan.bold(`MARIA CODE v${getVersion()}`) + chalk28__default.default.gray(" \u2014 Ready")
43491
+ chalk29__default.default.cyan.bold(`MARIA CODE v${getVersion()}`) + chalk29__default.default.gray(" \u2014 Ready")
43267
43492
  );
43268
43493
  console.log(
43269
- chalk28__default.default.yellow("Type /login to get started \xB7 /help for commands")
43494
+ chalk29__default.default.yellow("Type /login to get started \xB7 /help for commands")
43270
43495
  );
43271
43496
  console.log("");
43272
43497
  }
43273
43498
  function displayCompactLogo() {
43274
43499
  process.stdout.write("\x1B[2J\x1B[H");
43275
43500
  console.log(
43276
- chalk28__default.default.cyan.bold(`MARIA CODE v${getVersion()}`) + chalk28__default.default.gray(" \u2014 Ready")
43501
+ chalk29__default.default.cyan.bold(`MARIA CODE v${getVersion()}`) + chalk29__default.default.gray(" \u2014 Ready")
43277
43502
  );
43278
43503
  console.log(
43279
- chalk28__default.default.yellow("Type /login to get started \xB7 /help for commands")
43504
+ chalk29__default.default.yellow("Type /login to get started \xB7 /help for commands")
43280
43505
  );
43281
43506
  console.log("");
43282
43507
  }
43283
43508
  function displayDashboardHeader() {
43284
43509
  process.stdout.write("\x1B[2J\x1B[H");
43285
- const version = chalk28__default.default.cyan.bold(`MARIA CODE v${getVersion()}`);
43286
- const commands = chalk28__default.default.gray(" | /help /status /model");
43287
- const providers = chalk28__default.default.gray(
43510
+ const version = chalk29__default.default.cyan.bold(`MARIA CODE v${getVersion()}`);
43511
+ const commands = chalk29__default.default.gray(" | /help /status /model");
43512
+ const providers = chalk29__default.default.gray(
43288
43513
  "Providers: 8/8 OK (openai, anthropic, google, groq, lmstudio, ollama, vllm)"
43289
43514
  );
43290
43515
  console.log(version + commands);
@@ -43293,8 +43518,8 @@ function displayDashboardHeader() {
43293
43518
  }
43294
43519
  function displayLogsBox(logs) {
43295
43520
  const width = getResponsiveWidth({ marginLeft: 5, marginRight: 5, maxWidth: 120 });
43296
- const borderColor = chalk28__default.default.white;
43297
- const titleColor = chalk28__default.default.cyan;
43521
+ const borderColor = chalk29__default.default.white;
43522
+ const titleColor = chalk29__default.default.cyan;
43298
43523
  const topLeft = "\u250C";
43299
43524
  const topRight = "\u2510";
43300
43525
  const bottomLeft = "\u2514";
@@ -43327,7 +43552,7 @@ function displayLogsBox(logs) {
43327
43552
  function displaySpinner(text = "Processing") {
43328
43553
  const spinnerFrames = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
43329
43554
  const frame = spinnerFrames[Math.floor(Date.now() / 80) % spinnerFrames.length];
43330
- process.stdout.write(`\r[${chalk28__default.default.cyan(frame)}] ${text}...`);
43555
+ process.stdout.write(`\r[${chalk29__default.default.cyan(frame)}] ${text}...`);
43331
43556
  }
43332
43557
  function getCurrentPath() {
43333
43558
  return process.cwd();
@@ -43345,18 +43570,18 @@ async function displayFinalStartupScreen(_selectedProvider, _selectedModel) {
43345
43570
  const version = getVersion();
43346
43571
  const systemInfo = getSystemInfo();
43347
43572
  console.log(
43348
- chalk28__default.default.cyan.bold(`MARIA CODE v${version}`) + chalk28__default.default.gray(" \u2014 Ready")
43573
+ chalk29__default.default.cyan.bold(`MARIA CODE v${version}`) + chalk29__default.default.gray(" \u2014 Ready")
43349
43574
  );
43350
43575
  const cwd2 = systemInfo.cwd.replace(os13__namespace.homedir(), "~");
43351
- console.log(chalk28__default.default.gray("cwd: ") + chalk28__default.default.white(cwd2));
43352
- console.log(chalk28__default.default.gray("Not signed in"));
43353
- console.log(chalk28__default.default.yellow("Tip: /login \xB7 /help \xB7 /help code"));
43576
+ console.log(chalk29__default.default.gray("cwd: ") + chalk29__default.default.white(cwd2));
43577
+ console.log(chalk29__default.default.gray("Not signed in"));
43578
+ console.log(chalk29__default.default.yellow("Tip: /login \xB7 /help \xB7 /help code"));
43354
43579
  console.log("");
43355
43580
  }
43356
43581
  function displayRoundedInputBox() {
43357
43582
  const width = getResponsiveWidth({ marginLeft: 5, marginRight: 5, maxWidth: 90 });
43358
- const borderColor = chalk28__default.default.white;
43359
- const promptColor = chalk28__default.default.cyan;
43583
+ const borderColor = chalk29__default.default.white;
43584
+ const promptColor = chalk29__default.default.cyan;
43360
43585
  const topLeft = "\u256D";
43361
43586
  const topRight = "\u256E";
43362
43587
  const bottomLeft = "\u2570";
@@ -43366,7 +43591,7 @@ function displayRoundedInputBox() {
43366
43591
  const lines = [];
43367
43592
  lines.push(borderColor(topLeft + horizontal.repeat(width - 2) + topRight));
43368
43593
  const promptStr = promptColor("> ");
43369
- const placeholder = chalk28__default.default.gray("");
43594
+ const placeholder = chalk29__default.default.gray("");
43370
43595
  const inputLine = promptStr + placeholder;
43371
43596
  const padding = width - 4;
43372
43597
  lines.push(
@@ -43520,29 +43745,29 @@ var init_provider_selector = __esm({
43520
43745
  const inquirer = await import('inquirer');
43521
43746
  const prompt = inquirer.default?.prompt || inquirer.prompt;
43522
43747
  const providers = await this.getAvailableProviders();
43523
- console.log(chalk28__default.default.cyan("\nAvailable AI Providers:"));
43524
- console.log(chalk28__default.default.gray("\u2500".repeat(50)));
43748
+ console.log(chalk29__default.default.cyan("\nAvailable AI Providers:"));
43749
+ console.log(chalk29__default.default.gray("\u2500".repeat(50)));
43525
43750
  const _cloudProviders = providers.filter((p) => p.type === "cloud");
43526
43751
  const _localProviders = providers.filter((p) => p.type === "local");
43527
43752
  if (_cloudProviders.length > 0) {
43528
- console.log(chalk28__default.default.yellow("\n\u2601\uFE0F Cloud AI:"));
43753
+ console.log(chalk29__default.default.yellow("\n\u2601\uFE0F Cloud AI:"));
43529
43754
  _cloudProviders.forEach((p) => {
43530
43755
  if (p.available) {
43531
43756
  console.log(
43532
- ` ${chalk28__default.default.green("*")} ${chalk28__default.default.white(p.name.split(" ")[0])}`
43757
+ ` ${chalk29__default.default.green("*")} ${chalk29__default.default.white(p.name.split(" ")[0])}`
43533
43758
  );
43534
43759
  } else {
43535
- console.log(` ${chalk28__default.default.gray(p.name.split(" ")[0])}`);
43760
+ console.log(` ${chalk29__default.default.gray(p.name.split(" ")[0])}`);
43536
43761
  }
43537
43762
  });
43538
43763
  }
43539
43764
  if (_localProviders.length > 0) {
43540
- console.log(chalk28__default.default.cyan("\n\u{1F4BB} Local AI:"));
43765
+ console.log(chalk29__default.default.cyan("\n\u{1F4BB} Local AI:"));
43541
43766
  _localProviders.forEach((p) => {
43542
43767
  if (p.available) {
43543
- console.log(` ${chalk28__default.default.green("*")} ${chalk28__default.default.white(p.name)}`);
43768
+ console.log(` ${chalk29__default.default.green("*")} ${chalk29__default.default.white(p.name)}`);
43544
43769
  } else {
43545
- console.log(` ${chalk28__default.default.green("*")} ${chalk28__default.default.gray(p.name)}`);
43770
+ console.log(` ${chalk29__default.default.green("*")} ${chalk29__default.default.gray(p.name)}`);
43546
43771
  }
43547
43772
  });
43548
43773
  }
@@ -43557,20 +43782,20 @@ var init_provider_selector = __esm({
43557
43782
  });
43558
43783
  if (selectableProviders.length === 0) {
43559
43784
  console.log(
43560
- chalk28__default.default.yellow("\n\u26A0\uFE0F No AI providers are currently available.")
43785
+ chalk29__default.default.yellow("\n\u26A0\uFE0F No AI providers are currently available.")
43561
43786
  );
43562
- console.log(chalk28__default.default.gray("\nTo use MARIA, you need to:"));
43787
+ console.log(chalk29__default.default.gray("\nTo use MARIA, you need to:"));
43563
43788
  console.log(
43564
- chalk28__default.default.gray(
43789
+ chalk29__default.default.gray(
43565
43790
  "1. Set up API keys for cloud providers (OpenAI, Anthropic, Google, etc.)"
43566
43791
  )
43567
43792
  );
43568
- console.log(chalk28__default.default.gray(" Example: export OPENAI_API_KEY=your_api_key"));
43793
+ console.log(chalk29__default.default.gray(" Example: export OPENAI_API_KEY=your_api_key"));
43569
43794
  console.log(
43570
- chalk28__default.default.gray("2. Or start a local AI service (Ollama, LM Studio, vLLM)")
43795
+ chalk29__default.default.gray("2. Or start a local AI service (Ollama, LM Studio, vLLM)")
43571
43796
  );
43572
- console.log(chalk28__default.default.gray(" Example: maria setup-ollama"));
43573
- console.log(chalk28__default.default.gray("\nFor more information, run: maria --help"));
43797
+ console.log(chalk29__default.default.gray(" Example: maria setup-ollama"));
43798
+ console.log(chalk29__default.default.gray("\nFor more information, run: maria --help"));
43574
43799
  process.exit(1);
43575
43800
  }
43576
43801
  const choices = selectableProviders.map((p) => ({
@@ -43591,29 +43816,29 @@ var init_provider_selector = __esm({
43591
43816
  const provider = providers.find((p) => p.value === selectedProvider);
43592
43817
  if (provider && provider.type === "local" && !provider.available) {
43593
43818
  console.log(
43594
- chalk28__default.default.yellow(`
43819
+ chalk29__default.default.yellow(`
43595
43820
  \u26A0\uFE0F ${provider.name} is not currently running.`)
43596
43821
  );
43597
- console.log(chalk28__default.default.gray(`
43822
+ console.log(chalk29__default.default.gray(`
43598
43823
  To use ${provider.name}, you need to:`));
43599
43824
  if (selectedProvider === "ollama") {
43600
- console.log(chalk28__default.default.gray("1. Install Ollama: brew install ollama"));
43601
- console.log(chalk28__default.default.gray("2. Start Ollama: ollama serve"));
43602
- console.log(chalk28__default.default.gray("3. Pull a model: ollama pull llama3.2:3b"));
43825
+ console.log(chalk29__default.default.gray("1. Install Ollama: brew install ollama"));
43826
+ console.log(chalk29__default.default.gray("2. Start Ollama: ollama serve"));
43827
+ console.log(chalk29__default.default.gray("3. Pull a model: ollama pull llama3.2:3b"));
43603
43828
  console.log(
43604
- chalk28__default.default.gray("\nOr use the setup command: maria setup-ollama")
43829
+ chalk29__default.default.gray("\nOr use the setup command: maria setup-ollama")
43605
43830
  );
43606
43831
  } else if (selectedProvider === "lmstudio") {
43607
43832
  console.log(
43608
- chalk28__default.default.gray("1. Download LM Studio from https://lmstudio.ai")
43833
+ chalk29__default.default.gray("1. Download LM Studio from https://lmstudio.ai")
43609
43834
  );
43610
- console.log(chalk28__default.default.gray("2. Start LM Studio application"));
43611
- console.log(chalk28__default.default.gray("3. Load a model in LM Studio"));
43612
- console.log(chalk28__default.default.gray("4. Start the local server in LM Studio"));
43835
+ console.log(chalk29__default.default.gray("2. Start LM Studio application"));
43836
+ console.log(chalk29__default.default.gray("3. Load a model in LM Studio"));
43837
+ console.log(chalk29__default.default.gray("4. Start the local server in LM Studio"));
43613
43838
  } else if (selectedProvider === "vllm") {
43614
- console.log(chalk28__default.default.gray("1. Install vLLM: pip install vllm"));
43615
- console.log(chalk28__default.default.gray("2. Start vLLM server with a model"));
43616
- console.log(chalk28__default.default.gray("\nOr use the setup command: maria setup-vllm"));
43839
+ console.log(chalk29__default.default.gray("1. Install vLLM: pip install vllm"));
43840
+ console.log(chalk29__default.default.gray("2. Start vLLM server with a model"));
43841
+ console.log(chalk29__default.default.gray("\nOr use the setup command: maria setup-vllm"));
43617
43842
  }
43618
43843
  process.exit(1);
43619
43844
  }
@@ -46868,7 +47093,7 @@ var init_IntelligentRouterService = __esm({
46868
47093
  this.emit("initialized");
46869
47094
  } catch (_error) {
46870
47095
  console._error(
46871
- chalk28__default.default.red("Failed to initialize Intelligent Router:"),
47096
+ chalk29__default.default.red("Failed to initialize Intelligent Router:"),
46872
47097
  _error
46873
47098
  );
46874
47099
  throw _error;
@@ -46922,7 +47147,7 @@ var init_IntelligentRouterService = __esm({
46922
47147
  } catch (_error) {
46923
47148
  this.metrics.failedRoutes++;
46924
47149
  this.emit("route:_error", { input: input3, _error });
46925
- console._error(chalk28__default.default.red("Routing _error:"), _error);
47150
+ console._error(chalk29__default.default.red("Routing _error:"), _error);
46926
47151
  return null;
46927
47152
  }
46928
47153
  }
@@ -49661,85 +49886,22 @@ var init_log_symbols = __esm({
49661
49886
  "node_modules/.pnpm/log-symbols@6.0.0/node_modules/log-symbols/index.js"() {
49662
49887
  init_is_unicode_supported();
49663
49888
  main = {
49664
- info: chalk28__default.default.blue("\u2139"),
49665
- success: chalk28__default.default.green("\u2714"),
49666
- warning: chalk28__default.default.yellow("\u26A0"),
49667
- error: chalk28__default.default.red("\u2716")
49889
+ info: chalk29__default.default.blue("\u2139"),
49890
+ success: chalk29__default.default.green("\u2714"),
49891
+ warning: chalk29__default.default.yellow("\u26A0"),
49892
+ error: chalk29__default.default.red("\u2716")
49668
49893
  };
49669
49894
  fallback = {
49670
- info: chalk28__default.default.blue("i"),
49671
- success: chalk28__default.default.green("\u221A"),
49672
- warning: chalk28__default.default.yellow("\u203C"),
49673
- error: chalk28__default.default.red("\xD7")
49895
+ info: chalk29__default.default.blue("i"),
49896
+ success: chalk29__default.default.green("\u221A"),
49897
+ warning: chalk29__default.default.yellow("\u203C"),
49898
+ error: chalk29__default.default.red("\xD7")
49674
49899
  };
49675
49900
  logSymbols = isUnicodeSupported() ? main : fallback;
49676
49901
  log_symbols_default = logSymbols;
49677
49902
  }
49678
49903
  });
49679
49904
 
49680
- // node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
49681
- function ansiRegex({ onlyFirst = false } = {}) {
49682
- const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
49683
- const pattern2 = [
49684
- `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
49685
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
49686
- ].join("|");
49687
- return new RegExp(pattern2, onlyFirst ? void 0 : "g");
49688
- }
49689
- var init_ansi_regex = __esm({
49690
- "node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js"() {
49691
- }
49692
- });
49693
-
49694
- // node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
49695
- function stripAnsi(string) {
49696
- if (typeof string !== "string") {
49697
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
49698
- }
49699
- return string.replace(regex, "");
49700
- }
49701
- var regex;
49702
- var init_strip_ansi = __esm({
49703
- "node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js"() {
49704
- init_ansi_regex();
49705
- regex = ansiRegex();
49706
- }
49707
- });
49708
-
49709
- // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
49710
- function isAmbiguous(x2) {
49711
- return x2 === 161 || x2 === 164 || x2 === 167 || x2 === 168 || x2 === 170 || x2 === 173 || x2 === 174 || x2 >= 176 && x2 <= 180 || x2 >= 182 && x2 <= 186 || x2 >= 188 && x2 <= 191 || x2 === 198 || x2 === 208 || x2 === 215 || x2 === 216 || x2 >= 222 && x2 <= 225 || x2 === 230 || x2 >= 232 && x2 <= 234 || x2 === 236 || x2 === 237 || x2 === 240 || x2 === 242 || x2 === 243 || x2 >= 247 && x2 <= 250 || x2 === 252 || x2 === 254 || x2 === 257 || x2 === 273 || x2 === 275 || x2 === 283 || x2 === 294 || x2 === 295 || x2 === 299 || x2 >= 305 && x2 <= 307 || x2 === 312 || x2 >= 319 && x2 <= 322 || x2 === 324 || x2 >= 328 && x2 <= 331 || x2 === 333 || x2 === 338 || x2 === 339 || x2 === 358 || x2 === 359 || x2 === 363 || x2 === 462 || x2 === 464 || x2 === 466 || x2 === 468 || x2 === 470 || x2 === 472 || x2 === 474 || x2 === 476 || x2 === 593 || x2 === 609 || x2 === 708 || x2 === 711 || x2 >= 713 && x2 <= 715 || x2 === 717 || x2 === 720 || x2 >= 728 && x2 <= 731 || x2 === 733 || x2 === 735 || x2 >= 768 && x2 <= 879 || x2 >= 913 && x2 <= 929 || x2 >= 931 && x2 <= 937 || x2 >= 945 && x2 <= 961 || x2 >= 963 && x2 <= 969 || x2 === 1025 || x2 >= 1040 && x2 <= 1103 || x2 === 1105 || x2 === 8208 || x2 >= 8211 && x2 <= 8214 || x2 === 8216 || x2 === 8217 || x2 === 8220 || x2 === 8221 || x2 >= 8224 && x2 <= 8226 || x2 >= 8228 && x2 <= 8231 || x2 === 8240 || x2 === 8242 || x2 === 8243 || x2 === 8245 || x2 === 8251 || x2 === 8254 || x2 === 8308 || x2 === 8319 || x2 >= 8321 && x2 <= 8324 || x2 === 8364 || x2 === 8451 || x2 === 8453 || x2 === 8457 || x2 === 8467 || x2 === 8470 || x2 === 8481 || x2 === 8482 || x2 === 8486 || x2 === 8491 || x2 === 8531 || x2 === 8532 || x2 >= 8539 && x2 <= 8542 || x2 >= 8544 && x2 <= 8555 || x2 >= 8560 && x2 <= 8569 || x2 === 8585 || x2 >= 8592 && x2 <= 8601 || x2 === 8632 || x2 === 8633 || x2 === 8658 || x2 === 8660 || x2 === 8679 || x2 === 8704 || x2 === 8706 || x2 === 8707 || x2 === 8711 || x2 === 8712 || x2 === 8715 || x2 === 8719 || x2 === 8721 || x2 === 8725 || x2 === 8730 || x2 >= 8733 && x2 <= 8736 || x2 === 8739 || x2 === 8741 || x2 >= 8743 && x2 <= 8748 || x2 === 8750 || x2 >= 8756 && x2 <= 8759 || x2 === 8764 || x2 === 8765 || x2 === 8776 || x2 === 8780 || x2 === 8786 || x2 === 8800 || x2 === 8801 || x2 >= 8804 && x2 <= 8807 || x2 === 8810 || x2 === 8811 || x2 === 8814 || x2 === 8815 || x2 === 8834 || x2 === 8835 || x2 === 8838 || x2 === 8839 || x2 === 8853 || x2 === 8857 || x2 === 8869 || x2 === 8895 || x2 === 8978 || x2 >= 9312 && x2 <= 9449 || x2 >= 9451 && x2 <= 9547 || x2 >= 9552 && x2 <= 9587 || x2 >= 9600 && x2 <= 9615 || x2 >= 9618 && x2 <= 9621 || x2 === 9632 || x2 === 9633 || x2 >= 9635 && x2 <= 9641 || x2 === 9650 || x2 === 9651 || x2 === 9654 || x2 === 9655 || x2 === 9660 || x2 === 9661 || x2 === 9664 || x2 === 9665 || x2 >= 9670 && x2 <= 9672 || x2 === 9675 || x2 >= 9678 && x2 <= 9681 || x2 >= 9698 && x2 <= 9701 || x2 === 9711 || x2 === 9733 || x2 === 9734 || x2 === 9737 || x2 === 9742 || x2 === 9743 || x2 === 9756 || x2 === 9758 || x2 === 9792 || x2 === 9794 || x2 === 9824 || x2 === 9825 || x2 >= 9827 && x2 <= 9829 || x2 >= 9831 && x2 <= 9834 || x2 === 9836 || x2 === 9837 || x2 === 9839 || x2 === 9886 || x2 === 9887 || x2 === 9919 || x2 >= 9926 && x2 <= 9933 || x2 >= 9935 && x2 <= 9939 || x2 >= 9941 && x2 <= 9953 || x2 === 9955 || x2 === 9960 || x2 === 9961 || x2 >= 9963 && x2 <= 9969 || x2 === 9972 || x2 >= 9974 && x2 <= 9977 || x2 === 9979 || x2 === 9980 || x2 === 9982 || x2 === 9983 || x2 === 10045 || x2 >= 10102 && x2 <= 10111 || x2 >= 11094 && x2 <= 11097 || x2 >= 12872 && x2 <= 12879 || x2 >= 57344 && x2 <= 63743 || x2 >= 65024 && x2 <= 65039 || x2 === 65533 || x2 >= 127232 && x2 <= 127242 || x2 >= 127248 && x2 <= 127277 || x2 >= 127280 && x2 <= 127337 || x2 >= 127344 && x2 <= 127373 || x2 === 127375 || x2 === 127376 || x2 >= 127387 && x2 <= 127404 || x2 >= 917760 && x2 <= 917999 || x2 >= 983040 && x2 <= 1048573 || x2 >= 1048576 && x2 <= 1114109;
49712
- }
49713
- function isFullWidth(x2) {
49714
- return x2 === 12288 || x2 >= 65281 && x2 <= 65376 || x2 >= 65504 && x2 <= 65510;
49715
- }
49716
- function isWide(x2) {
49717
- return x2 >= 4352 && x2 <= 4447 || x2 === 8986 || x2 === 8987 || x2 === 9001 || x2 === 9002 || x2 >= 9193 && x2 <= 9196 || x2 === 9200 || x2 === 9203 || x2 === 9725 || x2 === 9726 || x2 === 9748 || x2 === 9749 || x2 >= 9776 && x2 <= 9783 || x2 >= 9800 && x2 <= 9811 || x2 === 9855 || x2 >= 9866 && x2 <= 9871 || x2 === 9875 || x2 === 9889 || x2 === 9898 || x2 === 9899 || x2 === 9917 || x2 === 9918 || x2 === 9924 || x2 === 9925 || x2 === 9934 || x2 === 9940 || x2 === 9962 || x2 === 9970 || x2 === 9971 || x2 === 9973 || x2 === 9978 || x2 === 9981 || x2 === 9989 || x2 === 9994 || x2 === 9995 || x2 === 10024 || x2 === 10060 || x2 === 10062 || x2 >= 10067 && x2 <= 10069 || x2 === 10071 || x2 >= 10133 && x2 <= 10135 || x2 === 10160 || x2 === 10175 || x2 === 11035 || x2 === 11036 || x2 === 11088 || x2 === 11093 || x2 >= 11904 && x2 <= 11929 || x2 >= 11931 && x2 <= 12019 || x2 >= 12032 && x2 <= 12245 || x2 >= 12272 && x2 <= 12287 || x2 >= 12289 && x2 <= 12350 || x2 >= 12353 && x2 <= 12438 || x2 >= 12441 && x2 <= 12543 || x2 >= 12549 && x2 <= 12591 || x2 >= 12593 && x2 <= 12686 || x2 >= 12688 && x2 <= 12773 || x2 >= 12783 && x2 <= 12830 || x2 >= 12832 && x2 <= 12871 || x2 >= 12880 && x2 <= 42124 || x2 >= 42128 && x2 <= 42182 || x2 >= 43360 && x2 <= 43388 || x2 >= 44032 && x2 <= 55203 || x2 >= 63744 && x2 <= 64255 || x2 >= 65040 && x2 <= 65049 || x2 >= 65072 && x2 <= 65106 || x2 >= 65108 && x2 <= 65126 || x2 >= 65128 && x2 <= 65131 || x2 >= 94176 && x2 <= 94180 || x2 === 94192 || x2 === 94193 || x2 >= 94208 && x2 <= 100343 || x2 >= 100352 && x2 <= 101589 || x2 >= 101631 && x2 <= 101640 || x2 >= 110576 && x2 <= 110579 || x2 >= 110581 && x2 <= 110587 || x2 === 110589 || x2 === 110590 || x2 >= 110592 && x2 <= 110882 || x2 === 110898 || x2 >= 110928 && x2 <= 110930 || x2 === 110933 || x2 >= 110948 && x2 <= 110951 || x2 >= 110960 && x2 <= 111355 || x2 >= 119552 && x2 <= 119638 || x2 >= 119648 && x2 <= 119670 || x2 === 126980 || x2 === 127183 || x2 === 127374 || x2 >= 127377 && x2 <= 127386 || x2 >= 127488 && x2 <= 127490 || x2 >= 127504 && x2 <= 127547 || x2 >= 127552 && x2 <= 127560 || x2 === 127568 || x2 === 127569 || x2 >= 127584 && x2 <= 127589 || x2 >= 127744 && x2 <= 127776 || x2 >= 127789 && x2 <= 127797 || x2 >= 127799 && x2 <= 127868 || x2 >= 127870 && x2 <= 127891 || x2 >= 127904 && x2 <= 127946 || x2 >= 127951 && x2 <= 127955 || x2 >= 127968 && x2 <= 127984 || x2 === 127988 || x2 >= 127992 && x2 <= 128062 || x2 === 128064 || x2 >= 128066 && x2 <= 128252 || x2 >= 128255 && x2 <= 128317 || x2 >= 128331 && x2 <= 128334 || x2 >= 128336 && x2 <= 128359 || x2 === 128378 || x2 === 128405 || x2 === 128406 || x2 === 128420 || x2 >= 128507 && x2 <= 128591 || x2 >= 128640 && x2 <= 128709 || x2 === 128716 || x2 >= 128720 && x2 <= 128722 || x2 >= 128725 && x2 <= 128727 || x2 >= 128732 && x2 <= 128735 || x2 === 128747 || x2 === 128748 || x2 >= 128756 && x2 <= 128764 || x2 >= 128992 && x2 <= 129003 || x2 === 129008 || x2 >= 129292 && x2 <= 129338 || x2 >= 129340 && x2 <= 129349 || x2 >= 129351 && x2 <= 129535 || x2 >= 129648 && x2 <= 129660 || x2 >= 129664 && x2 <= 129673 || x2 >= 129679 && x2 <= 129734 || x2 >= 129742 && x2 <= 129756 || x2 >= 129759 && x2 <= 129769 || x2 >= 129776 && x2 <= 129784 || x2 >= 131072 && x2 <= 196605 || x2 >= 196608 && x2 <= 262141;
49718
- }
49719
- var init_lookup = __esm({
49720
- "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js"() {
49721
- }
49722
- });
49723
-
49724
- // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
49725
- function validate(codePoint) {
49726
- if (!Number.isSafeInteger(codePoint)) {
49727
- throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
49728
- }
49729
- }
49730
- function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
49731
- validate(codePoint);
49732
- if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
49733
- return 2;
49734
- }
49735
- return 1;
49736
- }
49737
- var init_get_east_asian_width = __esm({
49738
- "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js"() {
49739
- init_lookup();
49740
- }
49741
- });
49742
-
49743
49905
  // node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.mjs
49744
49906
  var emoji_regex_default;
49745
49907
  var init_emoji_regex = __esm({
@@ -49751,7 +49913,7 @@ var init_emoji_regex = __esm({
49751
49913
  });
49752
49914
 
49753
49915
  // node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
49754
- function stringWidth(string, options2 = {}) {
49916
+ function stringWidth2(string, options2 = {}) {
49755
49917
  if (typeof string !== "string" || string.length === 0) {
49756
49918
  return 0;
49757
49919
  }
@@ -49767,7 +49929,7 @@ function stringWidth(string, options2 = {}) {
49767
49929
  }
49768
49930
  let width = 0;
49769
49931
  const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
49770
- for (const { segment: character } of segmenter.segment(string)) {
49932
+ for (const { segment: character } of segmenter2.segment(string)) {
49771
49933
  const codePoint = character.codePointAt(0);
49772
49934
  if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
49773
49935
  continue;
@@ -49795,13 +49957,13 @@ function stringWidth(string, options2 = {}) {
49795
49957
  }
49796
49958
  return width;
49797
49959
  }
49798
- var segmenter, defaultIgnorableCodePointRegex;
49799
- var init_string_width = __esm({
49960
+ var segmenter2, defaultIgnorableCodePointRegex;
49961
+ var init_string_width2 = __esm({
49800
49962
  "node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js"() {
49801
49963
  init_strip_ansi();
49802
49964
  init_get_east_asian_width();
49803
49965
  init_emoji_regex();
49804
- segmenter = new Intl.Segmenter();
49966
+ segmenter2 = new Intl.Segmenter();
49805
49967
  defaultIgnorableCodePointRegex = new RegExp("^\\p{Default_Ignorable_Code_Point}$", "u");
49806
49968
  }
49807
49969
  });
@@ -49885,7 +50047,7 @@ var init_ora = __esm({
49885
50047
  import_cli_spinners = __toESM(require_cli_spinners());
49886
50048
  init_log_symbols();
49887
50049
  init_strip_ansi();
49888
- init_string_width();
50050
+ init_string_width2();
49889
50051
  init_is_interactive();
49890
50052
  init_is_unicode_supported2();
49891
50053
  init_stdin_discarder();
@@ -50037,7 +50199,7 @@ var init_ora = __esm({
50037
50199
  const fullText = " ".repeat(this.#indent) + fullPrefixText + "--" + this.#text + "--" + fullSuffixText;
50038
50200
  this.#lineCount = 0;
50039
50201
  for (const line of stripAnsi(fullText).split("\n")) {
50040
- this.#lineCount += Math.max(1, Math.ceil(stringWidth(line, { countAnsiEscapeCodes: true }) / columns));
50202
+ this.#lineCount += Math.max(1, Math.ceil(stringWidth2(line, { countAnsiEscapeCodes: true }) / columns));
50041
50203
  }
50042
50204
  }
50043
50205
  get isEnabled() {
@@ -50067,7 +50229,7 @@ var init_ora = __esm({
50067
50229
  const { frames } = this.#spinner;
50068
50230
  let frame = frames[this.#frameIndex];
50069
50231
  if (this.color) {
50070
- frame = chalk28__default.default[this.color](frame);
50232
+ frame = chalk29__default.default[this.color](frame);
50071
50233
  }
50072
50234
  const fullPrefixText = typeof this.#prefixText === "string" && this.#prefixText !== "" ? this.#prefixText + " " : "";
50073
50235
  const fullText = typeof this.text === "string" ? " " + this.text : "";
@@ -50187,28 +50349,28 @@ var init_ChalkAdapter = __esm({
50187
50349
  spinnerId = 0;
50188
50350
  async showWelcome() {
50189
50351
  console.log(
50190
- chalk28__default.default.cyan.bold("\n\u{1F916} Welcome to MARIA Interactive Session v3.5.0")
50352
+ chalk29__default.default.cyan.bold("\n\u{1F916} Welcome to MARIA Interactive Session v3.5.0")
50191
50353
  );
50192
- console.log(chalk28__default.default.gray("Type /help for available commands\n"));
50354
+ console.log(chalk29__default.default.gray("Type /help for available commands\n"));
50193
50355
  }
50194
50356
  showGoodbye() {
50195
50357
  this.stopAllSpinners();
50196
- console.log(chalk28__default.default.yellow("\n\u{1F44B} Goodbye! Thank you for using MARIA.\n"));
50358
+ console.log(chalk29__default.default.green("\n\u{1F44B} Goodbye! Thank you for using MARIA.\n"));
50197
50359
  }
50198
50360
  async print(message) {
50199
50361
  console.log(message);
50200
50362
  }
50201
50363
  error(message) {
50202
- console.error(chalk28__default.default.red(`\u274C ${message}`));
50364
+ console.error(chalk29__default.default.red(`\u274C ${message}`));
50203
50365
  }
50204
50366
  success(message) {
50205
- console.log(chalk28__default.default.green(`\u2705 ${message}`));
50367
+ console.log(chalk29__default.default.green(`\u2705 ${message}`));
50206
50368
  }
50207
50369
  warning(message) {
50208
- console.warn(chalk28__default.default.yellow(`\u26A0\uFE0F ${message}`));
50370
+ console.warn(chalk29__default.default.yellow(`\u26A0\uFE0F ${message}`));
50209
50371
  }
50210
50372
  info(message) {
50211
- console.info(chalk28__default.default.blue(`\u2139\uFE0F ${message}`));
50373
+ console.info(chalk29__default.default.blue(`\u2139\uFE0F ${message}`));
50212
50374
  }
50213
50375
  startSpinner(message) {
50214
50376
  const id = `spinner-${++this.spinnerId}`;
@@ -50258,12 +50420,12 @@ var init_ChalkAdapter = __esm({
50258
50420
  * Format helpers for consistent styling
50259
50421
  */
50260
50422
  static format = {
50261
- command: (text) => chalk28__default.default.cyan(text),
50262
- keyword: (text) => chalk28__default.default.magenta(text),
50263
- value: (text) => chalk28__default.default.green(text),
50264
- dim: (text) => chalk28__default.default.gray(text),
50265
- bold: (text) => chalk28__default.default.bold(text),
50266
- code: (text) => chalk28__default.default.bgGray.white(` ${text} `)
50423
+ command: (text) => chalk29__default.default.cyan(text),
50424
+ keyword: (text) => chalk29__default.default.magenta(text),
50425
+ value: (text) => chalk29__default.default.green(text),
50426
+ dim: (text) => chalk29__default.default.gray(text),
50427
+ bold: (text) => chalk29__default.default.bold(text),
50428
+ code: (text) => chalk29__default.default.bgGray.white(` ${text} `)
50267
50429
  };
50268
50430
  };
50269
50431
  }
@@ -55413,26 +55575,26 @@ var init_QuickApprovalInterface = __esm({
55413
55575
  const _lang = options2.language || "en";
55414
55576
  const _labels = LANGUAGE_LABELS[_lang] || LANGUAGE_LABELS.en;
55415
55577
  console.log("");
55416
- console.log(chalk28__default.default.gray("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"));
55578
+ console.log(chalk29__default.default.gray("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"));
55417
55579
  console.log(
55418
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55580
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55419
55581
  ` ${_labels.approvalRequest}${" ".repeat(Math.max(0, 43 - _labels.approvalRequest.length))}`
55420
- ) + chalk28__default.default.gray("\u2502")
55582
+ ) + chalk29__default.default.gray("\u2502")
55421
55583
  );
55422
- console.log(chalk28__default.default.gray("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"));
55584
+ console.log(chalk29__default.default.gray("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"));
55423
55585
  const _requestId = `AP-${(/* @__PURE__ */ new Date()).getFullYear()}-${String((/* @__PURE__ */ new Date()).getMonth() + 1).padStart(2, "0")}${String((/* @__PURE__ */ new Date()).getDate()).padStart(2, "0")}-${String(Math.floor(Math.random() * 999)).padStart(3, "0")}`;
55424
55586
  console.log(
55425
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55426
- ` > ${_labels.id}: ${chalk28__default.default.yellow(_requestId)}${" ".repeat(Math.max(0, 35 - _requestId.length - _labels.id.length))}`
55427
- ) + chalk28__default.default.gray("\u2502")
55587
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55588
+ ` > ${_labels.id}: ${chalk29__default.default.yellow(_requestId)}${" ".repeat(Math.max(0, 35 - _requestId.length - _labels.id.length))}`
55589
+ ) + chalk29__default.default.gray("\u2502")
55428
55590
  );
55429
55591
  const _title = _request.context?.description || _request.themeId || "API Cache Improvement";
55430
55592
  const _titleDisplay = _title.length > 25 ? _title.substring(0, 22) + "..." : _title;
55431
55593
  const _titleLabel = ` ${_labels._title}:`;
55432
55594
  console.log(
55433
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55595
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55434
55596
  `${_titleLabel} ${_titleDisplay}${" ".repeat(Math.max(0, 42 - _titleLabel.length - _titleDisplay.length))}`
55435
- ) + chalk28__default.default.gray("\u2502")
55597
+ ) + chalk29__default.default.gray("\u2502")
55436
55598
  );
55437
55599
  const _riskLevel = this.formatRiskLevelSimple(_request.riskAssessment);
55438
55600
  const _approvalsCount = _riskLevel === "HIGH" || _riskLevel === "CRITICAL" ? "2" : "1";
@@ -55440,37 +55602,37 @@ var init_QuickApprovalInterface = __esm({
55440
55602
  const _levelLabel = ` ${_labels.level}:`;
55441
55603
  const _levelDisplay = `${_riskLevel} ${_approvalsText}`;
55442
55604
  console.log(
55443
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55605
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55444
55606
  `${_levelLabel} ${_levelDisplay}${" ".repeat(Math.max(0, 42 - _levelLabel.length - _levelDisplay.length))}`
55445
- ) + chalk28__default.default.gray("\u2502")
55607
+ ) + chalk29__default.default.gray("\u2502")
55446
55608
  );
55447
55609
  const _impact = _request.estimatedTime || "p95 latency -20%";
55448
55610
  const _impactLabel = ` ${_labels._impact}:`;
55449
55611
  console.log(
55450
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55612
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55451
55613
  `${_impactLabel} ${_impact}${" ".repeat(Math.max(0, 42 - _impactLabel.length - _impact.length))}`
55452
- ) + chalk28__default.default.gray("\u2502")
55614
+ ) + chalk29__default.default.gray("\u2502")
55453
55615
  );
55454
55616
  const _approversLabel = ` ${_labels.approvers}:`;
55455
55617
  const _approversStatus = "[x] Lead [ ] QA";
55456
55618
  console.log(
55457
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55619
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55458
55620
  `${_approversLabel} ${_approversStatus}${" ".repeat(Math.max(0, 42 - _approversLabel.length - _approversStatus.length))}`
55459
- ) + chalk28__default.default.gray("\u2502")
55621
+ ) + chalk29__default.default.gray("\u2502")
55460
55622
  );
55461
55623
  const _deadline = new Date(Date.now() + 30 * 60 * 1e3);
55462
55624
  const _timeStr = `${_deadline.getFullYear()}-${String(_deadline.getMonth() + 1).padStart(2, "0")}-${String(_deadline.getDate()).padStart(2, "0")} ${String(_deadline.getHours()).padStart(2, "0")}:${String(_deadline.getMinutes()).padStart(2, "0")}`;
55463
55625
  const _deadlineLabel = ` ${_labels._deadline}:`;
55464
55626
  console.log(
55465
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55627
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55466
55628
  `${_deadlineLabel} ${_timeStr}${" ".repeat(Math.max(0, 42 - _deadlineLabel.length - _timeStr.length))}`
55467
- ) + chalk28__default.default.gray("\u2502")
55629
+ ) + chalk29__default.default.gray("\u2502")
55468
55630
  );
55469
- console.log(chalk28__default.default.gray("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"));
55631
+ console.log(chalk29__default.default.gray("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"));
55470
55632
  console.log(
55471
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55633
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55472
55634
  ` ${_labels.actions}:${" ".repeat(Math.max(0, 42 - _labels.actions.length))}`
55473
- ) + chalk28__default.default.gray("\u2502")
55635
+ ) + chalk29__default.default.gray("\u2502")
55474
55636
  );
55475
55637
  this.menuOptions.forEach((option, _index) => {
55476
55638
  const _isSelected = _index === this.selectedIndex;
@@ -55481,32 +55643,32 @@ var init_QuickApprovalInterface = __esm({
55481
55643
  switch (option) {
55482
55644
  case "approve":
55483
55645
  label = _labels.approve;
55484
- color = chalk28__default.default.green;
55646
+ color = chalk29__default.default.green;
55485
55647
  break;
55486
55648
  case "reject":
55487
55649
  label = _labels.reject;
55488
- color = chalk28__default.default.red;
55650
+ color = chalk29__default.default.red;
55489
55651
  break;
55490
55652
  case "cancel":
55491
55653
  label = _labels.cancel;
55492
- color = chalk28__default.default.yellow;
55654
+ color = chalk29__default.default.yellow;
55493
55655
  break;
55494
55656
  }
55495
55657
  const _optionText = `${_prefix}[${_key}] ${label}`;
55496
55658
  const _colorFunc = _isSelected ? color.bold : color;
55497
55659
  console.log(
55498
- chalk28__default.default.gray("\u2502") + _colorFunc(
55660
+ chalk29__default.default.gray("\u2502") + _colorFunc(
55499
55661
  `${_optionText}${" ".repeat(Math.max(0, 43 - _optionText.length))}`
55500
- ) + chalk28__default.default.gray("\u2502")
55662
+ ) + chalk29__default.default.gray("\u2502")
55501
55663
  );
55502
55664
  });
55503
- console.log(chalk28__default.default.gray("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"));
55665
+ console.log(chalk29__default.default.gray("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"));
55504
55666
  console.log(
55505
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55667
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55506
55668
  ` ${_labels.moveInstruction}${" ".repeat(Math.max(0, 43 - _labels.moveInstruction.length))}`
55507
- ) + chalk28__default.default.gray("\u2502")
55669
+ ) + chalk29__default.default.gray("\u2502")
55508
55670
  );
55509
- console.log(chalk28__default.default.gray("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"));
55671
+ console.log(chalk29__default.default.gray("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"));
55510
55672
  console.log("");
55511
55673
  }
55512
55674
  /**
@@ -55522,13 +55684,13 @@ var init_QuickApprovalInterface = __esm({
55522
55684
  };
55523
55685
  const _formatted = keyMap[_key] || _key;
55524
55686
  const colorMap = {
55525
- "shift+tab": chalk28__default.default.bgGreen.black.bold,
55526
- "ctrl+y": chalk28__default.default.bgBlue.white.bold,
55527
- "ctrl+n": chalk28__default.default.bgRed.white.bold,
55528
- "ctrl+t": chalk28__default.default.bgMagenta.white.bold,
55529
- "ctrl+r": chalk28__default.default.bgYellow.black.bold
55687
+ "shift+tab": chalk29__default.default.bgGreen.black.bold,
55688
+ "ctrl+y": chalk29__default.default.bgBlue.white.bold,
55689
+ "ctrl+n": chalk29__default.default.bgRed.white.bold,
55690
+ "ctrl+t": chalk29__default.default.bgMagenta.white.bold,
55691
+ "ctrl+r": chalk29__default.default.bgYellow.black.bold
55530
55692
  };
55531
- const _colorFunc = colorMap[_key] || chalk28__default.default.bgCyan.black.bold;
55693
+ const _colorFunc = colorMap[_key] || chalk29__default.default.bgCyan.black.bold;
55532
55694
  return _colorFunc(` ${_formatted} `);
55533
55695
  }
55534
55696
  /**
@@ -55537,15 +55699,15 @@ var init_QuickApprovalInterface = __esm({
55537
55699
  formatRiskLevel(risk) {
55538
55700
  switch (risk.toLowerCase()) {
55539
55701
  case "critical":
55540
- return chalk28__default.default.red.bold("CRITICAL");
55702
+ return chalk29__default.default.red.bold("CRITICAL");
55541
55703
  case "high":
55542
- return chalk28__default.default.red("HIGH");
55704
+ return chalk29__default.default.red("HIGH");
55543
55705
  case "medium":
55544
- return chalk28__default.default.yellow("MEDIUM");
55706
+ return chalk29__default.default.yellow("MEDIUM");
55545
55707
  case "low":
55546
- return chalk28__default.default.green("LOW");
55708
+ return chalk29__default.default.green("LOW");
55547
55709
  default:
55548
- return chalk28__default.default.white(risk);
55710
+ return chalk29__default.default.white(risk);
55549
55711
  }
55550
55712
  }
55551
55713
  /**
@@ -55615,7 +55777,7 @@ var init_QuickApprovalInterface = __esm({
55615
55777
  }
55616
55778
  if (_key === "") {
55617
55779
  console.log(`
55618
- ${chalk28__default.default.red("Approval cancelled by user")}`);
55780
+ ${chalk29__default.default.red("Approval cancelled by user")}`);
55619
55781
  this.emit("approval-cancelled", this.currentRequest.id);
55620
55782
  return;
55621
55783
  }
@@ -55672,20 +55834,20 @@ ${chalk28__default.default.red("Approval cancelled by user")}`);
55672
55834
  }
55673
55835
  console.clear();
55674
55836
  console.log(`
55675
- ${chalk28__default.default.bgGreen.black.bold(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55837
+ ${chalk29__default.default.bgGreen.black.bold(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55676
55838
  console.log(
55677
- chalk28__default.default.bgGreen.black.bold("\u2502") + chalk28__default.default.bgGreen.black.bold(
55839
+ chalk29__default.default.bgGreen.black.bold("\u2502") + chalk29__default.default.bgGreen.black.bold(
55678
55840
  ` \u2713 CHOICE SELECTED / \u9078\u629E\u5B8C\u4E86:${" ".repeat(47)}`
55679
- ) + chalk28__default.default.bgGreen.black.bold("\u2502")
55841
+ ) + chalk29__default.default.bgGreen.black.bold("\u2502")
55680
55842
  );
55681
- console.log(chalk28__default.default.bgGreen.black.bold(`\u251C${"\u2500".repeat(78)}\u2524`));
55843
+ console.log(chalk29__default.default.bgGreen.black.bold(`\u251C${"\u2500".repeat(78)}\u2524`));
55682
55844
  const _choiceText = `${_choice.label} (${_choice.labelJa})`;
55683
55845
  const _padding = " ".repeat(Math.max(0, 76 - _choiceText.length));
55684
55846
  console.log(
55685
- chalk28__default.default.bgGreen.black.bold("\u2502") + chalk28__default.default.bgGreen.black.bold(` ${_choiceText}${_padding}`) + chalk28__default.default.bgGreen.black.bold("\u2502")
55847
+ chalk29__default.default.bgGreen.black.bold("\u2502") + chalk29__default.default.bgGreen.black.bold(` ${_choiceText}${_padding}`) + chalk29__default.default.bgGreen.black.bold("\u2502")
55686
55848
  );
55687
- console.log(chalk28__default.default.bgGreen.black.bold(`\u2514${"\u2500".repeat(78)}\u2518`));
55688
- console.log(chalk28__default.default.yellow("\n\u{1F504} Processing your approval decision..."));
55849
+ console.log(chalk29__default.default.bgGreen.black.bold(`\u2514${"\u2500".repeat(78)}\u2518`));
55850
+ console.log(chalk29__default.default.yellow("\n\u{1F504} Processing your approval decision..."));
55689
55851
  try {
55690
55852
  const _response = await this.approvalEngine.processApprovalResponse(
55691
55853
  this.currentRequest.id,
@@ -55695,30 +55857,30 @@ ${chalk28__default.default.bgGreen.black.bold(`\u250C${"\u2500".repeat(78)}\u251
55695
55857
  );
55696
55858
  response.quickDecision = true;
55697
55859
  console.log(`
55698
- ${chalk28__default.default.bgGreen.black(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55860
+ ${chalk29__default.default.bgGreen.black(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55699
55861
  console.log(
55700
- chalk28__default.default.bgGreen.black("\u2502") + chalk28__default.default.bgGreen.black(
55862
+ chalk29__default.default.bgGreen.black("\u2502") + chalk29__default.default.bgGreen.black(
55701
55863
  ` \u{1F389} APPROVAL PROCESSED SUCCESSFULLY / \u627F\u8A8D\u51E6\u7406\u5B8C\u4E86!${" ".repeat(32)}`
55702
- ) + chalk28__default.default.bgGreen.black("\u2502")
55864
+ ) + chalk29__default.default.bgGreen.black("\u2502")
55703
55865
  );
55704
- console.log(chalk28__default.default.bgGreen.black(`\u2514${"\u2500".repeat(78)}\u2518`));
55866
+ console.log(chalk29__default.default.bgGreen.black(`\u2514${"\u2500".repeat(78)}\u2518`));
55705
55867
  if (_choice.trustLevel) {
55706
55868
  console.log(
55707
- chalk28__default.default.blue(`
55869
+ chalk29__default.default.blue(`
55708
55870
  \u2728 Trust level updated: ${_choice.trustLevel}`)
55709
55871
  );
55710
55872
  }
55711
55873
  this.emit("approval-_response", _response);
55712
55874
  } catch (_error) {
55713
55875
  console.log(`
55714
- ${chalk28__default.default.bgRed.white.bold(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55876
+ ${chalk29__default.default.bgRed.white.bold(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55715
55877
  console.log(
55716
- chalk28__default.default.bgRed.white.bold("\u2502") + chalk28__default.default.bgRed.white.bold(
55878
+ chalk29__default.default.bgRed.white.bold("\u2502") + chalk29__default.default.bgRed.white.bold(
55717
55879
  ` \u274C ERROR PROCESSING APPROVAL / \u627F\u8A8D\u51E6\u7406\u30A8\u30E9\u30FC${" ".repeat(35)}`
55718
- ) + chalk28__default.default.bgRed.white.bold("\u2502")
55880
+ ) + chalk29__default.default.bgRed.white.bold("\u2502")
55719
55881
  );
55720
- console.log(chalk28__default.default.bgRed.white.bold(`\u2514${"\u2500".repeat(78)}\u2518`));
55721
- console._error(chalk28__default.default.red("\nError details:"), _error);
55882
+ console.log(chalk29__default.default.bgRed.white.bold(`\u2514${"\u2500".repeat(78)}\u2518`));
55883
+ console._error(chalk29__default.default.red("\nError details:"), _error);
55722
55884
  this.emit("approval-_error", _error);
55723
55885
  }
55724
55886
  }
@@ -55732,7 +55894,7 @@ ${chalk28__default.default.bgRed.white.bold(`\u250C${"\u2500".repeat(78)}\u2510`
55732
55894
  timeoutId = setTimeout(() => {
55733
55895
  console.log(
55734
55896
  `
55735
- ${chalk28__default.default.yellow("\u23F0 Approval request timed out - auto-approving...")}`
55897
+ ${chalk29__default.default.yellow("\u23F0 Approval request timed out - auto-approving...")}`
55736
55898
  );
55737
55899
  this.handleTimeoutResponse(resolve);
55738
55900
  }, timeout);
@@ -55776,7 +55938,7 @@ ${chalk28__default.default.yellow("\u23F0 Approval request timed out - auto-appr
55776
55938
  response.quickDecision = true;
55777
55939
  resolve(_response);
55778
55940
  } catch (_error) {
55779
- console._error(chalk28__default.default.red("Error processing timeout approval:"), _error);
55941
+ console._error(chalk29__default.default.red("Error processing timeout approval:"), _error);
55780
55942
  }
55781
55943
  }
55782
55944
  /**
@@ -55791,11 +55953,11 @@ ${chalk28__default.default.yellow("\u23F0 Approval request timed out - auto-appr
55791
55953
  );
55792
55954
  this.approvalEngine.on("trust-level-changed", (event) => {
55793
55955
  console.log(
55794
- chalk28__default.default.blue(
55956
+ chalk29__default.default.blue(
55795
55957
  `\u2728 Trust level changed: ${event.oldLevel} \u2192 ${event.newLevel}`
55796
55958
  )
55797
55959
  );
55798
- console.log(chalk28__default.default.gray(`Reason: ${event.reason}`));
55960
+ console.log(chalk29__default.default.gray(`Reason: ${event.reason}`));
55799
55961
  });
55800
55962
  }
55801
55963
  /**
@@ -56582,22 +56744,22 @@ function formatProgressBar(current, total, width = 20) {
56582
56744
  }
56583
56745
  function formatError2(message, code) {
56584
56746
  const prefix = "";
56585
- return chalk28__default.default.red(`\u274C ${prefix}${message}`);
56747
+ return chalk29__default.default.red(`\u274C ${prefix}${message}`);
56586
56748
  }
56587
56749
  function formatSuccess(message) {
56588
- return chalk28__default.default.green(`\u2705 ${message}`);
56750
+ return chalk29__default.default.green(`\u2705 ${message}`);
56589
56751
  }
56590
56752
  function formatWarning(message) {
56591
- return chalk28__default.default.yellow(`\u26A0\uFE0F ${message}`);
56753
+ return chalk29__default.default.yellow(`\u26A0\uFE0F ${message}`);
56592
56754
  }
56593
56755
  function formatInfo(message) {
56594
- return chalk28__default.default.blue(`\u2139\uFE0F ${message}`);
56756
+ return chalk29__default.default.blue(`\u2139\uFE0F ${message}`);
56595
56757
  }
56596
56758
  function formatTable(headers, rows, options2 = {}) {
56597
56759
  const {
56598
56760
  columnWidths = headers.map(() => 20),
56599
56761
  separator = " | ",
56600
- headerColor = chalk28__default.default.cyan.bold
56762
+ headerColor = chalk29__default.default.cyan.bold
56601
56763
  } = options2;
56602
56764
  const headerRow = headers.map((h2, i2) => headerColor(h2.padEnd(columnWidths[i2]))).join(separator);
56603
56765
  const separatorLine = columnWidths.map((w) => "-".repeat(w)).join(separator);
@@ -56609,8 +56771,8 @@ function formatTable(headers, rows, options2 = {}) {
56609
56771
  function formatKeyValue(data2, options2 = {}) {
56610
56772
  const {
56611
56773
  keyWidth = 20,
56612
- keyColor = chalk28__default.default.gray,
56613
- valueColor = chalk28__default.default.white,
56774
+ keyColor = chalk29__default.default.gray,
56775
+ valueColor = chalk29__default.default.white,
56614
56776
  separator = ": "
56615
56777
  } = options2;
56616
56778
  return Object.entries(data2).map(([key2, value]) => {
@@ -56660,7 +56822,7 @@ var init_DisplayManager = __esm({
56660
56822
  theme: options2.theme ?? "auto"
56661
56823
  };
56662
56824
  if (!this.options.enableColors) {
56663
- chalk28__default.default.level = 0;
56825
+ chalk29__default.default.level = 0;
56664
56826
  }
56665
56827
  this.setupCleanupHandlers();
56666
56828
  }
@@ -56777,7 +56939,7 @@ var init_DisplayManager = __esm({
56777
56939
  const {
56778
56940
  padding = 1,
56779
56941
  borderStyle = "single",
56780
- borderColor = chalk28__default.default.gray
56942
+ borderColor = chalk29__default.default.gray
56781
56943
  } = options2;
56782
56944
  const lines = content2.split("\n");
56783
56945
  const maxLength = Math.max(...lines.map((l) => l.length));
@@ -56835,7 +56997,7 @@ var init_DisplayManager = __esm({
56835
56997
  */
56836
56998
  startSpinner(text) {
56837
56999
  if (!this.options.enableAnimations) {
56838
- this.writeLine(chalk28__default.default.gray(`\u2299 ${text || "Processing..."}`));
57000
+ this.writeLine(chalk29__default.default.gray(`\u2299 ${text || "Processing..."}`));
56839
57001
  return "no-animation";
56840
57002
  }
56841
57003
  return this.spinnerManager.start({ text });
@@ -56939,11 +57101,11 @@ var init_StatusDisplay = __esm({
56939
57101
  */
56940
57102
  static renderSystemStatus(status, detailed = false) {
56941
57103
  const lines = [];
56942
- lines.push(chalk28__default.default.cyan.bold("\u{1F4CA} System Status"));
57104
+ lines.push(chalk29__default.default.cyan.bold("\u{1F4CA} System Status"));
56943
57105
  lines.push("");
56944
57106
  const statusIcon = status.operational ? "\u2705" : "\u274C";
56945
57107
  const statusText = status.operational ? "Operational" : "Issues Detected";
56946
- const statusColor = status.operational ? chalk28__default.default.green : chalk28__default.default.red;
57108
+ const statusColor = status.operational ? chalk29__default.default.green : chalk29__default.default.red;
56947
57109
  lines.push(`${statusIcon} Status: ${statusColor(statusText)}`);
56948
57110
  lines.push(
56949
57111
  `\u23F1\uFE0F Uptime: ${formatDuration(status.uptime * 1e3)}`
@@ -56964,15 +57126,15 @@ var init_StatusDisplay = __esm({
56964
57126
  if (status.errors > 0 || status.warnings > 0) {
56965
57127
  lines.push("");
56966
57128
  if (status.errors > 0) {
56967
- lines.push(chalk28__default.default.red(`\u274C Errors: ${status.errors}`));
57129
+ lines.push(chalk29__default.default.red(`\u274C Errors: ${status.errors}`));
56968
57130
  }
56969
57131
  if (status.warnings > 0) {
56970
- lines.push(chalk28__default.default.yellow(`\u26A0\uFE0F Warnings: ${status.warnings}`));
57132
+ lines.push(chalk29__default.default.yellow(`\u26A0\uFE0F Warnings: ${status.warnings}`));
56971
57133
  }
56972
57134
  }
56973
57135
  if (detailed) {
56974
57136
  lines.push("");
56975
- lines.push(chalk28__default.default.gray("Detailed Information:"));
57137
+ lines.push(chalk29__default.default.gray("Detailed Information:"));
56976
57138
  const details = formatKeyValue(
56977
57139
  {
56978
57140
  "Process ID": process.pid,
@@ -56982,8 +57144,8 @@ var init_StatusDisplay = __esm({
56982
57144
  "Working Directory": process.cwd()
56983
57145
  },
56984
57146
  {
56985
- keyColor: chalk28__default.default.gray,
56986
- valueColor: chalk28__default.default.white
57147
+ keyColor: chalk29__default.default.gray,
57148
+ valueColor: chalk29__default.default.white
56987
57149
  }
56988
57150
  );
56989
57151
  lines.push(details);
@@ -56997,9 +57159,9 @@ var init_StatusDisplay = __esm({
56997
57159
  */
56998
57160
  static renderMemoryStatus(status) {
56999
57161
  const lines = [];
57000
- lines.push(chalk28__default.default.cyan.bold("\u{1F9E0} Memory Status"));
57162
+ lines.push(chalk29__default.default.cyan.bold("\u{1F9E0} Memory Status"));
57001
57163
  lines.push("");
57002
- lines.push(chalk28__default.default.yellow("System 1 (Fast):"));
57164
+ lines.push(chalk29__default.default.yellow("System 1 (Fast):"));
57003
57165
  const s1NodeBar = formatProgressBar(
57004
57166
  status.system1.nodes,
57005
57167
  status.system1.maxNodes,
@@ -57017,7 +57179,7 @@ var init_StatusDisplay = __esm({
57017
57179
  ` \u2022 Tokens: ${status.system1.tokens}/${status.system1.maxTokens} ${s1TokenBar}`
57018
57180
  );
57019
57181
  lines.push("");
57020
- lines.push(chalk28__default.default.blue("System 2 (Deep):"));
57182
+ lines.push(chalk29__default.default.blue("System 2 (Deep):"));
57021
57183
  const s2TraceBar = formatProgressBar(
57022
57184
  status.system2.traces,
57023
57185
  status.system2.maxTraces,
@@ -57035,7 +57197,7 @@ var init_StatusDisplay = __esm({
57035
57197
  ` \u2022 Tokens: ${status.system2.tokens}/${status.system2.maxTokens} ${s2TokenBar}`
57036
57198
  );
57037
57199
  lines.push("");
57038
- lines.push(chalk28__default.default.green("Total:"));
57200
+ lines.push(chalk29__default.default.green("Total:"));
57039
57201
  const totalBar = formatProgressBar(
57040
57202
  status.total.tokens,
57041
57203
  status.total.maxTokens,
@@ -57044,7 +57206,7 @@ var init_StatusDisplay = __esm({
57044
57206
  lines.push(` \u2022 Tokens: ${status.total.tokens}/${status.total.maxTokens}`);
57045
57207
  lines.push(` \u2022 Usage: ${totalBar}`);
57046
57208
  const usage = status.total.tokens / status.total.maxTokens * 100;
57047
- const usageColor = usage > 80 ? chalk28__default.default.red : usage > 60 ? chalk28__default.default.yellow : chalk28__default.default.green;
57209
+ const usageColor = usage > 80 ? chalk29__default.default.red : usage > 60 ? chalk29__default.default.yellow : chalk29__default.default.green;
57048
57210
  lines.push(
57049
57211
  ` \u2022 ${usageColor(formatPercentage(usage / 100, 1))} utilized`
57050
57212
  );
@@ -57057,9 +57219,9 @@ var init_StatusDisplay = __esm({
57057
57219
  */
57058
57220
  static renderModelStatus(status) {
57059
57221
  const lines = [];
57060
- lines.push(chalk28__default.default.cyan.bold("\u{1F916} Model Status"));
57222
+ lines.push(chalk29__default.default.cyan.bold("\u{1F916} Model Status"));
57061
57223
  lines.push("");
57062
- lines.push(chalk28__default.default.green(`Current: ${chalk28__default.default.bold(status.current)}`));
57224
+ lines.push(chalk29__default.default.green(`Current: ${chalk29__default.default.bold(status.current)}`));
57063
57225
  lines.push("");
57064
57226
  lines.push("Available Models:");
57065
57227
  const headers = ["Model", "Provider", "Status", "Capabilities"];
@@ -57071,7 +57233,7 @@ var init_StatusDisplay = __esm({
57071
57233
  const table = formatTable(headers, rows, {
57072
57234
  columnWidths: [20, 15, 8, 30],
57073
57235
  separator: " \u2502 ",
57074
- headerColor: chalk28__default.default.gray
57236
+ headerColor: chalk29__default.default.gray
57075
57237
  });
57076
57238
  lines.push(table);
57077
57239
  return lines.join("\n");
@@ -57083,19 +57245,19 @@ var init_StatusDisplay = __esm({
57083
57245
  */
57084
57246
  static renderHealthChecks(checks) {
57085
57247
  const lines = [];
57086
- lines.push(chalk28__default.default.cyan.bold("\u{1F3E5} Health Checks"));
57248
+ lines.push(chalk29__default.default.cyan.bold("\u{1F3E5} Health Checks"));
57087
57249
  lines.push("");
57088
57250
  for (const check of checks) {
57089
57251
  const icon = check.status === "ok" ? "\u2705" : check.status === "warning" ? "\u26A0\uFE0F" : "\u274C";
57090
- const statusColor = check.status === "ok" ? chalk28__default.default.green : check.status === "warning" ? chalk28__default.default.yellow : chalk28__default.default.red;
57252
+ const statusColor = check.status === "ok" ? chalk29__default.default.green : check.status === "warning" ? chalk29__default.default.yellow : chalk29__default.default.red;
57091
57253
  let line = `${icon} ${check.name.padEnd(25)} ${statusColor(check.status.toUpperCase())}`;
57092
57254
  if (check.latency !== void 0) {
57093
- const latencyColor = check.latency < 100 ? chalk28__default.default.green : check.latency < 500 ? chalk28__default.default.yellow : chalk28__default.default.red;
57255
+ const latencyColor = check.latency < 100 ? chalk29__default.default.green : check.latency < 500 ? chalk29__default.default.yellow : chalk29__default.default.red;
57094
57256
  line += ` ${latencyColor(`(${check.latency}ms)`)}`;
57095
57257
  }
57096
57258
  lines.push(line);
57097
57259
  if (check.message) {
57098
- lines.push(chalk28__default.default.gray(` ${check.message}`));
57260
+ lines.push(chalk29__default.default.gray(` ${check.message}`));
57099
57261
  }
57100
57262
  }
57101
57263
  lines.push("");
@@ -57104,16 +57266,16 @@ var init_StatusDisplay = __esm({
57104
57266
  const errorCount = checks.filter((c) => c.status === "error").length;
57105
57267
  if (errorCount > 0) {
57106
57268
  lines.push(
57107
- chalk28__default.default.red(
57269
+ chalk29__default.default.red(
57108
57270
  `\u26A0\uFE0F System has ${errorCount} error(s) - intervention required`
57109
57271
  )
57110
57272
  );
57111
57273
  } else if (warningCount > 0) {
57112
57274
  lines.push(
57113
- chalk28__default.default.yellow(`\u26A0\uFE0F System operational with ${warningCount} warning(s)`)
57275
+ chalk29__default.default.yellow(`\u26A0\uFE0F System operational with ${warningCount} warning(s)`)
57114
57276
  );
57115
57277
  } else {
57116
- lines.push(chalk28__default.default.green("\u2705 All systems operational"));
57278
+ lines.push(chalk29__default.default.green("\u2705 All systems operational"));
57117
57279
  }
57118
57280
  return lines.join("\n");
57119
57281
  }
@@ -57124,7 +57286,7 @@ var init_StatusDisplay = __esm({
57124
57286
  */
57125
57287
  static renderSessionStats(stats) {
57126
57288
  const lines = [];
57127
- lines.push(chalk28__default.default.cyan.bold("\u{1F4C8} Session Statistics"));
57289
+ lines.push(chalk29__default.default.cyan.bold("\u{1F4C8} Session Statistics"));
57128
57290
  lines.push("");
57129
57291
  const data2 = formatKeyValue(
57130
57292
  {
@@ -57137,14 +57299,14 @@ var init_StatusDisplay = __esm({
57137
57299
  },
57138
57300
  {
57139
57301
  keyWidth: 20,
57140
- keyColor: chalk28__default.default.gray,
57141
- valueColor: chalk28__default.default.white
57302
+ keyColor: chalk29__default.default.gray,
57303
+ valueColor: chalk29__default.default.white
57142
57304
  }
57143
57305
  );
57144
57306
  lines.push(data2);
57145
57307
  lines.push("");
57146
57308
  const performance3 = stats.avgResponseTime < 100 ? "Excellent" : stats.avgResponseTime < 500 ? "Good" : stats.avgResponseTime < 1e3 ? "Fair" : "Poor";
57147
- const perfColor = performance3 === "Excellent" ? chalk28__default.default.green : performance3 === "Good" ? chalk28__default.default.blue : performance3 === "Fair" ? chalk28__default.default.yellow : chalk28__default.default.red;
57309
+ const perfColor = performance3 === "Excellent" ? chalk29__default.default.green : performance3 === "Good" ? chalk29__default.default.blue : performance3 === "Fair" ? chalk29__default.default.yellow : chalk29__default.default.red;
57148
57310
  lines.push(`Performance: ${perfColor(performance3)}`);
57149
57311
  return lines.join("\n");
57150
57312
  }
@@ -57156,22 +57318,22 @@ var init_StatusDisplay = __esm({
57156
57318
  static renderStatusBar(data2) {
57157
57319
  const segments = [];
57158
57320
  if (data2.mode) {
57159
- segments.push(chalk28__default.default.cyan(`[${data2.mode}]`));
57321
+ segments.push(chalk29__default.default.cyan(`[${data2.mode}]`));
57160
57322
  }
57161
57323
  if (data2.model) {
57162
- segments.push(chalk28__default.default.blue(`\u{1F916} ${data2.model}`));
57324
+ segments.push(chalk29__default.default.blue(`\u{1F916} ${data2.model}`));
57163
57325
  }
57164
57326
  if (data2.memory !== void 0) {
57165
- const memoryColor = data2.memory > 80 ? chalk28__default.default.red : data2.memory > 60 ? chalk28__default.default.yellow : chalk28__default.default.green;
57327
+ const memoryColor = data2.memory > 80 ? chalk29__default.default.red : data2.memory > 60 ? chalk29__default.default.yellow : chalk29__default.default.green;
57166
57328
  segments.push(memoryColor(`\u{1F4BE} ${data2.memory}%`));
57167
57329
  }
57168
57330
  if (data2.latency !== void 0) {
57169
- const latencyColor = data2.latency < 100 ? chalk28__default.default.green : data2.latency < 500 ? chalk28__default.default.yellow : chalk28__default.default.red;
57331
+ const latencyColor = data2.latency < 100 ? chalk29__default.default.green : data2.latency < 500 ? chalk29__default.default.yellow : chalk29__default.default.red;
57170
57332
  segments.push(latencyColor(`\u26A1 ${data2.latency}ms`));
57171
57333
  }
57172
57334
  if (data2.time) {
57173
57335
  segments.push(
57174
- chalk28__default.default.gray(formatTimestamp(data2.time, "short"))
57336
+ chalk29__default.default.gray(formatTimestamp(data2.time, "short"))
57175
57337
  );
57176
57338
  }
57177
57339
  return segments.join(" \u2502 ");
@@ -57190,7 +57352,7 @@ var init_CoreHandlers = __esm({
57190
57352
  async execute(args2) {
57191
57353
  const startTime = perf_hooks.performance.now();
57192
57354
  const commands = this.registry.getCommands();
57193
- let message = chalk28__default.default.cyan(`\u{1F916} MARIA v3.5.0 - Available Commands
57355
+ let message = chalk29__default.default.cyan(`\u{1F916} MARIA v3.5.0 - Available Commands
57194
57356
 
57195
57357
  `);
57196
57358
  const categories2 = {
@@ -57201,17 +57363,17 @@ var init_CoreHandlers = __esm({
57201
57363
  system: ["/status", "/config", "/logs", "/approve"]
57202
57364
  };
57203
57365
  for (const [category, cmds] of Object.entries(categories2)) {
57204
- message += chalk28__default.default.yellow(`
57366
+ message += chalk29__default.default.yellow(`
57205
57367
  ${category.toUpperCase()}:
57206
57368
  `);
57207
57369
  for (const cmd of cmds) {
57208
57370
  if (commands.includes(cmd)) {
57209
- message += ` ${chalk28__default.default.green(cmd.padEnd(15))} - ${this.getCommandDescription(cmd)}
57371
+ message += ` ${chalk29__default.default.green(cmd.padEnd(15))} - ${this.getCommandDescription(cmd)}
57210
57372
  `;
57211
57373
  }
57212
57374
  }
57213
57375
  }
57214
- message += chalk28__default.default.gray(
57376
+ message += chalk29__default.default.gray(
57215
57377
  `
57216
57378
  Type '/help <command>' for detailed information about a specific command.`
57217
57379
  );
@@ -57259,7 +57421,7 @@ Type '/help <command>' for detailed information about a specific command.`
57259
57421
  const processingTime = perf_hooks.performance.now() - startTime;
57260
57422
  return {
57261
57423
  success: true,
57262
- message: chalk28__default.default.gray("Terminal cleared."),
57424
+ message: chalk29__default.default.gray("Terminal cleared."),
57263
57425
  metadata: {
57264
57426
  processingTime,
57265
57427
  timestamp: /* @__PURE__ */ new Date()
@@ -57270,7 +57432,7 @@ Type '/help <command>' for detailed information about a specific command.`
57270
57432
  ExitHandler = class {
57271
57433
  async execute(args2) {
57272
57434
  const startTime = perf_hooks.performance.now();
57273
- const message = chalk28__default.default.yellow("\u{1F44B} Goodbye! Thank you for using MARIA.\n");
57435
+ const message = chalk29__default.default.green("\u{1F44B} Goodbye! Thank you for using MARIA.\n");
57274
57436
  process.emit("SIGTERM");
57275
57437
  const processingTime = perf_hooks.performance.now() - startTime;
57276
57438
  return {
@@ -57294,23 +57456,23 @@ Type '/help <command>' for detailed information about a specific command.`
57294
57456
  platform: process.platform,
57295
57457
  arch: process.arch
57296
57458
  };
57297
- let message = chalk28__default.default.cyan("\u{1F680} MARIA System Information\n\n");
57298
- message += chalk28__default.default.white(` Version: ${chalk28__default.default.green(packageInfo.version)}
57459
+ let message = chalk29__default.default.cyan("\u{1F680} MARIA System Information\n\n");
57460
+ message += chalk29__default.default.white(` Version: ${chalk29__default.default.green(packageInfo.version)}
57299
57461
  `);
57300
- message += chalk28__default.default.white(` Package: ${chalk28__default.default.green(packageInfo.name)}
57462
+ message += chalk29__default.default.white(` Package: ${chalk29__default.default.green(packageInfo.name)}
57301
57463
  `);
57302
- message += chalk28__default.default.white(` Node: ${chalk28__default.default.green(packageInfo.node)}
57464
+ message += chalk29__default.default.white(` Node: ${chalk29__default.default.green(packageInfo.node)}
57303
57465
  `);
57304
- message += chalk28__default.default.white(
57305
- ` Platform: ${chalk28__default.default.green(packageInfo.platform)}
57466
+ message += chalk29__default.default.white(
57467
+ ` Platform: ${chalk29__default.default.green(packageInfo.platform)}
57306
57468
  `
57307
57469
  );
57308
- message += chalk28__default.default.white(` Arch: ${chalk28__default.default.green(packageInfo.arch)}
57470
+ message += chalk29__default.default.white(` Arch: ${chalk29__default.default.green(packageInfo.arch)}
57309
57471
  `);
57310
- message += chalk28__default.default.gray(`
57472
+ message += chalk29__default.default.gray(`
57311
57473
  Build: Production
57312
57474
  `);
57313
- message += chalk28__default.default.gray(` License: MIT
57475
+ message += chalk29__default.default.gray(` License: MIT
57314
57476
  `);
57315
57477
  const processingTime = perf_hooks.performance.now() - startTime;
57316
57478
  return {
@@ -57335,15 +57497,15 @@ Type '/help <command>' for detailed information about a specific command.`
57335
57497
  this.history.push("/history");
57336
57498
  }
57337
57499
  const recent = this.history.slice(-limit);
57338
- let message = chalk28__default.default.cyan(`\u{1F4DC} Command History (last ${recent.length}):
57500
+ let message = chalk29__default.default.cyan(`\u{1F4DC} Command History (last ${recent.length}):
57339
57501
 
57340
57502
  `);
57341
57503
  recent.forEach((cmd, index2) => {
57342
57504
  const num = this.history.length - recent.length + index2 + 1;
57343
- message += chalk28__default.default.gray(` ${num.toString().padStart(3)}: `) + chalk28__default.default.white(cmd) + "\n";
57505
+ message += chalk29__default.default.gray(` ${num.toString().padStart(3)}: `) + chalk29__default.default.white(cmd) + "\n";
57344
57506
  });
57345
57507
  if (recent.length === 0) {
57346
- message = chalk28__default.default.gray("No command history available.");
57508
+ message = chalk29__default.default.gray("No command history available.");
57347
57509
  }
57348
57510
  const processingTime = perf_hooks.performance.now() - startTime;
57349
57511
  return {
@@ -57389,13 +57551,13 @@ var init_DevHandlers = __esm({
57389
57551
  if (!prompt) {
57390
57552
  return {
57391
57553
  ok: false,
57392
- message: chalk28__default.default.red("\u274C Please provide a code generation request.\n") + chalk28__default.default.gray("Usage: /code <description>\n") + chalk28__default.default.gray("Example: /code create a React button component")
57554
+ message: chalk29__default.default.red("\u274C Please provide a code generation request.\n") + chalk29__default.default.gray("Usage: /code <description>\n") + chalk29__default.default.gray("Example: /code create a React button component")
57393
57555
  };
57394
57556
  }
57395
57557
  if (signal?.aborted) {
57396
57558
  return {
57397
57559
  ok: false,
57398
- message: chalk28__default.default.yellow("Code generation canceled")
57560
+ message: chalk29__default.default.yellow("Code generation canceled")
57399
57561
  };
57400
57562
  }
57401
57563
  try {
@@ -57406,9 +57568,9 @@ var init_DevHandlers = __esm({
57406
57568
  if (dryRun) {
57407
57569
  return {
57408
57570
  ok: true,
57409
- message: chalk28__default.default.cyan("\u{1F50D} Dry run mode - would generate:\n") + chalk28__default.default.gray(`Language: ${language}
57410
- `) + chalk28__default.default.gray(`Framework: ${framework || "none"}
57411
- `) + chalk28__default.default.gray(`Prompt: ${cleanPrompt}`)
57571
+ message: chalk29__default.default.cyan("\u{1F50D} Dry run mode - would generate:\n") + chalk29__default.default.gray(`Language: ${language}
57572
+ `) + chalk29__default.default.gray(`Framework: ${framework || "none"}
57573
+ `) + chalk29__default.default.gray(`Prompt: ${cleanPrompt}`)
57412
57574
  };
57413
57575
  }
57414
57576
  const generatedCode = `// Generated code for: ${cleanPrompt}
@@ -57420,7 +57582,7 @@ function generated() {
57420
57582
  export { generated };`;
57421
57583
  return {
57422
57584
  ok: true,
57423
- message: chalk28__default.default.green("\u2705 Code generated successfully:\n\n") + chalk28__default.default.gray("```" + language + "\n") + generatedCode + chalk28__default.default.gray("\n```"),
57585
+ message: chalk29__default.default.green("\u2705 Code generated successfully:\n\n") + chalk29__default.default.gray("```" + language + "\n") + generatedCode + chalk29__default.default.gray("\n```"),
57424
57586
  data: {
57425
57587
  code: generatedCode,
57426
57588
  language,
@@ -57433,7 +57595,7 @@ export { generated };`;
57433
57595
  } catch (error2) {
57434
57596
  return {
57435
57597
  ok: false,
57436
- message: chalk28__default.default.red(`Code generation failed: ${error2}`)
57598
+ message: chalk29__default.default.red(`Code generation failed: ${error2}`)
57437
57599
  };
57438
57600
  }
57439
57601
  }
@@ -57447,7 +57609,7 @@ export { generated };`;
57447
57609
  if (signal?.aborted) {
57448
57610
  return {
57449
57611
  ok: false,
57450
- message: chalk28__default.default.yellow("Test operation canceled")
57612
+ message: chalk29__default.default.yellow("Test operation canceled")
57451
57613
  };
57452
57614
  }
57453
57615
  const subcommand = args2[0] || "run";
@@ -57463,8 +57625,8 @@ export { generated };`;
57463
57625
  default:
57464
57626
  return {
57465
57627
  ok: false,
57466
- message: chalk28__default.default.red(`Unknown test subcommand: ${subcommand}
57467
- `) + chalk28__default.default.gray("Available: generate, run, coverage")
57628
+ message: chalk29__default.default.red(`Unknown test subcommand: ${subcommand}
57629
+ `) + chalk29__default.default.gray("Available: generate, run, coverage")
57468
57630
  };
57469
57631
  }
57470
57632
  }
@@ -57472,7 +57634,7 @@ export { generated };`;
57472
57634
  if (!target) {
57473
57635
  return {
57474
57636
  ok: false,
57475
- message: chalk28__default.default.red(
57637
+ message: chalk29__default.default.red(
57476
57638
  "Please specify a file or function to generate tests for"
57477
57639
  )
57478
57640
  };
@@ -57489,9 +57651,9 @@ describe("${target}", () => {
57489
57651
  });`;
57490
57652
  return {
57491
57653
  ok: true,
57492
- message: chalk28__default.default.green(`\u2705 Tests generated for ${target}:
57654
+ message: chalk29__default.default.green(`\u2705 Tests generated for ${target}:
57493
57655
 
57494
- `) + chalk28__default.default.gray("```typescript\n") + testCode + chalk28__default.default.gray("\n```"),
57656
+ `) + chalk29__default.default.gray("```typescript\n") + testCode + chalk29__default.default.gray("\n```"),
57495
57657
  data: { testCode, framework, target }
57496
57658
  };
57497
57659
  }
@@ -57504,23 +57666,23 @@ describe("${target}", () => {
57504
57666
  if (coverage) command += " --coverage";
57505
57667
  return {
57506
57668
  ok: true,
57507
- message: chalk28__default.default.cyan(`\u{1F9EA} Running tests...
57508
- `) + chalk28__default.default.gray(`Command: ${command}
57669
+ message: chalk29__default.default.cyan(`\u{1F9EA} Running tests...
57670
+ `) + chalk29__default.default.gray(`Command: ${command}
57509
57671
 
57510
- `) + chalk28__default.default.green("\u2705 All tests passed!"),
57672
+ `) + chalk29__default.default.green("\u2705 All tests passed!"),
57511
57673
  data: { command, passed: true }
57512
57674
  };
57513
57675
  }
57514
57676
  async showCoverage(options2) {
57515
57677
  return {
57516
57678
  ok: true,
57517
- message: chalk28__default.default.cyan("\u{1F4CA} Test Coverage Report:\n\n") + chalk28__default.default.gray("File".padEnd(40) + "% Stmts".padEnd(10) + "% Lines\n") + chalk28__default.default.gray("-".repeat(60) + "\n") + chalk28__default.default.green(
57679
+ message: chalk29__default.default.cyan("\u{1F4CA} Test Coverage Report:\n\n") + chalk29__default.default.gray("File".padEnd(40) + "% Stmts".padEnd(10) + "% Lines\n") + chalk29__default.default.gray("-".repeat(60) + "\n") + chalk29__default.default.green(
57518
57680
  "SessionStateMachine.ts".padEnd(40) + "100.00".padEnd(10) + "100.00\n"
57519
- ) + chalk28__default.default.green(
57681
+ ) + chalk29__default.default.green(
57520
57682
  "InputController.ts".padEnd(40) + "95.50".padEnd(10) + "94.20\n"
57521
- ) + chalk28__default.default.yellow(
57683
+ ) + chalk29__default.default.yellow(
57522
57684
  "SessionManager.ts".padEnd(40) + "78.30".padEnd(10) + "76.50\n"
57523
- ) + chalk28__default.default.gray("-".repeat(60) + "\n") + chalk28__default.default.cyan("Total".padEnd(40) + "85.60".padEnd(10) + "84.30")
57685
+ ) + chalk29__default.default.gray("-".repeat(60) + "\n") + chalk29__default.default.cyan("Total".padEnd(40) + "85.60".padEnd(10) + "84.30")
57524
57686
  };
57525
57687
  }
57526
57688
  };
@@ -57534,33 +57696,33 @@ describe("${target}", () => {
57534
57696
  if (!file) {
57535
57697
  return {
57536
57698
  ok: false,
57537
- message: chalk28__default.default.red("Please specify a file to review\n") + chalk28__default.default.gray("Usage: /review <file> [--security] [--performance]")
57699
+ message: chalk29__default.default.red("Please specify a file to review\n") + chalk29__default.default.gray("Usage: /review <file> [--security] [--performance]")
57538
57700
  };
57539
57701
  }
57540
57702
  const checkSecurity = args2.includes("--security");
57541
57703
  const checkPerformance = args2.includes("--performance");
57542
- let message = chalk28__default.default.cyan(`\u{1F50D} Code Review for ${file}
57704
+ let message = chalk29__default.default.cyan(`\u{1F50D} Code Review for ${file}
57543
57705
 
57544
57706
  `);
57545
- message += chalk28__default.default.yellow("\u26A0\uFE0F Issues Found (3):\n");
57546
- message += chalk28__default.default.gray(" 1. Line 42: ") + chalk28__default.default.yellow("Missing error handling in async function\n");
57547
- message += chalk28__default.default.gray(" 2. Line 89: ") + chalk28__default.default.yellow("Potential memory leak - event listener not removed\n");
57548
- message += chalk28__default.default.gray(" 3. Line 156: ") + chalk28__default.default.yellow(
57707
+ message += chalk29__default.default.yellow("\u26A0\uFE0F Issues Found (3):\n");
57708
+ message += chalk29__default.default.gray(" 1. Line 42: ") + chalk29__default.default.yellow("Missing error handling in async function\n");
57709
+ message += chalk29__default.default.gray(" 2. Line 89: ") + chalk29__default.default.yellow("Potential memory leak - event listener not removed\n");
57710
+ message += chalk29__default.default.gray(" 3. Line 156: ") + chalk29__default.default.yellow(
57549
57711
  "Complex function - consider refactoring (cyclomatic complexity: 12)\n\n"
57550
57712
  );
57551
57713
  if (checkSecurity) {
57552
- message += chalk28__default.default.red("\u{1F512} Security Issues (1):\n");
57553
- message += chalk28__default.default.gray(" 1. Line 67: ") + chalk28__default.default.red("Potential XSS vulnerability - user input not sanitized\n\n");
57714
+ message += chalk29__default.default.red("\u{1F512} Security Issues (1):\n");
57715
+ message += chalk29__default.default.gray(" 1. Line 67: ") + chalk29__default.default.red("Potential XSS vulnerability - user input not sanitized\n\n");
57554
57716
  }
57555
57717
  if (checkPerformance) {
57556
- message += chalk28__default.default.blue("\u26A1 Performance Suggestions (2):\n");
57557
- message += chalk28__default.default.gray(" 1. Line 23: ") + chalk28__default.default.blue("Consider memoization for expensive calculation\n");
57558
- message += chalk28__default.default.gray(" 2. Line 145: ") + chalk28__default.default.blue("Use virtualization for large list rendering\n\n");
57559
- }
57560
- message += chalk28__default.default.green("\u2705 Positive Findings:\n");
57561
- message += chalk28__default.default.gray(" \u2022 Good TypeScript type coverage (92%)\n");
57562
- message += chalk28__default.default.gray(" \u2022 Consistent code style\n");
57563
- message += chalk28__default.default.gray(" \u2022 Well-documented functions\n");
57718
+ message += chalk29__default.default.blue("\u26A1 Performance Suggestions (2):\n");
57719
+ message += chalk29__default.default.gray(" 1. Line 23: ") + chalk29__default.default.blue("Consider memoization for expensive calculation\n");
57720
+ message += chalk29__default.default.gray(" 2. Line 145: ") + chalk29__default.default.blue("Use virtualization for large list rendering\n\n");
57721
+ }
57722
+ message += chalk29__default.default.green("\u2705 Positive Findings:\n");
57723
+ message += chalk29__default.default.gray(" \u2022 Good TypeScript type coverage (92%)\n");
57724
+ message += chalk29__default.default.gray(" \u2022 Consistent code style\n");
57725
+ message += chalk29__default.default.gray(" \u2022 Well-documented functions\n");
57564
57726
  return {
57565
57727
  ok: true,
57566
57728
  message,
@@ -57590,8 +57752,8 @@ describe("${target}", () => {
57590
57752
  default:
57591
57753
  return {
57592
57754
  ok: false,
57593
- message: chalk28__default.default.red(`Unknown bug subcommand: ${subcommand}
57594
- `) + chalk28__default.default.gray("Available: report, list, analyze")
57755
+ message: chalk29__default.default.red(`Unknown bug subcommand: ${subcommand}
57756
+ `) + chalk29__default.default.gray("Available: report, list, analyze")
57595
57757
  };
57596
57758
  }
57597
57759
  }
@@ -57600,18 +57762,18 @@ describe("${target}", () => {
57600
57762
  if (!description) {
57601
57763
  return {
57602
57764
  ok: false,
57603
- message: chalk28__default.default.red("Please provide a bug description")
57765
+ message: chalk29__default.default.red("Please provide a bug description")
57604
57766
  };
57605
57767
  }
57606
57768
  const bugId = `BUG-${Date.now().toString(36).toUpperCase()}`;
57607
57769
  return {
57608
57770
  ok: true,
57609
- message: chalk28__default.default.green(`\u{1F41B} Bug reported successfully!
57771
+ message: chalk29__default.default.green(`\u{1F41B} Bug reported successfully!
57610
57772
 
57611
- `) + chalk28__default.default.cyan(`Bug ID: ${bugId}
57612
- `) + chalk28__default.default.gray(`Description: ${description}
57613
- `) + chalk28__default.default.gray(`Status: Open
57614
- `) + chalk28__default.default.gray(`Priority: To be determined
57773
+ `) + chalk29__default.default.cyan(`Bug ID: ${bugId}
57774
+ `) + chalk29__default.default.gray(`Description: ${description}
57775
+ `) + chalk29__default.default.gray(`Status: Open
57776
+ `) + chalk29__default.default.gray(`Priority: To be determined
57615
57777
  `),
57616
57778
  data: { bugId, description, status: "open" }
57617
57779
  };
@@ -57619,23 +57781,23 @@ describe("${target}", () => {
57619
57781
  async listBugs() {
57620
57782
  return {
57621
57783
  ok: true,
57622
- message: chalk28__default.default.cyan("\u{1F41B} Active Bugs:\n\n") + chalk28__default.default.yellow("1. BUG-A1B2C3: ") + chalk28__default.default.gray("Session timeout not handled properly\n") + chalk28__default.default.yellow("2. BUG-D4E5F6: ") + chalk28__default.default.gray("Memory leak in streaming responses\n") + chalk28__default.default.yellow("3. BUG-G7H8I9: ") + chalk28__default.default.gray("Spinner not stopping on error\n\n") + chalk28__default.default.gray("Total: 3 open bugs")
57784
+ message: chalk29__default.default.cyan("\u{1F41B} Active Bugs:\n\n") + chalk29__default.default.yellow("1. BUG-A1B2C3: ") + chalk29__default.default.gray("Session timeout not handled properly\n") + chalk29__default.default.yellow("2. BUG-D4E5F6: ") + chalk29__default.default.gray("Memory leak in streaming responses\n") + chalk29__default.default.yellow("3. BUG-G7H8I9: ") + chalk29__default.default.gray("Spinner not stopping on error\n\n") + chalk29__default.default.gray("Total: 3 open bugs")
57623
57785
  };
57624
57786
  }
57625
57787
  async analyzeBug(bugId) {
57626
57788
  if (!bugId) {
57627
57789
  return {
57628
57790
  ok: false,
57629
- message: chalk28__default.default.red("Please provide a bug ID to analyze")
57791
+ message: chalk29__default.default.red("Please provide a bug ID to analyze")
57630
57792
  };
57631
57793
  }
57632
57794
  return {
57633
57795
  ok: true,
57634
- message: chalk28__default.default.cyan(`\u{1F50D} Bug Analysis for ${bugId}:
57796
+ message: chalk29__default.default.cyan(`\u{1F50D} Bug Analysis for ${bugId}:
57635
57797
 
57636
- `) + chalk28__default.default.yellow("Summary: ") + chalk28__default.default.gray("Session timeout not handled properly\n") + chalk28__default.default.yellow("Severity: ") + chalk28__default.default.orange("Medium\n") + chalk28__default.default.yellow("Component: ") + chalk28__default.default.gray("SessionManager\n") + chalk28__default.default.yellow("Reported: ") + chalk28__default.default.gray("2 days ago\n\n") + chalk28__default.default.cyan("Possible Causes:\n") + chalk28__default.default.gray(
57798
+ `) + chalk29__default.default.yellow("Summary: ") + chalk29__default.default.gray("Session timeout not handled properly\n") + chalk29__default.default.yellow("Severity: ") + chalk29__default.default.orange("Medium\n") + chalk29__default.default.yellow("Component: ") + chalk29__default.default.gray("SessionManager\n") + chalk29__default.default.yellow("Reported: ") + chalk29__default.default.gray("2 days ago\n\n") + chalk29__default.default.cyan("Possible Causes:\n") + chalk29__default.default.gray(
57637
57799
  " 1. AbortSignal not propagated to all async operations\n"
57638
- ) + chalk28__default.default.gray(" 2. Deadline timer not cleared on completion\n") + chalk28__default.default.gray(" 3. Race condition in state transitions\n\n") + chalk28__default.default.green("Suggested Fix:\n") + chalk28__default.default.gray(" Ensure all async operations respect the AbortSignal\n") + chalk28__default.default.gray(" Add finally block to clear timers\n")
57800
+ ) + chalk29__default.default.gray(" 2. Deadline timer not cleared on completion\n") + chalk29__default.default.gray(" 3. Race condition in state transitions\n\n") + chalk29__default.default.green("Suggested Fix:\n") + chalk29__default.default.gray(" Ensure all async operations respect the AbortSignal\n") + chalk29__default.default.gray(" Add finally block to clear timers\n")
57639
57801
  };
57640
57802
  }
57641
57803
  };
@@ -57659,7 +57821,7 @@ var init_SystemHandlers = __esm({
57659
57821
  if (signal?.aborted) {
57660
57822
  return {
57661
57823
  ok: false,
57662
- message: chalk28__default.default.yellow("Status check canceled")
57824
+ message: chalk29__default.default.yellow("Status check canceled")
57663
57825
  };
57664
57826
  }
57665
57827
  const verbose = args2.includes("--verbose") || args2.includes("-v");
@@ -57670,44 +57832,44 @@ var init_SystemHandlers = __esm({
57670
57832
  cpu: os13__namespace.cpus()[0],
57671
57833
  platform: process.platform
57672
57834
  };
57673
- let message = chalk28__default.default.cyan.bold("\u{1F4CA} System Status\n\n");
57674
- message += chalk28__default.default.green("\u2705 System: Operational\n");
57675
- message += chalk28__default.default.gray(
57835
+ let message = chalk29__default.default.cyan.bold("\u{1F4CA} System Status\n\n");
57836
+ message += chalk29__default.default.green("\u2705 System: Operational\n");
57837
+ message += chalk29__default.default.gray(
57676
57838
  `\u23F1\uFE0F Uptime: ${Math.floor(status.uptime / 60)}m ${Math.floor(status.uptime % 60)}s
57677
57839
  `
57678
57840
  );
57679
- message += chalk28__default.default.gray(
57841
+ message += chalk29__default.default.gray(
57680
57842
  `\u{1F4BE} Memory: ${Math.round(status.memory.heapUsed / 1024 / 1024)}MB / ${Math.round(status.memory.heapTotal / 1024 / 1024)}MB
57681
57843
  `
57682
57844
  );
57683
57845
  if (verbose) {
57684
- message += chalk28__default.default.gray("\nDetailed Information:\n");
57685
- message += chalk28__default.default.gray(` \u2022 CPU: ${status.cpu.model}
57846
+ message += chalk29__default.default.gray("\nDetailed Information:\n");
57847
+ message += chalk29__default.default.gray(` \u2022 CPU: ${status.cpu.model}
57686
57848
  `);
57687
- message += chalk28__default.default.gray(
57849
+ message += chalk29__default.default.gray(
57688
57850
  ` \u2022 Platform: ${status.platform} (${os13__namespace.arch()})
57689
57851
  `
57690
57852
  );
57691
- message += chalk28__default.default.gray(` \u2022 Node.js: ${process.version}
57853
+ message += chalk29__default.default.gray(` \u2022 Node.js: ${process.version}
57692
57854
  `);
57693
- message += chalk28__default.default.gray(` \u2022 Process ID: ${process.pid}
57855
+ message += chalk29__default.default.gray(` \u2022 Process ID: ${process.pid}
57694
57856
  `);
57695
- message += chalk28__default.default.gray(` \u2022 Working Directory: ${process.cwd()}
57857
+ message += chalk29__default.default.gray(` \u2022 Working Directory: ${process.cwd()}
57696
57858
  `);
57697
- message += chalk28__default.default.gray("\nMemory Details:\n");
57698
- message += chalk28__default.default.gray(
57859
+ message += chalk29__default.default.gray("\nMemory Details:\n");
57860
+ message += chalk29__default.default.gray(
57699
57861
  ` \u2022 RSS: ${Math.round(status.memory.rss / 1024 / 1024)}MB
57700
57862
  `
57701
57863
  );
57702
- message += chalk28__default.default.gray(
57864
+ message += chalk29__default.default.gray(
57703
57865
  ` \u2022 Heap Used: ${Math.round(status.memory.heapUsed / 1024 / 1024)}MB
57704
57866
  `
57705
57867
  );
57706
- message += chalk28__default.default.gray(
57868
+ message += chalk29__default.default.gray(
57707
57869
  ` \u2022 Heap Total: ${Math.round(status.memory.heapTotal / 1024 / 1024)}MB
57708
57870
  `
57709
57871
  );
57710
- message += chalk28__default.default.gray(
57872
+ message += chalk29__default.default.gray(
57711
57873
  ` \u2022 External: ${Math.round(status.memory.external / 1024 / 1024)}MB
57712
57874
  `
57713
57875
  );
@@ -57736,7 +57898,7 @@ var init_SystemHandlers = __esm({
57736
57898
  if (signal?.aborted) {
57737
57899
  return {
57738
57900
  ok: false,
57739
- message: chalk28__default.default.yellow("Model operation canceled")
57901
+ message: chalk29__default.default.yellow("Model operation canceled")
57740
57902
  };
57741
57903
  }
57742
57904
  if (args2.length === 0) {
@@ -57756,17 +57918,17 @@ var init_SystemHandlers = __esm({
57756
57918
  }
57757
57919
  }
57758
57920
  async listModels() {
57759
- let message = chalk28__default.default.cyan.bold("\u{1F916} Available Models\n\n");
57760
- message += chalk28__default.default.green(`Current: ${this.currentModel}
57921
+ let message = chalk29__default.default.cyan.bold("\u{1F916} Available Models\n\n");
57922
+ message += chalk29__default.default.green(`Current: ${this.currentModel}
57761
57923
 
57762
57924
  `);
57763
57925
  for (const model of this.availableModels) {
57764
- const status = model.available ? chalk28__default.default.green("\u2705") : chalk28__default.default.red("\u274C");
57765
- const name2 = model.id === this.currentModel ? chalk28__default.default.green.bold(model.id) : chalk28__default.default.cyan(model.id);
57766
- message += `${status} ${name2.padEnd(20)} ${chalk28__default.default.gray(`[${model.provider}]`)}
57926
+ const status = model.available ? chalk29__default.default.green("\u2705") : chalk29__default.default.red("\u274C");
57927
+ const name2 = model.id === this.currentModel ? chalk29__default.default.green.bold(model.id) : chalk29__default.default.cyan(model.id);
57928
+ message += `${status} ${name2.padEnd(20)} ${chalk29__default.default.gray(`[${model.provider}]`)}
57767
57929
  `;
57768
57930
  }
57769
- message += chalk28__default.default.gray("\nUse /model <name> to switch models");
57931
+ message += chalk29__default.default.gray("\nUse /model <name> to switch models");
57770
57932
  return {
57771
57933
  ok: true,
57772
57934
  message,
@@ -57777,27 +57939,27 @@ var init_SystemHandlers = __esm({
57777
57939
  if (!modelId) {
57778
57940
  return {
57779
57941
  ok: false,
57780
- message: chalk28__default.default.red("Please specify a model to switch to")
57942
+ message: chalk29__default.default.red("Please specify a model to switch to")
57781
57943
  };
57782
57944
  }
57783
57945
  const model = this.availableModels.find((m2) => m2.id === modelId);
57784
57946
  if (!model) {
57785
57947
  return {
57786
57948
  ok: false,
57787
- message: chalk28__default.default.red(`Unknown model: ${modelId}
57788
- `) + chalk28__default.default.gray("Use /model list to see available models")
57949
+ message: chalk29__default.default.red(`Unknown model: ${modelId}
57950
+ `) + chalk29__default.default.gray("Use /model list to see available models")
57789
57951
  };
57790
57952
  }
57791
57953
  if (!model.available) {
57792
57954
  return {
57793
57955
  ok: false,
57794
- message: chalk28__default.default.yellow(`Model ${modelId} is not currently available`)
57956
+ message: chalk29__default.default.yellow(`Model ${modelId} is not currently available`)
57795
57957
  };
57796
57958
  }
57797
57959
  this.currentModel = modelId;
57798
57960
  return {
57799
57961
  ok: true,
57800
- message: chalk28__default.default.green(`\u2705 Switched to ${modelId}`),
57962
+ message: chalk29__default.default.green(`\u2705 Switched to ${modelId}`),
57801
57963
  data: { model: modelId }
57802
57964
  };
57803
57965
  }
@@ -57806,27 +57968,27 @@ var init_SystemHandlers = __esm({
57806
57968
  if (!model) {
57807
57969
  return {
57808
57970
  ok: false,
57809
- message: chalk28__default.default.red(`Unknown model: ${modelId}`)
57971
+ message: chalk29__default.default.red(`Unknown model: ${modelId}`)
57810
57972
  };
57811
57973
  }
57812
- let message = chalk28__default.default.cyan(`\u{1F4CB} Model Information: ${modelId}
57974
+ let message = chalk29__default.default.cyan(`\u{1F4CB} Model Information: ${modelId}
57813
57975
 
57814
57976
  `);
57815
- message += chalk28__default.default.gray(`Provider: ${model.provider}
57977
+ message += chalk29__default.default.gray(`Provider: ${model.provider}
57816
57978
  `);
57817
- message += chalk28__default.default.gray(
57979
+ message += chalk29__default.default.gray(
57818
57980
  `Status: ${model.available ? "Available" : "Unavailable"}
57819
57981
  `
57820
57982
  );
57821
- message += chalk28__default.default.gray(
57983
+ message += chalk29__default.default.gray(
57822
57984
  `Current: ${model.id === this.currentModel ? "Yes" : "No"}
57823
57985
  `
57824
57986
  );
57825
- message += chalk28__default.default.gray("\nCapabilities:\n");
57826
- message += chalk28__default.default.gray(" \u2022 Context: 128K tokens\n");
57827
- message += chalk28__default.default.gray(" \u2022 Languages: 95+\n");
57828
- message += chalk28__default.default.gray(" \u2022 Code: Yes\n");
57829
- message += chalk28__default.default.gray(" \u2022 Vision: ") + (modelId.includes("gpt-4") ? "Yes\n" : "No\n");
57987
+ message += chalk29__default.default.gray("\nCapabilities:\n");
57988
+ message += chalk29__default.default.gray(" \u2022 Context: 128K tokens\n");
57989
+ message += chalk29__default.default.gray(" \u2022 Languages: 95+\n");
57990
+ message += chalk29__default.default.gray(" \u2022 Code: Yes\n");
57991
+ message += chalk29__default.default.gray(" \u2022 Vision: ") + (modelId.includes("gpt-4") ? "Yes\n" : "No\n");
57830
57992
  return {
57831
57993
  ok: true,
57832
57994
  message,
@@ -57858,39 +58020,39 @@ var init_SystemHandlers = __esm({
57858
58020
  default:
57859
58021
  return {
57860
58022
  ok: false,
57861
- message: chalk28__default.default.red(`Unknown memory subcommand: ${subcommand}
57862
- `) + chalk28__default.default.gray("Available: status, clear, export, compact")
58023
+ message: chalk29__default.default.red(`Unknown memory subcommand: ${subcommand}
58024
+ `) + chalk29__default.default.gray("Available: status, clear, export, compact")
57863
58025
  };
57864
58026
  }
57865
58027
  }
57866
58028
  async showStatus() {
57867
- let message = chalk28__default.default.cyan.bold("\u{1F9E0} Memory Status\n\n");
57868
- message += chalk28__default.default.yellow("System 1 (Fast):\n");
57869
- message += chalk28__default.default.gray(
58029
+ let message = chalk29__default.default.cyan.bold("\u{1F9E0} Memory Status\n\n");
58030
+ message += chalk29__default.default.yellow("System 1 (Fast):\n");
58031
+ message += chalk29__default.default.gray(
57870
58032
  ` \u2022 Knowledge Nodes: ${this.memoryStats.system1.nodes}
57871
58033
  `
57872
58034
  );
57873
- message += chalk28__default.default.gray(` \u2022 Tokens: ${this.memoryStats.system1.tokens}
58035
+ message += chalk29__default.default.gray(` \u2022 Tokens: ${this.memoryStats.system1.tokens}
57874
58036
 
57875
58037
  `);
57876
- message += chalk28__default.default.blue("System 2 (Deep):\n");
57877
- message += chalk28__default.default.gray(
58038
+ message += chalk29__default.default.blue("System 2 (Deep):\n");
58039
+ message += chalk29__default.default.gray(
57878
58040
  ` \u2022 Reasoning Traces: ${this.memoryStats.system2.traces}
57879
58041
  `
57880
58042
  );
57881
- message += chalk28__default.default.gray(` \u2022 Tokens: ${this.memoryStats.system2.tokens}
58043
+ message += chalk29__default.default.gray(` \u2022 Tokens: ${this.memoryStats.system2.tokens}
57882
58044
 
57883
58045
  `);
57884
- message += chalk28__default.default.green("Total:\n");
57885
- message += chalk28__default.default.gray(` \u2022 Entries: ${this.memoryStats.total.entries}
58046
+ message += chalk29__default.default.green("Total:\n");
58047
+ message += chalk29__default.default.gray(` \u2022 Entries: ${this.memoryStats.total.entries}
57886
58048
  `);
57887
- message += chalk28__default.default.gray(
58049
+ message += chalk29__default.default.gray(
57888
58050
  ` \u2022 Tokens: ${this.memoryStats.total.tokens} / 128000
57889
58051
  `
57890
58052
  );
57891
58053
  const usage = Math.round(this.memoryStats.total.tokens / 128e3 * 100);
57892
58054
  const bar = "\u2588".repeat(Math.floor(usage / 5)) + "\u2591".repeat(20 - Math.floor(usage / 5));
57893
- message += chalk28__default.default.gray(` \u2022 Usage: [${bar}] ${usage}%
58055
+ message += chalk29__default.default.gray(` \u2022 Usage: [${bar}] ${usage}%
57894
58056
  `);
57895
58057
  return {
57896
58058
  ok: true,
@@ -57904,14 +58066,14 @@ var init_SystemHandlers = __esm({
57904
58066
  this.memoryStats.system1 = { nodes: 0, tokens: 0 };
57905
58067
  return {
57906
58068
  ok: true,
57907
- message: chalk28__default.default.green("\u2705 System 1 memory cleared")
58069
+ message: chalk29__default.default.green("\u2705 System 1 memory cleared")
57908
58070
  };
57909
58071
  }
57910
58072
  if (system === "system2") {
57911
58073
  this.memoryStats.system2 = { traces: 0, tokens: 0 };
57912
58074
  return {
57913
58075
  ok: true,
57914
- message: chalk28__default.default.green("\u2705 System 2 memory cleared")
58076
+ message: chalk29__default.default.green("\u2705 System 2 memory cleared")
57915
58077
  };
57916
58078
  }
57917
58079
  this.memoryStats = {
@@ -57921,15 +58083,15 @@ var init_SystemHandlers = __esm({
57921
58083
  };
57922
58084
  return {
57923
58085
  ok: true,
57924
- message: chalk28__default.default.green("\u{1F9F9} All memory cleared")
58086
+ message: chalk29__default.default.green("\u{1F9F9} All memory cleared")
57925
58087
  };
57926
58088
  }
57927
58089
  async exportMemory() {
57928
58090
  const filename = `memory-export-${Date.now()}.json`;
57929
58091
  return {
57930
58092
  ok: true,
57931
- message: chalk28__default.default.green(`\u{1F4E6} Memory exported to ${filename}
57932
- `) + chalk28__default.default.gray(
58093
+ message: chalk29__default.default.green(`\u{1F4E6} Memory exported to ${filename}
58094
+ `) + chalk29__default.default.gray(
57933
58095
  `Size: ${Math.round(JSON.stringify(this.memoryStats).length / 1024)}KB`
57934
58096
  ),
57935
58097
  data: { filename, stats: this.memoryStats }
@@ -57947,9 +58109,9 @@ var init_SystemHandlers = __esm({
57947
58109
  );
57948
58110
  return {
57949
58111
  ok: true,
57950
- message: chalk28__default.default.green("\u2728 Memory compacted successfully\n") + chalk28__default.default.gray(`Before: ${before} tokens
57951
- `) + chalk28__default.default.gray(`After: ${after} tokens
57952
- `) + chalk28__default.default.gray(
58112
+ message: chalk29__default.default.green("\u2728 Memory compacted successfully\n") + chalk29__default.default.gray(`Before: ${before} tokens
58113
+ `) + chalk29__default.default.gray(`After: ${after} tokens
58114
+ `) + chalk29__default.default.gray(
57953
58115
  `Saved: ${before - after} tokens (${Math.round((1 - after / before) * 100)}%)`
57954
58116
  ),
57955
58117
  data: { before, after, saved: before - after }
@@ -57965,11 +58127,11 @@ var init_SystemHandlers = __esm({
57965
58127
  if (signal?.aborted) {
57966
58128
  return {
57967
58129
  ok: false,
57968
- message: chalk28__default.default.yellow("Health check canceled")
58130
+ message: chalk29__default.default.yellow("Health check canceled")
57969
58131
  };
57970
58132
  }
57971
58133
  const detailed = args2.includes("--detailed");
57972
- let message = chalk28__default.default.cyan.bold("\u{1F3E5} System Health Check\n\n");
58134
+ let message = chalk29__default.default.cyan.bold("\u{1F3E5} System Health Check\n\n");
57973
58135
  const checks = [
57974
58136
  { name: "Core Services", status: "ok", latency: 12 },
57975
58137
  { name: "Memory System", status: "ok", latency: 8 },
@@ -57978,11 +58140,11 @@ var init_SystemHandlers = __esm({
57978
58140
  { name: "Network", status: "warning", latency: 250 }
57979
58141
  ];
57980
58142
  for (const check of checks) {
57981
- const icon = check.status === "ok" ? chalk28__default.default.green("\u2705") : check.status === "warning" ? chalk28__default.default.yellow("\u26A0\uFE0F") : chalk28__default.default.red("\u274C");
57982
- const status = check.status === "ok" ? chalk28__default.default.green("OK") : check.status === "warning" ? chalk28__default.default.yellow("WARNING") : chalk28__default.default.red("ERROR");
58143
+ const icon = check.status === "ok" ? chalk29__default.default.green("\u2705") : check.status === "warning" ? chalk29__default.default.yellow("\u26A0\uFE0F") : chalk29__default.default.red("\u274C");
58144
+ const status = check.status === "ok" ? chalk29__default.default.green("OK") : check.status === "warning" ? chalk29__default.default.yellow("WARNING") : chalk29__default.default.red("ERROR");
57983
58145
  message += `${icon} ${check.name.padEnd(20)} ${status}`;
57984
58146
  if (detailed) {
57985
- message += chalk28__default.default.gray(` (${check.latency}ms)`);
58147
+ message += chalk29__default.default.gray(` (${check.latency}ms)`);
57986
58148
  }
57987
58149
  message += "\n";
57988
58150
  }
@@ -57990,11 +58152,11 @@ var init_SystemHandlers = __esm({
57990
58152
  const hasErrors = checks.some((c) => c.status === "error");
57991
58153
  message += "\n";
57992
58154
  if (hasErrors) {
57993
- message += chalk28__default.default.red("\u26A0\uFE0F System has errors - intervention required");
58155
+ message += chalk29__default.default.red("\u26A0\uFE0F System has errors - intervention required");
57994
58156
  } else if (hasWarnings) {
57995
- message += chalk28__default.default.yellow("\u26A0\uFE0F System operational with warnings");
58157
+ message += chalk29__default.default.yellow("\u26A0\uFE0F System operational with warnings");
57996
58158
  } else {
57997
- message += chalk28__default.default.green("\u2705 All systems operational");
58159
+ message += chalk29__default.default.green("\u2705 All systems operational");
57998
58160
  }
57999
58161
  return {
58000
58162
  ok: true,
@@ -58012,12 +58174,12 @@ var init_SystemHandlers = __esm({
58012
58174
  if (signal?.aborted) {
58013
58175
  return {
58014
58176
  ok: false,
58015
- message: chalk28__default.default.yellow("Doctor check canceled")
58177
+ message: chalk29__default.default.yellow("Doctor check canceled")
58016
58178
  };
58017
58179
  }
58018
58180
  const autoFix = args2.includes("--fix");
58019
- let message = chalk28__default.default.cyan.bold("\u{1F468}\u2695\uFE0F System Doctor\n\n");
58020
- message += chalk28__default.default.gray("Running diagnostics...\n\n");
58181
+ let message = chalk29__default.default.cyan.bold("\u{1F468}\u2695\uFE0F System Doctor\n\n");
58182
+ message += chalk29__default.default.gray("Running diagnostics...\n\n");
58021
58183
  const issues = [
58022
58184
  {
58023
58185
  severity: "warning",
@@ -58039,20 +58201,20 @@ var init_SystemHandlers = __esm({
58039
58201
  }
58040
58202
  ];
58041
58203
  if (issues.length === 0) {
58042
- message += chalk28__default.default.green("\u2705 No issues found - system is healthy!");
58204
+ message += chalk29__default.default.green("\u2705 No issues found - system is healthy!");
58043
58205
  return { ok: true, message };
58044
58206
  }
58045
- message += chalk28__default.default.yellow(`Found ${issues.length} issue(s):
58207
+ message += chalk29__default.default.yellow(`Found ${issues.length} issue(s):
58046
58208
 
58047
58209
  `);
58048
58210
  for (const issue of issues) {
58049
- const icon = issue.severity === "error" ? chalk28__default.default.red("\u274C") : issue.severity === "warning" ? chalk28__default.default.yellow("\u26A0\uFE0F") : chalk28__default.default.blue("\u2139\uFE0F");
58211
+ const icon = issue.severity === "error" ? chalk29__default.default.red("\u274C") : issue.severity === "warning" ? chalk29__default.default.yellow("\u26A0\uFE0F") : chalk29__default.default.blue("\u2139\uFE0F");
58050
58212
  message += `${icon} ${issue.issue}
58051
58213
  `;
58052
- message += chalk28__default.default.gray(` Solution: ${issue.solution}
58214
+ message += chalk29__default.default.gray(` Solution: ${issue.solution}
58053
58215
  `);
58054
58216
  if (autoFix && issue.fixable) {
58055
- message += chalk28__default.default.green(` \u2705 Auto-fixed
58217
+ message += chalk29__default.default.green(` \u2705 Auto-fixed
58056
58218
  `);
58057
58219
  }
58058
58220
  message += "\n";
@@ -58060,7 +58222,7 @@ var init_SystemHandlers = __esm({
58060
58222
  if (!autoFix) {
58061
58223
  const fixableCount = issues.filter((i2) => i2.fixable).length;
58062
58224
  if (fixableCount > 0) {
58063
- message += chalk28__default.default.gray(
58225
+ message += chalk29__default.default.gray(
58064
58226
  `
58065
58227
  Run /doctor --fix to automatically fix ${fixableCount} issue(s)`
58066
58228
  );
@@ -58523,14 +58685,14 @@ function createCLI() {
58523
58685
  }
58524
58686
  });
58525
58687
  program2.command("setup-ollama").description("Setup Ollama for local AI").action(async () => {
58526
- console.log(chalk28__default.default.cyan("Setting up Ollama..."));
58688
+ console.log(chalk29__default.default.cyan("Setting up Ollama..."));
58527
58689
  console.log(
58528
- chalk28__default.default.yellow("Please run: brew install ollama && ollama serve")
58690
+ chalk29__default.default.yellow("Please run: brew install ollama && ollama serve")
58529
58691
  );
58530
58692
  });
58531
58693
  program2.command("setup-vllm").description("Setup vLLM for local AI").action(async () => {
58532
- console.log(chalk28__default.default.cyan("Setting up vLLM..."));
58533
- console.log(chalk28__default.default.yellow("Please run: pip install vllm"));
58694
+ console.log(chalk29__default.default.cyan("Setting up vLLM..."));
58695
+ console.log(chalk29__default.default.yellow("Please run: pip install vllm"));
58534
58696
  });
58535
58697
  return program2;
58536
58698
  }
@@ -58558,13 +58720,13 @@ var init_maria_ai = __esm({
58558
58720
  await this.providerSelector.initialize();
58559
58721
  const { provider, model } = await this.providerSelector.selectProvider();
58560
58722
  console.log(
58561
- chalk28__default.default.green(`
58723
+ chalk29__default.default.green(`
58562
58724
  \u2705 Selected: ${provider} with model ${model}`)
58563
58725
  );
58564
58726
  this.config.set("currentProvider", provider);
58565
58727
  this.config.set("currentModel", model);
58566
58728
  await this.config.save();
58567
- console.log(chalk28__default.default.cyan("\n\u{1F9E0} Initializing Intelligent Router..."));
58729
+ console.log(chalk29__default.default.cyan("\n\u{1F9E0} Initializing Intelligent Router..."));
58568
58730
  this.router = new IntelligentRouterService({
58569
58731
  confidenceThreshold: 0.85,
58570
58732
  enableLearning: true,
@@ -58572,12 +58734,12 @@ var init_maria_ai = __esm({
58572
58734
  });
58573
58735
  await this.router.initialize();
58574
58736
  console.log(
58575
- chalk28__default.default.green("\u2705 Intelligent Router initialized successfully\n")
58737
+ chalk29__default.default.green("\u2705 Intelligent Router initialized successfully\n")
58576
58738
  );
58577
58739
  this.session = createInteractiveSession(this);
58578
58740
  await this.session.start();
58579
58741
  } catch (error2) {
58580
- console.error(chalk28__default.default.red("\n\u274C Initialization failed:"), error2);
58742
+ console.error(chalk29__default.default.red("\n\u274C Initialization failed:"), error2);
58581
58743
  process.exit(1);
58582
58744
  }
58583
58745
  }
@@ -58585,7 +58747,7 @@ var init_maria_ai = __esm({
58585
58747
  if (this.session) {
58586
58748
  await this.session.stop();
58587
58749
  }
58588
- console.log(chalk28__default.default.cyan("\n\u{1F44B} Goodbye!"));
58750
+ console.log(chalk29__default.default.green("\n\u{1F44B} Goodbye!"));
58589
58751
  }
58590
58752
  };
58591
58753
  }
@@ -58614,8 +58776,8 @@ async function loadServices() {
58614
58776
  try {
58615
58777
  const commandName = command.startsWith("/") ? command.slice(1) : command;
58616
58778
  if (commandName === "battlecard") {
58617
- console.log(chalk28__default.default.yellow("\u{1F512} /battlecard is not available on Free plan"));
58618
- console.log(chalk28__default.default.gray(" Join the waitlist for business features: https://maria-code.ai/waitlist"));
58779
+ console.log(chalk29__default.default.yellow("\u{1F512} /battlecard is not available on Free plan"));
58780
+ console.log(chalk29__default.default.gray(" Join the waitlist for business features: https://maria-code.ai/waitlist"));
58619
58781
  return {
58620
58782
  success: false,
58621
58783
  message: "Command not available on Free plan"
@@ -58676,7 +58838,7 @@ async function loadServices() {
58676
58838
  commandManager.setLegacyHandler(legacyHandlerAdapter);
58677
58839
  }
58678
58840
  } catch (e2) {
58679
- console.warn(chalk28__default.default.yellow("\u26A0 Some services unavailable, using fallbacks"));
58841
+ console.warn(chalk29__default.default.yellow("\u26A0 Some services unavailable, using fallbacks"));
58680
58842
  }
58681
58843
  }
58682
58844
  async function init() {
@@ -58798,17 +58960,17 @@ async function enforceAuth(cmd) {
58798
58960
  try {
58799
58961
  const tokens = await authManager.getValidTokens();
58800
58962
  if (!tokens) {
58801
- console.log(chalk28__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
58963
+ console.log(chalk29__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
58802
58964
  return false;
58803
58965
  }
58804
58966
  return true;
58805
58967
  } catch (error2) {
58806
58968
  if (error2.code === "AUTH_REQUIRED") {
58807
- console.log(chalk28__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
58969
+ console.log(chalk29__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
58808
58970
  } else if (error2.code === "REAUTH_REQUIRED") {
58809
- console.log(chalk28__default.default.yellow("\u{1F504} Please re-authenticate \xB7 Run: maria /login"));
58971
+ console.log(chalk29__default.default.yellow("\u{1F504} Please re-authenticate \xB7 Run: maria /login"));
58810
58972
  } else {
58811
- console.log(chalk28__default.default.red("\u{1F310} Network error, check connection"));
58973
+ console.log(chalk29__default.default.red("\u{1F310} Network error, check connection"));
58812
58974
  }
58813
58975
  return false;
58814
58976
  }
@@ -58847,7 +59009,7 @@ async function handleSlash(input3) {
58847
59009
  console.log(JSON.stringify(result2.data, null, 2));
58848
59010
  }
58849
59011
  } else {
58850
- console.log(chalk28__default.default.red(`Help Error: ${result2.message}`));
59012
+ console.log(chalk29__default.default.red(`Help Error: ${result2.message}`));
58851
59013
  }
58852
59014
  return true;
58853
59015
  }
@@ -58855,7 +59017,7 @@ async function handleSlash(input3) {
58855
59017
  if (process.env.MARIA_DEBUG === "1") {
58856
59018
  console.error("HelpCommand error:", helpError);
58857
59019
  }
58858
- console.log(chalk28__default.default.yellow("\u26A0 Dynamic help unavailable, using fallback"));
59020
+ console.log(chalk29__default.default.yellow("\u26A0 Dynamic help unavailable, using fallback"));
58859
59021
  }
58860
59022
  const help = `
58861
59023
  \u{1F4D6} MARIA CLI Help
@@ -58885,7 +59047,7 @@ Chat:
58885
59047
  session.length = 0;
58886
59048
  if (ctx?.clearContext) ctx.clearContext();
58887
59049
  console.clear();
58888
- console.log(chalk28__default.default.cyan("\u2728 Session cleared"));
59050
+ console.log(chalk29__default.default.green("\u2728 Session cleared"));
58889
59051
  return true;
58890
59052
  }
58891
59053
  if (cmd === "code") {
@@ -58894,7 +59056,7 @@ Chat:
58894
59056
  const prompt = args2.join(" ").trim();
58895
59057
  if (!prompt) {
58896
59058
  console.log(
58897
- chalk28__default.default.red("Usage: /code <request> e.g. /code build a REST API")
59059
+ chalk29__default.default.red("Usage: /code <request> e.g. /code build a REST API")
58898
59060
  );
58899
59061
  return true;
58900
59062
  }
@@ -58907,7 +59069,7 @@ Chat:
58907
59069
  const prompt = args2.join(" ").trim();
58908
59070
  if (!prompt) {
58909
59071
  console.log(
58910
- chalk28__default.default.cyan("\u{1F3A8} **Image Generation**\n") + chalk28__default.default.white("Usage: /image <prompt>\n") + chalk28__default.default.gray("Example: /image \u5BCC\u58EB\u5C71\u306E\u65E5\u306E\u51FA")
59072
+ chalk29__default.default.cyan("\u{1F3A8} **Image Generation**\n") + chalk29__default.default.white("Usage: /image <prompt>\n") + chalk29__default.default.gray("Example: /image \u5BCC\u58EB\u5C71\u306E\u65E5\u306E\u51FA")
58911
59073
  );
58912
59074
  return true;
58913
59075
  }
@@ -58919,14 +59081,14 @@ Chat:
58919
59081
  options: {},
58920
59082
  logger: {
58921
59083
  info: (msg) => console.log(msg),
58922
- error: (msg) => console.error(chalk28__default.default.red(msg)),
58923
- warn: (msg) => console.warn(chalk28__default.default.yellow(msg))
59084
+ error: (msg) => console.error(chalk29__default.default.red(msg)),
59085
+ warn: (msg) => console.warn(chalk29__default.default.yellow(msg))
58924
59086
  }
58925
59087
  };
58926
59088
  await imageCommand2.execute(context2);
58927
59089
  }
58928
59090
  } catch (error2) {
58929
- console.error(chalk28__default.default.red("Image generation failed:"), error2.message);
59091
+ console.error(chalk29__default.default.red("Image generation failed:"), error2.message);
58930
59092
  }
58931
59093
  return true;
58932
59094
  }
@@ -58936,7 +59098,7 @@ Chat:
58936
59098
  const prompt = args2.join(" ").trim();
58937
59099
  if (!prompt) {
58938
59100
  console.log(
58939
- chalk28__default.default.cyan("\u{1F3AC} **Video Generation**\n") + chalk28__default.default.white("Usage: /video <prompt>\n") + chalk28__default.default.gray("Example: /video \u6D77\u306E\u6CE2\u304C\u6253\u3061\u5BC4\u305B\u308B\u69D8\u5B50")
59101
+ chalk29__default.default.cyan("\u{1F3AC} **Video Generation**\n") + chalk29__default.default.white("Usage: /video <prompt>\n") + chalk29__default.default.gray("Example: /video \u6D77\u306E\u6CE2\u304C\u6253\u3061\u5BC4\u305B\u308B\u69D8\u5B50")
58940
59102
  );
58941
59103
  return true;
58942
59104
  }
@@ -58948,14 +59110,14 @@ Chat:
58948
59110
  options: {},
58949
59111
  logger: {
58950
59112
  info: (msg) => console.log(msg),
58951
- error: (msg) => console.error(chalk28__default.default.red(msg)),
58952
- warn: (msg) => console.warn(chalk28__default.default.yellow(msg))
59113
+ error: (msg) => console.error(chalk29__default.default.red(msg)),
59114
+ warn: (msg) => console.warn(chalk29__default.default.yellow(msg))
58953
59115
  }
58954
59116
  };
58955
59117
  await videoCommand2.execute(context2);
58956
59118
  }
58957
59119
  } catch (error2) {
58958
- console.error(chalk28__default.default.red("Video generation failed:"), error2.message);
59120
+ console.error(chalk29__default.default.red("Video generation failed:"), error2.message);
58959
59121
  }
58960
59122
  return true;
58961
59123
  }
@@ -58965,7 +59127,7 @@ Chat:
58965
59127
  const prompt = args2.join(" ").trim();
58966
59128
  if (!prompt) {
58967
59129
  console.log(
58968
- chalk28__default.default.cyan("\u{1F399}\uFE0F **Voice Synthesis**\n") + chalk28__default.default.white("Usage: /voice <text>\n") + chalk28__default.default.gray("Example: /voice \u3053\u3093\u306B\u3061\u306F\u3001\u5143\u6C17\u3067\u3059\u304B\uFF1F")
59130
+ chalk29__default.default.cyan("\u{1F399}\uFE0F **Voice Synthesis**\n") + chalk29__default.default.white("Usage: /voice <text>\n") + chalk29__default.default.gray("Example: /voice \u3053\u3093\u306B\u3061\u306F\u3001\u5143\u6C17\u3067\u3059\u304B\uFF1F")
58969
59131
  );
58970
59132
  return true;
58971
59133
  }
@@ -58977,14 +59139,14 @@ Chat:
58977
59139
  options: {},
58978
59140
  logger: {
58979
59141
  info: (msg) => console.log(msg),
58980
- error: (msg) => console.error(chalk28__default.default.red(msg)),
58981
- warn: (msg) => console.warn(chalk28__default.default.yellow(msg))
59142
+ error: (msg) => console.error(chalk29__default.default.red(msg)),
59143
+ warn: (msg) => console.warn(chalk29__default.default.yellow(msg))
58982
59144
  }
58983
59145
  };
58984
59146
  await voiceCommand2.execute(context2);
58985
59147
  }
58986
59148
  } catch (error2) {
58987
- console.error(chalk28__default.default.red("Voice synthesis failed:"), error2.message);
59149
+ console.error(chalk29__default.default.red("Voice synthesis failed:"), error2.message);
58988
59150
  }
58989
59151
  return true;
58990
59152
  }
@@ -59003,49 +59165,49 @@ Chat:
59003
59165
  if (args2.includes("status")) {
59004
59166
  if (await authManager.isAuthenticated()) {
59005
59167
  const user = await authManager.getCurrentUser();
59006
- console.log(chalk28__default.default.green("\u2705 Authenticated"));
59168
+ console.log(chalk29__default.default.green("\u2705 Authenticated"));
59007
59169
  if (user.name) {
59008
- console.log(chalk28__default.default.white(`\u{1F464} Name: ${chalk28__default.default.cyan(user.name)}`));
59170
+ console.log(chalk29__default.default.white(`\u{1F464} Name: ${chalk29__default.default.cyan(user.name)}`));
59009
59171
  }
59010
- console.log(chalk28__default.default.white(`\u{1F4E7} Email: ${chalk28__default.default.cyan(user.email)}`));
59172
+ console.log(chalk29__default.default.white(`\u{1F4E7} Email: ${chalk29__default.default.cyan(user.email)}`));
59011
59173
  if (user.provider) {
59012
- console.log(chalk28__default.default.white(`\u{1F511} Provider: ${chalk28__default.default.cyan(user.provider)}`));
59174
+ console.log(chalk29__default.default.white(`\u{1F511} Provider: ${chalk29__default.default.cyan(user.provider)}`));
59013
59175
  }
59014
- console.log(chalk28__default.default.white(`\u{1F4CA} Plan: ${chalk28__default.default.cyan(user.plan)}`));
59176
+ console.log(chalk29__default.default.white(`\u{1F4CA} Plan: ${chalk29__default.default.cyan(user.plan)}`));
59015
59177
  } else {
59016
- console.log(chalk28__default.default.yellow("\u26A0\uFE0F Not authenticated"));
59017
- console.log(chalk28__default.default.gray("Use /login to sign in"));
59178
+ console.log(chalk29__default.default.yellow("\u26A0\uFE0F Not authenticated"));
59179
+ console.log(chalk29__default.default.gray("Use /login to sign in"));
59018
59180
  }
59019
59181
  } else {
59020
59182
  const result2 = await authManager.login(options3);
59021
59183
  if (result2.success && result2.user) {
59022
- console.log(chalk28__default.default.green("\u2705 Successfully logged in!"));
59184
+ console.log(chalk29__default.default.green("\u2705 Successfully logged in!"));
59023
59185
  const u = result2.user;
59024
59186
  if (u.name) {
59025
- console.log(chalk28__default.default.white(`\u{1F464} Name: ${chalk28__default.default.cyan(u.name)}`));
59187
+ console.log(chalk29__default.default.white(`\u{1F464} Name: ${chalk29__default.default.cyan(u.name)}`));
59026
59188
  }
59027
- console.log(chalk28__default.default.white(`\u{1F4E7} Email: ${chalk28__default.default.cyan(u.email)}`));
59189
+ console.log(chalk29__default.default.white(`\u{1F4E7} Email: ${chalk29__default.default.cyan(u.email)}`));
59028
59190
  if (u.provider) {
59029
- console.log(chalk28__default.default.white(`\u{1F511} Provider: ${chalk28__default.default.cyan(u.provider)}`));
59191
+ console.log(chalk29__default.default.white(`\u{1F511} Provider: ${chalk29__default.default.cyan(u.provider)}`));
59030
59192
  }
59031
- console.log(chalk28__default.default.white(`\u{1F4CA} Plan: ${chalk28__default.default.cyan(u.plan)}`));
59193
+ console.log(chalk29__default.default.white(`\u{1F4CA} Plan: ${chalk29__default.default.cyan(u.plan)}`));
59032
59194
  } else {
59033
- console.log(chalk28__default.default.red("\u274C Login failed"));
59034
- if (result2.error) console.log(chalk28__default.default.gray(result2.error));
59195
+ console.log(chalk29__default.default.red("\u274C Login failed"));
59196
+ if (result2.error) console.log(chalk29__default.default.gray(result2.error));
59035
59197
  }
59036
59198
  }
59037
59199
  }
59038
59200
  } catch (error2) {
59039
- console.error(chalk28__default.default.red("Login error:"), error2.message);
59201
+ console.error(chalk29__default.default.red("Login error:"), error2.message);
59040
59202
  }
59041
59203
  return true;
59042
59204
  }
59043
59205
  if (cmd === "logout" || cmd === "signout") {
59044
59206
  try {
59045
59207
  await authManager.logout();
59046
- console.log(chalk28__default.default.green("\u{1F44B} Signed out. Local credentials removed."));
59208
+ console.log(chalk29__default.default.green("\u{1F44B} Signed out. Local credentials removed."));
59047
59209
  } catch (error2) {
59048
- console.error(chalk28__default.default.red("Logout error:"), error2.message);
59210
+ console.error(chalk29__default.default.red("Logout error:"), error2.message);
59049
59211
  }
59050
59212
  return true;
59051
59213
  }
@@ -59186,7 +59348,7 @@ Chat:
59186
59348
  } else if (result2.message) {
59187
59349
  console.log(result2.message);
59188
59350
  } else if (result2.success) {
59189
- console.log(chalk28__default.default.green("\u2705 Command executed successfully"));
59351
+ console.log(chalk29__default.default.green("\u2705 Command executed successfully"));
59190
59352
  }
59191
59353
  if (result2.data && process.env.MARIA_DEBUG === "1") {
59192
59354
  console.log(JSON.stringify(result2.data, null, 2));
@@ -59200,11 +59362,11 @@ Chat:
59200
59362
  }
59201
59363
  }
59202
59364
  if (!["battlecard", "sales-dashboard", "tune", "pilot-setup"].includes(cmd)) {
59203
- console.log(chalk28__default.default.red(`\u274C Unknown command: /${cmd}`));
59204
- console.log(chalk28__default.default.yellow("\n\u{1F4A1} Suggestions:"));
59205
- console.log(chalk28__default.default.gray(" \u2022 Try /help to see available commands"));
59206
- console.log(chalk28__default.default.gray(" \u2022 Check if you need to /login first"));
59207
- console.log(chalk28__default.default.gray(` \u2022 Try similar commands: /help --search ${cmd}`));
59365
+ console.log(chalk29__default.default.red(`\u274C Unknown command: /${cmd}`));
59366
+ console.log(chalk29__default.default.yellow("\n\u{1F4A1} Suggestions:"));
59367
+ console.log(chalk29__default.default.gray(" \u2022 Try /help to see available commands"));
59368
+ console.log(chalk29__default.default.gray(" \u2022 Check if you need to /login first"));
59369
+ console.log(chalk29__default.default.gray(` \u2022 Try similar commands: /help --search ${cmd}`));
59208
59370
  }
59209
59371
  return true;
59210
59372
  }
@@ -59472,11 +59634,11 @@ async function handleCodeCommand(prompt) {
59472
59634
  const filepath = path9__namespace.resolve(process.cwd(), filename);
59473
59635
  await fsp__namespace.writeFile(filepath, code, "utf-8");
59474
59636
  console.log(
59475
- chalk28__default.default.green("\n\u2705 **Code Saved**\n") + chalk28__default.default.white(`\u{1F4C1} **File (Click to open):**
59476
- `) + chalk28__default.default.cyan(`\u2022 [${filename}](file://${filepath})
59477
- `) + chalk28__default.default.gray(` \u{1F4CD} Path: \`${filepath}\`
59478
- `) + chalk28__default.default.white(` \u{1F4DD} Language: ${language}
59479
- `) + chalk28__default.default.dim(`
59637
+ chalk29__default.default.green("\n\u2705 **Code Saved**\n") + chalk29__default.default.white(`\u{1F4C1} **File (Click to open):**
59638
+ `) + chalk29__default.default.cyan(`\u2022 [${filename}](file://${filepath})
59639
+ `) + chalk29__default.default.gray(` \u{1F4CD} Path: \`${filepath}\`
59640
+ `) + chalk29__default.default.white(` \u{1F4DD} Language: ${language}
59641
+ `) + chalk29__default.default.dim(`
59480
59642
  \u{1F4A1} Tip: Command+Click (Mac) or Ctrl+Click (Windows/Linux) to open file`)
59481
59643
  );
59482
59644
  } else {
@@ -59485,11 +59647,11 @@ async function handleCodeCommand(prompt) {
59485
59647
  } catch (e2) {
59486
59648
  spinner.stop();
59487
59649
  if (process.env.MARIA_DEBUG === "1") {
59488
- console.error(chalk28__default.default.red("Code generation error:"), e2.message || e2);
59650
+ console.error(chalk29__default.default.red("Code generation error:"), e2.message || e2);
59489
59651
  }
59490
59652
  const fallbackCode = templateFallback(prompt);
59491
59653
  console.log(
59492
- chalk28__default.default.yellow("\u26A0 AI unavailable, using template fallback:\n")
59654
+ chalk29__default.default.yellow("\u26A0 AI unavailable, using template fallback:\n")
59493
59655
  );
59494
59656
  console.log(fallbackCode);
59495
59657
  try {
@@ -59498,14 +59660,14 @@ async function handleCodeCommand(prompt) {
59498
59660
  const filepath = path9__namespace.resolve(process.cwd(), filename);
59499
59661
  await fsp__namespace.writeFile(filepath, code, "utf-8");
59500
59662
  console.log(
59501
- chalk28__default.default.green("\n\u2705 **Template Code Saved**\n") + chalk28__default.default.white(`\u{1F4C1} **File (Click to open):**
59502
- `) + chalk28__default.default.cyan(`\u2022 [${filename}](file://${filepath})
59503
- `) + chalk28__default.default.gray(` \u{1F4CD} Path: \`${filepath}\`
59504
- `) + chalk28__default.default.dim(`
59663
+ chalk29__default.default.green("\n\u2705 **Template Code Saved**\n") + chalk29__default.default.white(`\u{1F4C1} **File (Click to open):**
59664
+ `) + chalk29__default.default.cyan(`\u2022 [${filename}](file://${filepath})
59665
+ `) + chalk29__default.default.gray(` \u{1F4CD} Path: \`${filepath}\`
59666
+ `) + chalk29__default.default.dim(`
59505
59667
  \u{1F4A1} Tip: Command+Click (Mac) or Ctrl+Click (Windows/Linux) to open file`)
59506
59668
  );
59507
59669
  } catch (saveError) {
59508
- console.error(chalk28__default.default.red("Failed to save code:"), saveError);
59670
+ console.error(chalk29__default.default.red("Failed to save code:"), saveError);
59509
59671
  }
59510
59672
  }
59511
59673
  }
@@ -59561,7 +59723,7 @@ ${userPrompt}`;
59561
59723
  (seq) => response2.includes(seq)
59562
59724
  );
59563
59725
  if (guidedFlowDetected) {
59564
- console.log(chalk28__default.default.yellow("\u26A0 Guided flow detected, switching to fallback"));
59726
+ console.log(chalk29__default.default.yellow("\u26A0 Guided flow detected, switching to fallback"));
59565
59727
  return null;
59566
59728
  }
59567
59729
  const codeMatch = response2.match(/```[\s\S]*?```/);
@@ -59729,14 +59891,14 @@ async function streamAnswer(text) {
59729
59891
  if (store?.addMessage) await store.addMessage(msg);
59730
59892
  } else {
59731
59893
  animation.stop();
59732
- console.log(chalk28__default.default.yellow("AI service unavailable. Please check your configuration."));
59894
+ console.log(chalk29__default.default.yellow("AI service unavailable. Please check your configuration."));
59733
59895
  }
59734
59896
  } catch (e2) {
59735
59897
  animation.stop();
59736
59898
  if (e2.message?.includes("timeout") || e2.message?.includes("\u23F1\uFE0F")) {
59737
- console.log(chalk28__default.default.yellow(e2.message));
59899
+ console.log(chalk29__default.default.yellow(e2.message));
59738
59900
  } else {
59739
- console.log(chalk28__default.default.red("Error generating response:"), e2.message || e2);
59901
+ console.log(chalk29__default.default.red("Error generating response:"), e2.message || e2);
59740
59902
  }
59741
59903
  }
59742
59904
  }
@@ -59751,9 +59913,9 @@ async function handleLine(line) {
59751
59913
  if (consumed) return;
59752
59914
  const isAuthenticated = await authManager.isAuthenticated();
59753
59915
  if (!isAuthenticated) {
59754
- console.log(chalk28__default.default.yellow("\n\u26A0\uFE0F Authentication required for chat features"));
59755
- console.log(chalk28__default.default.cyan("Please run: /login"));
59756
- console.log(chalk28__default.default.gray("Or use slash commands like /help, /version"));
59916
+ console.log(chalk29__default.default.yellow("\n\u26A0\uFE0F Authentication required for chat features"));
59917
+ console.log(chalk29__default.default.cyan("Please run: /login"));
59918
+ console.log(chalk29__default.default.gray("Or use slash commands like /help, /version"));
59757
59919
  return;
59758
59920
  }
59759
59921
  const user = { role: "user", content: input3, timestamp: /* @__PURE__ */ new Date() };
@@ -59775,7 +59937,7 @@ async function startInteractiveSession() {
59775
59937
  }
59776
59938
  }
59777
59939
  const stop = async () => {
59778
- console.log(chalk28__default.default.cyan("\n\u{1F44B} Goodbye!"));
59940
+ console.log(chalk29__default.default.green("\n\u{1F44B} Goodbye!"));
59779
59941
  if (store?.close) await store.close().catch(() => {
59780
59942
  });
59781
59943
  if (interactiveCLI?.cleanup) interactiveCLI.cleanup();
@@ -59789,7 +59951,7 @@ async function startInteractiveSession() {
59789
59951
  process.once("SIGINT", stop);
59790
59952
  process.once("SIGTERM", stop);
59791
59953
  if (!isTTY) {
59792
- console.log(chalk28__default.default.gray("[Pipe mode detected - streaming input/output]"));
59954
+ console.log(chalk29__default.default.gray("[Pipe mode detected - streaming input/output]"));
59793
59955
  const rl = readline6__namespace.createInterface({
59794
59956
  input: process6.stdin,
59795
59957
  output: process6.stdout,
@@ -59804,7 +59966,7 @@ async function startInteractiveSession() {
59804
59966
  if (interactiveCLI) {
59805
59967
  while (true) {
59806
59968
  try {
59807
- const prompt = chalk28__default.default.gray("> ");
59969
+ const prompt = chalk29__default.default.gray("> ");
59808
59970
  process.stdout.write(prompt);
59809
59971
  const line = await interactiveCLI.question("");
59810
59972
  console.log();
@@ -59819,14 +59981,14 @@ async function startInteractiveSession() {
59819
59981
  await stop();
59820
59982
  return;
59821
59983
  }
59822
- console.error(chalk28__default.default.red("Error:"), error2?.message || error2);
59984
+ console.error(chalk29__default.default.red("Error:"), error2?.message || error2);
59823
59985
  }
59824
59986
  }
59825
59987
  } else {
59826
59988
  const rl = readline6__namespace.createInterface({ input: process6.stdin, output: process6.stdout });
59827
59989
  while (true) {
59828
59990
  try {
59829
- const prompt = chalk28__default.default.gray("> ");
59991
+ const prompt = chalk29__default.default.gray("> ");
59830
59992
  const line = await rl.question(prompt);
59831
59993
  console.log();
59832
59994
  if (line.toLowerCase() === "exit" || line.toLowerCase() === "quit") {
@@ -59840,7 +60002,7 @@ async function startInteractiveSession() {
59840
60002
  await stop();
59841
60003
  return;
59842
60004
  }
59843
- console.error(chalk28__default.default.red("Error:"), error2?.message || error2);
60005
+ console.error(chalk29__default.default.red("Error:"), error2?.message || error2);
59844
60006
  }
59845
60007
  }
59846
60008
  }
@@ -59850,7 +60012,7 @@ function createCLI2() {
59850
60012
  program2.name("maria").description(`\u{1F680} MARIA v${getVersion()} - Intelligent AI Assistant`).version(getVersion()).option("--v3-session", "Use v3 session architecture").option("--no-interactive", "Disable interactive mode for CI/CD").action(async (options2) => {
59851
60013
  loadEnvironmentVariables();
59852
60014
  if (options2.server) {
59853
- console.log(chalk28__default.default.green("\u{1F680} Starting MARIA server mode..."));
60015
+ console.log(chalk29__default.default.green("\u{1F680} Starting MARIA server mode..."));
59854
60016
  try {
59855
60017
  const distDir = path9__namespace.dirname(process.argv[1] || process.cwd());
59856
60018
  const candidateNames = [
@@ -59880,9 +60042,9 @@ function createCLI2() {
59880
60042
  if (serverPath) break;
59881
60043
  }
59882
60044
  if (!serverPath) {
59883
- console.error(chalk28__default.default.red("\u274C Could not locate server-express entry file"));
59884
- console.error(chalk28__default.default.gray("Searched names: " + candidateNames.join(", ")));
59885
- console.error(chalk28__default.default.gray("Searched dirs: " + candidateDirs.join(" | ")));
60045
+ console.error(chalk29__default.default.red("\u274C Could not locate server-express entry file"));
60046
+ console.error(chalk29__default.default.gray("Searched names: " + candidateNames.join(", ")));
60047
+ console.error(chalk29__default.default.gray("Searched dirs: " + candidateDirs.join(" | ")));
59886
60048
  process.exit(1);
59887
60049
  }
59888
60050
  const { spawn: spawn3 } = await import('child_process');
@@ -59929,7 +60091,7 @@ function createCLI2() {
59929
60091
  process.once("SIGINT", () => forwardAndExit("SIGINT"));
59930
60092
  process.once("SIGTERM", () => forwardAndExit("SIGTERM"));
59931
60093
  serverProcess.on("error", (error2) => {
59932
- console.error(chalk28__default.default.red("\u274C Server process error:"), error2);
60094
+ console.error(chalk29__default.default.red("\u274C Server process error:"), error2);
59933
60095
  process.exit(1);
59934
60096
  });
59935
60097
  serverProcess.on("exit", (code, _signal) => {
@@ -59942,7 +60104,7 @@ function createCLI2() {
59942
60104
  });
59943
60105
  return;
59944
60106
  } catch (error2) {
59945
- console.error(chalk28__default.default.red("\u274C Failed to start server mode:"), error2);
60107
+ console.error(chalk29__default.default.red("\u274C Failed to start server mode:"), error2);
59946
60108
  process.exit(1);
59947
60109
  }
59948
60110
  }
@@ -59967,7 +60129,7 @@ function createCLI2() {
59967
60129
  displayStartupLogo2();
59968
60130
  startupDisplayed = true;
59969
60131
  } catch {
59970
- console.log(chalk28__default.default.cyan(`
60132
+ console.log(chalk29__default.default.cyan(`
59971
60133
  \u{1F680} MARIA v${getVersion()}
59972
60134
  `));
59973
60135
  startupDisplayed = true;
@@ -59976,13 +60138,13 @@ function createCLI2() {
59976
60138
  const useV3 = options2.v3Session || process.env.MARIA_USE_V3_SESSION === "1";
59977
60139
  if (useV3) {
59978
60140
  try {
59979
- console.log(chalk28__default.default.cyan("\u{1F680} Starting MARIA v3 session..."));
60141
+ console.log(chalk29__default.default.cyan("\u{1F680} Starting MARIA v3 session..."));
59980
60142
  const { MariaAI: MariaAI2 } = await Promise.resolve().then(() => (init_maria_ai(), maria_ai_exports));
59981
60143
  const maria = new MariaAI2();
59982
60144
  await maria.initialize();
59983
60145
  return;
59984
60146
  } catch (e2) {
59985
- console.warn(chalk28__default.default.yellow("\u26A0 V3 session unavailable, using standard mode"));
60147
+ console.warn(chalk29__default.default.yellow("\u26A0 V3 session unavailable, using standard mode"));
59986
60148
  }
59987
60149
  }
59988
60150
  await startInteractiveSession();