matex-cli 1.2.77 → 1.2.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utils/tui.ts CHANGED
@@ -37,13 +37,13 @@ export class TUI {
37
37
  };
38
38
  case 'study':
39
39
  return {
40
- primary: chalk.hex('#10b981'), // Emerald
41
- secondary: chalk.hex('#064e3b'),
42
- border: '',
43
- glow: chalk.hex('#34d399'),
44
- shadow: chalk.hex('#064e3b'),
45
- bg: '#064e3b',
46
- icon: '🎓'
40
+ primary: chalk.hex('#10B981'), // Emerald
41
+ secondary: chalk.hex('#064E3B'),
42
+ border: '',
43
+ glow: chalk.hex('#34D399'),
44
+ shadow: chalk.hex('#064E3B'),
45
+ bg: '#064E3B',
46
+ icon: ''
47
47
  };
48
48
  case 'chat':
49
49
  return {
@@ -57,24 +57,24 @@ export class TUI {
57
57
  };
58
58
  case 'student':
59
59
  return {
60
- primary: chalk.hex('#f59e0b'), // Amber
61
- secondary: chalk.hex('#451a03'),
62
- border: '',
63
- glow: chalk.hex('#fbbf24'),
64
- shadow: chalk.hex('#451a03'),
65
- bg: '#451a03',
66
- icon: '🛡️'
60
+ primary: chalk.hex('#F59E0B'), // Amber
61
+ secondary: chalk.hex('#78350F'),
62
+ border: '',
63
+ glow: chalk.hex('#FBBF24'),
64
+ shadow: chalk.hex('#78350F'),
65
+ bg: '#78350F',
66
+ icon: ''
67
67
  };
68
68
  case 'dev':
69
69
  default:
70
70
  return {
71
- primary: chalk.hex('#06b6d4'), // Cyan
72
- secondary: chalk.hex('#164e63'),
73
- border: '',
74
- glow: chalk.hex('#22d3ee'),
75
- shadow: chalk.hex('#083344'),
76
- bg: '#164e63',
77
- icon: ''
71
+ primary: chalk.hex('#0EA5E9'), // Sky Blue
72
+ secondary: chalk.hex('#0369A1'),
73
+ border: '',
74
+ glow: chalk.hex('#38BDF8'),
75
+ shadow: chalk.hex('#0C4A6E'),
76
+ bg: '#0C4A6E',
77
+ icon: ''
78
78
  };
79
79
  }
80
80
  }
@@ -229,13 +229,12 @@ export class TUI {
229
229
  static drawThinkingBox(agent: string, thought: string) {
230
230
  const width = Math.min(process.stdout.columns || 80, 70);
231
231
  const innerWidth = width - 10;
232
- const starColor = chalk.hex('#6366f1');
233
- const nebulaColor = chalk.hex('#a855f7');
232
+ const theme = this.getModeTheme(this.currentTheme);
233
+ const border = theme.primary;
234
234
 
235
- console.log('\n' + starColor(` . * . ✧ . * . ✧`));
236
- console.log(nebulaColor(` ╭${'─'.repeat(width - 4)}╮`));
237
- console.log(nebulaColor(' ') + nebulaColor.bold(`[ ${agent} is deliberating... ]`).padEnd(width - 6) + nebulaColor(''));
238
- console.log(nebulaColor(' ├' + '╌'.repeat(width - 4) + '┤'));
235
+ console.log('\n' + border(` ┌${'─'.repeat(width - 4)}┐`));
236
+ console.log(border(' ') + chalk.bold.white(`[ ${agent} ANALYZING ]`).padEnd(width - 6) + border(' │'));
237
+ console.log(border(' ' + '─'.repeat(width - 4) + ''));
239
238
 
240
239
  const words = thought.split(' ');
241
240
  let currentLine = '';
@@ -243,14 +242,13 @@ export class TUI {
243
242
  if ((currentLine + ' ' + word).trim().length <= innerWidth) {
244
243
  currentLine = currentLine ? currentLine + ' ' + word : word;
245
244
  } else {
246
- if (currentLine) console.log(nebulaColor(' ') + chalk.bold.white(currentLine.padEnd(innerWidth)) + nebulaColor(' '));
245
+ if (currentLine) console.log(border('') + chalk.gray(currentLine.padEnd(innerWidth)) + border(''));
247
246
  currentLine = word;
248
247
  }
249
248
  });
250
- if (currentLine) console.log(nebulaColor(' ') + chalk.bold.white(currentLine.padEnd(innerWidth)) + nebulaColor(' '));
249
+ if (currentLine) console.log(border('') + chalk.gray(currentLine.padEnd(innerWidth)) + border(''));
251
250
 
252
- console.log(nebulaColor(` ╰${'─'.repeat(width - 4)}╯`));
253
- console.log(starColor(` * . ✧ . * . ✧ . *`));
251
+ console.log(border(` └${'─'.repeat(width - 4)}┘`));
254
252
  }
255
253
 
256
254
  /**
@@ -441,17 +439,14 @@ export class TUI {
441
439
  }
442
440
 
443
441
  /**
444
- * Draw a premium header for orchestrator messages
442
+ * Draw a professional header for orchestrator messages
445
443
  */
