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/dist/commands/dev.js +3 -3
- package/dist/commands/dev.js.map +1 -1
- package/dist/prompts/system-prompts.js +7 -7
- package/dist/prompts/system-prompts.js.map +1 -1
- package/dist/session/agent-session.js +2 -2
- package/dist/session/agent-session.js.map +1 -1
- package/dist/utils/agent-orchestrator.js +21 -21
- package/dist/utils/agent-orchestrator.js.map +1 -1
- package/dist/utils/command-executor.d.ts.map +1 -1
- package/dist/utils/command-executor.js +3 -6
- package/dist/utils/command-executor.js.map +1 -1
- package/dist/utils/tui.d.ts +1 -1
- package/dist/utils/tui.d.ts.map +1 -1
- package/dist/utils/tui.js +43 -48
- package/dist/utils/tui.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/dev.ts +3 -3
- package/src/prompts/system-prompts.ts +7 -7
- package/src/session/agent-session.ts +2 -2
- package/src/utils/agent-orchestrator.ts +21 -21
- package/src/utils/command-executor.ts +3 -6
- package/src/utils/tui.ts +43 -48
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('#
|
|
41
|
-
secondary: chalk.hex('#
|
|
42
|
-
border: '
|
|
43
|
-
glow: chalk.hex('#
|
|
44
|
-
shadow: chalk.hex('#
|
|
45
|
-
bg: '#
|
|
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('#
|
|
61
|
-
secondary: chalk.hex('#
|
|
62
|
-
border: '
|
|
63
|
-
glow: chalk.hex('#
|
|
64
|
-
shadow: chalk.hex('#
|
|
65
|
-
bg: '#
|
|
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('#
|
|
72
|
-
secondary: chalk.hex('#
|
|
73
|
-
border: '
|
|
74
|
-
glow: chalk.hex('#
|
|
75
|
-
shadow: chalk.hex('#
|
|
76
|
-
bg: '#
|
|
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
|
|
233
|
-
const
|
|
232
|
+
const theme = this.getModeTheme(this.currentTheme);
|
|
233
|
+
const border = theme.primary;
|
|
234
234
|
|
|
235
|
-
console.log('\n' +
|
|
236
|
-
console.log(
|
|
237
|
-
console.log(
|
|
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(
|
|
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(
|
|
249
|
+
if (currentLine) console.log(border(' │ ') + chalk.gray(currentLine.padEnd(innerWidth)) + border(' │'));
|
|
251
250
|
|
|
252
|
-
console.log(
|
|
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
|
|
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' +
|
|
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
|
-
|
|
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(` [
|
|
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('#
|
|
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('
|
|
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 "
|
|
722
|
-
console.log(chalk.gray(` 2. Monitor Workspace
|
|
723
|
-
console.log(chalk.gray(` 3. Index the
|
|
724
|
-
console.log(chalk.gray(` 4.
|
|
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(`[
|
|
740
|
-
console.log(gray(` │ `) + chalk.hex('#f59e0b')(`[
|
|
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
|
}
|