@bonginkan/maria 4.2.24 → 4.2.25

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.25"}`
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
  );
@@ -13226,7 +13226,7 @@ var init_interactive_cli = __esm({
13226
13226
  }
13227
13227
  readline__namespace.cursorTo(process.stdout, 0);
13228
13228
  readline__namespace.clearLine(process.stdout, 0);
13229
- const prompt = chalk28__default.default.cyan("> ");
13229
+ const prompt = chalk29__default.default.cyan("> ");
13230
13230
  const displayInput = this.currentInput;
13231
13231
  process.stdout.write(prompt + displayInput);
13232
13232
  const promptLength = 2;
@@ -13245,9 +13245,9 @@ var init_interactive_cli = __esm({
13245
13245
  readline__namespace.moveCursor(process.stdout, 0, 2);
13246
13246
  this.suggestions.forEach((suggestion, index2) => {
13247
13247
  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;
13248
+ const prefix = isSelected ? chalk29__default.default.cyan("\u25BA ") : " ";
13249
+ const nameStyle = isSelected ? chalk29__default.default.inverse.white : chalk29__default.default.white;
13250
+ const descStyle = isSelected ? chalk29__default.default.inverse.gray : chalk29__default.default.gray;
13251
13251
  const name2 = suggestion.name.padEnd(15);
13252
13252
  const desc = suggestion.description.length > 40 ? suggestion.description.substring(0, 37) + "..." : suggestion.description;
13253
13253
  readline__namespace.cursorTo(process.stdout, 0);
@@ -13268,20 +13268,20 @@ var init_interactive_cli = __esm({
13268
13268
  const promptLength = 2;
13269
13269
  const savedX = this.cursorPosition + promptLength;
13270
13270
  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"));
13271
+ process.stdout.write(chalk29__default.default.white("\u256D\u2500\u2500\u2500\u2500 Command Suggestions \u2500\u2500\u2500\u2500\u256E\n"));
13272
13272
  this.suggestions.forEach((suggestion, index2) => {
13273
13273
  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;
13274
+ const prefix = isSelected ? chalk29__default.default.cyan("\u25BA ") : " ";
13275
+ const nameStyle = isSelected ? chalk29__default.default.inverse.white : chalk29__default.default.white;
13276
+ const descStyle = isSelected ? chalk29__default.default.inverse.gray : chalk29__default.default.gray;
13277
13277
  const name2 = suggestion.name.padEnd(15);
13278
13278
  const desc = suggestion.description.length > 40 ? suggestion.description.substring(0, 37) + "..." : suggestion.description;
13279
13279
  process.stdout.write(`${prefix}${nameStyle(name2)} ${descStyle(desc)}
13280
13280
  `);
13281
13281
  });
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"));
13282
+ 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
13283
  process.stdout.write(
13284
- chalk28__default.default.dim("\u2191/\u2193: Navigate \u2022 Tab/Enter: Select \u2022 Esc: Cancel")
13284
+ chalk29__default.default.dim("\u2191/\u2193: Navigate \u2022 Tab/Enter: Select \u2022 Esc: Cancel")
13285
13285
  );
13286
13286
  const totalLines = this.suggestions.length + 4;
13287
13287
  readline__namespace.moveCursor(process.stdout, 0, -totalLines);
@@ -13381,27 +13381,27 @@ var init_logger = __esm({
13381
13381
  }
13382
13382
  debug(...args2) {
13383
13383
  if (this.level <= 0 /* DEBUG */) {
13384
- console.log(chalk28__default.default.magenta(`${this.prefix} [DEBUG]`), ...args2);
13384
+ console.log(chalk29__default.default.magenta(`${this.prefix} [DEBUG]`), ...args2);
13385
13385
  }
13386
13386
  }
13387
13387
  info(...args2) {
13388
13388
  if (this.level <= 1 /* INFO */) {
13389
- console.log(chalk28__default.default.bold.magenta(`${this.prefix} [INFO]`), ...args2);
13389
+ console.log(chalk29__default.default.bold.magenta(`${this.prefix} [INFO]`), ...args2);
13390
13390
  }
13391
13391
  }
13392
13392
  warn(...args2) {
13393
13393
  if (this.level <= 2 /* WARN */) {
13394
- console.warn(chalk28__default.default.bold.magenta(`${this.prefix} [WARN]`), ...args2);
13394
+ console.warn(chalk29__default.default.bold.magenta(`${this.prefix} [WARN]`), ...args2);
13395
13395
  }
13396
13396
  }
13397
13397
  error(...args2) {
13398
13398
  if (this.level <= 3 /* ERROR */) {
13399
- console.error(chalk28__default.default.bold.magenta(`${this.prefix} [ERROR]`), ...args2);
13399
+ console.error(chalk29__default.default.bold.magenta(`${this.prefix} [ERROR]`), ...args2);
13400
13400
  }
13401
13401
  }
13402
13402
  success(...args2) {
13403
13403
  if (this.level <= 1 /* INFO */) {
13404
- console.log(chalk28__default.default.bold.magenta(`${this.prefix} [SUCCESS]`), ...args2);
13404
+ console.log(chalk29__default.default.bold.magenta(`${this.prefix} [SUCCESS]`), ...args2);
13405
13405
  }
13406
13406
  }
13407
13407
  task(taskName, status, message) {
@@ -13415,10 +13415,10 @@ var init_logger = __esm({
13415
13415
  error: "\u274C"
13416
13416
  };
13417
13417
  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
13418
+ start: chalk29__default.default.bold.magenta,
13419
+ progress: chalk29__default.default.magenta,
13420
+ complete: chalk29__default.default.bold.magenta,
13421
+ error: chalk29__default.default.bold.magenta
13422
13422
  };
13423
13423
  const icon = statusIcons[status];
13424
13424
  const color = statusColors[status];
@@ -13435,14 +13435,14 @@ var init_logger = __esm({
13435
13435
  if (this.level > 0 /* DEBUG */) {
13436
13436
  return;
13437
13437
  }
13438
- console.log(chalk28__default.default.magenta(`${this.prefix} [JSON]`));
13438
+ console.log(chalk29__default.default.magenta(`${this.prefix} [JSON]`));
13439
13439
  console.log(pretty ? JSON.stringify(obj, null, 2) : JSON.stringify(obj));
13440
13440
  }
13441
13441
  divider() {
13442
13442
  if (this.level > 1 /* INFO */) {
13443
13443
  return;
13444
13444
  }
13445
- console.log(chalk28__default.default.magenta("\u2500".repeat(60)));
13445
+ console.log(chalk29__default.default.magenta("\u2500".repeat(60)));
13446
13446
  }
13447
13447
  clear() {
13448
13448
  console.clear();
@@ -13462,7 +13462,7 @@ var init_logger = __esm({
13462
13462
  const progressText = `${current}/${total}`;
13463
13463
  const labelText = label ? ` ${label}` : "";
13464
13464
  process.stdout.write(
13465
- `\r${chalk28__default.default.bold.magenta(bar)} ${percentage}% ${progressText}${labelText}`
13465
+ `\r${chalk29__default.default.bold.magenta(bar)} ${percentage}% ${progressText}${labelText}`
13466
13466
  );
13467
13467
  if (current === total) {
13468
13468
  process.stdout.write("\n");
@@ -15072,9 +15072,9 @@ var init_HelpCommand = __esm({
15072
15072
  const stats = await this.readyService.getStatistics();
15073
15073
  const lines = [];
15074
15074
  lines.push("\u2550".repeat(60));
15075
- lines.push(chalk28__default.default.bold(`${stats.totalReady} READY Commands | ${stats.categoriesCount} Categories`));
15075
+ lines.push(chalk29__default.default.bold(`${stats.totalReady} READY Commands | ${stats.categoriesCount} Categories`));
15076
15076
  lines.push("");
15077
- lines.push(chalk28__default.default.bold("Quick Access:"));
15077
+ lines.push(chalk29__default.default.bold("Quick Access:"));
15078
15078
  lines.push(" /help <command> - Detailed help for specific command");
15079
15079
  lines.push(" /help --quickstart - Essential commands for new users");
15080
15080
  lines.push(" /help --stats - Performance statistics");
@@ -15089,7 +15089,7 @@ var init_HelpCommand = __esm({
15089
15089
  }
15090
15090
  globalMaxNameLength = Math.max(globalMaxNameLength, 18) + 1;
15091
15091
  for (const category of categories2) {
15092
- lines.push(chalk28__default.default.bold(`${category.name.toUpperCase()} (${category.count})`));
15092
+ lines.push(chalk29__default.default.bold(`${category.name.toUpperCase()} (${category.count})`));
15093
15093
  const showCommands = category.commands.slice(0, 4);
15094
15094
  for (const cmd of showCommands) {
15095
15095
  const needsGpu = this.hasGpuRequirement(cmd.description);
@@ -15109,7 +15109,7 @@ var init_HelpCommand = __esm({
15109
15109
  }
15110
15110
  lines.push("");
15111
15111
  }
15112
- lines.push(chalk28__default.default.bold("Pro Tips:"));
15112
+ lines.push(chalk29__default.default.bold("Pro Tips:"));
15113
15113
  lines.push(" \u2022 All listed commands are production-ready");
15114
15114
  lines.push(" \u2022 Use fuzzy search: /help --search config \u2192 finds /config");
15115
15115
  lines.push(" \u2022 Categories ordered by importance");
@@ -15148,33 +15148,33 @@ var init_HelpCommand = __esm({
15148
15148
  formatCommandHelp(command) {
15149
15149
  const lines = [];
15150
15150
  lines.push("");
15151
- lines.push(`\u{1F4D6} ${chalk28__default.default.bold(`/${command.name}`)} - ${command.description}`);
15151
+ lines.push(`\u{1F4D6} ${chalk29__default.default.bold(`/${command.name}`)} - ${command.description}`);
15152
15152
  lines.push("\u2550".repeat(50));
15153
15153
  lines.push("");
15154
- lines.push(chalk28__default.default.bold("\u2139\uFE0F Information:"));
15154
+ lines.push(chalk29__default.default.bold("\u2139\uFE0F Information:"));
15155
15155
  lines.push(` Category: ${this.readyService["getCategoryEmoji"](command.category)} ${command.category}`);
15156
15156
  lines.push(` Status: \u2705 READY (contract validated)`);
15157
15157
  if (command.aliases && command.aliases.length > 0) {
15158
15158
  lines.push(` Aliases: ${command.aliases.map((a2) => `/${a2}`).join(", ")}`);
15159
15159
  }
15160
15160
  lines.push("");
15161
- lines.push(chalk28__default.default.bold("\u{1F3AF} Usage:"));
15161
+ lines.push(chalk29__default.default.bold("\u{1F3AF} Usage:"));
15162
15162
  lines.push(` ${command.usage}`);
15163
15163
  lines.push("");
15164
- lines.push(chalk28__default.default.bold("\u{1F4CB} Contract Validation:"));
15164
+ lines.push(chalk29__default.default.bold("\u{1F4CB} Contract Validation:"));
15165
15165
  lines.push(` \u26A1 Performance: ${command.contract.maxResponseTime}ms (tested)`);
15166
15166
  lines.push(` \u{1F4BB} TTY Mode: ${command.contract.tty ? "\u2705 Supported" : "\u274C Not supported"}`);
15167
15167
  lines.push(` \u{1F527} Non-TTY Mode: ${command.contract.nonTty ? "\u2705 Supported" : "\u274C Not supported"}`);
15168
15168
  lines.push(` \u{1F500} Pipe Mode: ${command.contract.pipe ? "\u2705 Supported" : "\u274C Not supported"}`);
15169
15169
  lines.push("");
15170
15170
  if (command.examples && command.examples.length > 0) {
15171
- lines.push(chalk28__default.default.bold("\u{1F4DD} Examples:"));
15171
+ lines.push(chalk29__default.default.bold("\u{1F4DD} Examples:"));
15172
15172
  for (const example of command.examples) {
15173
15173
  lines.push(` ${example}`);
15174
15174
  }
15175
15175
  lines.push("");
15176
15176
  }
15177
- lines.push(chalk28__default.default.bold("\u{1F4A1} Quick Tips:"));
15177
+ lines.push(chalk29__default.default.bold("\u{1F4A1} Quick Tips:"));
15178
15178
  lines.push(` \u2022 This command is production-ready and fully tested`);
15179
15179
  lines.push(` \u2022 Try /${command.name} --help for additional options`);
15180
15180
  if (command.category !== "core") {
@@ -15225,7 +15225,7 @@ var init_HelpCommand = __esm({
15225
15225
  };
15226
15226
  const emoji = emojiMap[categoryName.toLowerCase()] || "\u{1F4CB}";
15227
15227
  lines.push("");
15228
- lines.push(`${emoji} ${chalk28__default.default.bold(categoryName.toUpperCase() + " COMMANDS")} (${commands.length} READY)`);
15228
+ lines.push(`${emoji} ${chalk29__default.default.bold(categoryName.toUpperCase() + " COMMANDS")} (${commands.length} READY)`);
15229
15229
  lines.push("\u2550".repeat(50));
15230
15230
  lines.push("");
15231
15231
  const maxNameLength = Math.max(...commands.map((c) => c.name.length)) + 1;
@@ -15259,7 +15259,7 @@ var init_HelpCommand = __esm({
15259
15259
  formatSearchResults(searchTerm, results) {
15260
15260
  const lines = [];
15261
15261
  lines.push("");
15262
- lines.push(`\u{1F50D} ${chalk28__default.default.bold("SEARCH RESULTS")} for "${searchTerm}" (${results.length} matches)`);
15262
+ lines.push(`\u{1F50D} ${chalk29__default.default.bold("SEARCH RESULTS")} for "${searchTerm}" (${results.length} matches)`);
15263
15263
  lines.push("\u2550".repeat(50));
15264
15264
  lines.push("");
15265
15265
  for (const result2 of results) {
@@ -15272,7 +15272,7 @@ var init_HelpCommand = __esm({
15272
15272
  }
15273
15273
  lines.push("");
15274
15274
  }
15275
- lines.push(chalk28__default.default.bold("\u{1F4A1} Tip:") + " Higher scores indicate better matches");
15275
+ lines.push(chalk29__default.default.bold("\u{1F4A1} Tip:") + " Higher scores indicate better matches");
15276
15276
  lines.push("");
15277
15277
  return lines.join("\n");
15278
15278
  }
@@ -15283,38 +15283,38 @@ var init_HelpCommand = __esm({
15283
15283
  const quickCommands = await this.readyService.getQuickStartCommands();
15284
15284
  const lines = [];
15285
15285
  lines.push("");
15286
- lines.push(`\u{1F680} ${chalk28__default.default.bold("MARIA QUICKSTART")} - Essential Commands`);
15286
+ lines.push(`\u{1F680} ${chalk29__default.default.bold("MARIA QUICKSTART")} - Essential Commands`);
15287
15287
  lines.push("\u2550".repeat(50));
15288
15288
  lines.push("");
15289
- lines.push(chalk28__default.default.bold("\u{1F3AF} Get Started in 3 Steps:"));
15289
+ lines.push(chalk29__default.default.bold("\u{1F3AF} Get Started in 3 Steps:"));
15290
15290
  lines.push("");
15291
- lines.push(chalk28__default.default.bold("1\uFE0F\u20E3 Configure Your AI Provider"));
15291
+ lines.push(chalk29__default.default.bold("1\uFE0F\u20E3 Configure Your AI Provider"));
15292
15292
  const modelCmd = quickCommands.find((c) => c.name === "model");
15293
15293
  if (modelCmd) {
15294
15294
  lines.push(` /${modelCmd.name} - ${modelCmd.description}`);
15295
15295
  lines.push(` Try: /model set provider=openai key=sk-...`);
15296
15296
  }
15297
15297
  lines.push("");
15298
- lines.push(chalk28__default.default.bold("2\uFE0F\u20E3 Check System Status"));
15298
+ lines.push(chalk29__default.default.bold("2\uFE0F\u20E3 Check System Status"));
15299
15299
  const statusCmd = quickCommands.find((c) => c.name === "status");
15300
15300
  if (statusCmd) {
15301
15301
  lines.push(` /${statusCmd.name} - ${statusCmd.description}`);
15302
15302
  lines.push(` Try: /status`);
15303
15303
  }
15304
15304
  lines.push("");
15305
- lines.push(chalk28__default.default.bold("3\uFE0F\u20E3 Start Coding"));
15305
+ lines.push(chalk29__default.default.bold("3\uFE0F\u20E3 Start Coding"));
15306
15306
  const codeCmd = quickCommands.find((c) => c.name === "code");
15307
15307
  if (codeCmd) {
15308
15308
  lines.push(` /${codeCmd.name} - ${codeCmd.description}`);
15309
15309
  lines.push(` Try: /code create a hello world function`);
15310
15310
  }
15311
15311
  lines.push("");
15312
- lines.push(chalk28__default.default.bold("\u{1F527} Essential Commands:"));
15312
+ lines.push(chalk29__default.default.bold("\u{1F527} Essential Commands:"));
15313
15313
  for (const cmd of quickCommands) {
15314
15314
  lines.push(` /${cmd.name.padEnd(12)} - ${cmd.description}`);
15315
15315
  }
15316
15316
  lines.push("");
15317
- lines.push(chalk28__default.default.bold("\u{1F4A1} Next Steps:"));
15317
+ lines.push(chalk29__default.default.bold("\u{1F4A1} Next Steps:"));
15318
15318
  lines.push(" \u2022 /help --category <name> - Explore command categories");
15319
15319
  lines.push(" \u2022 /help --search <term> - Find specific functionality");
15320
15320
  lines.push(" \u2022 /help <command> - Get detailed command help");
@@ -15329,20 +15329,20 @@ var init_HelpCommand = __esm({
15329
15329
  const categories2 = await this.readyService.getCategories();
15330
15330
  const lines = [];
15331
15331
  lines.push("");
15332
- lines.push(`\u{1F4CA} ${chalk28__default.default.bold("READY COMMANDS STATISTICS")}`);
15332
+ lines.push(`\u{1F4CA} ${chalk29__default.default.bold("READY COMMANDS STATISTICS")}`);
15333
15333
  lines.push("\u2550".repeat(40));
15334
15334
  lines.push("");
15335
- lines.push(chalk28__default.default.bold("\u{1F3AF} Overall:"));
15335
+ lines.push(chalk29__default.default.bold("\u{1F3AF} Overall:"));
15336
15336
  lines.push(` Total READY Commands: ${stats.totalReady}`);
15337
15337
  lines.push(` Categories: ${stats.categoriesCount}`);
15338
15338
  lines.push(` Last Updated: ${stats.lastUpdated?.toLocaleString() || "Unknown"}`);
15339
15339
  lines.push("");
15340
- lines.push(chalk28__default.default.bold("\u26A1 Performance:"));
15340
+ lines.push(chalk29__default.default.bold("\u26A1 Performance:"));
15341
15341
  lines.push(` Average Response Time: ${stats.avgResponseTime}ms`);
15342
15342
  lines.push(` Fastest Command: /${stats.fastestCommand}`);
15343
15343
  lines.push(` Slowest Command: /${stats.slowestCommand}`);
15344
15344
  lines.push("");
15345
- lines.push(chalk28__default.default.bold("\u{1F4CB} By Category:"));
15345
+ lines.push(chalk29__default.default.bold("\u{1F4CB} By Category:"));
15346
15346
  for (const category of categories2) {
15347
15347
  const avgTime = Math.round(
15348
15348
  category.commands.reduce((sum, cmd) => sum + cmd.contract.maxResponseTime, 0) / category.commands.length
@@ -15350,7 +15350,7 @@ var init_HelpCommand = __esm({
15350
15350
  lines.push(` ${category.emoji} ${category.name.padEnd(15)}: ${category.count.toString().padStart(2)} commands (${avgTime}ms avg)`);
15351
15351
  }
15352
15352
  lines.push("");
15353
- lines.push(chalk28__default.default.bold("\u2705 Contract Validation:"));
15353
+ lines.push(chalk29__default.default.bold("\u2705 Contract Validation:"));
15354
15354
  lines.push(" All commands tested for:");
15355
15355
  lines.push(" \u2022 Basic execution without crashes");
15356
15356
  lines.push(" \u2022 TTY/non-TTY/pipe compatibility");
@@ -15413,7 +15413,7 @@ var init_VersionCommand = __esm({
15413
15413
  if (context2.apiVersion) {
15414
15414
  apiBuild = ` \xB7 API: ${context2.apiVersion}`;
15415
15415
  }
15416
- const output3 = `${chalk28__default.default.bold("MARIA")} v${version}${apiBuild} \xB7 Node: ${process.version}`;
15416
+ const output3 = `${chalk29__default.default.bold("MARIA")} v${version}${apiBuild} \xB7 Node: ${process.version}`;
15417
15417
  await trackCommand({
15418
15418
  cmd: "version",
15419
15419
  status: "success",
@@ -15430,7 +15430,7 @@ var init_VersionCommand = __esm({
15430
15430
  plan: getUserPlan(),
15431
15431
  quotaLeft: context2.quotaLeft || 999
15432
15432
  });
15433
- return this.success(`${chalk28__default.default.bold("MARIA")} v${getVersion()}`);
15433
+ return this.success(`${chalk29__default.default.bold("MARIA")} v${getVersion()}`);
15434
15434
  }
15435
15435
  }
15436
15436
  };
@@ -15777,7 +15777,7 @@ var init_setup_command = __esm({
15777
15777
  if (flags["advanced"]) {
15778
15778
  return await this.advancedSetup(context2);
15779
15779
  }
15780
- if (flags["silent"] && options2["_config"]) {
15780
+ if (flags["silent"] && typeof options2["_config"] === "string" && options2["_config"].length > 0) {
15781
15781
  return await this.silentSetup(context2, options2["_config"]);
15782
15782
  }
15783
15783
  return await this.interactiveSetup(context2);
@@ -15837,15 +15837,14 @@ var init_setup_command = __esm({
15837
15837
  await this.showSuccessMessage(result2);
15838
15838
  result2.success = true;
15839
15839
  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
- });
15840
+ const nextSteps = [
15841
+ "Try: maria chat - Start interactive mode",
15842
+ 'Try: maria code "create a React component"',
15843
+ "Try: maria test - Generate tests",
15844
+ "Try: maria help - View all commands"
15845
+ ];
15846
+ const output3 = this.formatSetupSuccess(result2, nextSteps);
15847
+ return this.success(output3);
15849
15848
  } catch (innerError) {
15850
15849
  result2.success = false;
15851
15850
  result2.duration = Date.now() - _startTime;
@@ -15881,14 +15880,10 @@ var init_setup_command = __esm({
15881
15880
  errors: [],
15882
15881
  warnings: []
15883
15882
  });
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
- });
15883
+ const message = chalk29__default.default.green(
15884
+ '\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"`'
15885
+ );
15886
+ return this.success(message);
15892
15887
  } catch (error2) {
15893
15888
  logger.error("Quick setup failed:", error2);
15894
15889
  return this.error(
@@ -16075,23 +16070,72 @@ Estimated time: 3-5 minutes
16075
16070
  `);
16076
16071
  }
16077
16072
  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
- `);
16073
+ const lines = [];
16074
+ const durationSec = Math.max(1, Math.round(result2.duration / 1e3));
16075
+ const providers = result2.providersConfigured.length > 0 ? result2.providersConfigured.join(", ") : "none";
16076
+ const files = result2.filesGenerated.length > 0 ? result2.filesGenerated.join(", ") : "none";
16077
+ lines.push("");
16078
+ lines.push(chalk29__default.default.green.bold("\u{1F389} Setup Complete! Welcome to MARIA CODE!"));
16079
+ lines.push("");
16080
+ lines.push(chalk29__default.default.white(`\u2022 Status: ${chalk29__default.default.green("success")}`));
16081
+ lines.push(chalk29__default.default.white(`\u2022 Duration: ${chalk29__default.default.cyan(`${durationSec}s`)}`));
16082
+ lines.push(
16083
+ chalk29__default.default.white(
16084
+ `\u2022 Steps: ${chalk29__default.default.cyan(
16085
+ result2.stepsCompleted.map((s2) => s2.replace(/^_/, "")).join(", ") || "none"
16086
+ )}`
16087
+ )
16088
+ );
16089
+ lines.push(chalk29__default.default.white(`\u2022 Providers: ${chalk29__default.default.cyan(providers)}`));
16090
+ lines.push(chalk29__default.default.white(`\u2022 Files: ${chalk29__default.default.cyan(files)}`));
16091
+ if (result2.warnings.length > 0) {
16092
+ lines.push(
16093
+ chalk29__default.default.yellow(
16094
+ `\u2022 Warnings: ${result2.warnings.map((w) => w.replace(/^_/, "")).join(", ")}`
16095
+ )
16096
+ );
16097
+ }
16098
+ if (result2.errors.length > 0) {
16099
+ lines.push(chalk29__default.default.red(`\u2022 Errors: ${result2.errors.join(", ")}`));
16100
+ }
16101
+ lines.push("");
16102
+ lines.push(chalk29__default.default.white("\u{1F680} Ready to start! Try:"));
16103
+ lines.push(chalk29__default.default.white(" - maria chat \xB7 Start interactive mode"));
16104
+ lines.push(chalk29__default.default.white(' - maria code "create a React component"'));
16105
+ lines.push(chalk29__default.default.white(" - maria test \xB7 Generate tests"));
16106
+ lines.push(chalk29__default.default.white(" - maria help \xB7 View all commands"));
16107
+ lines.push("");
16108
+ lines.push(chalk29__default.default.green(`Setup completed in ${durationSec}s \xB7 Happy coding! \u{1F680}`));
16109
+ logger.info(lines.join("\n"));
16110
+ }
16111
+ /**
16112
+ * Build a green, human-readable success summary for CLI output
16113
+ */
16114
+ formatSetupSuccess(result2, nextSteps) {
16115
+ const durationSec = Math.max(1, Math.round(result2.duration / 1e3));
16116
+ const providers = result2.providersConfigured.length > 0 ? result2.providersConfigured.join(", ") : "none";
16117
+ const files = result2.filesGenerated.length > 0 ? result2.filesGenerated.join(", ") : "none";
16118
+ const steps = result2.stepsCompleted.map((s2) => s2.replace(/^_/, "")).join(", ") || "none";
16119
+ const lines = [];
16120
+ lines.push(chalk29__default.default.green.bold("\u{1F389} Setup completed successfully!"));
16121
+ lines.push("");
16122
+ lines.push(chalk29__default.default.green(`\u2022 Status: success`));
16123
+ lines.push(chalk29__default.default.green(`\u2022 Duration: ${durationSec}s`));
16124
+ lines.push(chalk29__default.default.green(`\u2022 Steps: ${steps}`));
16125
+ lines.push(chalk29__default.default.green(`\u2022 Providers: ${providers}`));
16126
+ lines.push(chalk29__default.default.green(`\u2022 Files: ${files}`));
16127
+ if (result2.warnings.length > 0) {
16128
+ lines.push(chalk29__default.default.yellow(`\u2022 Warnings: ${result2.warnings.map((w) => w.replace(/^_/, "")).join(", ")}`));
16129
+ }
16130
+ if (result2.errors.length > 0) {
16131
+ lines.push(chalk29__default.default.red(`\u2022 Errors: ${result2.errors.join(", ")}`));
16132
+ }
16133
+ if (nextSteps.length > 0) {
16134
+ lines.push("");
16135
+ lines.push(chalk29__default.default.green("Next steps:"));
16136
+ nextSteps.forEach((s2) => lines.push(chalk29__default.default.green(` - ${s2}`)));
16137
+ }
16138
+ return lines.join("\n");
16095
16139
  }
16096
16140
  // Helper methods
16097
16141
  async fileExists(_filePath) {
@@ -19671,8 +19715,8 @@ var require_package = __commonJS({
19671
19715
  "package.json"(exports, module) {
19672
19716
  module.exports = {
19673
19717
  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.",
19718
+ version: "4.2.25",
19719
+ description: "\u{1F680} MARIA v4.2.25 - 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
19720
  keywords: [
19677
19721
  "ai",
19678
19722
  "cli",
@@ -31052,7 +31096,7 @@ var init_clear_command = __esm({
31052
31096
  plan: getUserPlan(),
31053
31097
  quotaLeft: context2.quotaLeft || 999
31054
31098
  });
31055
- const message = chalk28__default.default.green("\u2705 Cleared") + chalk28__default.default.gray(" \xB7 context reset");
31099
+ const message = chalk29__default.default.green("\u2705 Cleared") + chalk29__default.default.gray(" \xB7 context reset");
31056
31100
  return this.success(withQuotaFooter(message, context2.quotaLeft));
31057
31101
  } catch (error2) {
31058
31102
  await trackCommand({
@@ -31063,7 +31107,7 @@ var init_clear_command = __esm({
31063
31107
  quotaLeft: context2.quotaLeft || 999
31064
31108
  });
31065
31109
  process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
31066
- return this.success(chalk28__default.default.green("\u2705 Cleared"));
31110
+ return this.success(chalk29__default.default.green("\u2705 Cleared"));
31067
31111
  }
31068
31112
  }
31069
31113
  };
@@ -32095,18 +32139,18 @@ var init_WhoAmICommand = __esm({
32095
32139
  });
32096
32140
  }
32097
32141
  const lines = [];
32098
- lines.push(chalk28__default.default.green("\u2705 Authenticated"));
32142
+ lines.push(chalk29__default.default.green("\u2705 Authenticated"));
32099
32143
  if (user.name) {
32100
- lines.push(chalk28__default.default.white(`\u{1F464} Name: ${chalk28__default.default.cyan(user.name)}`));
32144
+ lines.push(chalk29__default.default.white(`\u{1F464} Name: ${chalk29__default.default.cyan(user.name)}`));
32101
32145
  }
32102
32146
  if (user.email) {
32103
- lines.push(chalk28__default.default.white(`\u{1F4E7} Email: ${chalk28__default.default.cyan(user.email)}`));
32147
+ lines.push(chalk29__default.default.white(`\u{1F4E7} Email: ${chalk29__default.default.cyan(user.email)}`));
32104
32148
  }
32105
32149
  if (user.provider) {
32106
- lines.push(chalk28__default.default.white(`\u{1F511} Provider: ${chalk28__default.default.cyan(user.provider)}`));
32150
+ lines.push(chalk29__default.default.white(`\u{1F511} Provider: ${chalk29__default.default.cyan(user.provider)}`));
32107
32151
  }
32108
32152
  if (user.plan) {
32109
- lines.push(chalk28__default.default.white(`\u{1F48E} Plan: ${chalk28__default.default.cyan(user.plan)}`));
32153
+ lines.push(chalk29__default.default.white(`\u{1F48E} Plan: ${chalk29__default.default.cyan(user.plan)}`));
32110
32154
  }
32111
32155
  return this.success(lines.join("\n"), { authenticated: true, user });
32112
32156
  }
@@ -32133,40 +32177,40 @@ var init_about_command = __esm({
32133
32177
  async execute(args2, context2) {
32134
32178
  const output3 = [];
32135
32179
  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)));
32180
+ output3.push(chalk29__default.default.cyan.bold("\u{1F916} About MARIA v4.2.25"));
32181
+ output3.push(chalk29__default.default.gray("\u2550".repeat(40)));
32138
32182
  output3.push("");
32139
- output3.push(chalk28__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
32183
+ output3.push(chalk29__default.default.white.bold("MARIA - Minimal API, Maximum Power"));
32140
32184
  output3.push("");
32141
- output3.push(chalk28__default.default.white("\u{1F3AF} Revolutionary AI Development Platform:"));
32185
+ output3.push(chalk29__default.default.white("\u{1F3AF} Revolutionary AI Development Platform:"));
32142
32186
  output3.push(" \u2022 Natural Language Code Operations");
32143
32187
  output3.push(" \u2022 Graph RAG Knowledge System");
32144
32188
  output3.push(" \u2022 Dual Memory Architecture");
32145
32189
  output3.push(" \u2022 Enterprise-Grade Security");
32146
32190
  output3.push(" \u2022 Multimodal AI Generation");
32147
32191
  output3.push("");
32148
- output3.push(chalk28__default.default.white("\u{1F31F} Key Features:"));
32192
+ output3.push(chalk29__default.default.white("\u{1F31F} Key Features:"));
32149
32193
  output3.push(" \u2022 /code - Natural language coding");
32150
32194
  output3.push(" \u2022 68+ Slash Commands");
32151
32195
  output3.push(" \u2022 8 AI Provider Support");
32152
32196
  output3.push(" \u2022 Business Operations Suite");
32153
32197
  output3.push(" \u2022 Real-time Streaming");
32154
32198
  output3.push("");
32155
- output3.push(chalk28__default.default.white("\u{1F468}\u200D\u{1F4BB} Created by:"));
32199
+ output3.push(chalk29__default.default.white("\u{1F468}\u200D\u{1F4BB} Created by:"));
32156
32200
  output3.push(" \u2022 Bonginkan Team");
32157
32201
  output3.push(" \u2022 Enterprise AI Solutions");
32158
32202
  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"));
32203
+ output3.push(chalk29__default.default.white("\u{1F517} Links:"));
32204
+ output3.push(chalk29__default.default.blue(" Website: https://maria-code.ai"));
32205
+ output3.push(chalk29__default.default.blue(" Company: https://bonginkan.ai"));
32206
+ output3.push(chalk29__default.default.blue(" Discord: https://discord.gg/SMSmSGcEQy"));
32207
+ output3.push(chalk29__default.default.blue(" GitHub: https://github.com/bonginkan/maria"));
32208
+ output3.push(chalk29__default.default.blue(" NPM: https://www.npmjs.com/package/@bonginkan/maria"));
32165
32209
  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"));
32210
+ output3.push(chalk29__default.default.white("\u{1F4C4} License: MIT"));
32211
+ output3.push(chalk29__default.default.white("\u{1F3D7}\uFE0F Built with: TypeScript, Node.js, React"));
32168
32212
  output3.push("");
32169
- output3.push(chalk28__default.default.green("Thank you for using MARIA! \u{1F680}"));
32213
+ output3.push(chalk29__default.default.green("Thank you for using MARIA! \u{1F680}"));
32170
32214
  output3.push("");
32171
32215
  return {
32172
32216
  success: true,
@@ -34185,8 +34229,8 @@ var init_ConfigCLI = __esm({
34185
34229
  // Default to interactive
34186
34230
  });
34187
34231
  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)}`));
34232
+ console.log(chalk29__default.default.gray(`Executing: ${operation} ${args2.join(" ")}`));
34233
+ console.log(chalk29__default.default.gray(`Options: ${JSON.stringify(options2, null, 2)}`));
34190
34234
  }
34191
34235
  const result2 = await command.execute();
34192
34236
  if (result2.endReason === "success") {
@@ -34212,10 +34256,10 @@ var init_ConfigCLI = __esm({
34212
34256
  await this.displayPreview(data2.preview);
34213
34257
  if (data2.dryRun) {
34214
34258
  console.log(
34215
- chalk28__default.default.blue("\n\u{1F4CB} This was a dry run - no changes were applied.")
34259
+ chalk29__default.default.blue("\n\u{1F4CB} This was a dry run - no changes were applied.")
34216
34260
  );
34217
34261
  console.log(
34218
- chalk28__default.default.gray(
34262
+ chalk29__default.default.gray(
34219
34263
  "To apply changes, run the same command without --dry-run"
34220
34264
  )
34221
34265
  );
@@ -34223,30 +34267,30 @@ var init_ConfigCLI = __esm({
34223
34267
  }
34224
34268
  }
34225
34269
  if (data2.message) {
34226
- console.log(chalk28__default.default.green(data2.message));
34270
+ console.log(chalk29__default.default.green(data2.message));
34227
34271
  }
34228
34272
  if (data2.key && data2.value !== void 0) {
34229
- console.log(chalk28__default.default.green(`\u2705 Configuration updated:`));
34273
+ console.log(chalk29__default.default.green(`\u2705 Configuration updated:`));
34230
34274
  console.log(
34231
- ` ${chalk28__default.default.bold(data2.key)}: ${chalk28__default.default.cyan(this.formatValue(data2.value))}`
34275
+ ` ${chalk29__default.default.bold(data2.key)}: ${chalk29__default.default.cyan(this.formatValue(data2.value))}`
34232
34276
  );
34233
34277
  if (data2.layer) {
34234
- console.log(` Layer: ${chalk28__default.default.magenta(data2.layer)}`);
34278
+ console.log(` Layer: ${chalk29__default.default.magenta(data2.layer)}`);
34235
34279
  }
34236
34280
  }
34237
34281
  if (data2.deleted) {
34238
34282
  console.log(
34239
- chalk28__default.default.green(`\u2705 Configuration deleted: ${chalk28__default.default.bold(data2.key)}`)
34283
+ chalk29__default.default.green(`\u2705 Configuration deleted: ${chalk29__default.default.bold(data2.key)}`)
34240
34284
  );
34241
34285
  }
34242
34286
  if (data2.templateId) {
34243
34287
  console.log(
34244
- chalk28__default.default.green(`\u2705 Template applied: ${chalk28__default.default.bold(data2.templateId)}`)
34288
+ chalk29__default.default.green(`\u2705 Template applied: ${chalk29__default.default.bold(data2.templateId)}`)
34245
34289
  );
34246
34290
  }
34247
34291
  if (data2.rolledBack) {
34248
34292
  console.log(
34249
- chalk28__default.default.green(`\u2705 Rolled back to entry: ${chalk28__default.default.bold(data2.entryId)}`)
34293
+ chalk29__default.default.green(`\u2705 Rolled back to entry: ${chalk29__default.default.bold(data2.entryId)}`)
34250
34294
  );
34251
34295
  }
34252
34296
  if (data2.layers) {
@@ -34261,62 +34305,62 @@ var init_ConfigCLI = __esm({
34261
34305
  console.log(JSON.stringify({ error: error2 }, null, 2));
34262
34306
  return;
34263
34307
  }
34264
- console.error(chalk28__default.default.red(`\u274C Error: ${error2}`));
34308
+ console.error(chalk29__default.default.red(`\u274C Error: ${error2}`));
34265
34309
  if (error2.includes("not found")) {
34266
34310
  console.log(
34267
- chalk28__default.default.gray("\nTry: /config list # to see available configurations")
34311
+ chalk29__default.default.gray("\nTry: /config list # to see available configurations")
34268
34312
  );
34269
34313
  }
34270
34314
  if (error2.includes("required")) {
34271
- console.log(chalk28__default.default.gray("\nTry: /config help # to see command syntax"));
34315
+ console.log(chalk29__default.default.gray("\nTry: /config help # to see command syntax"));
34272
34316
  }
34273
34317
  }
34274
34318
  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)}`);
34319
+ console.log(chalk29__default.default.bold.cyan("\n\u{1F50D} Configuration Preview\n"));
34320
+ console.log(`${chalk29__default.default.bold("Operation:")} ${chalk29__default.default.cyan(preview.operation)}`);
34277
34321
  if (preview.key) {
34278
- console.log(`${chalk28__default.default.bold("Key:")} ${chalk28__default.default.yellow(preview.key)}`);
34322
+ console.log(`${chalk29__default.default.bold("Key:")} ${chalk29__default.default.yellow(preview.key)}`);
34279
34323
  }
34280
34324
  if (preview.value !== void 0) {
34281
34325
  console.log(
34282
- `${chalk28__default.default.bold("Value:")} ${chalk28__default.default.green(this.formatValue(preview.value))}`
34326
+ `${chalk29__default.default.bold("Value:")} ${chalk29__default.default.green(this.formatValue(preview.value))}`
34283
34327
  );
34284
34328
  }
34285
34329
  if (preview.changes.length > 0) {
34286
- console.log(chalk28__default.default.bold("\n\u{1F4DD} Changes:"));
34330
+ console.log(chalk29__default.default.bold("\n\u{1F4DD} Changes:"));
34287
34331
  for (const change of preview.changes) {
34288
34332
  this.displayChange(change);
34289
34333
  }
34290
34334
  }
34291
34335
  if (preview.affected.length > 0) {
34292
- console.log(chalk28__default.default.bold("\n\u{1F517} Affected Configurations:"));
34336
+ console.log(chalk29__default.default.bold("\n\u{1F517} Affected Configurations:"));
34293
34337
  for (const affected of preview.affected) {
34294
34338
  this.displayAffectedConfig(affected);
34295
34339
  }
34296
34340
  }
34297
34341
  if (preview.risks.length > 0) {
34298
- console.log(chalk28__default.default.bold("\n\u26A0\uFE0F Safety Analysis:"));
34342
+ console.log(chalk29__default.default.bold("\n\u26A0\uFE0F Safety Analysis:"));
34299
34343
  for (const risk of preview.risks) {
34300
34344
  this.displaySafetyRisk(risk);
34301
34345
  }
34302
34346
  }
34303
34347
  if (!preview.validation.ok) {
34304
- console.log(chalk28__default.default.bold.red("\n\u274C Validation Errors:"));
34348
+ console.log(chalk29__default.default.bold.red("\n\u274C Validation Errors:"));
34305
34349
  if (preview.validation.errors) {
34306
34350
  for (const error2 of preview.validation.errors) {
34307
- console.log(` \u2022 ${chalk28__default.default.red(error2)}`);
34351
+ console.log(` \u2022 ${chalk29__default.default.red(error2)}`);
34308
34352
  }
34309
34353
  }
34310
34354
  } else if (preview.validation.warnings && preview.validation.warnings.length > 0) {
34311
- console.log(chalk28__default.default.bold.yellow("\n\u26A0\uFE0F Validation Warnings:"));
34355
+ console.log(chalk29__default.default.bold.yellow("\n\u26A0\uFE0F Validation Warnings:"));
34312
34356
  for (const warning of preview.validation.warnings) {
34313
- console.log(` \u2022 ${chalk28__default.default.yellow(warning)}`);
34357
+ console.log(` \u2022 ${chalk29__default.default.yellow(warning)}`);
34314
34358
  }
34315
34359
  }
34316
34360
  if (preview.requiresConfirmation && !preview.validation.dryRun) {
34317
34361
  const confirmed = await this.promptConfirmation();
34318
34362
  if (!confirmed) {
34319
- console.log(chalk28__default.default.yellow("\n\u274C Operation cancelled"));
34363
+ console.log(chalk29__default.default.yellow("\n\u274C Operation cancelled"));
34320
34364
  process.exit(0);
34321
34365
  }
34322
34366
  }
@@ -34328,42 +34372,42 @@ var init_ConfigCLI = __esm({
34328
34372
  delete: "\u{1F5D1}\uFE0F"
34329
34373
  };
34330
34374
  const typeColor = {
34331
- add: chalk28__default.default.green,
34332
- modify: chalk28__default.default.yellow,
34333
- delete: chalk28__default.default.red
34375
+ add: chalk29__default.default.green,
34376
+ modify: chalk29__default.default.yellow,
34377
+ delete: chalk29__default.default.red
34334
34378
  };
34335
34379
  console.log(
34336
- ` ${typeIcon[change.type]} ${typeColor[change.type](change.type.toUpperCase())}: ${chalk28__default.default.bold(change.key)}`
34380
+ ` ${typeIcon[change.type]} ${typeColor[change.type](change.type.toUpperCase())}: ${chalk29__default.default.bold(change.key)}`
34337
34381
  );
34338
34382
  if (change.oldValue !== void 0) {
34339
34383
  console.log(
34340
- ` ${chalk28__default.default.gray("Old:")} ${chalk28__default.default.gray(this.formatValue(change.oldValue))}`
34384
+ ` ${chalk29__default.default.gray("Old:")} ${chalk29__default.default.gray(this.formatValue(change.oldValue))}`
34341
34385
  );
34342
34386
  }
34343
34387
  if (change.newValue !== void 0) {
34344
34388
  console.log(
34345
- ` ${chalk28__default.default.gray("New:")} ${chalk28__default.default.cyan(this.formatValue(change.newValue))}`
34389
+ ` ${chalk29__default.default.gray("New:")} ${chalk29__default.default.cyan(this.formatValue(change.newValue))}`
34346
34390
  );
34347
34391
  }
34348
- console.log(` ${chalk28__default.default.gray("Layer:")} ${chalk28__default.default.magenta(change.layer)}`);
34349
- console.log(` ${chalk28__default.default.gray(change.description)}`);
34392
+ console.log(` ${chalk29__default.default.gray("Layer:")} ${chalk29__default.default.magenta(change.layer)}`);
34393
+ console.log(` ${chalk29__default.default.gray(change.description)}`);
34350
34394
  console.log();
34351
34395
  }
34352
34396
  displayAffectedConfig(affected) {
34353
34397
  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
34398
+ low: chalk29__default.default.gray,
34399
+ medium: chalk29__default.default.yellow,
34400
+ high: chalk29__default.default.red,
34401
+ critical: chalk29__default.default.red.bold
34358
34402
  };
34359
34403
  console.log(
34360
- ` \u2022 ${chalk28__default.default.bold(affected.key)} (${chalk28__default.default.magenta(affected.layer)})`
34404
+ ` \u2022 ${chalk29__default.default.bold(affected.key)} (${chalk29__default.default.magenta(affected.layer)})`
34361
34405
  );
34362
34406
  console.log(
34363
34407
  ` Impact: ${impactColor[affected.impact](affected.impact.toUpperCase())}`
34364
34408
  );
34365
- console.log(` Relationship: ${chalk28__default.default.cyan(affected.relationship)}`);
34366
- console.log(` ${chalk28__default.default.gray(affected.description)}`);
34409
+ console.log(` Relationship: ${chalk29__default.default.cyan(affected.relationship)}`);
34410
+ console.log(` ${chalk29__default.default.gray(affected.description)}`);
34367
34411
  console.log();
34368
34412
  }
34369
34413
  displaySafetyRisk(risk) {
@@ -34374,78 +34418,78 @@ var init_ConfigCLI = __esm({
34374
34418
  critical: "\u{1F6A8}"
34375
34419
  };
34376
34420
  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
34421
+ info: chalk29__default.default.blue,
34422
+ warning: chalk29__default.default.yellow,
34423
+ error: chalk29__default.default.red,
34424
+ critical: chalk29__default.default.red.bold
34381
34425
  };
34382
34426
  console.log(
34383
34427
  ` ${levelIcon[risk.level]} ${levelColor[risk.level](risk.level.toUpperCase())}: ${risk.message}`
34384
34428
  );
34385
34429
  if (risk.recommendation) {
34386
34430
  console.log(
34387
- ` ${chalk28__default.default.gray("Recommendation:")} ${risk.recommendation}`
34431
+ ` ${chalk29__default.default.gray("Recommendation:")} ${risk.recommendation}`
34388
34432
  );
34389
34433
  }
34390
34434
  if (risk.autoFixable) {
34391
- console.log(` ${chalk28__default.default.green("Auto-fixable: Yes")}`);
34435
+ console.log(` ${chalk29__default.default.green("Auto-fixable: Yes")}`);
34392
34436
  }
34393
34437
  console.log();
34394
34438
  }
34395
34439
  displayLayeredConfig(data2) {
34396
- console.log(chalk28__default.default.bold(`
34440
+ console.log(chalk29__default.default.bold(`
34397
34441
  \u{1F4CB} ${data2.key} Configuration
34398
34442
  `));
34399
34443
  console.log(
34400
- `${chalk28__default.default.bold("Effective Value:")} ${chalk28__default.default.cyan(this.formatValue(data2.value))}`
34444
+ `${chalk29__default.default.bold("Effective Value:")} ${chalk29__default.default.cyan(this.formatValue(data2.value))}`
34401
34445
  );
34402
- console.log(`${chalk28__default.default.bold("Source Layer:")} ${chalk28__default.default.magenta(data2.source)}`);
34446
+ console.log(`${chalk29__default.default.bold("Source Layer:")} ${chalk29__default.default.magenta(data2.source)}`);
34403
34447
  console.log(
34404
- `${chalk28__default.default.bold("Merged:")} ${data2.merged ? chalk28__default.default.yellow("Yes") : chalk28__default.default.gray("No")}`
34448
+ `${chalk29__default.default.bold("Merged:")} ${data2.merged ? chalk29__default.default.yellow("Yes") : chalk29__default.default.gray("No")}`
34405
34449
  );
34406
34450
  if (data2.layers) {
34407
- console.log(chalk28__default.default.bold("\nLayer Values:"));
34451
+ console.log(chalk29__default.default.bold("\nLayer Values:"));
34408
34452
  const layers = ["runtime", "project", "user", "global"];
34409
34453
  for (const layer of layers) {
34410
34454
  const value = data2.layers[layer];
34411
34455
  if (value !== void 0) {
34412
34456
  const isActive = layer === data2.source;
34413
- const layerDisplay = isActive ? chalk28__default.default.bold.magenta(`${layer} (active)`) : chalk28__default.default.gray(layer);
34457
+ const layerDisplay = isActive ? chalk29__default.default.bold.magenta(`${layer} (active)`) : chalk29__default.default.gray(layer);
34414
34458
  console.log(
34415
- ` ${layerDisplay}: ${chalk28__default.default.cyan(this.formatValue(value))}`
34459
+ ` ${layerDisplay}: ${chalk29__default.default.cyan(this.formatValue(value))}`
34416
34460
  );
34417
34461
  }
34418
34462
  }
34419
34463
  }
34420
34464
  }
34421
34465
  displayConfigList(configs) {
34422
- console.log(chalk28__default.default.bold("\n\u2699\uFE0F Configuration Settings\n"));
34466
+ console.log(chalk29__default.default.bold("\n\u2699\uFE0F Configuration Settings\n"));
34423
34467
  if (Object.keys(configs).length === 0) {
34424
- console.log(chalk28__default.default.gray("No configurations found."));
34468
+ console.log(chalk29__default.default.gray("No configurations found."));
34425
34469
  return;
34426
34470
  }
34427
34471
  const categorized = this.categorizeConfigs(configs);
34428
34472
  for (const [category, items] of Object.entries(categorized)) {
34429
34473
  if (Object.keys(items).length === 0) continue;
34430
34474
  console.log(
34431
- chalk28__default.default.bold.cyan(`${this.getCategoryIcon(category)} ${category}`)
34475
+ chalk29__default.default.bold.cyan(`${this.getCategoryIcon(category)} ${category}`)
34432
34476
  );
34433
- console.log(chalk28__default.default.gray("\u2500".repeat(category.length + 4)));
34477
+ console.log(chalk29__default.default.gray("\u2500".repeat(category.length + 4)));
34434
34478
  for (const [key2, value] of Object.entries(items)) {
34435
34479
  console.log(
34436
- ` ${chalk28__default.default.bold(key2)}: ${chalk28__default.default.cyan(this.formatValue(value))}`
34480
+ ` ${chalk29__default.default.bold(key2)}: ${chalk29__default.default.cyan(this.formatValue(value))}`
34437
34481
  );
34438
34482
  }
34439
34483
  console.log();
34440
34484
  }
34441
34485
  console.log(
34442
- chalk28__default.default.gray(`Total: ${Object.keys(configs).length} configuration(s)`)
34486
+ chalk29__default.default.gray(`Total: ${Object.keys(configs).length} configuration(s)`)
34443
34487
  );
34444
34488
  }
34445
34489
  async promptConfirmation() {
34446
34490
  return new Promise((resolve8) => {
34447
34491
  this.rl.question(
34448
- chalk28__default.default.bold("\nDo you want to proceed? [y/N]: "),
34492
+ chalk29__default.default.bold("\nDo you want to proceed? [y/N]: "),
34449
34493
  (answer) => {
34450
34494
  resolve8(["y", "yes", "Y", "YES"].includes(answer.trim()));
34451
34495
  }
@@ -34454,20 +34498,20 @@ var init_ConfigCLI = __esm({
34454
34498
  }
34455
34499
  formatValue(value) {
34456
34500
  if (value === null || value === void 0) {
34457
- return chalk28__default.default.gray("null");
34501
+ return chalk29__default.default.gray("null");
34458
34502
  }
34459
34503
  if (typeof value === "string") {
34460
34504
  const isSensitive = this.isSensitiveValue(value);
34461
34505
  if (isSensitive) {
34462
- return chalk28__default.default.gray("********");
34506
+ return chalk29__default.default.gray("********");
34463
34507
  }
34464
34508
  return `"${value}"`;
34465
34509
  }
34466
34510
  if (typeof value === "boolean") {
34467
- return value ? chalk28__default.default.green("true") : chalk28__default.default.red("false");
34511
+ return value ? chalk29__default.default.green("true") : chalk29__default.default.red("false");
34468
34512
  }
34469
34513
  if (typeof value === "number") {
34470
- return chalk28__default.default.blue(value.toString());
34514
+ return chalk29__default.default.blue(value.toString());
34471
34515
  }
34472
34516
  if (Array.isArray(value)) {
34473
34517
  return `[${value.map((v) => this.formatValue(v)).join(", ")}]`;
@@ -35942,8 +35986,8 @@ var init_api_caller = __esm({
35942
35986
  });
35943
35987
  function handleRateLimitError(error2) {
35944
35988
  console.log();
35945
- console.log(chalk28__default.default.yellow("\u23F1\uFE0F Rate Limit Exceeded"));
35946
- console.log(chalk28__default.default.gray("\u2501".repeat(50)));
35989
+ console.log(chalk29__default.default.yellow("\u23F1\uFE0F Rate Limit Exceeded"));
35990
+ console.log(chalk29__default.default.gray("\u2501".repeat(50)));
35947
35991
  const route = error2.route || error2.details?.endpoint || "API";
35948
35992
  const plan = error2.plan || error2.details?.plan || "Unknown";
35949
35993
  const limit = error2.limit || (error2.details?.limit ? parseInt(error2.details.limit) : null);
@@ -35961,24 +36005,24 @@ function handleRateLimitError(error2) {
35961
36005
  resetTime = `at ${resetDate.toLocaleTimeString()}`;
35962
36006
  }
35963
36007
  }
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)}`));
36008
+ console.log(chalk29__default.default.white(`Plan: ${chalk29__default.default.bold(plan)}`));
36009
+ console.log(chalk29__default.default.white(`Endpoint: ${chalk29__default.default.bold(route)}`));
35966
36010
  if (limit !== null) {
35967
- console.log(chalk28__default.default.white(`Limit: ${chalk28__default.default.bold(limit)} requests`));
36011
+ console.log(chalk29__default.default.white(`Limit: ${chalk29__default.default.bold(limit)} requests`));
35968
36012
  }
35969
36013
  if (error2.remaining !== void 0) {
35970
- console.log(chalk28__default.default.white(`Remaining: ${chalk28__default.default.bold(error2.remaining)} requests`));
36014
+ console.log(chalk29__default.default.white(`Remaining: ${chalk29__default.default.bold(error2.remaining)} requests`));
35971
36015
  }
35972
36016
  console.log();
35973
- console.log(chalk28__default.default.cyan(`Please wait ${chalk28__default.default.bold(waitTime)} before trying again`));
36017
+ console.log(chalk29__default.default.cyan(`Please wait ${chalk29__default.default.bold(waitTime)} before trying again`));
35974
36018
  if (resetTime) {
35975
- console.log(chalk28__default.default.gray(`Rate limit resets ${resetTime}`));
36019
+ console.log(chalk29__default.default.gray(`Rate limit resets ${resetTime}`));
35976
36020
  }
35977
36021
  if (error2.hint) {
35978
36022
  console.log();
35979
- console.log(chalk28__default.default.magenta("\u{1F4A1} " + error2.hint));
36023
+ console.log(chalk29__default.default.magenta("\u{1F4A1} " + error2.hint));
35980
36024
  }
35981
- console.log(chalk28__default.default.gray("\u2501".repeat(50)));
36025
+ console.log(chalk29__default.default.gray("\u2501".repeat(50)));
35982
36026
  console.log();
35983
36027
  }
35984
36028
  async function parseRateLimitResponse(response2) {
@@ -40889,7 +40933,7 @@ var init_model_selector_ui = __esm({
40889
40933
  output: process.stdout,
40890
40934
  terminal: true
40891
40935
  });
40892
- console.log(chalk28__default.default.green(
40936
+ console.log(chalk29__default.default.green(
40893
40937
  "\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
40938
  ));
40895
40939
  process.stdout.write("\x1B7");
@@ -40957,14 +41001,14 @@ var init_model_selector_ui = __esm({
40957
41001
  }
40958
41002
  renderFromSavedPosition() {
40959
41003
  if (this.isDestroyed) return;
40960
- console.log(chalk28__default.default.green(
40961
- "\u2502 " + chalk28__default.default.greenBright("SELECT MODEL:") + " ".repeat(62) + "\u2502"
41004
+ console.log(chalk29__default.default.green(
41005
+ "\u2502 " + chalk29__default.default.greenBright("SELECT MODEL:") + " ".repeat(62) + "\u2502"
40962
41006
  ));
40963
41007
  this.renderContent();
40964
41008
  const scrollInfo = `[${this.selectedIndex + 1}/${this.models.length}]`;
40965
41009
  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(
41010
+ console.log(chalk29__default.default.green("\u2502 ") + chalk29__default.default.dim.green(helpText.padEnd(76)) + chalk29__default.default.green(" \u2502"));
41011
+ console.log(chalk29__default.default.green(
40968
41012
  "\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
41013
  ));
40970
41014
  }
@@ -41005,19 +41049,19 @@ var init_model_selector_ui = __esm({
41005
41049
  const item = displayItems[i2];
41006
41050
  if (item.type === "group") {
41007
41051
  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")
41052
+ 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
41053
  );
41010
41054
  } else {
41011
41055
  const isSelected = item.modelIndex === this.selectedIndex;
41012
- const prefix = isSelected ? chalk28__default.default.greenBright("\u25B6 ") : " ";
41056
+ const prefix = isSelected ? chalk29__default.default.greenBright("\u25B6 ") : " ";
41013
41057
  const modelText = item.content;
41014
41058
  if (isSelected) {
41015
41059
  console.log(
41016
- chalk28__default.default.green("\u2502") + prefix + chalk28__default.default.black.bgGreen(modelText.padEnd(75)) + chalk28__default.default.green("\u2502")
41060
+ chalk29__default.default.green("\u2502") + prefix + chalk29__default.default.black.bgGreen(modelText.padEnd(75)) + chalk29__default.default.green("\u2502")
41017
41061
  );
41018
41062
  } else {
41019
41063
  console.log(
41020
- chalk28__default.default.green("\u2502") + prefix + chalk28__default.default.green(modelText.substring(0, 75).padEnd(75)) + chalk28__default.default.green("\u2502")
41064
+ chalk29__default.default.green("\u2502") + prefix + chalk29__default.default.green(modelText.substring(0, 75).padEnd(75)) + chalk29__default.default.green("\u2502")
41021
41065
  );
41022
41066
  }
41023
41067
  }
@@ -43162,129 +43206,129 @@ function displayStartupLogo() {
43162
43206
  process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
43163
43207
  console.log("");
43164
43208
  console.log(
43165
- chalk28__default.default.magentaBright(
43209
+ chalk29__default.default.magentaBright(
43166
43210
  "\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
43211
  )
43168
43212
  );
43169
43213
  console.log(
43170
- chalk28__default.default.magentaBright(
43214
+ chalk29__default.default.magentaBright(
43171
43215
  "\u2551 \u2551"
43172
43216
  )
43173
43217
  );
43174
43218
  console.log(
43175
- chalk28__default.default.magentaBright(
43219
+ chalk29__default.default.magentaBright(
43176
43220
  "\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
43221
  )
43178
43222
  );
43179
43223
  console.log(
43180
- chalk28__default.default.magentaBright(
43224
+ chalk29__default.default.magentaBright(
43181
43225
  "\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
43226
  )
43183
43227
  );
43184
43228
  console.log(
43185
- chalk28__default.default.magentaBright(
43229
+ chalk29__default.default.magentaBright(
43186
43230
  "\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
43231
  )
43188
43232
  );
43189
43233
  console.log(
43190
- chalk28__default.default.magentaBright(
43234
+ chalk29__default.default.magentaBright(
43191
43235
  "\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
43236
  )
43193
43237
  );
43194
43238
  console.log(
43195
- chalk28__default.default.magentaBright(
43239
+ chalk29__default.default.magentaBright(
43196
43240
  "\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
43241
  )
43198
43242
  );
43199
43243
  console.log(
43200
- chalk28__default.default.magentaBright(
43244
+ chalk29__default.default.magentaBright(
43201
43245
  "\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
43246
  )
43203
43247
  );
43204
43248
  console.log(
43205
- chalk28__default.default.magentaBright(
43249
+ chalk29__default.default.magentaBright(
43206
43250
  "\u2551 \u2551"
43207
43251
  )
43208
43252
  );
43209
43253
  console.log(
43210
- chalk28__default.default.magentaBright(
43254
+ chalk29__default.default.magentaBright(
43211
43255
  "\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
43256
  )
43213
43257
  );
43214
43258
  console.log(
43215
- chalk28__default.default.magentaBright(
43259
+ chalk29__default.default.magentaBright(
43216
43260
  "\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
43261
  )
43218
43262
  );
43219
43263
  console.log(
43220
- chalk28__default.default.magentaBright(
43264
+ chalk29__default.default.magentaBright(
43221
43265
  "\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2551"
43222
43266
  )
43223
43267
  );
43224
43268
  console.log(
43225
- chalk28__default.default.magentaBright(
43269
+ chalk29__default.default.magentaBright(
43226
43270
  "\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255D \u2551"
43227
43271
  )
43228
43272
  );
43229
43273
  console.log(
43230
- chalk28__default.default.magentaBright(
43274
+ chalk29__default.default.magentaBright(
43231
43275
  "\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
43276
  )
43233
43277
  );
43234
43278
  console.log(
43235
- chalk28__default.default.magentaBright(
43279
+ chalk29__default.default.magentaBright(
43236
43280
  "\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
43281
  )
43238
43282
  );
43239
43283
  console.log(
43240
- chalk28__default.default.magentaBright(
43284
+ chalk29__default.default.magentaBright(
43241
43285
  "\u2551 \u2551"
43242
43286
  )
43243
43287
  );
43244
43288
  console.log(
43245
- chalk28__default.default.magentaBright(
43289
+ chalk29__default.default.magentaBright(
43246
43290
  "\u2551 AI-Powered Development Platform \u2551"
43247
43291
  )
43248
43292
  );
43249
43293
  console.log(
43250
- chalk28__default.default.magentaBright(
43294
+ chalk29__default.default.magentaBright(
43251
43295
  "\u2551 (c) 2025 Bonginkan Inc. \u2551"
43252
43296
  )
43253
43297
  );
43254
43298
  console.log(
43255
- chalk28__default.default.magentaBright(
43299
+ chalk29__default.default.magentaBright(
43256
43300
  "\u2551 \u2551"
43257
43301
  )
43258
43302
  );
43259
43303
  console.log(
43260
- chalk28__default.default.magentaBright(
43304
+ chalk29__default.default.magentaBright(
43261
43305
  "\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
43306
  )
43263
43307
  );
43264
43308
  console.log("");
43265
43309
  console.log(
43266
- chalk28__default.default.cyan.bold(`MARIA CODE v${getVersion()}`) + chalk28__default.default.gray(" \u2014 Ready")
43310
+ chalk29__default.default.cyan.bold(`MARIA CODE v${getVersion()}`) + chalk29__default.default.gray(" \u2014 Ready")
43267
43311
  );
43268
43312
  console.log(
43269
- chalk28__default.default.yellow("Type /login to get started \xB7 /help for commands")
43313
+ chalk29__default.default.yellow("Type /login to get started \xB7 /help for commands")
43270
43314
  );
43271
43315
  console.log("");
43272
43316
  }
43273
43317
  function displayCompactLogo() {
43274
43318
  process.stdout.write("\x1B[2J\x1B[H");
43275
43319
  console.log(
43276
- chalk28__default.default.cyan.bold(`MARIA CODE v${getVersion()}`) + chalk28__default.default.gray(" \u2014 Ready")
43320
+ chalk29__default.default.cyan.bold(`MARIA CODE v${getVersion()}`) + chalk29__default.default.gray(" \u2014 Ready")
43277
43321
  );
43278
43322
  console.log(
43279
- chalk28__default.default.yellow("Type /login to get started \xB7 /help for commands")
43323
+ chalk29__default.default.yellow("Type /login to get started \xB7 /help for commands")
43280
43324
  );
43281
43325
  console.log("");
43282
43326
  }
43283
43327
  function displayDashboardHeader() {
43284
43328
  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(
43329
+ const version = chalk29__default.default.cyan.bold(`MARIA CODE v${getVersion()}`);
43330
+ const commands = chalk29__default.default.gray(" | /help /status /model");
43331
+ const providers = chalk29__default.default.gray(
43288
43332
  "Providers: 8/8 OK (openai, anthropic, google, groq, lmstudio, ollama, vllm)"
43289
43333
  );
43290
43334
  console.log(version + commands);
@@ -43293,8 +43337,8 @@ function displayDashboardHeader() {
43293
43337
  }
43294
43338
  function displayLogsBox(logs) {
43295
43339
  const width = getResponsiveWidth({ marginLeft: 5, marginRight: 5, maxWidth: 120 });
43296
- const borderColor = chalk28__default.default.white;
43297
- const titleColor = chalk28__default.default.cyan;
43340
+ const borderColor = chalk29__default.default.white;
43341
+ const titleColor = chalk29__default.default.cyan;
43298
43342
  const topLeft = "\u250C";
43299
43343
  const topRight = "\u2510";
43300
43344
  const bottomLeft = "\u2514";
@@ -43327,7 +43371,7 @@ function displayLogsBox(logs) {
43327
43371
  function displaySpinner(text = "Processing") {
43328
43372
  const spinnerFrames = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
43329
43373
  const frame = spinnerFrames[Math.floor(Date.now() / 80) % spinnerFrames.length];
43330
- process.stdout.write(`\r[${chalk28__default.default.cyan(frame)}] ${text}...`);
43374
+ process.stdout.write(`\r[${chalk29__default.default.cyan(frame)}] ${text}...`);
43331
43375
  }
43332
43376
  function getCurrentPath() {
43333
43377
  return process.cwd();
@@ -43345,18 +43389,18 @@ async function displayFinalStartupScreen(_selectedProvider, _selectedModel) {
43345
43389
  const version = getVersion();
43346
43390
  const systemInfo = getSystemInfo();
43347
43391
  console.log(
43348
- chalk28__default.default.cyan.bold(`MARIA CODE v${version}`) + chalk28__default.default.gray(" \u2014 Ready")
43392
+ chalk29__default.default.cyan.bold(`MARIA CODE v${version}`) + chalk29__default.default.gray(" \u2014 Ready")
43349
43393
  );
43350
43394
  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"));
43395
+ console.log(chalk29__default.default.gray("cwd: ") + chalk29__default.default.white(cwd2));
43396
+ console.log(chalk29__default.default.gray("Not signed in"));
43397
+ console.log(chalk29__default.default.yellow("Tip: /login \xB7 /help \xB7 /help code"));
43354
43398
  console.log("");
43355
43399
  }
43356
43400
  function displayRoundedInputBox() {
43357
43401
  const width = getResponsiveWidth({ marginLeft: 5, marginRight: 5, maxWidth: 90 });
43358
- const borderColor = chalk28__default.default.white;
43359
- const promptColor = chalk28__default.default.cyan;
43402
+ const borderColor = chalk29__default.default.white;
43403
+ const promptColor = chalk29__default.default.cyan;
43360
43404
  const topLeft = "\u256D";
43361
43405
  const topRight = "\u256E";
43362
43406
  const bottomLeft = "\u2570";
@@ -43366,7 +43410,7 @@ function displayRoundedInputBox() {
43366
43410
  const lines = [];
43367
43411
  lines.push(borderColor(topLeft + horizontal.repeat(width - 2) + topRight));
43368
43412
  const promptStr = promptColor("> ");
43369
- const placeholder = chalk28__default.default.gray("");
43413
+ const placeholder = chalk29__default.default.gray("");
43370
43414
  const inputLine = promptStr + placeholder;
43371
43415
  const padding = width - 4;
43372
43416
  lines.push(
@@ -43520,29 +43564,29 @@ var init_provider_selector = __esm({
43520
43564
  const inquirer = await import('inquirer');
43521
43565
  const prompt = inquirer.default?.prompt || inquirer.prompt;
43522
43566
  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)));
43567
+ console.log(chalk29__default.default.cyan("\nAvailable AI Providers:"));
43568
+ console.log(chalk29__default.default.gray("\u2500".repeat(50)));
43525
43569
  const _cloudProviders = providers.filter((p) => p.type === "cloud");
43526
43570
  const _localProviders = providers.filter((p) => p.type === "local");
43527
43571
  if (_cloudProviders.length > 0) {
43528
- console.log(chalk28__default.default.yellow("\n\u2601\uFE0F Cloud AI:"));
43572
+ console.log(chalk29__default.default.yellow("\n\u2601\uFE0F Cloud AI:"));
43529
43573
  _cloudProviders.forEach((p) => {
43530
43574
  if (p.available) {
43531
43575
  console.log(
43532
- ` ${chalk28__default.default.green("*")} ${chalk28__default.default.white(p.name.split(" ")[0])}`
43576
+ ` ${chalk29__default.default.green("*")} ${chalk29__default.default.white(p.name.split(" ")[0])}`
43533
43577
  );
43534
43578
  } else {
43535
- console.log(` ${chalk28__default.default.gray(p.name.split(" ")[0])}`);
43579
+ console.log(` ${chalk29__default.default.gray(p.name.split(" ")[0])}`);
43536
43580
  }
43537
43581
  });
43538
43582
  }
43539
43583
  if (_localProviders.length > 0) {
43540
- console.log(chalk28__default.default.cyan("\n\u{1F4BB} Local AI:"));
43584
+ console.log(chalk29__default.default.cyan("\n\u{1F4BB} Local AI:"));
43541
43585
  _localProviders.forEach((p) => {
43542
43586
  if (p.available) {
43543
- console.log(` ${chalk28__default.default.green("*")} ${chalk28__default.default.white(p.name)}`);
43587
+ console.log(` ${chalk29__default.default.green("*")} ${chalk29__default.default.white(p.name)}`);
43544
43588
  } else {
43545
- console.log(` ${chalk28__default.default.green("*")} ${chalk28__default.default.gray(p.name)}`);
43589
+ console.log(` ${chalk29__default.default.green("*")} ${chalk29__default.default.gray(p.name)}`);
43546
43590
  }
43547
43591
  });
43548
43592
  }
@@ -43557,20 +43601,20 @@ var init_provider_selector = __esm({
43557
43601
  });
43558
43602
  if (selectableProviders.length === 0) {
43559
43603
  console.log(
43560
- chalk28__default.default.yellow("\n\u26A0\uFE0F No AI providers are currently available.")
43604
+ chalk29__default.default.yellow("\n\u26A0\uFE0F No AI providers are currently available.")
43561
43605
  );
43562
- console.log(chalk28__default.default.gray("\nTo use MARIA, you need to:"));
43606
+ console.log(chalk29__default.default.gray("\nTo use MARIA, you need to:"));
43563
43607
  console.log(
43564
- chalk28__default.default.gray(
43608
+ chalk29__default.default.gray(
43565
43609
  "1. Set up API keys for cloud providers (OpenAI, Anthropic, Google, etc.)"
43566
43610
  )
43567
43611
  );
43568
- console.log(chalk28__default.default.gray(" Example: export OPENAI_API_KEY=your_api_key"));
43612
+ console.log(chalk29__default.default.gray(" Example: export OPENAI_API_KEY=your_api_key"));
43569
43613
  console.log(
43570
- chalk28__default.default.gray("2. Or start a local AI service (Ollama, LM Studio, vLLM)")
43614
+ chalk29__default.default.gray("2. Or start a local AI service (Ollama, LM Studio, vLLM)")
43571
43615
  );
43572
- console.log(chalk28__default.default.gray(" Example: maria setup-ollama"));
43573
- console.log(chalk28__default.default.gray("\nFor more information, run: maria --help"));
43616
+ console.log(chalk29__default.default.gray(" Example: maria setup-ollama"));
43617
+ console.log(chalk29__default.default.gray("\nFor more information, run: maria --help"));
43574
43618
  process.exit(1);
43575
43619
  }
43576
43620
  const choices = selectableProviders.map((p) => ({
@@ -43591,29 +43635,29 @@ var init_provider_selector = __esm({
43591
43635
  const provider = providers.find((p) => p.value === selectedProvider);
43592
43636
  if (provider && provider.type === "local" && !provider.available) {
43593
43637
  console.log(
43594
- chalk28__default.default.yellow(`
43638
+ chalk29__default.default.yellow(`
43595
43639
  \u26A0\uFE0F ${provider.name} is not currently running.`)
43596
43640
  );
43597
- console.log(chalk28__default.default.gray(`
43641
+ console.log(chalk29__default.default.gray(`
43598
43642
  To use ${provider.name}, you need to:`));
43599
43643
  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"));
43644
+ console.log(chalk29__default.default.gray("1. Install Ollama: brew install ollama"));
43645
+ console.log(chalk29__default.default.gray("2. Start Ollama: ollama serve"));
43646
+ console.log(chalk29__default.default.gray("3. Pull a model: ollama pull llama3.2:3b"));
43603
43647
  console.log(
43604
- chalk28__default.default.gray("\nOr use the setup command: maria setup-ollama")
43648
+ chalk29__default.default.gray("\nOr use the setup command: maria setup-ollama")
43605
43649
  );
43606
43650
  } else if (selectedProvider === "lmstudio") {
43607
43651
  console.log(
43608
- chalk28__default.default.gray("1. Download LM Studio from https://lmstudio.ai")
43652
+ chalk29__default.default.gray("1. Download LM Studio from https://lmstudio.ai")
43609
43653
  );
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"));
43654
+ console.log(chalk29__default.default.gray("2. Start LM Studio application"));
43655
+ console.log(chalk29__default.default.gray("3. Load a model in LM Studio"));
43656
+ console.log(chalk29__default.default.gray("4. Start the local server in LM Studio"));
43613
43657
  } 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"));
43658
+ console.log(chalk29__default.default.gray("1. Install vLLM: pip install vllm"));
43659
+ console.log(chalk29__default.default.gray("2. Start vLLM server with a model"));
43660
+ console.log(chalk29__default.default.gray("\nOr use the setup command: maria setup-vllm"));
43617
43661
  }
43618
43662
  process.exit(1);
43619
43663
  }
@@ -46868,7 +46912,7 @@ var init_IntelligentRouterService = __esm({
46868
46912
  this.emit("initialized");
46869
46913
  } catch (_error) {
46870
46914
  console._error(
46871
- chalk28__default.default.red("Failed to initialize Intelligent Router:"),
46915
+ chalk29__default.default.red("Failed to initialize Intelligent Router:"),
46872
46916
  _error
46873
46917
  );
46874
46918
  throw _error;
@@ -46922,7 +46966,7 @@ var init_IntelligentRouterService = __esm({
46922
46966
  } catch (_error) {
46923
46967
  this.metrics.failedRoutes++;
46924
46968
  this.emit("route:_error", { input: input3, _error });
46925
- console._error(chalk28__default.default.red("Routing _error:"), _error);
46969
+ console._error(chalk29__default.default.red("Routing _error:"), _error);
46926
46970
  return null;
46927
46971
  }
46928
46972
  }
@@ -49661,16 +49705,16 @@ var init_log_symbols = __esm({
49661
49705
  "node_modules/.pnpm/log-symbols@6.0.0/node_modules/log-symbols/index.js"() {
49662
49706
  init_is_unicode_supported();
49663
49707
  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")
49708
+ info: chalk29__default.default.blue("\u2139"),
49709
+ success: chalk29__default.default.green("\u2714"),
49710
+ warning: chalk29__default.default.yellow("\u26A0"),
49711
+ error: chalk29__default.default.red("\u2716")
49668
49712
  };
49669
49713
  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")
49714
+ info: chalk29__default.default.blue("i"),
49715
+ success: chalk29__default.default.green("\u221A"),
49716
+ warning: chalk29__default.default.yellow("\u203C"),
49717
+ error: chalk29__default.default.red("\xD7")
49674
49718
  };
49675
49719
  logSymbols = isUnicodeSupported() ? main : fallback;
49676
49720
  log_symbols_default = logSymbols;
@@ -50067,7 +50111,7 @@ var init_ora = __esm({
50067
50111
  const { frames } = this.#spinner;
50068
50112
  let frame = frames[this.#frameIndex];
50069
50113
  if (this.color) {
50070
- frame = chalk28__default.default[this.color](frame);
50114
+ frame = chalk29__default.default[this.color](frame);
50071
50115
  }
50072
50116
  const fullPrefixText = typeof this.#prefixText === "string" && this.#prefixText !== "" ? this.#prefixText + " " : "";
50073
50117
  const fullText = typeof this.text === "string" ? " " + this.text : "";
@@ -50187,28 +50231,28 @@ var init_ChalkAdapter = __esm({
50187
50231
  spinnerId = 0;
50188
50232
  async showWelcome() {
50189
50233
  console.log(
50190
- chalk28__default.default.cyan.bold("\n\u{1F916} Welcome to MARIA Interactive Session v3.5.0")
50234
+ chalk29__default.default.cyan.bold("\n\u{1F916} Welcome to MARIA Interactive Session v3.5.0")
50191
50235
  );
50192
- console.log(chalk28__default.default.gray("Type /help for available commands\n"));
50236
+ console.log(chalk29__default.default.gray("Type /help for available commands\n"));
50193
50237
  }
50194
50238
  showGoodbye() {
50195
50239
  this.stopAllSpinners();
50196
- console.log(chalk28__default.default.yellow("\n\u{1F44B} Goodbye! Thank you for using MARIA.\n"));
50240
+ console.log(chalk29__default.default.green("\n\u{1F44B} Goodbye! Thank you for using MARIA.\n"));
50197
50241
  }
50198
50242
  async print(message) {
50199
50243
  console.log(message);
50200
50244
  }
50201
50245
  error(message) {
50202
- console.error(chalk28__default.default.red(`\u274C ${message}`));
50246
+ console.error(chalk29__default.default.red(`\u274C ${message}`));
50203
50247
  }
50204
50248
  success(message) {
50205
- console.log(chalk28__default.default.green(`\u2705 ${message}`));
50249
+ console.log(chalk29__default.default.green(`\u2705 ${message}`));
50206
50250
  }
50207
50251
  warning(message) {
50208
- console.warn(chalk28__default.default.yellow(`\u26A0\uFE0F ${message}`));
50252
+ console.warn(chalk29__default.default.yellow(`\u26A0\uFE0F ${message}`));
50209
50253
  }
50210
50254
  info(message) {
50211
- console.info(chalk28__default.default.blue(`\u2139\uFE0F ${message}`));
50255
+ console.info(chalk29__default.default.blue(`\u2139\uFE0F ${message}`));
50212
50256
  }
50213
50257
  startSpinner(message) {
50214
50258
  const id = `spinner-${++this.spinnerId}`;
@@ -50258,12 +50302,12 @@ var init_ChalkAdapter = __esm({
50258
50302
  * Format helpers for consistent styling
50259
50303
  */
50260
50304
  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} `)
50305
+ command: (text) => chalk29__default.default.cyan(text),
50306
+ keyword: (text) => chalk29__default.default.magenta(text),
50307
+ value: (text) => chalk29__default.default.green(text),
50308
+ dim: (text) => chalk29__default.default.gray(text),
50309
+ bold: (text) => chalk29__default.default.bold(text),
50310
+ code: (text) => chalk29__default.default.bgGray.white(` ${text} `)
50267
50311
  };
50268
50312
  };
50269
50313
  }
@@ -55413,26 +55457,26 @@ var init_QuickApprovalInterface = __esm({
55413
55457
  const _lang = options2.language || "en";
55414
55458
  const _labels = LANGUAGE_LABELS[_lang] || LANGUAGE_LABELS.en;
55415
55459
  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"));
55460
+ 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
55461
  console.log(
55418
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55462
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55419
55463
  ` ${_labels.approvalRequest}${" ".repeat(Math.max(0, 43 - _labels.approvalRequest.length))}`
55420
- ) + chalk28__default.default.gray("\u2502")
55464
+ ) + chalk29__default.default.gray("\u2502")
55421
55465
  );
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"));
55466
+ 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
55467
  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
55468
  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")
55469
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55470
+ ` > ${_labels.id}: ${chalk29__default.default.yellow(_requestId)}${" ".repeat(Math.max(0, 35 - _requestId.length - _labels.id.length))}`
55471
+ ) + chalk29__default.default.gray("\u2502")
55428
55472
  );
55429
55473
  const _title = _request.context?.description || _request.themeId || "API Cache Improvement";
55430
55474
  const _titleDisplay = _title.length > 25 ? _title.substring(0, 22) + "..." : _title;
55431
55475
  const _titleLabel = ` ${_labels._title}:`;
55432
55476
  console.log(
55433
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55477
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55434
55478
  `${_titleLabel} ${_titleDisplay}${" ".repeat(Math.max(0, 42 - _titleLabel.length - _titleDisplay.length))}`
55435
- ) + chalk28__default.default.gray("\u2502")
55479
+ ) + chalk29__default.default.gray("\u2502")
55436
55480
  );
55437
55481
  const _riskLevel = this.formatRiskLevelSimple(_request.riskAssessment);
55438
55482
  const _approvalsCount = _riskLevel === "HIGH" || _riskLevel === "CRITICAL" ? "2" : "1";
@@ -55440,37 +55484,37 @@ var init_QuickApprovalInterface = __esm({
55440
55484
  const _levelLabel = ` ${_labels.level}:`;
55441
55485
  const _levelDisplay = `${_riskLevel} ${_approvalsText}`;
55442
55486
  console.log(
55443
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55487
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55444
55488
  `${_levelLabel} ${_levelDisplay}${" ".repeat(Math.max(0, 42 - _levelLabel.length - _levelDisplay.length))}`
55445
- ) + chalk28__default.default.gray("\u2502")
55489
+ ) + chalk29__default.default.gray("\u2502")
55446
55490
  );
55447
55491
  const _impact = _request.estimatedTime || "p95 latency -20%";
55448
55492
  const _impactLabel = ` ${_labels._impact}:`;
55449
55493
  console.log(
55450
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55494
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55451
55495
  `${_impactLabel} ${_impact}${" ".repeat(Math.max(0, 42 - _impactLabel.length - _impact.length))}`
55452
- ) + chalk28__default.default.gray("\u2502")
55496
+ ) + chalk29__default.default.gray("\u2502")
55453
55497
  );
55454
55498
  const _approversLabel = ` ${_labels.approvers}:`;
55455
55499
  const _approversStatus = "[x] Lead [ ] QA";
55456
55500
  console.log(
55457
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55501
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55458
55502
  `${_approversLabel} ${_approversStatus}${" ".repeat(Math.max(0, 42 - _approversLabel.length - _approversStatus.length))}`
55459
- ) + chalk28__default.default.gray("\u2502")
55503
+ ) + chalk29__default.default.gray("\u2502")
55460
55504
  );
55461
55505
  const _deadline = new Date(Date.now() + 30 * 60 * 1e3);
55462
55506
  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
55507
  const _deadlineLabel = ` ${_labels._deadline}:`;
55464
55508
  console.log(
55465
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55509
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55466
55510
  `${_deadlineLabel} ${_timeStr}${" ".repeat(Math.max(0, 42 - _deadlineLabel.length - _timeStr.length))}`
55467
- ) + chalk28__default.default.gray("\u2502")
55511
+ ) + chalk29__default.default.gray("\u2502")
55468
55512
  );
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"));
55513
+ 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
55514
  console.log(
55471
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55515
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55472
55516
  ` ${_labels.actions}:${" ".repeat(Math.max(0, 42 - _labels.actions.length))}`
55473
- ) + chalk28__default.default.gray("\u2502")
55517
+ ) + chalk29__default.default.gray("\u2502")
55474
55518
  );
55475
55519
  this.menuOptions.forEach((option, _index) => {
55476
55520
  const _isSelected = _index === this.selectedIndex;
@@ -55481,32 +55525,32 @@ var init_QuickApprovalInterface = __esm({
55481
55525
  switch (option) {
55482
55526
  case "approve":
55483
55527
  label = _labels.approve;
55484
- color = chalk28__default.default.green;
55528
+ color = chalk29__default.default.green;
55485
55529
  break;
55486
55530
  case "reject":
55487
55531
  label = _labels.reject;
55488
- color = chalk28__default.default.red;
55532
+ color = chalk29__default.default.red;
55489
55533
  break;
55490
55534
  case "cancel":
55491
55535
  label = _labels.cancel;
55492
- color = chalk28__default.default.yellow;
55536
+ color = chalk29__default.default.yellow;
55493
55537
  break;
55494
55538
  }
55495
55539
  const _optionText = `${_prefix}[${_key}] ${label}`;
55496
55540
  const _colorFunc = _isSelected ? color.bold : color;
55497
55541
  console.log(
55498
- chalk28__default.default.gray("\u2502") + _colorFunc(
55542
+ chalk29__default.default.gray("\u2502") + _colorFunc(
55499
55543
  `${_optionText}${" ".repeat(Math.max(0, 43 - _optionText.length))}`
55500
- ) + chalk28__default.default.gray("\u2502")
55544
+ ) + chalk29__default.default.gray("\u2502")
55501
55545
  );
55502
55546
  });
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"));
55547
+ 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
55548
  console.log(
55505
- chalk28__default.default.gray("\u2502") + chalk28__default.default.white(
55549
+ chalk29__default.default.gray("\u2502") + chalk29__default.default.white(
55506
55550
  ` ${_labels.moveInstruction}${" ".repeat(Math.max(0, 43 - _labels.moveInstruction.length))}`
55507
- ) + chalk28__default.default.gray("\u2502")
55551
+ ) + chalk29__default.default.gray("\u2502")
55508
55552
  );
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"));
55553
+ 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
55554
  console.log("");
55511
55555
  }
55512
55556
  /**
@@ -55522,13 +55566,13 @@ var init_QuickApprovalInterface = __esm({
55522
55566
  };
55523
55567
  const _formatted = keyMap[_key] || _key;
55524
55568
  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
55569
+ "shift+tab": chalk29__default.default.bgGreen.black.bold,
55570
+ "ctrl+y": chalk29__default.default.bgBlue.white.bold,
55571
+ "ctrl+n": chalk29__default.default.bgRed.white.bold,
55572
+ "ctrl+t": chalk29__default.default.bgMagenta.white.bold,
55573
+ "ctrl+r": chalk29__default.default.bgYellow.black.bold
55530
55574
  };
55531
- const _colorFunc = colorMap[_key] || chalk28__default.default.bgCyan.black.bold;
55575
+ const _colorFunc = colorMap[_key] || chalk29__default.default.bgCyan.black.bold;
55532
55576
  return _colorFunc(` ${_formatted} `);
55533
55577
  }
55534
55578
  /**
@@ -55537,15 +55581,15 @@ var init_QuickApprovalInterface = __esm({
55537
55581
  formatRiskLevel(risk) {
55538
55582
  switch (risk.toLowerCase()) {
55539
55583
  case "critical":
55540
- return chalk28__default.default.red.bold("CRITICAL");
55584
+ return chalk29__default.default.red.bold("CRITICAL");
55541
55585
  case "high":
55542
- return chalk28__default.default.red("HIGH");
55586
+ return chalk29__default.default.red("HIGH");
55543
55587
  case "medium":
55544
- return chalk28__default.default.yellow("MEDIUM");
55588
+ return chalk29__default.default.yellow("MEDIUM");
55545
55589
  case "low":
55546
- return chalk28__default.default.green("LOW");
55590
+ return chalk29__default.default.green("LOW");
55547
55591
  default:
55548
- return chalk28__default.default.white(risk);
55592
+ return chalk29__default.default.white(risk);
55549
55593
  }
55550
55594
  }
55551
55595
  /**
@@ -55615,7 +55659,7 @@ var init_QuickApprovalInterface = __esm({
55615
55659
  }
55616
55660
  if (_key === "") {
55617
55661
  console.log(`
55618
- ${chalk28__default.default.red("Approval cancelled by user")}`);
55662
+ ${chalk29__default.default.red("Approval cancelled by user")}`);
55619
55663
  this.emit("approval-cancelled", this.currentRequest.id);
55620
55664
  return;
55621
55665
  }
@@ -55672,20 +55716,20 @@ ${chalk28__default.default.red("Approval cancelled by user")}`);
55672
55716
  }
55673
55717
  console.clear();
55674
55718
  console.log(`
55675
- ${chalk28__default.default.bgGreen.black.bold(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55719
+ ${chalk29__default.default.bgGreen.black.bold(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55676
55720
  console.log(
55677
- chalk28__default.default.bgGreen.black.bold("\u2502") + chalk28__default.default.bgGreen.black.bold(
55721
+ chalk29__default.default.bgGreen.black.bold("\u2502") + chalk29__default.default.bgGreen.black.bold(
55678
55722
  ` \u2713 CHOICE SELECTED / \u9078\u629E\u5B8C\u4E86:${" ".repeat(47)}`
55679
- ) + chalk28__default.default.bgGreen.black.bold("\u2502")
55723
+ ) + chalk29__default.default.bgGreen.black.bold("\u2502")
55680
55724
  );
55681
- console.log(chalk28__default.default.bgGreen.black.bold(`\u251C${"\u2500".repeat(78)}\u2524`));
55725
+ console.log(chalk29__default.default.bgGreen.black.bold(`\u251C${"\u2500".repeat(78)}\u2524`));
55682
55726
  const _choiceText = `${_choice.label} (${_choice.labelJa})`;
55683
55727
  const _padding = " ".repeat(Math.max(0, 76 - _choiceText.length));
55684
55728
  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")
55729
+ chalk29__default.default.bgGreen.black.bold("\u2502") + chalk29__default.default.bgGreen.black.bold(` ${_choiceText}${_padding}`) + chalk29__default.default.bgGreen.black.bold("\u2502")
55686
55730
  );
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..."));
55731
+ console.log(chalk29__default.default.bgGreen.black.bold(`\u2514${"\u2500".repeat(78)}\u2518`));
55732
+ console.log(chalk29__default.default.yellow("\n\u{1F504} Processing your approval decision..."));
55689
55733
  try {
55690
55734
  const _response = await this.approvalEngine.processApprovalResponse(
55691
55735
  this.currentRequest.id,
@@ -55695,30 +55739,30 @@ ${chalk28__default.default.bgGreen.black.bold(`\u250C${"\u2500".repeat(78)}\u251
55695
55739
  );
55696
55740
  response.quickDecision = true;
55697
55741
  console.log(`
55698
- ${chalk28__default.default.bgGreen.black(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55742
+ ${chalk29__default.default.bgGreen.black(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55699
55743
  console.log(
55700
- chalk28__default.default.bgGreen.black("\u2502") + chalk28__default.default.bgGreen.black(
55744
+ chalk29__default.default.bgGreen.black("\u2502") + chalk29__default.default.bgGreen.black(
55701
55745
  ` \u{1F389} APPROVAL PROCESSED SUCCESSFULLY / \u627F\u8A8D\u51E6\u7406\u5B8C\u4E86!${" ".repeat(32)}`
55702
- ) + chalk28__default.default.bgGreen.black("\u2502")
55746
+ ) + chalk29__default.default.bgGreen.black("\u2502")
55703
55747
  );
55704
- console.log(chalk28__default.default.bgGreen.black(`\u2514${"\u2500".repeat(78)}\u2518`));
55748
+ console.log(chalk29__default.default.bgGreen.black(`\u2514${"\u2500".repeat(78)}\u2518`));
55705
55749
  if (_choice.trustLevel) {
55706
55750
  console.log(
55707
- chalk28__default.default.blue(`
55751
+ chalk29__default.default.blue(`
55708
55752
  \u2728 Trust level updated: ${_choice.trustLevel}`)
55709
55753
  );
55710
55754
  }
55711
55755
  this.emit("approval-_response", _response);
55712
55756
  } catch (_error) {
55713
55757
  console.log(`
55714
- ${chalk28__default.default.bgRed.white.bold(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55758
+ ${chalk29__default.default.bgRed.white.bold(`\u250C${"\u2500".repeat(78)}\u2510`)}`);
55715
55759
  console.log(
55716
- chalk28__default.default.bgRed.white.bold("\u2502") + chalk28__default.default.bgRed.white.bold(
55760
+ chalk29__default.default.bgRed.white.bold("\u2502") + chalk29__default.default.bgRed.white.bold(
55717
55761
  ` \u274C ERROR PROCESSING APPROVAL / \u627F\u8A8D\u51E6\u7406\u30A8\u30E9\u30FC${" ".repeat(35)}`
55718
- ) + chalk28__default.default.bgRed.white.bold("\u2502")
55762
+ ) + chalk29__default.default.bgRed.white.bold("\u2502")
55719
55763
  );
55720
- console.log(chalk28__default.default.bgRed.white.bold(`\u2514${"\u2500".repeat(78)}\u2518`));
55721
- console._error(chalk28__default.default.red("\nError details:"), _error);
55764
+ console.log(chalk29__default.default.bgRed.white.bold(`\u2514${"\u2500".repeat(78)}\u2518`));
55765
+ console._error(chalk29__default.default.red("\nError details:"), _error);
55722
55766
  this.emit("approval-_error", _error);
55723
55767
  }
55724
55768
  }
@@ -55732,7 +55776,7 @@ ${chalk28__default.default.bgRed.white.bold(`\u250C${"\u2500".repeat(78)}\u2510`
55732
55776
  timeoutId = setTimeout(() => {
55733
55777
  console.log(
55734
55778
  `
55735
- ${chalk28__default.default.yellow("\u23F0 Approval request timed out - auto-approving...")}`
55779
+ ${chalk29__default.default.yellow("\u23F0 Approval request timed out - auto-approving...")}`
55736
55780
  );
55737
55781
  this.handleTimeoutResponse(resolve);
55738
55782
  }, timeout);
@@ -55776,7 +55820,7 @@ ${chalk28__default.default.yellow("\u23F0 Approval request timed out - auto-appr
55776
55820
  response.quickDecision = true;
55777
55821
  resolve(_response);
55778
55822
  } catch (_error) {
55779
- console._error(chalk28__default.default.red("Error processing timeout approval:"), _error);
55823
+ console._error(chalk29__default.default.red("Error processing timeout approval:"), _error);
55780
55824
  }
55781
55825
  }
55782
55826
  /**
@@ -55791,11 +55835,11 @@ ${chalk28__default.default.yellow("\u23F0 Approval request timed out - auto-appr
55791
55835
  );
55792
55836
  this.approvalEngine.on("trust-level-changed", (event) => {
55793
55837
  console.log(
55794
- chalk28__default.default.blue(
55838
+ chalk29__default.default.blue(
55795
55839
  `\u2728 Trust level changed: ${event.oldLevel} \u2192 ${event.newLevel}`
55796
55840
  )
55797
55841
  );
55798
- console.log(chalk28__default.default.gray(`Reason: ${event.reason}`));
55842
+ console.log(chalk29__default.default.gray(`Reason: ${event.reason}`));
55799
55843
  });
55800
55844
  }
55801
55845
  /**
@@ -56582,22 +56626,22 @@ function formatProgressBar(current, total, width = 20) {
56582
56626
  }
56583
56627
  function formatError2(message, code) {
56584
56628
  const prefix = "";
56585
- return chalk28__default.default.red(`\u274C ${prefix}${message}`);
56629
+ return chalk29__default.default.red(`\u274C ${prefix}${message}`);
56586
56630
  }
56587
56631
  function formatSuccess(message) {
56588
- return chalk28__default.default.green(`\u2705 ${message}`);
56632
+ return chalk29__default.default.green(`\u2705 ${message}`);
56589
56633
  }
56590
56634
  function formatWarning(message) {
56591
- return chalk28__default.default.yellow(`\u26A0\uFE0F ${message}`);
56635
+ return chalk29__default.default.yellow(`\u26A0\uFE0F ${message}`);
56592
56636
  }
56593
56637
  function formatInfo(message) {
56594
- return chalk28__default.default.blue(`\u2139\uFE0F ${message}`);
56638
+ return chalk29__default.default.blue(`\u2139\uFE0F ${message}`);
56595
56639
  }
56596
56640
  function formatTable(headers, rows, options2 = {}) {
56597
56641
  const {
56598
56642
  columnWidths = headers.map(() => 20),
56599
56643
  separator = " | ",
56600
- headerColor = chalk28__default.default.cyan.bold
56644
+ headerColor = chalk29__default.default.cyan.bold
56601
56645
  } = options2;
56602
56646
  const headerRow = headers.map((h2, i2) => headerColor(h2.padEnd(columnWidths[i2]))).join(separator);
56603
56647
  const separatorLine = columnWidths.map((w) => "-".repeat(w)).join(separator);
@@ -56609,8 +56653,8 @@ function formatTable(headers, rows, options2 = {}) {
56609
56653
  function formatKeyValue(data2, options2 = {}) {
56610
56654
  const {
56611
56655
  keyWidth = 20,
56612
- keyColor = chalk28__default.default.gray,
56613
- valueColor = chalk28__default.default.white,
56656
+ keyColor = chalk29__default.default.gray,
56657
+ valueColor = chalk29__default.default.white,
56614
56658
  separator = ": "
56615
56659
  } = options2;
56616
56660
  return Object.entries(data2).map(([key2, value]) => {
@@ -56660,7 +56704,7 @@ var init_DisplayManager = __esm({
56660
56704
  theme: options2.theme ?? "auto"
56661
56705
  };
56662
56706
  if (!this.options.enableColors) {
56663
- chalk28__default.default.level = 0;
56707
+ chalk29__default.default.level = 0;
56664
56708
  }
56665
56709
  this.setupCleanupHandlers();
56666
56710
  }
@@ -56777,7 +56821,7 @@ var init_DisplayManager = __esm({
56777
56821
  const {
56778
56822
  padding = 1,
56779
56823
  borderStyle = "single",
56780
- borderColor = chalk28__default.default.gray
56824
+ borderColor = chalk29__default.default.gray
56781
56825
  } = options2;
56782
56826
  const lines = content2.split("\n");
56783
56827
  const maxLength = Math.max(...lines.map((l) => l.length));
@@ -56835,7 +56879,7 @@ var init_DisplayManager = __esm({
56835
56879
  */
56836
56880
  startSpinner(text) {
56837
56881
  if (!this.options.enableAnimations) {
56838
- this.writeLine(chalk28__default.default.gray(`\u2299 ${text || "Processing..."}`));
56882
+ this.writeLine(chalk29__default.default.gray(`\u2299 ${text || "Processing..."}`));
56839
56883
  return "no-animation";
56840
56884
  }
56841
56885
  return this.spinnerManager.start({ text });
@@ -56939,11 +56983,11 @@ var init_StatusDisplay = __esm({
56939
56983
  */
56940
56984
  static renderSystemStatus(status, detailed = false) {
56941
56985
  const lines = [];
56942
- lines.push(chalk28__default.default.cyan.bold("\u{1F4CA} System Status"));
56986
+ lines.push(chalk29__default.default.cyan.bold("\u{1F4CA} System Status"));
56943
56987
  lines.push("");
56944
56988
  const statusIcon = status.operational ? "\u2705" : "\u274C";
56945
56989
  const statusText = status.operational ? "Operational" : "Issues Detected";
56946
- const statusColor = status.operational ? chalk28__default.default.green : chalk28__default.default.red;
56990
+ const statusColor = status.operational ? chalk29__default.default.green : chalk29__default.default.red;
56947
56991
  lines.push(`${statusIcon} Status: ${statusColor(statusText)}`);
56948
56992
  lines.push(
56949
56993
  `\u23F1\uFE0F Uptime: ${formatDuration(status.uptime * 1e3)}`
@@ -56964,15 +57008,15 @@ var init_StatusDisplay = __esm({
56964
57008
  if (status.errors > 0 || status.warnings > 0) {
56965
57009
  lines.push("");
56966
57010
  if (status.errors > 0) {
56967
- lines.push(chalk28__default.default.red(`\u274C Errors: ${status.errors}`));
57011
+ lines.push(chalk29__default.default.red(`\u274C Errors: ${status.errors}`));
56968
57012
  }
56969
57013
  if (status.warnings > 0) {
56970
- lines.push(chalk28__default.default.yellow(`\u26A0\uFE0F Warnings: ${status.warnings}`));
57014
+ lines.push(chalk29__default.default.yellow(`\u26A0\uFE0F Warnings: ${status.warnings}`));
56971
57015
  }
56972
57016
  }
56973
57017
  if (detailed) {
56974
57018
  lines.push("");
56975
- lines.push(chalk28__default.default.gray("Detailed Information:"));
57019
+ lines.push(chalk29__default.default.gray("Detailed Information:"));
56976
57020
  const details = formatKeyValue(
56977
57021
  {
56978
57022
  "Process ID": process.pid,
@@ -56982,8 +57026,8 @@ var init_StatusDisplay = __esm({
56982
57026
  "Working Directory": process.cwd()
56983
57027
  },
56984
57028
  {
56985
- keyColor: chalk28__default.default.gray,
56986
- valueColor: chalk28__default.default.white
57029
+ keyColor: chalk29__default.default.gray,
57030
+ valueColor: chalk29__default.default.white
56987
57031
  }
56988
57032
  );
56989
57033
  lines.push(details);
@@ -56997,9 +57041,9 @@ var init_StatusDisplay = __esm({
56997
57041
  */
56998
57042
  static renderMemoryStatus(status) {
56999
57043
  const lines = [];
57000
- lines.push(chalk28__default.default.cyan.bold("\u{1F9E0} Memory Status"));
57044
+ lines.push(chalk29__default.default.cyan.bold("\u{1F9E0} Memory Status"));
57001
57045
  lines.push("");
57002
- lines.push(chalk28__default.default.yellow("System 1 (Fast):"));
57046
+ lines.push(chalk29__default.default.yellow("System 1 (Fast):"));
57003
57047
  const s1NodeBar = formatProgressBar(
57004
57048
  status.system1.nodes,
57005
57049
  status.system1.maxNodes,
@@ -57017,7 +57061,7 @@ var init_StatusDisplay = __esm({
57017
57061
  ` \u2022 Tokens: ${status.system1.tokens}/${status.system1.maxTokens} ${s1TokenBar}`
57018
57062
  );
57019
57063
  lines.push("");
57020
- lines.push(chalk28__default.default.blue("System 2 (Deep):"));
57064
+ lines.push(chalk29__default.default.blue("System 2 (Deep):"));
57021
57065
  const s2TraceBar = formatProgressBar(
57022
57066
  status.system2.traces,
57023
57067
  status.system2.maxTraces,
@@ -57035,7 +57079,7 @@ var init_StatusDisplay = __esm({
57035
57079
  ` \u2022 Tokens: ${status.system2.tokens}/${status.system2.maxTokens} ${s2TokenBar}`
57036
57080
  );
57037
57081
  lines.push("");
57038
- lines.push(chalk28__default.default.green("Total:"));
57082
+ lines.push(chalk29__default.default.green("Total:"));
57039
57083
  const totalBar = formatProgressBar(
57040
57084
  status.total.tokens,
57041
57085
  status.total.maxTokens,
@@ -57044,7 +57088,7 @@ var init_StatusDisplay = __esm({
57044
57088
  lines.push(` \u2022 Tokens: ${status.total.tokens}/${status.total.maxTokens}`);
57045
57089
  lines.push(` \u2022 Usage: ${totalBar}`);
57046
57090
  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;
57091
+ const usageColor = usage > 80 ? chalk29__default.default.red : usage > 60 ? chalk29__default.default.yellow : chalk29__default.default.green;
57048
57092
  lines.push(
57049
57093
  ` \u2022 ${usageColor(formatPercentage(usage / 100, 1))} utilized`
57050
57094
  );
@@ -57057,9 +57101,9 @@ var init_StatusDisplay = __esm({
57057
57101
  */
57058
57102
  static renderModelStatus(status) {
57059
57103
  const lines = [];
57060
- lines.push(chalk28__default.default.cyan.bold("\u{1F916} Model Status"));
57104
+ lines.push(chalk29__default.default.cyan.bold("\u{1F916} Model Status"));
57061
57105
  lines.push("");
57062
- lines.push(chalk28__default.default.green(`Current: ${chalk28__default.default.bold(status.current)}`));
57106
+ lines.push(chalk29__default.default.green(`Current: ${chalk29__default.default.bold(status.current)}`));
57063
57107
  lines.push("");
57064
57108
  lines.push("Available Models:");
57065
57109
  const headers = ["Model", "Provider", "Status", "Capabilities"];
@@ -57071,7 +57115,7 @@ var init_StatusDisplay = __esm({
57071
57115
  const table = formatTable(headers, rows, {
57072
57116
  columnWidths: [20, 15, 8, 30],
57073
57117
  separator: " \u2502 ",
57074
- headerColor: chalk28__default.default.gray
57118
+ headerColor: chalk29__default.default.gray
57075
57119
  });
57076
57120
  lines.push(table);
57077
57121
  return lines.join("\n");
@@ -57083,19 +57127,19 @@ var init_StatusDisplay = __esm({
57083
57127
  */
57084
57128
  static renderHealthChecks(checks) {
57085
57129
  const lines = [];
57086
- lines.push(chalk28__default.default.cyan.bold("\u{1F3E5} Health Checks"));
57130
+ lines.push(chalk29__default.default.cyan.bold("\u{1F3E5} Health Checks"));
57087
57131
  lines.push("");
57088
57132
  for (const check of checks) {
57089
57133
  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;
57134
+ const statusColor = check.status === "ok" ? chalk29__default.default.green : check.status === "warning" ? chalk29__default.default.yellow : chalk29__default.default.red;
57091
57135
  let line = `${icon} ${check.name.padEnd(25)} ${statusColor(check.status.toUpperCase())}`;
57092
57136
  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;
57137
+ const latencyColor = check.latency < 100 ? chalk29__default.default.green : check.latency < 500 ? chalk29__default.default.yellow : chalk29__default.default.red;
57094
57138
  line += ` ${latencyColor(`(${check.latency}ms)`)}`;
57095
57139
  }
57096
57140
  lines.push(line);
57097
57141
  if (check.message) {
57098
- lines.push(chalk28__default.default.gray(` ${check.message}`));
57142
+ lines.push(chalk29__default.default.gray(` ${check.message}`));
57099
57143
  }
57100
57144
  }
57101
57145
  lines.push("");
@@ -57104,16 +57148,16 @@ var init_StatusDisplay = __esm({
57104
57148
  const errorCount = checks.filter((c) => c.status === "error").length;
57105
57149
  if (errorCount > 0) {
57106
57150
  lines.push(
57107
- chalk28__default.default.red(
57151
+ chalk29__default.default.red(
57108
57152
  `\u26A0\uFE0F System has ${errorCount} error(s) - intervention required`
57109
57153
  )
57110
57154
  );
57111
57155
  } else if (warningCount > 0) {
57112
57156
  lines.push(
57113
- chalk28__default.default.yellow(`\u26A0\uFE0F System operational with ${warningCount} warning(s)`)
57157
+ chalk29__default.default.yellow(`\u26A0\uFE0F System operational with ${warningCount} warning(s)`)
57114
57158
  );
57115
57159
  } else {
57116
- lines.push(chalk28__default.default.green("\u2705 All systems operational"));
57160
+ lines.push(chalk29__default.default.green("\u2705 All systems operational"));
57117
57161
  }
57118
57162
  return lines.join("\n");
57119
57163
  }
@@ -57124,7 +57168,7 @@ var init_StatusDisplay = __esm({
57124
57168
  */
57125
57169
  static renderSessionStats(stats) {
57126
57170
  const lines = [];
57127
- lines.push(chalk28__default.default.cyan.bold("\u{1F4C8} Session Statistics"));
57171
+ lines.push(chalk29__default.default.cyan.bold("\u{1F4C8} Session Statistics"));
57128
57172
  lines.push("");
57129
57173
  const data2 = formatKeyValue(
57130
57174
  {
@@ -57137,14 +57181,14 @@ var init_StatusDisplay = __esm({
57137
57181
  },
57138
57182
  {
57139
57183
  keyWidth: 20,
57140
- keyColor: chalk28__default.default.gray,
57141
- valueColor: chalk28__default.default.white
57184
+ keyColor: chalk29__default.default.gray,
57185
+ valueColor: chalk29__default.default.white
57142
57186
  }
57143
57187
  );
57144
57188
  lines.push(data2);
57145
57189
  lines.push("");
57146
57190
  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;
57191
+ 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
57192
  lines.push(`Performance: ${perfColor(performance3)}`);
57149
57193
  return lines.join("\n");
57150
57194
  }
@@ -57156,22 +57200,22 @@ var init_StatusDisplay = __esm({
57156
57200
  static renderStatusBar(data2) {
57157
57201
  const segments = [];
57158
57202
  if (data2.mode) {
57159
- segments.push(chalk28__default.default.cyan(`[${data2.mode}]`));
57203
+ segments.push(chalk29__default.default.cyan(`[${data2.mode}]`));
57160
57204
  }
57161
57205
  if (data2.model) {
57162
- segments.push(chalk28__default.default.blue(`\u{1F916} ${data2.model}`));
57206
+ segments.push(chalk29__default.default.blue(`\u{1F916} ${data2.model}`));
57163
57207
  }
57164
57208
  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;
57209
+ const memoryColor = data2.memory > 80 ? chalk29__default.default.red : data2.memory > 60 ? chalk29__default.default.yellow : chalk29__default.default.green;
57166
57210
  segments.push(memoryColor(`\u{1F4BE} ${data2.memory}%`));
57167
57211
  }
57168
57212
  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;
57213
+ const latencyColor = data2.latency < 100 ? chalk29__default.default.green : data2.latency < 500 ? chalk29__default.default.yellow : chalk29__default.default.red;
57170
57214
  segments.push(latencyColor(`\u26A1 ${data2.latency}ms`));
57171
57215
  }
57172
57216
  if (data2.time) {
57173
57217
  segments.push(
57174
- chalk28__default.default.gray(formatTimestamp(data2.time, "short"))
57218
+ chalk29__default.default.gray(formatTimestamp(data2.time, "short"))
57175
57219
  );
57176
57220
  }
57177
57221
  return segments.join(" \u2502 ");
@@ -57190,7 +57234,7 @@ var init_CoreHandlers = __esm({
57190
57234
  async execute(args2) {
57191
57235
  const startTime = perf_hooks.performance.now();
57192
57236
  const commands = this.registry.getCommands();
57193
- let message = chalk28__default.default.cyan(`\u{1F916} MARIA v3.5.0 - Available Commands
57237
+ let message = chalk29__default.default.cyan(`\u{1F916} MARIA v3.5.0 - Available Commands
57194
57238
 
57195
57239
  `);
57196
57240
  const categories2 = {
@@ -57201,17 +57245,17 @@ var init_CoreHandlers = __esm({
57201
57245
  system: ["/status", "/config", "/logs", "/approve"]
57202
57246
  };
57203
57247
  for (const [category, cmds] of Object.entries(categories2)) {
57204
- message += chalk28__default.default.yellow(`
57248
+ message += chalk29__default.default.yellow(`
57205
57249
  ${category.toUpperCase()}:
57206
57250
  `);
57207
57251
  for (const cmd of cmds) {
57208
57252
  if (commands.includes(cmd)) {
57209
- message += ` ${chalk28__default.default.green(cmd.padEnd(15))} - ${this.getCommandDescription(cmd)}
57253
+ message += ` ${chalk29__default.default.green(cmd.padEnd(15))} - ${this.getCommandDescription(cmd)}
57210
57254
  `;
57211
57255
  }
57212
57256
  }
57213
57257
  }
57214
- message += chalk28__default.default.gray(
57258
+ message += chalk29__default.default.gray(
57215
57259
  `
57216
57260
  Type '/help <command>' for detailed information about a specific command.`
57217
57261
  );
@@ -57259,7 +57303,7 @@ Type '/help <command>' for detailed information about a specific command.`
57259
57303
  const processingTime = perf_hooks.performance.now() - startTime;
57260
57304
  return {
57261
57305
  success: true,
57262
- message: chalk28__default.default.gray("Terminal cleared."),
57306
+ message: chalk29__default.default.gray("Terminal cleared."),
57263
57307
  metadata: {
57264
57308
  processingTime,
57265
57309
  timestamp: /* @__PURE__ */ new Date()
@@ -57270,7 +57314,7 @@ Type '/help <command>' for detailed information about a specific command.`
57270
57314
  ExitHandler = class {
57271
57315
  async execute(args2) {
57272
57316
  const startTime = perf_hooks.performance.now();
57273
- const message = chalk28__default.default.yellow("\u{1F44B} Goodbye! Thank you for using MARIA.\n");
57317
+ const message = chalk29__default.default.green("\u{1F44B} Goodbye! Thank you for using MARIA.\n");
57274
57318
  process.emit("SIGTERM");
57275
57319
  const processingTime = perf_hooks.performance.now() - startTime;
57276
57320
  return {
@@ -57294,23 +57338,23 @@ Type '/help <command>' for detailed information about a specific command.`
57294
57338
  platform: process.platform,
57295
57339
  arch: process.arch
57296
57340
  };
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)}
57341
+ let message = chalk29__default.default.cyan("\u{1F680} MARIA System Information\n\n");
57342
+ message += chalk29__default.default.white(` Version: ${chalk29__default.default.green(packageInfo.version)}
57299
57343
  `);
57300
- message += chalk28__default.default.white(` Package: ${chalk28__default.default.green(packageInfo.name)}
57344
+ message += chalk29__default.default.white(` Package: ${chalk29__default.default.green(packageInfo.name)}
57301
57345
  `);
57302
- message += chalk28__default.default.white(` Node: ${chalk28__default.default.green(packageInfo.node)}
57346
+ message += chalk29__default.default.white(` Node: ${chalk29__default.default.green(packageInfo.node)}
57303
57347
  `);
57304
- message += chalk28__default.default.white(
57305
- ` Platform: ${chalk28__default.default.green(packageInfo.platform)}
57348
+ message += chalk29__default.default.white(
57349
+ ` Platform: ${chalk29__default.default.green(packageInfo.platform)}
57306
57350
  `
57307
57351
  );
57308
- message += chalk28__default.default.white(` Arch: ${chalk28__default.default.green(packageInfo.arch)}
57352
+ message += chalk29__default.default.white(` Arch: ${chalk29__default.default.green(packageInfo.arch)}
57309
57353
  `);
57310
- message += chalk28__default.default.gray(`
57354
+ message += chalk29__default.default.gray(`
57311
57355
  Build: Production
57312
57356
  `);
57313
- message += chalk28__default.default.gray(` License: MIT
57357
+ message += chalk29__default.default.gray(` License: MIT
57314
57358
  `);
57315
57359
  const processingTime = perf_hooks.performance.now() - startTime;
57316
57360
  return {
@@ -57335,15 +57379,15 @@ Type '/help <command>' for detailed information about a specific command.`
57335
57379
  this.history.push("/history");
57336
57380
  }
57337
57381
  const recent = this.history.slice(-limit);
57338
- let message = chalk28__default.default.cyan(`\u{1F4DC} Command History (last ${recent.length}):
57382
+ let message = chalk29__default.default.cyan(`\u{1F4DC} Command History (last ${recent.length}):
57339
57383
 
57340
57384
  `);
57341
57385
  recent.forEach((cmd, index2) => {
57342
57386
  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";
57387
+ message += chalk29__default.default.gray(` ${num.toString().padStart(3)}: `) + chalk29__default.default.white(cmd) + "\n";
57344
57388
  });
57345
57389
  if (recent.length === 0) {
57346
- message = chalk28__default.default.gray("No command history available.");
57390
+ message = chalk29__default.default.gray("No command history available.");
57347
57391
  }
57348
57392
  const processingTime = perf_hooks.performance.now() - startTime;
57349
57393
  return {
@@ -57389,13 +57433,13 @@ var init_DevHandlers = __esm({
57389
57433
  if (!prompt) {
57390
57434
  return {
57391
57435
  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")
57436
+ 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
57437
  };
57394
57438
  }
57395
57439
  if (signal?.aborted) {
57396
57440
  return {
57397
57441
  ok: false,
57398
- message: chalk28__default.default.yellow("Code generation canceled")
57442
+ message: chalk29__default.default.yellow("Code generation canceled")
57399
57443
  };
57400
57444
  }
57401
57445
  try {
@@ -57406,9 +57450,9 @@ var init_DevHandlers = __esm({
57406
57450
  if (dryRun) {
57407
57451
  return {
57408
57452
  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}`)
57453
+ message: chalk29__default.default.cyan("\u{1F50D} Dry run mode - would generate:\n") + chalk29__default.default.gray(`Language: ${language}
57454
+ `) + chalk29__default.default.gray(`Framework: ${framework || "none"}
57455
+ `) + chalk29__default.default.gray(`Prompt: ${cleanPrompt}`)
57412
57456
  };
57413
57457
  }
57414
57458
  const generatedCode = `// Generated code for: ${cleanPrompt}
@@ -57420,7 +57464,7 @@ function generated() {
57420
57464
  export { generated };`;
57421
57465
  return {
57422
57466
  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```"),
57467
+ message: chalk29__default.default.green("\u2705 Code generated successfully:\n\n") + chalk29__default.default.gray("```" + language + "\n") + generatedCode + chalk29__default.default.gray("\n```"),
57424
57468
  data: {
57425
57469
  code: generatedCode,
57426
57470
  language,
@@ -57433,7 +57477,7 @@ export { generated };`;
57433
57477
  } catch (error2) {
57434
57478
  return {
57435
57479
  ok: false,
57436
- message: chalk28__default.default.red(`Code generation failed: ${error2}`)
57480
+ message: chalk29__default.default.red(`Code generation failed: ${error2}`)
57437
57481
  };
57438
57482
  }
57439
57483
  }
@@ -57447,7 +57491,7 @@ export { generated };`;
57447
57491
  if (signal?.aborted) {
57448
57492
  return {
57449
57493
  ok: false,
57450
- message: chalk28__default.default.yellow("Test operation canceled")
57494
+ message: chalk29__default.default.yellow("Test operation canceled")
57451
57495
  };
57452
57496
  }
57453
57497
  const subcommand = args2[0] || "run";
@@ -57463,8 +57507,8 @@ export { generated };`;
57463
57507
  default:
57464
57508
  return {
57465
57509
  ok: false,
57466
- message: chalk28__default.default.red(`Unknown test subcommand: ${subcommand}
57467
- `) + chalk28__default.default.gray("Available: generate, run, coverage")
57510
+ message: chalk29__default.default.red(`Unknown test subcommand: ${subcommand}
57511
+ `) + chalk29__default.default.gray("Available: generate, run, coverage")
57468
57512
  };
57469
57513
  }
57470
57514
  }
@@ -57472,7 +57516,7 @@ export { generated };`;
57472
57516
  if (!target) {
57473
57517
  return {
57474
57518
  ok: false,
57475
- message: chalk28__default.default.red(
57519
+ message: chalk29__default.default.red(
57476
57520
  "Please specify a file or function to generate tests for"
57477
57521
  )
57478
57522
  };
@@ -57489,9 +57533,9 @@ describe("${target}", () => {
57489
57533
  });`;
57490
57534
  return {
57491
57535
  ok: true,
57492
- message: chalk28__default.default.green(`\u2705 Tests generated for ${target}:
57536
+ message: chalk29__default.default.green(`\u2705 Tests generated for ${target}:
57493
57537
 
57494
- `) + chalk28__default.default.gray("```typescript\n") + testCode + chalk28__default.default.gray("\n```"),
57538
+ `) + chalk29__default.default.gray("```typescript\n") + testCode + chalk29__default.default.gray("\n```"),
57495
57539
  data: { testCode, framework, target }
57496
57540
  };
57497
57541
  }
@@ -57504,23 +57548,23 @@ describe("${target}", () => {
57504
57548
  if (coverage) command += " --coverage";
57505
57549
  return {
57506
57550
  ok: true,
57507
- message: chalk28__default.default.cyan(`\u{1F9EA} Running tests...
57508
- `) + chalk28__default.default.gray(`Command: ${command}
57551
+ message: chalk29__default.default.cyan(`\u{1F9EA} Running tests...
57552
+ `) + chalk29__default.default.gray(`Command: ${command}
57509
57553
 
57510
- `) + chalk28__default.default.green("\u2705 All tests passed!"),
57554
+ `) + chalk29__default.default.green("\u2705 All tests passed!"),
57511
57555
  data: { command, passed: true }
57512
57556
  };
57513
57557
  }
57514
57558
  async showCoverage(options2) {
57515
57559
  return {
57516
57560
  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(
57561
+ 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
57562
  "SessionStateMachine.ts".padEnd(40) + "100.00".padEnd(10) + "100.00\n"
57519
- ) + chalk28__default.default.green(
57563
+ ) + chalk29__default.default.green(
57520
57564
  "InputController.ts".padEnd(40) + "95.50".padEnd(10) + "94.20\n"
57521
- ) + chalk28__default.default.yellow(
57565
+ ) + chalk29__default.default.yellow(
57522
57566
  "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")
57567
+ ) + chalk29__default.default.gray("-".repeat(60) + "\n") + chalk29__default.default.cyan("Total".padEnd(40) + "85.60".padEnd(10) + "84.30")
57524
57568
  };
57525
57569
  }
57526
57570
  };
@@ -57534,33 +57578,33 @@ describe("${target}", () => {
57534
57578
  if (!file) {
57535
57579
  return {
57536
57580
  ok: false,
57537
- message: chalk28__default.default.red("Please specify a file to review\n") + chalk28__default.default.gray("Usage: /review <file> [--security] [--performance]")
57581
+ message: chalk29__default.default.red("Please specify a file to review\n") + chalk29__default.default.gray("Usage: /review <file> [--security] [--performance]")
57538
57582
  };
57539
57583
  }
57540
57584
  const checkSecurity = args2.includes("--security");
57541
57585
  const checkPerformance = args2.includes("--performance");
57542
- let message = chalk28__default.default.cyan(`\u{1F50D} Code Review for ${file}
57586
+ let message = chalk29__default.default.cyan(`\u{1F50D} Code Review for ${file}
57543
57587
 
57544
57588
  `);
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(
57589
+ message += chalk29__default.default.yellow("\u26A0\uFE0F Issues Found (3):\n");
57590
+ message += chalk29__default.default.gray(" 1. Line 42: ") + chalk29__default.default.yellow("Missing error handling in async function\n");
57591
+ message += chalk29__default.default.gray(" 2. Line 89: ") + chalk29__default.default.yellow("Potential memory leak - event listener not removed\n");
57592
+ message += chalk29__default.default.gray(" 3. Line 156: ") + chalk29__default.default.yellow(
57549
57593
  "Complex function - consider refactoring (cyclomatic complexity: 12)\n\n"
57550
57594
  );
57551
57595
  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");
57596
+ message += chalk29__default.default.red("\u{1F512} Security Issues (1):\n");
57597
+ message += chalk29__default.default.gray(" 1. Line 67: ") + chalk29__default.default.red("Potential XSS vulnerability - user input not sanitized\n\n");
57554
57598
  }
57555
57599
  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");
57600
+ message += chalk29__default.default.blue("\u26A1 Performance Suggestions (2):\n");
57601
+ message += chalk29__default.default.gray(" 1. Line 23: ") + chalk29__default.default.blue("Consider memoization for expensive calculation\n");
57602
+ message += chalk29__default.default.gray(" 2. Line 145: ") + chalk29__default.default.blue("Use virtualization for large list rendering\n\n");
57603
+ }
57604
+ message += chalk29__default.default.green("\u2705 Positive Findings:\n");
57605
+ message += chalk29__default.default.gray(" \u2022 Good TypeScript type coverage (92%)\n");
57606
+ message += chalk29__default.default.gray(" \u2022 Consistent code style\n");
57607
+ message += chalk29__default.default.gray(" \u2022 Well-documented functions\n");
57564
57608
  return {
57565
57609
  ok: true,
57566
57610
  message,
@@ -57590,8 +57634,8 @@ describe("${target}", () => {
57590
57634
  default:
57591
57635
  return {
57592
57636
  ok: false,
57593
- message: chalk28__default.default.red(`Unknown bug subcommand: ${subcommand}
57594
- `) + chalk28__default.default.gray("Available: report, list, analyze")
57637
+ message: chalk29__default.default.red(`Unknown bug subcommand: ${subcommand}
57638
+ `) + chalk29__default.default.gray("Available: report, list, analyze")
57595
57639
  };
57596
57640
  }
57597
57641
  }
@@ -57600,18 +57644,18 @@ describe("${target}", () => {
57600
57644
  if (!description) {
57601
57645
  return {
57602
57646
  ok: false,
57603
- message: chalk28__default.default.red("Please provide a bug description")
57647
+ message: chalk29__default.default.red("Please provide a bug description")
57604
57648
  };
57605
57649
  }
57606
57650
  const bugId = `BUG-${Date.now().toString(36).toUpperCase()}`;
57607
57651
  return {
57608
57652
  ok: true,
57609
- message: chalk28__default.default.green(`\u{1F41B} Bug reported successfully!
57653
+ message: chalk29__default.default.green(`\u{1F41B} Bug reported successfully!
57610
57654
 
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
57655
+ `) + chalk29__default.default.cyan(`Bug ID: ${bugId}
57656
+ `) + chalk29__default.default.gray(`Description: ${description}
57657
+ `) + chalk29__default.default.gray(`Status: Open
57658
+ `) + chalk29__default.default.gray(`Priority: To be determined
57615
57659
  `),
57616
57660
  data: { bugId, description, status: "open" }
57617
57661
  };
@@ -57619,23 +57663,23 @@ describe("${target}", () => {
57619
57663
  async listBugs() {
57620
57664
  return {
57621
57665
  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")
57666
+ 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
57667
  };
57624
57668
  }
57625
57669
  async analyzeBug(bugId) {
57626
57670
  if (!bugId) {
57627
57671
  return {
57628
57672
  ok: false,
57629
- message: chalk28__default.default.red("Please provide a bug ID to analyze")
57673
+ message: chalk29__default.default.red("Please provide a bug ID to analyze")
57630
57674
  };
57631
57675
  }
57632
57676
  return {
57633
57677
  ok: true,
57634
- message: chalk28__default.default.cyan(`\u{1F50D} Bug Analysis for ${bugId}:
57678
+ message: chalk29__default.default.cyan(`\u{1F50D} Bug Analysis for ${bugId}:
57635
57679
 
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(
57680
+ `) + 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
57681
  " 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")
57682
+ ) + 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
57683
  };
57640
57684
  }
57641
57685
  };
@@ -57659,7 +57703,7 @@ var init_SystemHandlers = __esm({
57659
57703
  if (signal?.aborted) {
57660
57704
  return {
57661
57705
  ok: false,
57662
- message: chalk28__default.default.yellow("Status check canceled")
57706
+ message: chalk29__default.default.yellow("Status check canceled")
57663
57707
  };
57664
57708
  }
57665
57709
  const verbose = args2.includes("--verbose") || args2.includes("-v");
@@ -57670,44 +57714,44 @@ var init_SystemHandlers = __esm({
57670
57714
  cpu: os13__namespace.cpus()[0],
57671
57715
  platform: process.platform
57672
57716
  };
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(
57717
+ let message = chalk29__default.default.cyan.bold("\u{1F4CA} System Status\n\n");
57718
+ message += chalk29__default.default.green("\u2705 System: Operational\n");
57719
+ message += chalk29__default.default.gray(
57676
57720
  `\u23F1\uFE0F Uptime: ${Math.floor(status.uptime / 60)}m ${Math.floor(status.uptime % 60)}s
57677
57721
  `
57678
57722
  );
57679
- message += chalk28__default.default.gray(
57723
+ message += chalk29__default.default.gray(
57680
57724
  `\u{1F4BE} Memory: ${Math.round(status.memory.heapUsed / 1024 / 1024)}MB / ${Math.round(status.memory.heapTotal / 1024 / 1024)}MB
57681
57725
  `
57682
57726
  );
57683
57727
  if (verbose) {
57684
- message += chalk28__default.default.gray("\nDetailed Information:\n");
57685
- message += chalk28__default.default.gray(` \u2022 CPU: ${status.cpu.model}
57728
+ message += chalk29__default.default.gray("\nDetailed Information:\n");
57729
+ message += chalk29__default.default.gray(` \u2022 CPU: ${status.cpu.model}
57686
57730
  `);
57687
- message += chalk28__default.default.gray(
57731
+ message += chalk29__default.default.gray(
57688
57732
  ` \u2022 Platform: ${status.platform} (${os13__namespace.arch()})
57689
57733
  `
57690
57734
  );
57691
- message += chalk28__default.default.gray(` \u2022 Node.js: ${process.version}
57735
+ message += chalk29__default.default.gray(` \u2022 Node.js: ${process.version}
57692
57736
  `);
57693
- message += chalk28__default.default.gray(` \u2022 Process ID: ${process.pid}
57737
+ message += chalk29__default.default.gray(` \u2022 Process ID: ${process.pid}
57694
57738
  `);
57695
- message += chalk28__default.default.gray(` \u2022 Working Directory: ${process.cwd()}
57739
+ message += chalk29__default.default.gray(` \u2022 Working Directory: ${process.cwd()}
57696
57740
  `);
57697
- message += chalk28__default.default.gray("\nMemory Details:\n");
57698
- message += chalk28__default.default.gray(
57741
+ message += chalk29__default.default.gray("\nMemory Details:\n");
57742
+ message += chalk29__default.default.gray(
57699
57743
  ` \u2022 RSS: ${Math.round(status.memory.rss / 1024 / 1024)}MB
57700
57744
  `
57701
57745
  );
57702
- message += chalk28__default.default.gray(
57746
+ message += chalk29__default.default.gray(
57703
57747
  ` \u2022 Heap Used: ${Math.round(status.memory.heapUsed / 1024 / 1024)}MB
57704
57748
  `
57705
57749
  );
57706
- message += chalk28__default.default.gray(
57750
+ message += chalk29__default.default.gray(
57707
57751
  ` \u2022 Heap Total: ${Math.round(status.memory.heapTotal / 1024 / 1024)}MB
57708
57752
  `
57709
57753
  );
57710
- message += chalk28__default.default.gray(
57754
+ message += chalk29__default.default.gray(
57711
57755
  ` \u2022 External: ${Math.round(status.memory.external / 1024 / 1024)}MB
57712
57756
  `
57713
57757
  );
@@ -57736,7 +57780,7 @@ var init_SystemHandlers = __esm({
57736
57780
  if (signal?.aborted) {
57737
57781
  return {
57738
57782
  ok: false,
57739
- message: chalk28__default.default.yellow("Model operation canceled")
57783
+ message: chalk29__default.default.yellow("Model operation canceled")
57740
57784
  };
57741
57785
  }
57742
57786
  if (args2.length === 0) {
@@ -57756,17 +57800,17 @@ var init_SystemHandlers = __esm({
57756
57800
  }
57757
57801
  }
57758
57802
  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}
57803
+ let message = chalk29__default.default.cyan.bold("\u{1F916} Available Models\n\n");
57804
+ message += chalk29__default.default.green(`Current: ${this.currentModel}
57761
57805
 
57762
57806
  `);
57763
57807
  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}]`)}
57808
+ const status = model.available ? chalk29__default.default.green("\u2705") : chalk29__default.default.red("\u274C");
57809
+ const name2 = model.id === this.currentModel ? chalk29__default.default.green.bold(model.id) : chalk29__default.default.cyan(model.id);
57810
+ message += `${status} ${name2.padEnd(20)} ${chalk29__default.default.gray(`[${model.provider}]`)}
57767
57811
  `;
57768
57812
  }
57769
- message += chalk28__default.default.gray("\nUse /model <name> to switch models");
57813
+ message += chalk29__default.default.gray("\nUse /model <name> to switch models");
57770
57814
  return {
57771
57815
  ok: true,
57772
57816
  message,
@@ -57777,27 +57821,27 @@ var init_SystemHandlers = __esm({
57777
57821
  if (!modelId) {
57778
57822
  return {
57779
57823
  ok: false,
57780
- message: chalk28__default.default.red("Please specify a model to switch to")
57824
+ message: chalk29__default.default.red("Please specify a model to switch to")
57781
57825
  };
57782
57826
  }
57783
57827
  const model = this.availableModels.find((m2) => m2.id === modelId);
57784
57828
  if (!model) {
57785
57829
  return {
57786
57830
  ok: false,
57787
- message: chalk28__default.default.red(`Unknown model: ${modelId}
57788
- `) + chalk28__default.default.gray("Use /model list to see available models")
57831
+ message: chalk29__default.default.red(`Unknown model: ${modelId}
57832
+ `) + chalk29__default.default.gray("Use /model list to see available models")
57789
57833
  };
57790
57834
  }
57791
57835
  if (!model.available) {
57792
57836
  return {
57793
57837
  ok: false,
57794
- message: chalk28__default.default.yellow(`Model ${modelId} is not currently available`)
57838
+ message: chalk29__default.default.yellow(`Model ${modelId} is not currently available`)
57795
57839
  };
57796
57840
  }
57797
57841
  this.currentModel = modelId;
57798
57842
  return {
57799
57843
  ok: true,
57800
- message: chalk28__default.default.green(`\u2705 Switched to ${modelId}`),
57844
+ message: chalk29__default.default.green(`\u2705 Switched to ${modelId}`),
57801
57845
  data: { model: modelId }
57802
57846
  };
57803
57847
  }
@@ -57806,27 +57850,27 @@ var init_SystemHandlers = __esm({
57806
57850
  if (!model) {
57807
57851
  return {
57808
57852
  ok: false,
57809
- message: chalk28__default.default.red(`Unknown model: ${modelId}`)
57853
+ message: chalk29__default.default.red(`Unknown model: ${modelId}`)
57810
57854
  };
57811
57855
  }
57812
- let message = chalk28__default.default.cyan(`\u{1F4CB} Model Information: ${modelId}
57856
+ let message = chalk29__default.default.cyan(`\u{1F4CB} Model Information: ${modelId}
57813
57857
 
57814
57858
  `);
57815
- message += chalk28__default.default.gray(`Provider: ${model.provider}
57859
+ message += chalk29__default.default.gray(`Provider: ${model.provider}
57816
57860
  `);
57817
- message += chalk28__default.default.gray(
57861
+ message += chalk29__default.default.gray(
57818
57862
  `Status: ${model.available ? "Available" : "Unavailable"}
57819
57863
  `
57820
57864
  );
57821
- message += chalk28__default.default.gray(
57865
+ message += chalk29__default.default.gray(
57822
57866
  `Current: ${model.id === this.currentModel ? "Yes" : "No"}
57823
57867
  `
57824
57868
  );
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");
57869
+ message += chalk29__default.default.gray("\nCapabilities:\n");
57870
+ message += chalk29__default.default.gray(" \u2022 Context: 128K tokens\n");
57871
+ message += chalk29__default.default.gray(" \u2022 Languages: 95+\n");
57872
+ message += chalk29__default.default.gray(" \u2022 Code: Yes\n");
57873
+ message += chalk29__default.default.gray(" \u2022 Vision: ") + (modelId.includes("gpt-4") ? "Yes\n" : "No\n");
57830
57874
  return {
57831
57875
  ok: true,
57832
57876
  message,
@@ -57858,39 +57902,39 @@ var init_SystemHandlers = __esm({
57858
57902
  default:
57859
57903
  return {
57860
57904
  ok: false,
57861
- message: chalk28__default.default.red(`Unknown memory subcommand: ${subcommand}
57862
- `) + chalk28__default.default.gray("Available: status, clear, export, compact")
57905
+ message: chalk29__default.default.red(`Unknown memory subcommand: ${subcommand}
57906
+ `) + chalk29__default.default.gray("Available: status, clear, export, compact")
57863
57907
  };
57864
57908
  }
57865
57909
  }
57866
57910
  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(
57911
+ let message = chalk29__default.default.cyan.bold("\u{1F9E0} Memory Status\n\n");
57912
+ message += chalk29__default.default.yellow("System 1 (Fast):\n");
57913
+ message += chalk29__default.default.gray(
57870
57914
  ` \u2022 Knowledge Nodes: ${this.memoryStats.system1.nodes}
57871
57915
  `
57872
57916
  );
57873
- message += chalk28__default.default.gray(` \u2022 Tokens: ${this.memoryStats.system1.tokens}
57917
+ message += chalk29__default.default.gray(` \u2022 Tokens: ${this.memoryStats.system1.tokens}
57874
57918
 
57875
57919
  `);
57876
- message += chalk28__default.default.blue("System 2 (Deep):\n");
57877
- message += chalk28__default.default.gray(
57920
+ message += chalk29__default.default.blue("System 2 (Deep):\n");
57921
+ message += chalk29__default.default.gray(
57878
57922
  ` \u2022 Reasoning Traces: ${this.memoryStats.system2.traces}
57879
57923
  `
57880
57924
  );
57881
- message += chalk28__default.default.gray(` \u2022 Tokens: ${this.memoryStats.system2.tokens}
57925
+ message += chalk29__default.default.gray(` \u2022 Tokens: ${this.memoryStats.system2.tokens}
57882
57926
 
57883
57927
  `);
57884
- message += chalk28__default.default.green("Total:\n");
57885
- message += chalk28__default.default.gray(` \u2022 Entries: ${this.memoryStats.total.entries}
57928
+ message += chalk29__default.default.green("Total:\n");
57929
+ message += chalk29__default.default.gray(` \u2022 Entries: ${this.memoryStats.total.entries}
57886
57930
  `);
57887
- message += chalk28__default.default.gray(
57931
+ message += chalk29__default.default.gray(
57888
57932
  ` \u2022 Tokens: ${this.memoryStats.total.tokens} / 128000
57889
57933
  `
57890
57934
  );
57891
57935
  const usage = Math.round(this.memoryStats.total.tokens / 128e3 * 100);
57892
57936
  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}%
57937
+ message += chalk29__default.default.gray(` \u2022 Usage: [${bar}] ${usage}%
57894
57938
  `);
57895
57939
  return {
57896
57940
  ok: true,
@@ -57904,14 +57948,14 @@ var init_SystemHandlers = __esm({
57904
57948
  this.memoryStats.system1 = { nodes: 0, tokens: 0 };
57905
57949
  return {
57906
57950
  ok: true,
57907
- message: chalk28__default.default.green("\u2705 System 1 memory cleared")
57951
+ message: chalk29__default.default.green("\u2705 System 1 memory cleared")
57908
57952
  };
57909
57953
  }
57910
57954
  if (system === "system2") {
57911
57955
  this.memoryStats.system2 = { traces: 0, tokens: 0 };
57912
57956
  return {
57913
57957
  ok: true,
57914
- message: chalk28__default.default.green("\u2705 System 2 memory cleared")
57958
+ message: chalk29__default.default.green("\u2705 System 2 memory cleared")
57915
57959
  };
57916
57960
  }
57917
57961
  this.memoryStats = {
@@ -57921,15 +57965,15 @@ var init_SystemHandlers = __esm({
57921
57965
  };
57922
57966
  return {
57923
57967
  ok: true,
57924
- message: chalk28__default.default.green("\u{1F9F9} All memory cleared")
57968
+ message: chalk29__default.default.green("\u{1F9F9} All memory cleared")
57925
57969
  };
57926
57970
  }
57927
57971
  async exportMemory() {
57928
57972
  const filename = `memory-export-${Date.now()}.json`;
57929
57973
  return {
57930
57974
  ok: true,
57931
- message: chalk28__default.default.green(`\u{1F4E6} Memory exported to ${filename}
57932
- `) + chalk28__default.default.gray(
57975
+ message: chalk29__default.default.green(`\u{1F4E6} Memory exported to ${filename}
57976
+ `) + chalk29__default.default.gray(
57933
57977
  `Size: ${Math.round(JSON.stringify(this.memoryStats).length / 1024)}KB`
57934
57978
  ),
57935
57979
  data: { filename, stats: this.memoryStats }
@@ -57947,9 +57991,9 @@ var init_SystemHandlers = __esm({
57947
57991
  );
57948
57992
  return {
57949
57993
  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(
57994
+ message: chalk29__default.default.green("\u2728 Memory compacted successfully\n") + chalk29__default.default.gray(`Before: ${before} tokens
57995
+ `) + chalk29__default.default.gray(`After: ${after} tokens
57996
+ `) + chalk29__default.default.gray(
57953
57997
  `Saved: ${before - after} tokens (${Math.round((1 - after / before) * 100)}%)`
57954
57998
  ),
57955
57999
  data: { before, after, saved: before - after }
@@ -57965,11 +58009,11 @@ var init_SystemHandlers = __esm({
57965
58009
  if (signal?.aborted) {
57966
58010
  return {
57967
58011
  ok: false,
57968
- message: chalk28__default.default.yellow("Health check canceled")
58012
+ message: chalk29__default.default.yellow("Health check canceled")
57969
58013
  };
57970
58014
  }
57971
58015
  const detailed = args2.includes("--detailed");
57972
- let message = chalk28__default.default.cyan.bold("\u{1F3E5} System Health Check\n\n");
58016
+ let message = chalk29__default.default.cyan.bold("\u{1F3E5} System Health Check\n\n");
57973
58017
  const checks = [
57974
58018
  { name: "Core Services", status: "ok", latency: 12 },
57975
58019
  { name: "Memory System", status: "ok", latency: 8 },
@@ -57978,11 +58022,11 @@ var init_SystemHandlers = __esm({
57978
58022
  { name: "Network", status: "warning", latency: 250 }
57979
58023
  ];
57980
58024
  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");
58025
+ const icon = check.status === "ok" ? chalk29__default.default.green("\u2705") : check.status === "warning" ? chalk29__default.default.yellow("\u26A0\uFE0F") : chalk29__default.default.red("\u274C");
58026
+ const status = check.status === "ok" ? chalk29__default.default.green("OK") : check.status === "warning" ? chalk29__default.default.yellow("WARNING") : chalk29__default.default.red("ERROR");
57983
58027
  message += `${icon} ${check.name.padEnd(20)} ${status}`;
57984
58028
  if (detailed) {
57985
- message += chalk28__default.default.gray(` (${check.latency}ms)`);
58029
+ message += chalk29__default.default.gray(` (${check.latency}ms)`);
57986
58030
  }
57987
58031
  message += "\n";
57988
58032
  }
@@ -57990,11 +58034,11 @@ var init_SystemHandlers = __esm({
57990
58034
  const hasErrors = checks.some((c) => c.status === "error");
57991
58035
  message += "\n";
57992
58036
  if (hasErrors) {
57993
- message += chalk28__default.default.red("\u26A0\uFE0F System has errors - intervention required");
58037
+ message += chalk29__default.default.red("\u26A0\uFE0F System has errors - intervention required");
57994
58038
  } else if (hasWarnings) {
57995
- message += chalk28__default.default.yellow("\u26A0\uFE0F System operational with warnings");
58039
+ message += chalk29__default.default.yellow("\u26A0\uFE0F System operational with warnings");
57996
58040
  } else {
57997
- message += chalk28__default.default.green("\u2705 All systems operational");
58041
+ message += chalk29__default.default.green("\u2705 All systems operational");
57998
58042
  }
57999
58043
  return {
58000
58044
  ok: true,
@@ -58012,12 +58056,12 @@ var init_SystemHandlers = __esm({
58012
58056
  if (signal?.aborted) {
58013
58057
  return {
58014
58058
  ok: false,
58015
- message: chalk28__default.default.yellow("Doctor check canceled")
58059
+ message: chalk29__default.default.yellow("Doctor check canceled")
58016
58060
  };
58017
58061
  }
58018
58062
  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");
58063
+ let message = chalk29__default.default.cyan.bold("\u{1F468}\u2695\uFE0F System Doctor\n\n");
58064
+ message += chalk29__default.default.gray("Running diagnostics...\n\n");
58021
58065
  const issues = [
58022
58066
  {
58023
58067
  severity: "warning",
@@ -58039,20 +58083,20 @@ var init_SystemHandlers = __esm({
58039
58083
  }
58040
58084
  ];
58041
58085
  if (issues.length === 0) {
58042
- message += chalk28__default.default.green("\u2705 No issues found - system is healthy!");
58086
+ message += chalk29__default.default.green("\u2705 No issues found - system is healthy!");
58043
58087
  return { ok: true, message };
58044
58088
  }
58045
- message += chalk28__default.default.yellow(`Found ${issues.length} issue(s):
58089
+ message += chalk29__default.default.yellow(`Found ${issues.length} issue(s):
58046
58090
 
58047
58091
  `);
58048
58092
  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");
58093
+ 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
58094
  message += `${icon} ${issue.issue}
58051
58095
  `;
58052
- message += chalk28__default.default.gray(` Solution: ${issue.solution}
58096
+ message += chalk29__default.default.gray(` Solution: ${issue.solution}
58053
58097
  `);
58054
58098
  if (autoFix && issue.fixable) {
58055
- message += chalk28__default.default.green(` \u2705 Auto-fixed
58099
+ message += chalk29__default.default.green(` \u2705 Auto-fixed
58056
58100
  `);
58057
58101
  }
58058
58102
  message += "\n";
@@ -58060,7 +58104,7 @@ var init_SystemHandlers = __esm({
58060
58104
  if (!autoFix) {
58061
58105
  const fixableCount = issues.filter((i2) => i2.fixable).length;
58062
58106
  if (fixableCount > 0) {
58063
- message += chalk28__default.default.gray(
58107
+ message += chalk29__default.default.gray(
58064
58108
  `
58065
58109
  Run /doctor --fix to automatically fix ${fixableCount} issue(s)`
58066
58110
  );
@@ -58523,14 +58567,14 @@ function createCLI() {
58523
58567
  }
58524
58568
  });
58525
58569
  program2.command("setup-ollama").description("Setup Ollama for local AI").action(async () => {
58526
- console.log(chalk28__default.default.cyan("Setting up Ollama..."));
58570
+ console.log(chalk29__default.default.cyan("Setting up Ollama..."));
58527
58571
  console.log(
58528
- chalk28__default.default.yellow("Please run: brew install ollama && ollama serve")
58572
+ chalk29__default.default.yellow("Please run: brew install ollama && ollama serve")
58529
58573
  );
58530
58574
  });
58531
58575
  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"));
58576
+ console.log(chalk29__default.default.cyan("Setting up vLLM..."));
58577
+ console.log(chalk29__default.default.yellow("Please run: pip install vllm"));
58534
58578
  });
58535
58579
  return program2;
58536
58580
  }
@@ -58558,13 +58602,13 @@ var init_maria_ai = __esm({
58558
58602
  await this.providerSelector.initialize();
58559
58603
  const { provider, model } = await this.providerSelector.selectProvider();
58560
58604
  console.log(
58561
- chalk28__default.default.green(`
58605
+ chalk29__default.default.green(`
58562
58606
  \u2705 Selected: ${provider} with model ${model}`)
58563
58607
  );
58564
58608
  this.config.set("currentProvider", provider);
58565
58609
  this.config.set("currentModel", model);
58566
58610
  await this.config.save();
58567
- console.log(chalk28__default.default.cyan("\n\u{1F9E0} Initializing Intelligent Router..."));
58611
+ console.log(chalk29__default.default.cyan("\n\u{1F9E0} Initializing Intelligent Router..."));
58568
58612
  this.router = new IntelligentRouterService({
58569
58613
  confidenceThreshold: 0.85,
58570
58614
  enableLearning: true,
@@ -58572,12 +58616,12 @@ var init_maria_ai = __esm({
58572
58616
  });
58573
58617
  await this.router.initialize();
58574
58618
  console.log(
58575
- chalk28__default.default.green("\u2705 Intelligent Router initialized successfully\n")
58619
+ chalk29__default.default.green("\u2705 Intelligent Router initialized successfully\n")
58576
58620
  );
58577
58621
  this.session = createInteractiveSession(this);
58578
58622
  await this.session.start();
58579
58623
  } catch (error2) {
58580
- console.error(chalk28__default.default.red("\n\u274C Initialization failed:"), error2);
58624
+ console.error(chalk29__default.default.red("\n\u274C Initialization failed:"), error2);
58581
58625
  process.exit(1);
58582
58626
  }
58583
58627
  }
@@ -58585,7 +58629,7 @@ var init_maria_ai = __esm({
58585
58629
  if (this.session) {
58586
58630
  await this.session.stop();
58587
58631
  }
58588
- console.log(chalk28__default.default.cyan("\n\u{1F44B} Goodbye!"));
58632
+ console.log(chalk29__default.default.green("\n\u{1F44B} Goodbye!"));
58589
58633
  }
58590
58634
  };
58591
58635
  }
@@ -58614,8 +58658,8 @@ async function loadServices() {
58614
58658
  try {
58615
58659
  const commandName = command.startsWith("/") ? command.slice(1) : command;
58616
58660
  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"));
58661
+ console.log(chalk29__default.default.yellow("\u{1F512} /battlecard is not available on Free plan"));
58662
+ console.log(chalk29__default.default.gray(" Join the waitlist for business features: https://maria-code.ai/waitlist"));
58619
58663
  return {
58620
58664
  success: false,
58621
58665
  message: "Command not available on Free plan"
@@ -58676,7 +58720,7 @@ async function loadServices() {
58676
58720
  commandManager.setLegacyHandler(legacyHandlerAdapter);
58677
58721
  }
58678
58722
  } catch (e2) {
58679
- console.warn(chalk28__default.default.yellow("\u26A0 Some services unavailable, using fallbacks"));
58723
+ console.warn(chalk29__default.default.yellow("\u26A0 Some services unavailable, using fallbacks"));
58680
58724
  }
58681
58725
  }
58682
58726
  async function init() {
@@ -58798,17 +58842,17 @@ async function enforceAuth(cmd) {
58798
58842
  try {
58799
58843
  const tokens = await authManager.getValidTokens();
58800
58844
  if (!tokens) {
58801
- console.log(chalk28__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
58845
+ console.log(chalk29__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
58802
58846
  return false;
58803
58847
  }
58804
58848
  return true;
58805
58849
  } catch (error2) {
58806
58850
  if (error2.code === "AUTH_REQUIRED") {
58807
- console.log(chalk28__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
58851
+ console.log(chalk29__default.default.red("\u{1F510} Authentication required \xB7 Run: maria /login"));
58808
58852
  } else if (error2.code === "REAUTH_REQUIRED") {
58809
- console.log(chalk28__default.default.yellow("\u{1F504} Please re-authenticate \xB7 Run: maria /login"));
58853
+ console.log(chalk29__default.default.yellow("\u{1F504} Please re-authenticate \xB7 Run: maria /login"));
58810
58854
  } else {
58811
- console.log(chalk28__default.default.red("\u{1F310} Network error, check connection"));
58855
+ console.log(chalk29__default.default.red("\u{1F310} Network error, check connection"));
58812
58856
  }
58813
58857
  return false;
58814
58858
  }
@@ -58847,7 +58891,7 @@ async function handleSlash(input3) {
58847
58891
  console.log(JSON.stringify(result2.data, null, 2));
58848
58892
  }
58849
58893
  } else {
58850
- console.log(chalk28__default.default.red(`Help Error: ${result2.message}`));
58894
+ console.log(chalk29__default.default.red(`Help Error: ${result2.message}`));
58851
58895
  }
58852
58896
  return true;
58853
58897
  }
@@ -58855,7 +58899,7 @@ async function handleSlash(input3) {
58855
58899
  if (process.env.MARIA_DEBUG === "1") {
58856
58900
  console.error("HelpCommand error:", helpError);
58857
58901
  }
58858
- console.log(chalk28__default.default.yellow("\u26A0 Dynamic help unavailable, using fallback"));
58902
+ console.log(chalk29__default.default.yellow("\u26A0 Dynamic help unavailable, using fallback"));
58859
58903
  }
58860
58904
  const help = `
58861
58905
  \u{1F4D6} MARIA CLI Help
@@ -58885,7 +58929,7 @@ Chat:
58885
58929
  session.length = 0;
58886
58930
  if (ctx?.clearContext) ctx.clearContext();
58887
58931
  console.clear();
58888
- console.log(chalk28__default.default.cyan("\u2728 Session cleared"));
58932
+ console.log(chalk29__default.default.green("\u2728 Session cleared"));
58889
58933
  return true;
58890
58934
  }
58891
58935
  if (cmd === "code") {
@@ -58894,7 +58938,7 @@ Chat:
58894
58938
  const prompt = args2.join(" ").trim();
58895
58939
  if (!prompt) {
58896
58940
  console.log(
58897
- chalk28__default.default.red("Usage: /code <request> e.g. /code build a REST API")
58941
+ chalk29__default.default.red("Usage: /code <request> e.g. /code build a REST API")
58898
58942
  );
58899
58943
  return true;
58900
58944
  }
@@ -58907,7 +58951,7 @@ Chat:
58907
58951
  const prompt = args2.join(" ").trim();
58908
58952
  if (!prompt) {
58909
58953
  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")
58954
+ 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
58955
  );
58912
58956
  return true;
58913
58957
  }
@@ -58919,14 +58963,14 @@ Chat:
58919
58963
  options: {},
58920
58964
  logger: {
58921
58965
  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))
58966
+ error: (msg) => console.error(chalk29__default.default.red(msg)),
58967
+ warn: (msg) => console.warn(chalk29__default.default.yellow(msg))
58924
58968
  }
58925
58969
  };
58926
58970
  await imageCommand2.execute(context2);
58927
58971
  }
58928
58972
  } catch (error2) {
58929
- console.error(chalk28__default.default.red("Image generation failed:"), error2.message);
58973
+ console.error(chalk29__default.default.red("Image generation failed:"), error2.message);
58930
58974
  }
58931
58975
  return true;
58932
58976
  }
@@ -58936,7 +58980,7 @@ Chat:
58936
58980
  const prompt = args2.join(" ").trim();
58937
58981
  if (!prompt) {
58938
58982
  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")
58983
+ 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
58984
  );
58941
58985
  return true;
58942
58986
  }
@@ -58948,14 +58992,14 @@ Chat:
58948
58992
  options: {},
58949
58993
  logger: {
58950
58994
  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))
58995
+ error: (msg) => console.error(chalk29__default.default.red(msg)),
58996
+ warn: (msg) => console.warn(chalk29__default.default.yellow(msg))
58953
58997
  }
58954
58998
  };
58955
58999
  await videoCommand2.execute(context2);
58956
59000
  }
58957
59001
  } catch (error2) {
58958
- console.error(chalk28__default.default.red("Video generation failed:"), error2.message);
59002
+ console.error(chalk29__default.default.red("Video generation failed:"), error2.message);
58959
59003
  }
58960
59004
  return true;
58961
59005
  }
@@ -58965,7 +59009,7 @@ Chat:
58965
59009
  const prompt = args2.join(" ").trim();
58966
59010
  if (!prompt) {
58967
59011
  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")
59012
+ 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
59013
  );
58970
59014
  return true;
58971
59015
  }
@@ -58977,14 +59021,14 @@ Chat:
58977
59021
  options: {},
58978
59022
  logger: {
58979
59023
  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))
59024
+ error: (msg) => console.error(chalk29__default.default.red(msg)),
59025
+ warn: (msg) => console.warn(chalk29__default.default.yellow(msg))
58982
59026
  }
58983
59027
  };
58984
59028
  await voiceCommand2.execute(context2);
58985
59029
  }
58986
59030
  } catch (error2) {
58987
- console.error(chalk28__default.default.red("Voice synthesis failed:"), error2.message);
59031
+ console.error(chalk29__default.default.red("Voice synthesis failed:"), error2.message);
58988
59032
  }
58989
59033
  return true;
58990
59034
  }
@@ -59003,49 +59047,49 @@ Chat:
59003
59047
  if (args2.includes("status")) {
59004
59048
  if (await authManager.isAuthenticated()) {
59005
59049
  const user = await authManager.getCurrentUser();
59006
- console.log(chalk28__default.default.green("\u2705 Authenticated"));
59050
+ console.log(chalk29__default.default.green("\u2705 Authenticated"));
59007
59051
  if (user.name) {
59008
- console.log(chalk28__default.default.white(`\u{1F464} Name: ${chalk28__default.default.cyan(user.name)}`));
59052
+ console.log(chalk29__default.default.white(`\u{1F464} Name: ${chalk29__default.default.cyan(user.name)}`));
59009
59053
  }
59010
- console.log(chalk28__default.default.white(`\u{1F4E7} Email: ${chalk28__default.default.cyan(user.email)}`));
59054
+ console.log(chalk29__default.default.white(`\u{1F4E7} Email: ${chalk29__default.default.cyan(user.email)}`));
59011
59055
  if (user.provider) {
59012
- console.log(chalk28__default.default.white(`\u{1F511} Provider: ${chalk28__default.default.cyan(user.provider)}`));
59056
+ console.log(chalk29__default.default.white(`\u{1F511} Provider: ${chalk29__default.default.cyan(user.provider)}`));
59013
59057
  }
59014
- console.log(chalk28__default.default.white(`\u{1F4CA} Plan: ${chalk28__default.default.cyan(user.plan)}`));
59058
+ console.log(chalk29__default.default.white(`\u{1F4CA} Plan: ${chalk29__default.default.cyan(user.plan)}`));
59015
59059
  } else {
59016
- console.log(chalk28__default.default.yellow("\u26A0\uFE0F Not authenticated"));
59017
- console.log(chalk28__default.default.gray("Use /login to sign in"));
59060
+ console.log(chalk29__default.default.yellow("\u26A0\uFE0F Not authenticated"));
59061
+ console.log(chalk29__default.default.gray("Use /login to sign in"));
59018
59062
  }
59019
59063
  } else {
59020
59064
  const result2 = await authManager.login(options3);
59021
59065
  if (result2.success && result2.user) {
59022
- console.log(chalk28__default.default.green("\u2705 Successfully logged in!"));
59066
+ console.log(chalk29__default.default.green("\u2705 Successfully logged in!"));
59023
59067
  const u = result2.user;
59024
59068
  if (u.name) {
59025
- console.log(chalk28__default.default.white(`\u{1F464} Name: ${chalk28__default.default.cyan(u.name)}`));
59069
+ console.log(chalk29__default.default.white(`\u{1F464} Name: ${chalk29__default.default.cyan(u.name)}`));
59026
59070
  }
59027
- console.log(chalk28__default.default.white(`\u{1F4E7} Email: ${chalk28__default.default.cyan(u.email)}`));
59071
+ console.log(chalk29__default.default.white(`\u{1F4E7} Email: ${chalk29__default.default.cyan(u.email)}`));
59028
59072
  if (u.provider) {
59029
- console.log(chalk28__default.default.white(`\u{1F511} Provider: ${chalk28__default.default.cyan(u.provider)}`));
59073
+ console.log(chalk29__default.default.white(`\u{1F511} Provider: ${chalk29__default.default.cyan(u.provider)}`));
59030
59074
  }
59031
- console.log(chalk28__default.default.white(`\u{1F4CA} Plan: ${chalk28__default.default.cyan(u.plan)}`));
59075
+ console.log(chalk29__default.default.white(`\u{1F4CA} Plan: ${chalk29__default.default.cyan(u.plan)}`));
59032
59076
  } else {
59033
- console.log(chalk28__default.default.red("\u274C Login failed"));
59034
- if (result2.error) console.log(chalk28__default.default.gray(result2.error));
59077
+ console.log(chalk29__default.default.red("\u274C Login failed"));
59078
+ if (result2.error) console.log(chalk29__default.default.gray(result2.error));
59035
59079
  }
59036
59080
  }
59037
59081
  }
59038
59082
  } catch (error2) {
59039
- console.error(chalk28__default.default.red("Login error:"), error2.message);
59083
+ console.error(chalk29__default.default.red("Login error:"), error2.message);
59040
59084
  }
59041
59085
  return true;
59042
59086
  }
59043
59087
  if (cmd === "logout" || cmd === "signout") {
59044
59088
  try {
59045
59089
  await authManager.logout();
59046
- console.log(chalk28__default.default.green("\u{1F44B} Signed out. Local credentials removed."));
59090
+ console.log(chalk29__default.default.green("\u{1F44B} Signed out. Local credentials removed."));
59047
59091
  } catch (error2) {
59048
- console.error(chalk28__default.default.red("Logout error:"), error2.message);
59092
+ console.error(chalk29__default.default.red("Logout error:"), error2.message);
59049
59093
  }
59050
59094
  return true;
59051
59095
  }
@@ -59186,7 +59230,7 @@ Chat:
59186
59230
  } else if (result2.message) {
59187
59231
  console.log(result2.message);
59188
59232
  } else if (result2.success) {
59189
- console.log(chalk28__default.default.green("\u2705 Command executed successfully"));
59233
+ console.log(chalk29__default.default.green("\u2705 Command executed successfully"));
59190
59234
  }
59191
59235
  if (result2.data && process.env.MARIA_DEBUG === "1") {
59192
59236
  console.log(JSON.stringify(result2.data, null, 2));
@@ -59200,11 +59244,11 @@ Chat:
59200
59244
  }
59201
59245
  }
59202
59246
  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}`));
59247
+ console.log(chalk29__default.default.red(`\u274C Unknown command: /${cmd}`));
59248
+ console.log(chalk29__default.default.yellow("\n\u{1F4A1} Suggestions:"));
59249
+ console.log(chalk29__default.default.gray(" \u2022 Try /help to see available commands"));
59250
+ console.log(chalk29__default.default.gray(" \u2022 Check if you need to /login first"));
59251
+ console.log(chalk29__default.default.gray(` \u2022 Try similar commands: /help --search ${cmd}`));
59208
59252
  }
59209
59253
  return true;
59210
59254
  }
@@ -59472,11 +59516,11 @@ async function handleCodeCommand(prompt) {
59472
59516
  const filepath = path9__namespace.resolve(process.cwd(), filename);
59473
59517
  await fsp__namespace.writeFile(filepath, code, "utf-8");
59474
59518
  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(`
59519
+ chalk29__default.default.green("\n\u2705 **Code Saved**\n") + chalk29__default.default.white(`\u{1F4C1} **File (Click to open):**
59520
+ `) + chalk29__default.default.cyan(`\u2022 [${filename}](file://${filepath})
59521
+ `) + chalk29__default.default.gray(` \u{1F4CD} Path: \`${filepath}\`
59522
+ `) + chalk29__default.default.white(` \u{1F4DD} Language: ${language}
59523
+ `) + chalk29__default.default.dim(`
59480
59524
  \u{1F4A1} Tip: Command+Click (Mac) or Ctrl+Click (Windows/Linux) to open file`)
59481
59525
  );
59482
59526
  } else {
@@ -59485,11 +59529,11 @@ async function handleCodeCommand(prompt) {
59485
59529
  } catch (e2) {
59486
59530
  spinner.stop();
59487
59531
  if (process.env.MARIA_DEBUG === "1") {
59488
- console.error(chalk28__default.default.red("Code generation error:"), e2.message || e2);
59532
+ console.error(chalk29__default.default.red("Code generation error:"), e2.message || e2);
59489
59533
  }
59490
59534
  const fallbackCode = templateFallback(prompt);
59491
59535
  console.log(
59492
- chalk28__default.default.yellow("\u26A0 AI unavailable, using template fallback:\n")
59536
+ chalk29__default.default.yellow("\u26A0 AI unavailable, using template fallback:\n")
59493
59537
  );
59494
59538
  console.log(fallbackCode);
59495
59539
  try {
@@ -59498,14 +59542,14 @@ async function handleCodeCommand(prompt) {
59498
59542
  const filepath = path9__namespace.resolve(process.cwd(), filename);
59499
59543
  await fsp__namespace.writeFile(filepath, code, "utf-8");
59500
59544
  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(`
59545
+ chalk29__default.default.green("\n\u2705 **Template Code Saved**\n") + chalk29__default.default.white(`\u{1F4C1} **File (Click to open):**
59546
+ `) + chalk29__default.default.cyan(`\u2022 [${filename}](file://${filepath})
59547
+ `) + chalk29__default.default.gray(` \u{1F4CD} Path: \`${filepath}\`
59548
+ `) + chalk29__default.default.dim(`
59505
59549
  \u{1F4A1} Tip: Command+Click (Mac) or Ctrl+Click (Windows/Linux) to open file`)
59506
59550
  );
59507
59551
  } catch (saveError) {
59508
- console.error(chalk28__default.default.red("Failed to save code:"), saveError);
59552
+ console.error(chalk29__default.default.red("Failed to save code:"), saveError);
59509
59553
  }
59510
59554
  }
59511
59555
  }
@@ -59561,7 +59605,7 @@ ${userPrompt}`;
59561
59605
  (seq) => response2.includes(seq)
59562
59606
  );
59563
59607
  if (guidedFlowDetected) {
59564
- console.log(chalk28__default.default.yellow("\u26A0 Guided flow detected, switching to fallback"));
59608
+ console.log(chalk29__default.default.yellow("\u26A0 Guided flow detected, switching to fallback"));
59565
59609
  return null;
59566
59610
  }
59567
59611
  const codeMatch = response2.match(/```[\s\S]*?```/);
@@ -59729,14 +59773,14 @@ async function streamAnswer(text) {
59729
59773
  if (store?.addMessage) await store.addMessage(msg);
59730
59774
  } else {
59731
59775
  animation.stop();
59732
- console.log(chalk28__default.default.yellow("AI service unavailable. Please check your configuration."));
59776
+ console.log(chalk29__default.default.yellow("AI service unavailable. Please check your configuration."));
59733
59777
  }
59734
59778
  } catch (e2) {
59735
59779
  animation.stop();
59736
59780
  if (e2.message?.includes("timeout") || e2.message?.includes("\u23F1\uFE0F")) {
59737
- console.log(chalk28__default.default.yellow(e2.message));
59781
+ console.log(chalk29__default.default.yellow(e2.message));
59738
59782
  } else {
59739
- console.log(chalk28__default.default.red("Error generating response:"), e2.message || e2);
59783
+ console.log(chalk29__default.default.red("Error generating response:"), e2.message || e2);
59740
59784
  }
59741
59785
  }
59742
59786
  }
@@ -59751,9 +59795,9 @@ async function handleLine(line) {
59751
59795
  if (consumed) return;
59752
59796
  const isAuthenticated = await authManager.isAuthenticated();
59753
59797
  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"));
59798
+ console.log(chalk29__default.default.yellow("\n\u26A0\uFE0F Authentication required for chat features"));
59799
+ console.log(chalk29__default.default.cyan("Please run: /login"));
59800
+ console.log(chalk29__default.default.gray("Or use slash commands like /help, /version"));
59757
59801
  return;
59758
59802
  }
59759
59803
  const user = { role: "user", content: input3, timestamp: /* @__PURE__ */ new Date() };
@@ -59775,7 +59819,7 @@ async function startInteractiveSession() {
59775
59819
  }
59776
59820
  }
59777
59821
  const stop = async () => {
59778
- console.log(chalk28__default.default.cyan("\n\u{1F44B} Goodbye!"));
59822
+ console.log(chalk29__default.default.green("\n\u{1F44B} Goodbye!"));
59779
59823
  if (store?.close) await store.close().catch(() => {
59780
59824
  });
59781
59825
  if (interactiveCLI?.cleanup) interactiveCLI.cleanup();
@@ -59789,7 +59833,7 @@ async function startInteractiveSession() {
59789
59833
  process.once("SIGINT", stop);
59790
59834
  process.once("SIGTERM", stop);
59791
59835
  if (!isTTY) {
59792
- console.log(chalk28__default.default.gray("[Pipe mode detected - streaming input/output]"));
59836
+ console.log(chalk29__default.default.gray("[Pipe mode detected - streaming input/output]"));
59793
59837
  const rl = readline6__namespace.createInterface({
59794
59838
  input: process6.stdin,
59795
59839
  output: process6.stdout,
@@ -59804,7 +59848,7 @@ async function startInteractiveSession() {
59804
59848
  if (interactiveCLI) {
59805
59849
  while (true) {
59806
59850
  try {
59807
- const prompt = chalk28__default.default.gray("> ");
59851
+ const prompt = chalk29__default.default.gray("> ");
59808
59852
  process.stdout.write(prompt);
59809
59853
  const line = await interactiveCLI.question("");
59810
59854
  console.log();
@@ -59819,14 +59863,14 @@ async function startInteractiveSession() {
59819
59863
  await stop();
59820
59864
  return;
59821
59865
  }
59822
- console.error(chalk28__default.default.red("Error:"), error2?.message || error2);
59866
+ console.error(chalk29__default.default.red("Error:"), error2?.message || error2);
59823
59867
  }
59824
59868
  }
59825
59869
  } else {
59826
59870
  const rl = readline6__namespace.createInterface({ input: process6.stdin, output: process6.stdout });
59827
59871
  while (true) {
59828
59872
  try {
59829
- const prompt = chalk28__default.default.gray("> ");
59873
+ const prompt = chalk29__default.default.gray("> ");
59830
59874
  const line = await rl.question(prompt);
59831
59875
  console.log();
59832
59876
  if (line.toLowerCase() === "exit" || line.toLowerCase() === "quit") {
@@ -59840,7 +59884,7 @@ async function startInteractiveSession() {
59840
59884
  await stop();
59841
59885
  return;
59842
59886
  }
59843
- console.error(chalk28__default.default.red("Error:"), error2?.message || error2);
59887
+ console.error(chalk29__default.default.red("Error:"), error2?.message || error2);
59844
59888
  }
59845
59889
  }
59846
59890
  }
@@ -59850,7 +59894,7 @@ function createCLI2() {
59850
59894
  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
59895
  loadEnvironmentVariables();
59852
59896
  if (options2.server) {
59853
- console.log(chalk28__default.default.green("\u{1F680} Starting MARIA server mode..."));
59897
+ console.log(chalk29__default.default.green("\u{1F680} Starting MARIA server mode..."));
59854
59898
  try {
59855
59899
  const distDir = path9__namespace.dirname(process.argv[1] || process.cwd());
59856
59900
  const candidateNames = [
@@ -59880,9 +59924,9 @@ function createCLI2() {
59880
59924
  if (serverPath) break;
59881
59925
  }
59882
59926
  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(" | ")));
59927
+ console.error(chalk29__default.default.red("\u274C Could not locate server-express entry file"));
59928
+ console.error(chalk29__default.default.gray("Searched names: " + candidateNames.join(", ")));
59929
+ console.error(chalk29__default.default.gray("Searched dirs: " + candidateDirs.join(" | ")));
59886
59930
  process.exit(1);
59887
59931
  }
59888
59932
  const { spawn: spawn3 } = await import('child_process');
@@ -59929,7 +59973,7 @@ function createCLI2() {
59929
59973
  process.once("SIGINT", () => forwardAndExit("SIGINT"));
59930
59974
  process.once("SIGTERM", () => forwardAndExit("SIGTERM"));
59931
59975
  serverProcess.on("error", (error2) => {
59932
- console.error(chalk28__default.default.red("\u274C Server process error:"), error2);
59976
+ console.error(chalk29__default.default.red("\u274C Server process error:"), error2);
59933
59977
  process.exit(1);
59934
59978
  });
59935
59979
  serverProcess.on("exit", (code, _signal) => {
@@ -59942,7 +59986,7 @@ function createCLI2() {
59942
59986
  });
59943
59987
  return;
59944
59988
  } catch (error2) {
59945
- console.error(chalk28__default.default.red("\u274C Failed to start server mode:"), error2);
59989
+ console.error(chalk29__default.default.red("\u274C Failed to start server mode:"), error2);
59946
59990
  process.exit(1);
59947
59991
  }
59948
59992
  }
@@ -59967,7 +60011,7 @@ function createCLI2() {
59967
60011
  displayStartupLogo2();
59968
60012
  startupDisplayed = true;
59969
60013
  } catch {
59970
- console.log(chalk28__default.default.cyan(`
60014
+ console.log(chalk29__default.default.cyan(`
59971
60015
  \u{1F680} MARIA v${getVersion()}
59972
60016
  `));
59973
60017
  startupDisplayed = true;
@@ -59976,13 +60020,13 @@ function createCLI2() {
59976
60020
  const useV3 = options2.v3Session || process.env.MARIA_USE_V3_SESSION === "1";
59977
60021
  if (useV3) {
59978
60022
  try {
59979
- console.log(chalk28__default.default.cyan("\u{1F680} Starting MARIA v3 session..."));
60023
+ console.log(chalk29__default.default.cyan("\u{1F680} Starting MARIA v3 session..."));
59980
60024
  const { MariaAI: MariaAI2 } = await Promise.resolve().then(() => (init_maria_ai(), maria_ai_exports));
59981
60025
  const maria = new MariaAI2();
59982
60026
  await maria.initialize();
59983
60027
  return;
59984
60028
  } catch (e2) {
59985
- console.warn(chalk28__default.default.yellow("\u26A0 V3 session unavailable, using standard mode"));
60029
+ console.warn(chalk29__default.default.yellow("\u26A0 V3 session unavailable, using standard mode"));
59986
60030
  }
59987
60031
  }
59988
60032
  await startInteractiveSession();