446
444
  static drawPremiumHeader(agent: string, icon: string, color: (s: string) => string) {
447
445
  const theme = this.getModeTheme(this.currentTheme);
448
446
  const width = 76;
447
+ const primary = theme.primary;
449
448
 
450
- console.log('\n' + theme.shadow(`${theme.border.repeat(width / theme.border.length)}`));
451
- const header = ` ${icon} ${agent.toUpperCase()} `;
452
- const hPad = Math.max(0, width - 8 - header.length);
453
- console.log(theme.primary(` ${theme.border} `) + chalk.bgHex(theme.bg).white.bold(header) + theme.secondary(' '.repeat(hPad)) + theme.primary(` ${theme.border}`));
454
- console.log(theme.shadow(`${theme.border.repeat(width / theme.border.length)}`));
449
+ console.log('\n' + primary(` ┌─ ${icon} ${agent.toUpperCase()} ${'─'.repeat(width - 8 - agent.length - icon.length)}┐`));
455
450
  }
456
451
 
457
452
  /**
@@ -498,7 +493,7 @@ export class TUI {
498
493
  * Draw a message when Ajay Vai wakes up
499
494
  */
500
495
  static drawWakeUpMessage() {
501
- const width = Math.min(process.stdout.columns || 80, 76);
496
+ process.stdout.write('\x1b[K');
502
497
  const orange = chalk.hex('#f97316');
503
498
  console.log('\n' + orange.bold(' 🌅 [AJAY VAI WOKE UP!]'));
504
499
  this.drawAjayDialogue("oh shit i slept again sorry bros...");
@@ -660,9 +655,9 @@ export class TUI {
660
655
  */
661
656
  static log(message: string) {
662
657
  if (this.currentTheme === 'augov') {
663
- console.log(chalk.gray(` ║ ${message.replace('[]', '🇦🇺')}`));
658
+ console.log(chalk.gray(` ║ ${message.replace('[]', '🇦🇺')}`));
664
659
  } else {
665
- console.log(chalk.gray(` [] ${message}`));
660
+ console.log(chalk.gray(` [] ${message}`));
666
661
  }
667
662
  }
668
663
 
@@ -700,9 +695,9 @@ export class TUI {
700
695
  // Row 3
701
696
  console.log(` ${chalk.hex('#ec4899')('3.')} ${chalk.hex('#10b981')('Local PII Redaction: Active.').padEnd(38)} ${chalk.gray('God-Mode Research: Injecting scanners...')}`);
702
697
  // Row 4
703
- console.log(` ${chalk.hex('#ec4899')('4.')} ${chalk.hex('#f59e0b')('Adhering to 8 Australia AI Ethics Principles.').padEnd(36)} ${chalk.cyan('🔍 [Deep Scan] Mapping topology...')}`);
698
+ console.log(` ${chalk.hex('#ec4899')('4.')} ${chalk.hex('#10b981')('Adhering to 8 Australia AI Ethics Principles.').padEnd(36)} ${chalk.cyan(' [DEEP_SCAN] Mapping topology...')}`);
704
699
  // Row 5
705
- console.log(` ${chalk.hex('#ec4899')('5.')} ${chalk.white('Session Active. Awaiting validated input.').padEnd(36)} ${chalk.yellow('🔥 [Knowledge Graph] Extracted 12 nodes.')}`);
700
+ console.log(` ${chalk.hex('#ec4899')('5.')} ${chalk.white('Session Active. Awaiting validated input.').padEnd(36)} ${chalk.yellow(' [KNOWLEDGE_GRAPH] Extracted 12 nodes.')}`);
706
701
 
707
702
  console.log('\n');
708
703
  }
@@ -718,10 +713,10 @@ export class TUI {
718
713
  this.drawPremiumDevLogo();
719
714
 
720
715
  console.log(chalk.gray(`\n Tips for getting started:`));
721
- console.log(chalk.gray(` 1. Initialize MATEX "Bro-Swarm" and analyze repository structure.`));
722
- console.log(chalk.gray(` 2. Monitor Workspace... and specify a request brother.`));
723
- console.log(chalk.gray(` 3. Index the God-Mode Research paths for deepest insights.`));
724
- console.log(chalk.gray(` 4. Extracted [Knowledge Graph] nodes are your semantic guide.\n`));
716
+ console.log(chalk.gray(` 1. Initialize MATEX "Swarm" and analyze repository structure.`));
717
+ console.log(chalk.gray(` 2. Monitor Workspace and specify a request.`));
718
+ console.log(chalk.gray(` 3. Index the Research paths for deepest insights.`));
719
+ console.log(chalk.gray(` 4. [KNOWLEDGE_GRAPH] nodes are your semantic guide.\n`));
725
720
 
726
721
  // 2. Dual Pane Layout
727
722
  const width = 76;
@@ -736,8 +731,8 @@ export class TUI {
736
731
 
737
732
  console.log(gray(` │ `) + chalk.white(`Status: `) + chalk.hex('#10b981')(`Monitoring Workspace...`).padEnd(width - 14) + gray(` │`));
738
733
  console.log(gray(` │ `) + chalk.white(`Model: `) + chalk.hex('#10b981')(model).padEnd(width - 14) + gray(` │`));
739
- console.log(gray(` │ `) + chalk.cyan(`[Deep Scan] `) + chalk.gray(`Mapping topology...`).padEnd(width - 20) + gray(` │`));
740
- console.log(gray(` │ `) + chalk.hex('#f59e0b')(`[Knowledge Graph] `) + chalk.gray(`Extracted 12 semantic nodes from source.`).padEnd(width - 24) + gray(` │`));
734
+ console.log(gray(` │ `) + chalk.cyan(`[DEEP_SCAN] `) + chalk.gray(`Mapping topology...`).padEnd(width - 20) + gray(` │`));
735
+ console.log(gray(` │ `) + chalk.hex('#f59e0b')(`[KNOWLEDGE_GRAPH] `) + chalk.gray(`Extracted 12 nodes.`).padEnd(width - 24) + gray(` │`));
741
736
 
742
737
  console.log(gray(` └${'─'.repeat(width - 4)}┘\n`));
743
738
  }