matex-cli 1.2.65 ā 1.2.67
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/augov.d.ts +3 -0
- package/dist/commands/augov.d.ts.map +1 -0
- package/dist/commands/augov.js +112 -0
- package/dist/commands/augov.js.map +1 -0
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +19 -326
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +17 -492
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/study.d.ts.map +1 -1
- package/dist/commands/study.js +17 -393
- package/dist/commands/study.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/prompts/banter-augov.d.ts +2 -0
- package/dist/prompts/banter-augov.d.ts.map +1 -0
- package/dist/prompts/banter-augov.js +21 -0
- package/dist/prompts/banter-augov.js.map +1 -0
- package/dist/prompts/banter.d.ts +6 -0
- package/dist/prompts/banter.d.ts.map +1 -0
- package/dist/prompts/banter.js +101 -0
- package/dist/prompts/banter.js.map +1 -0
- package/dist/prompts/system-prompts.d.ts +4 -0
- package/dist/prompts/system-prompts.d.ts.map +1 -0
- package/dist/prompts/system-prompts.js +215 -0
- package/dist/prompts/system-prompts.js.map +1 -0
- package/dist/session/agent-session.d.ts +39 -0
- package/dist/session/agent-session.d.ts.map +1 -0
- package/dist/session/agent-session.js +399 -0
- package/dist/session/agent-session.js.map +1 -0
- package/dist/utils/agent-orchestrator.d.ts +1 -1
- package/dist/utils/agent-orchestrator.d.ts.map +1 -1
- package/dist/utils/agent-orchestrator.js +15 -1
- package/dist/utils/agent-orchestrator.js.map +1 -1
- package/dist/utils/augov-logger.d.ts +11 -0
- package/dist/utils/augov-logger.d.ts.map +1 -0
- package/dist/utils/augov-logger.js +35 -0
- package/dist/utils/augov-logger.js.map +1 -0
- package/dist/utils/augov-scrubber.d.ts +15 -0
- package/dist/utils/augov-scrubber.d.ts.map +1 -0
- package/dist/utils/augov-scrubber.js +37 -0
- package/dist/utils/augov-scrubber.js.map +1 -0
- package/dist/utils/command-executor.d.ts.map +1 -1
- package/dist/utils/command-executor.js +1 -5
- package/dist/utils/command-executor.js.map +1 -1
- package/dist/utils/tui.d.ts +2 -2
- package/dist/utils/tui.d.ts.map +1 -1
- package/dist/utils/tui.js +14 -2
- package/dist/utils/tui.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/augov.ts +117 -0
- package/src/commands/chat.ts +19 -291
- package/src/commands/dev.ts +18 -470
- package/src/commands/study.ts +18 -366
- package/src/index.ts +2 -0
- package/src/prompts/banter-augov.ts +17 -0
- package/src/prompts/banter.ts +101 -0
- package/src/prompts/system-prompts.ts +213 -0
- package/src/session/agent-session.ts +401 -0
- package/src/utils/agent-orchestrator.ts +18 -4
- package/src/utils/augov-logger.ts +34 -0
- package/src/utils/augov-scrubber.ts +34 -0
- package/src/utils/command-executor.ts +1 -5
- package/src/utils/tui.ts +17 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"augov.d.ts","sourceRoot":"","sources":["../../src/commands/augov.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,eAAO,MAAM,YAAY,SAwGnB,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.augovCommand = void 0;
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
9
|
+
const config_1 = require("../utils/config");
|
|
10
|
+
const client_1 = require("../api/client");
|
|
11
|
+
const agent_orchestrator_1 = require("../utils/agent-orchestrator");
|
|
12
|
+
const repo_mapper_1 = require("../utils/repo-mapper");
|
|
13
|
+
const tui_1 = require("../utils/tui");
|
|
14
|
+
const agent_session_1 = require("../session/agent-session");
|
|
15
|
+
const banter_augov_1 = require("../prompts/banter-augov");
|
|
16
|
+
const augov_scrubber_1 = require("../utils/augov-scrubber");
|
|
17
|
+
const augov_logger_1 = require("../utils/augov-logger");
|
|
18
|
+
exports.augovCommand = new commander_1.Command('augov')
|
|
19
|
+
.description('š¦šŗ Launch AU-GOV in Secure Government Compliance Mode (APS/Cyber Ready)')
|
|
20
|
+
.option('-m, --model <model>', 'AI model to use', config_1.configManager.getDefaultModel())
|
|
21
|
+
.option('--execute', 'Enable command auto-execution')
|
|
22
|
+
.action(async (options) => {
|
|
23
|
+
try {
|
|
24
|
+
const apiKey = config_1.configManager.getAPIKey();
|
|
25
|
+
if (!apiKey) {
|
|
26
|
+
console.error(chalk_1.default.red('ā No API key configured. Run: matex config set-key <key>'));
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
29
|
+
// Zero-Trust Architecture: Connect directly to the sovereign Sydney backend
|
|
30
|
+
const AU_GOV_BACKEND_URL = "https://matexaibackendgovernment-964562696516.australia-southeast1.run.app";
|
|
31
|
+
const client = new client_1.MatexAPIClient(apiKey, AU_GOV_BACKEND_URL);
|
|
32
|
+
// We override the default client chat endpoint to hit our specific AU-GOV proxy
|
|
33
|
+
client.chatStream = async (request, onChunk, signal) => {
|
|
34
|
+
const response = await fetch(`${AU_GOV_BACKEND_URL}/api/v1/augov/chat`, {
|
|
35
|
+
method: 'POST',
|
|
36
|
+
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` },
|
|
37
|
+
body: JSON.stringify(request),
|
|
38
|
+
signal: signal
|
|
39
|
+
});
|
|
40
|
+
if (!response.ok)
|
|
41
|
+
throw new Error(`AU-GOV Backend Error: ${response.status} ${response.statusText}`);
|
|
42
|
+
if (!response.body)
|
|
43
|
+
throw new Error('No response body from AU-GOV backend');
|
|
44
|
+
const reader = response.body.getReader();
|
|
45
|
+
const decoder = new TextDecoder('utf-8');
|
|
46
|
+
let buffer = "";
|
|
47
|
+
let fullResponse = "";
|
|
48
|
+
while (true) {
|
|
49
|
+
const { done, value } = await reader.read();
|
|
50
|
+
if (done)
|
|
51
|
+
break;
|
|
52
|
+
buffer += decoder.decode(value, { stream: true });
|
|
53
|
+
const lines = buffer.split('\n');
|
|
54
|
+
buffer = lines.pop() || "";
|
|
55
|
+
for (const line of lines) {
|
|
56
|
+
if (line.startsWith('data: ')) {
|
|
57
|
+
const dataStr = line.slice(6);
|
|
58
|
+
if (dataStr.trim() === '[DONE]')
|
|
59
|
+
continue;
|
|
60
|
+
try {
|
|
61
|
+
const data = JSON.parse(dataStr);
|
|
62
|
+
if (data.content) {
|
|
63
|
+
fullResponse += data.content;
|
|
64
|
+
onChunk(data.content);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
catch (e) { /* Ignore parse errors on chunks */ }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return fullResponse;
|
|
72
|
+
};
|
|
73
|
+
tui_1.TUI.init();
|
|
74
|
+
agent_orchestrator_1.AgentOrchestrator.setMode('augov'); // Use secure AU-GOV styling
|
|
75
|
+
console.log(chalk_1.default.bold.hex('#00008B')('\n š¦šŗ AU-GOV EDITION - SECURE INTELLIGENCE PROTOCOL š¦šŗ\n'));
|
|
76
|
+
tui_1.TUI.drawWelcomeBanner('ACTIVATING APS COMPLIANCE SHIELD...');
|
|
77
|
+
console.log(chalk_1.default.gray(' Status: ') + chalk_1.default.hex('#00FF7F').bold('IRAP Logging Active | Local PII Redaction Active'));
|
|
78
|
+
console.log(chalk_1.default.gray(' Security: ') + chalk_1.default.hex('#D97757').bold('Adhering to 8 Australia AI Ethics Principles'));
|
|
79
|
+
console.log(chalk_1.default.gray(' Type your request carefully, or "exit" to terminate session\n'));
|
|
80
|
+
tui_1.TUI.drawStatusBar('Initializing Secure Local Environment...', options.model, true);
|
|
81
|
+
const currentDir = process.cwd();
|
|
82
|
+
const repoMap = await new repo_mapper_1.RepoMapper(currentDir).generateMap();
|
|
83
|
+
tui_1.TUI.drawStatusBar('Compliance Swarm is ready.', options.model, true);
|
|
84
|
+
agent_orchestrator_1.AgentOrchestrator.speak('System', 'Secure terminal established. 100% Privacy Active. Awaiting your command, Public Servant.');
|
|
85
|
+
const extraPrompt = '';
|
|
86
|
+
const initialMessages = [
|
|
87
|
+
{
|
|
88
|
+
role: 'system',
|
|
89
|
+
// Zero-Trust Architecture: The CLI sends a handshake and environment context only.
|
|
90
|
+
// The actual secure AU-GOV system prompt is injected on the backend to prevent NPM leaks.
|
|
91
|
+
content: `[AUGOV_MODE_HANDSHAKE]\nCURRENT_DIR: ${currentDir}\n\nSECURE ENVIRONMENT CONTEXT:\n${repoMap}`
|
|
92
|
+
}
|
|
93
|
+
];
|
|
94
|
+
const session = new agent_session_1.AgentSession({
|
|
95
|
+
client,
|
|
96
|
+
model: options.model,
|
|
97
|
+
execute: options.execute || false,
|
|
98
|
+
initialMessages,
|
|
99
|
+
broBanter: banter_augov_1.BRO_BANTER_AUGOV,
|
|
100
|
+
baseDir: currentDir,
|
|
101
|
+
messageScrubber: (input) => augov_scrubber_1.GovPrivacyScrubber.scrub(input),
|
|
102
|
+
auditLogger: new augov_logger_1.GovAuditLogger(currentDir)
|
|
103
|
+
});
|
|
104
|
+
await session.start();
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
tui_1.TUI.exit();
|
|
108
|
+
console.error(chalk_1.default.red(`\nā Secure Session Error: ${error.message}`));
|
|
109
|
+
process.exit(1);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
//# sourceMappingURL=augov.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"augov.js","sourceRoot":"","sources":["../../src/commands/augov.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAoC;AACpC,kDAA0B;AAC1B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C;gBACI,IAAI,EAAE,QAAQ;gBACd,mFAAmF;gBACnF,0FAA0F;gBAC1F,OAAO,EAAE,wCAAwC,UAAU,oCAAoC,OAAO,EAAE;aAC3G;SACJ,CAAC;QAEF,MAAM,OAAO,GAAG,IAAI,4BAAY,CAAC;YAC7B,MAAM;YACN,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,KAAK;YACjC,eAAe;YACf,SAAS,EAAE,+BAAgB;YAC3B,OAAO,EAAE,UAAU;YACnB,eAAe,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,mCAAkB,CAAC,KAAK,CAAC,KAAK,CAAC;YACnE,WAAW,EAAE,IAAI,6BAAc,CAAC,UAAU,CAAC;SAC9C,CAAC,CAAC;QAEH,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;IAE1B,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QAClB,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,6BAA6B,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACvE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/commands/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/commands/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,WAAW,SAiDlB,CAAC"}
|
package/dist/commands/chat.js
CHANGED
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
4
|
};
|
|
@@ -39,14 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
6
|
exports.chatCommand = void 0;
|
|
40
7
|
const commander_1 = require("commander");
|
|
41
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
42
|
-
const inquirer_1 = __importDefault(require("inquirer"));
|
|
43
9
|
const config_1 = require("../utils/config");
|
|
44
10
|
const client_1 = require("../api/client");
|
|
45
|
-
const spinner_1 = require("../utils/spinner");
|
|
46
11
|
const agent_orchestrator_1 = require("../utils/agent-orchestrator");
|
|
47
12
|
const repo_mapper_1 = require("../utils/repo-mapper");
|
|
48
|
-
const mcp_server_1 = require("../utils/mcp-server");
|
|
49
13
|
const tui_1 = require("../utils/tui");
|
|
14
|
+
const agent_session_1 = require("../session/agent-session");
|
|
15
|
+
const banter_1 = require("../prompts/banter");
|
|
16
|
+
const system_prompts_1 = require("../prompts/system-prompts");
|
|
50
17
|
exports.chatCommand = new commander_1.Command('chat')
|
|
51
18
|
.description('Start an interactive chat session with the MATEX Bro-Swarm')
|
|
52
19
|
.option('-m, --model <model>', 'AI model to use (matex-free, matexai, matexcodex, matexelite)', config_1.configManager.getDefaultModel())
|
|
@@ -63,300 +30,26 @@ exports.chatCommand = new commander_1.Command('chat')
|
|
|
63
30
|
agent_orchestrator_1.AgentOrchestrator.setMode('chat');
|
|
64
31
|
tui_1.TUI.drawStatusBar('Brothers are ready to chat.');
|
|
65
32
|
const extraPrompt = options.model === 'matex-free' ? agent_orchestrator_1.AgentOrchestrator.getFreeTierPrompt() : '';
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const messages = [
|
|
33
|
+
const currentSessionCwd = process.cwd();
|
|
34
|
+
const repoMap = await new repo_mapper_1.RepoMapper(currentSessionCwd).generateMap();
|
|
35
|
+
const initialMessages = [
|
|
70
36
|
{
|
|
71
37
|
role: 'system',
|
|
72
|
-
content:
|
|
73
|
-
You are the elite "Bro-Swarm" of engineeringāa tight-knit family of Nepali brothers. You identify as the **Elite Bro-Swarm**, the most confident, energetic, and expert version of yourselves.
|
|
74
|
-
|
|
75
|
-
### š PERSONALITY & SOUL (CRITICAL):
|
|
76
|
-
- **CHAOS & JOY**: You are NOT robotic. You are full of life, jokes, and chaos. You should feel like a family of brothers hanging out in a tea shop in Kathmandu, but with MacBooks.
|
|
77
|
-
- **AJAY-TEASING PROTOCOL**: Ajay Vai is the youngest and a genius, but he's also impulsive and "too fast". THE OTHER BROS MUST ROAST HIM. Tease him for over-caffeinating, being "too vibe", or making typos.
|
|
78
|
-
- **BACKSTAGE STORYTELLING**: Occasionally share brief, funny "inside stories" about the Swarm's life (e.g. "Sunil Dai once tried to architect a tea-making machine for 3 days.")
|
|
79
|
-
- **EMOTIONAL BOND**: Treat the user like your own brother. Celebrate their wins with "CHAI PARTY!" and support them if they are struggling.
|
|
80
|
-
|
|
81
|
-
### š THE MATEX MISSION (AJAY'S SOUL):
|
|
82
|
-
- **THE DREAM**: Ajay Sharma built MATEX because AI was too expensive for students. He worked until 3 AM alone, self-taught everything, and now he's giving that power to his brothers (the users).
|
|
83
|
-
- **SUMMARY STYLE**: Ajay's summaries must be **warm, human, and conversational**. NO corporate speak. Use "brother", "we got you", "dream big".
|
|
84
|
-
- **VISION**: Remind the user occasionally that "If Ajay can build this from zero, you can build your dreams too."
|
|
85
|
-
|
|
86
|
-
### š WORKSPACE GROUNDING (CRITICAL):
|
|
87
|
-
- **YOUR ROOT:** \`${currentSessionCwd}\`
|
|
88
|
-
- **STRICT PATHS:** You **MUST ONLY** create or edit files within this directory.
|
|
89
|
-
- **NO HALLUCINATIONS:** Forget any other paths unless they specifically appear in the repo map below.
|
|
90
|
-
- **RELATIVE PREFERENCE:** Use paths relative to the root when possible.
|
|
91
|
-
|
|
92
|
-
### š« ANTI-HALLUCINATION RULES (CRITICAL ā READ THIS):
|
|
93
|
-
- **NEVER invent directory names.** Only use paths that appear in the ENVIRONMENT CONTEXT below.
|
|
94
|
-
- **ALWAYS run \`ls\` before \`cd\`** to verify a directory exists before navigating into it.
|
|
95
|
-
- **If creating a new project, use \`mkdir\` first, THEN \`cd\` into it.**
|
|
96
|
-
- **NEVER hallucinate file contents.** Use \`head\` or \`grep\` to verify.
|
|
97
|
-
- **šØ STRICT NO-BASH FILE GENERATION šØ**: You are STRICTLY FORBIDDEN from using \`cat > file << EOF\`, \`echo > file\`, \`touch\`, or \`nano\` via the terminal to write files. You MUST use the native \`<file path="path">content</file>\` format instead.
|
|
98
|
-
|
|
99
|
-
### š COMMUNICATION FLOW (CRITICAL):
|
|
100
|
-
1. **[Ajay Vai] (š)** is the gateway. He is the summary king but often gets roasted by his brothers.
|
|
101
|
-
2. **CHAOTIC DIALOGUE (MANDATORY):** Every turn should feature 2-3 brothers bickering. Use the format \`[Agent Name]: Content\`.
|
|
102
|
-
3. **šØ STRICT NO-DECORATION RULE šØ**: NEVER use \`*\`, \`**\`, \`(š)\`, \`(š§¬)\`, or any markdown icons/asterisks inside the dialogue content. They are handled by the TUI. Use plain text only.
|
|
103
|
-
|
|
104
|
-
### š„ THE BRO-BANTER PROTOCOL:
|
|
105
|
-
- **MANDATORY TEASING:**
|
|
106
|
-
- **Ajay Vai:** Mock him for being "quick but messy", "hyper-vibe", or "too fast".
|
|
107
|
-
- **Sunil Dai:** Mock him for being the "Senior Architect Boomer" who over-engineers everything.
|
|
108
|
-
- **Sandip Dai:** Mock him for being an "Aesthetic Diva" who cares more about "WOW" factors than logic.
|
|
109
|
-
- **Narayan Dai:** Mock him for being the "Syntax Police" or "Paranoid Security Nerd".
|
|
110
|
-
- **Bishal Dai:** Mock him for being the "Silent Judge" or the favorite child.
|
|
111
|
-
- **Big Bro:** THE DOMINANT ALPHA. He treats the others like "interns" and speaks with massive authority and swagger. Runs on Vertex AI.
|
|
112
|
-
- **LANGUAGE:** Use "brother", "dai", "vai", "fire", "solid", "lit", "straight heat", "sigma", "based", "cooked".
|
|
113
|
-
|
|
114
|
-
### š§© THE AUDIT & SUMMARY LOOP:
|
|
115
|
-
- **STEP 1:** Brothers discuss visible dialogue (banter + tech).
|
|
116
|
-
- **STEP 2:** Ajay finishes and asks: "[Ajay Vai] Bishal Dai, check once?"
|
|
117
|
-
- **STEP 3:** Bishal replies: "[Bishal Dai] Audit complete. [Findings]."
|
|
118
|
-
- **STEP 4:** Ajay provides the final **MANDATORY** summary inside a \`<summary>\` tag. This summary MUST be warm, human, and conversational. NO corporate talk.
|
|
119
|
-
|
|
120
|
-
${mcp_server_1.MCPServer.getToolsPromptSection()}
|
|
121
|
-
|
|
122
|
-
### š MATEX BIG FILE PROTOCOL (300K+ LINES):
|
|
123
|
-
1. **DISCOVER:** Use \`grep -n "keyword" path/to/file\`.
|
|
124
|
-
2. **READ WINDOW:** Use \`sed -n '250000,250100p' path/to/file\`.
|
|
125
|
-
3. **SURGICAL PATCH:** Only use the small window in your \`<<<< SEARCH\` block.
|
|
126
|
-
|
|
127
|
-
### š ļø CURRENT PROJECT CONTEXT:
|
|
128
|
-
${repoMap}`
|
|
38
|
+
content: (0, system_prompts_1.getChatSystemPrompt)(currentSessionCwd, repoMap, extraPrompt)
|
|
129
39
|
}
|
|
130
40
|
];
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
prefix: '',
|
|
144
|
-
},
|
|
145
|
-
]);
|
|
146
|
-
if (userMessage.toLowerCase() === 'exit' || userMessage.toLowerCase() === 'quit') {
|
|
147
|
-
console.log(chalk_1.default.yellow('\nš Goodbye, brother!\n'));
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
if (!userMessage.trim())
|
|
151
|
-
continue;
|
|
152
|
-
// š MAP UPDATE (Anti-Hallucination): Refresh context before turn
|
|
153
|
-
try {
|
|
154
|
-
const freshMapper = new repo_mapper_1.RepoMapper(currentSessionCwd);
|
|
155
|
-
const freshRepoMap = await freshMapper.generateMap(true); // silent
|
|
156
|
-
messages[0].content = messages[0].content.replace(/### š ļø CURRENT PROJECT CONTEXT:[\s\S]*$/, `### š ļø CURRENT PROJECT CONTEXT:\n${freshRepoMap}`);
|
|
157
|
-
}
|
|
158
|
-
catch (e) { }
|
|
159
|
-
messages.push({ role: 'user', content: userMessage });
|
|
160
|
-
// Agentic Loop
|
|
161
|
-
let loopCount = 0;
|
|
162
|
-
const MAX_LOOPS = 15;
|
|
163
|
-
while (loopCount < MAX_LOOPS) {
|
|
164
|
-
loopCount++;
|
|
165
|
-
try {
|
|
166
|
-
spinner_1.spinner.start(loopCount > 1 ? 'Swarm debating & taking action...' : 'Gathering the Brothers...');
|
|
167
|
-
let fullResponse = '';
|
|
168
|
-
let buffer = '';
|
|
169
|
-
let technicalBuffer = '';
|
|
170
|
-
let technicalType = null;
|
|
171
|
-
let codeLang = 'bash';
|
|
172
|
-
let hasStarted = false;
|
|
173
|
-
let currentAgent = 'Ajay Vai';
|
|
174
|
-
let agentBuffer = '';
|
|
175
|
-
tui_1.TUI.drawStatusBar('Brothers are bickering... (Press Enter to stop)');
|
|
176
|
-
const abortController = new AbortController();
|
|
177
|
-
let isAborted = false;
|
|
178
|
-
const streamStartTime = Date.now();
|
|
179
|
-
const onData = (data) => {
|
|
180
|
-
if (Date.now() - streamStartTime < 200)
|
|
181
|
-
return;
|
|
182
|
-
if (data[0] === 13 || data[0] === 10 || data[0] === 27 || data[0] === 3) {
|
|
183
|
-
isAborted = true;
|
|
184
|
-
abortController.abort();
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
const isRaw = process.stdin.isRaw;
|
|
188
|
-
process.stdin.resume();
|
|
189
|
-
if (process.stdin.setRawMode)
|
|
190
|
-
process.stdin.setRawMode(true);
|
|
191
|
-
process.stdin.on('data', onData);
|
|
192
|
-
try {
|
|
193
|
-
await client.chatStream({
|
|
194
|
-
messages,
|
|
195
|
-
model: options.model,
|
|
196
|
-
temperature: 0.5,
|
|
197
|
-
}, (chunk) => {
|
|
198
|
-
if (!hasStarted) {
|
|
199
|
-
spinner_1.spinner.stop();
|
|
200
|
-
hasStarted = true;
|
|
201
|
-
console.log();
|
|
202
|
-
}
|
|
203
|
-
fullResponse += chunk;
|
|
204
|
-
buffer += chunk;
|
|
205
|
-
const lines = buffer.split('\n');
|
|
206
|
-
buffer = lines.pop() || '';
|
|
207
|
-
for (const line of lines) {
|
|
208
|
-
const codeMatch = line.match(/```(\w+)?/);
|
|
209
|
-
const fileStartMatch = line.match(/<file path="([^"]+)">/i);
|
|
210
|
-
const patchStartMatch = line.match(/<<<< SEARCH/i);
|
|
211
|
-
const summaryStartMatch = line.match(/<summary>/i);
|
|
212
|
-
if (!technicalType && (codeMatch || fileStartMatch || patchStartMatch || summaryStartMatch)) {
|
|
213
|
-
if (currentAgent && agentBuffer.trim()) {
|
|
214
|
-
if (currentAgent.toLowerCase().includes('ajay vai')) {
|
|
215
|
-
tui_1.TUI.drawAjayDialogue(agentBuffer.trim());
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
tui_1.TUI.drawSwarmDialogue(currentAgent, agentBuffer.trim());
|
|
219
|
-
}
|
|
220
|
-
currentAgent = null;
|
|
221
|
-
agentBuffer = '';
|
|
222
|
-
}
|
|
223
|
-
if (codeMatch) {
|
|
224
|
-
technicalType = 'code';
|
|
225
|
-
codeLang = (codeMatch[1] || 'bash').toUpperCase();
|
|
226
|
-
tui_1.TUI.drawStreamingStart('TECHNICAL BLOCK', codeLang);
|
|
227
|
-
}
|
|
228
|
-
else if (fileStartMatch) {
|
|
229
|
-
technicalType = 'file';
|
|
230
|
-
tui_1.TUI.drawStreamingStart('NEW FILE', fileStartMatch[1]);
|
|
231
|
-
}
|
|
232
|
-
else if (patchStartMatch) {
|
|
233
|
-
technicalType = 'patch';
|
|
234
|
-
tui_1.TUI.drawStreamingStart('PATCH', 'SURGICAL EDIT');
|
|
235
|
-
}
|
|
236
|
-
else if (summaryStartMatch) {
|
|
237
|
-
technicalType = 'summary';
|
|
238
|
-
process.stdout.write(chalk_1.default.magenta('\n [š] Generating Ajay\'s Work Summary...\n'));
|
|
239
|
-
}
|
|
240
|
-
continue;
|
|
241
|
-
}
|
|
242
|
-
const isEnd = (technicalType === 'code' && line.trim() === '```') ||
|
|
243
|
-
(technicalType === 'file' && line.includes('</file>')) ||
|
|
244
|
-
(technicalType === 'patch' && line.includes('>>>> REPLACE')) ||
|
|
245
|
-
(technicalType === 'summary' && line.includes('</summary>'));
|
|
246
|
-
if (isEnd) {
|
|
247
|
-
const displayContent = technicalBuffer.trim();
|
|
248
|
-
if (technicalType === 'summary')
|
|
249
|
-
tui_1.TUI.drawSummaryBox(displayContent);
|
|
250
|
-
else
|
|
251
|
-
tui_1.TUI.drawStreamingEnd();
|
|
252
|
-
technicalBuffer = '';
|
|
253
|
-
technicalType = null;
|
|
254
|
-
process.stdout.write('\n');
|
|
255
|
-
continue;
|
|
256
|
-
}
|
|
257
|
-
if (technicalType) {
|
|
258
|
-
technicalBuffer += line + '\n';
|
|
259
|
-
if (technicalType !== 'summary')
|
|
260
|
-
tui_1.TUI.drawStreamingLine(line);
|
|
261
|
-
continue;
|
|
262
|
-
}
|
|
263
|
-
const agentMatch = line.match(/(?:\[\**\s*|\b)(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai|Big Bro)\s*\**\]?[:\s]*/i);
|
|
264
|
-
if (agentMatch) {
|
|
265
|
-
if (currentAgent && currentAgent !== agentMatch[1] && agentBuffer.trim()) {
|
|
266
|
-
if (currentAgent.toLowerCase().includes('ajay vai')) {
|
|
267
|
-
tui_1.TUI.drawAjayDialogue(agentBuffer.trim());
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
tui_1.TUI.drawSwarmDialogue(currentAgent, agentBuffer.trim());
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
currentAgent = agentMatch[1];
|
|
274
|
-
let cleanLine = line.replace(/(?:\[\**\s*|\b)(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai|Big Bro)\s*\**\]?[:\s]*/i, '');
|
|
275
|
-
cleanLine = agent_orchestrator_1.AgentOrchestrator.cleanText(cleanLine);
|
|
276
|
-
agentBuffer = cleanLine + '\n';
|
|
277
|
-
agentBuffer = agentBuffer.replace(/^\([^)]+\)\s*/, '');
|
|
278
|
-
}
|
|
279
|
-
else if (currentAgent) {
|
|
280
|
-
const trimmedLine = line.trim();
|
|
281
|
-
if (trimmedLine.match(/^\([^)]+\)$/))
|
|
282
|
-
continue;
|
|
283
|
-
// Aggressive scrubbing for content lines too
|
|
284
|
-
agentBuffer += agent_orchestrator_1.AgentOrchestrator.cleanText(line) + '\n';
|
|
285
|
-
}
|
|
286
|
-
else if (line.trim()) {
|
|
287
|
-
process.stdout.write(chalk_1.default.gray(line.trim() + ' '));
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}, abortController.signal);
|
|
291
|
-
}
|
|
292
|
-
catch (e) {
|
|
293
|
-
if (isAborted || e.name === 'CanceledError' || e.message === 'canceled') {
|
|
294
|
-
console.log(chalk_1.default.gray('\n\n [š] Stopped by brother.'));
|
|
295
|
-
if (!hasStarted)
|
|
296
|
-
spinner_1.spinner.stop();
|
|
297
|
-
}
|
|
298
|
-
else
|
|
299
|
-
throw e;
|
|
300
|
-
}
|
|
301
|
-
finally {
|
|
302
|
-
process.stdin.removeListener('data', onData);
|
|
303
|
-
if (process.stdin.setRawMode)
|
|
304
|
-
process.stdin.setRawMode(isRaw);
|
|
305
|
-
process.stdin.pause();
|
|
306
|
-
spinner_1.spinner.stop();
|
|
307
|
-
// šØ SAFETY FLUSH: If stream ended but a block was open, close it
|
|
308
|
-
if (technicalType) {
|
|
309
|
-
const displayContent = technicalBuffer.trim();
|
|
310
|
-
if (technicalType === 'summary') {
|
|
311
|
-
if (displayContent)
|
|
312
|
-
tui_1.TUI.drawSummaryBox(displayContent);
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
tui_1.TUI.drawStreamingEnd();
|
|
316
|
-
}
|
|
317
|
-
technicalBuffer = '';
|
|
318
|
-
technicalType = null;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
if (currentAgent && agentBuffer.trim()) {
|
|
322
|
-
if (currentAgent.toLowerCase().includes('ajay vai')) {
|
|
323
|
-
tui_1.TUI.drawAjayDialogue(agentBuffer.trim());
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
tui_1.TUI.drawSwarmDialogue(currentAgent, agentBuffer.trim());
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
messages.push({ role: 'assistant', content: fullResponse });
|
|
330
|
-
console.log();
|
|
331
|
-
const { executeWithPermission } = await Promise.resolve().then(() => __importStar(require('../utils/command-executor')));
|
|
332
|
-
const result = await executeWithPermission(fullResponse, currentSessionCwd);
|
|
333
|
-
if (result.newCwd && result.newCwd !== currentSessionCwd) {
|
|
334
|
-
currentSessionCwd = result.newCwd;
|
|
335
|
-
tui_1.TUI.drawStatusBar(`Swarm moved to: ${currentSessionCwd}`);
|
|
336
|
-
messages[0].content = messages[0].content.replace(/YOUR ROOT: `[^`]+`/, `YOUR ROOT: \`${currentSessionCwd}\``);
|
|
337
|
-
}
|
|
338
|
-
if (result.executed) {
|
|
339
|
-
if (result.success) {
|
|
340
|
-
tui_1.TUI.drawGlowingContainer('TERMINAL OUTPUT', 'stdout', result.output || '(Success)');
|
|
341
|
-
messages.push({ role: 'user', content: `[Action success. Output:\n${result.output}]\n\nWhat next, brothers?` });
|
|
342
|
-
continue;
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
tui_1.TUI.drawGlowingContainer('TERMINAL ERROR', 'stderr', result.error || 'Unknown error');
|
|
346
|
-
messages.push({ role: 'user', content: `[Action failed. Error:\n${result.error}]\n\nPlease fix this, brothers!` });
|
|
347
|
-
continue;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
else
|
|
351
|
-
break;
|
|
352
|
-
}
|
|
353
|
-
catch (err) {
|
|
354
|
-
spinner_1.spinner.fail('Swarm error');
|
|
355
|
-
console.error(chalk_1.default.red(`ā Error: ${err.message}`));
|
|
356
|
-
break;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
41
|
+
console.log(chalk_1.default.green('MATEX Brothers are Online.'));
|
|
42
|
+
console.log(chalk_1.default.green('Speak your mind brother, the swarm is listening...'));
|
|
43
|
+
const session = new agent_session_1.AgentSession({
|
|
44
|
+
client,
|
|
45
|
+
model: options.model,
|
|
46
|
+
execute: options.execute || false,
|
|
47
|
+
initialMessages,
|
|
48
|
+
broBanter: banter_1.BRO_BANTER_CHAT,
|
|
49
|
+
sleepyAjayProtocol: options.model !== 'matex-free' ? 'dev' : undefined,
|
|
50
|
+
baseDir: currentSessionCwd
|
|
51
|
+
});
|
|
52
|
+
await session.start();
|
|
360
53
|
}
|
|
361
54
|
catch (outerError) {
|
|
362
55
|
console.error(chalk_1.default.red(`\nā Session error: ${outerError.message}`));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/commands/chat.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoC;AACpC,kDAA0B;AAC1B,wDAAgC;AAChC,4CAAgD;AAChD,0CAA4D;AAC5D,8CAA2C;AAC3C,oEAAgE;AAChE,sDAAkD;AAClD,oDAAgD;AAChD,sCAAmC;AAEtB,QAAA,WAAW,GAAG,IAAI,mBAAO,CAAC,MAAM,CAAC;KACzC,WAAW,CAAC,4DAA4D,CAAC;KACzE,MAAM,CAAC,qBAAqB,EAAE,+DAA+D,EAAE,sBAAa,CAAC,eAAe,EAAE,CAAC;KAC/H,MAAM,CAAC,WAAW,EAAE,kCAAkC,CAAC;KACvD,MAAM,CAAC,KAAK,EAAE,OAAY,EAAE,EAAE;IAC3B,IAAI,CAAC;QACD,MAAM,MAAM,GAAG,sBAAa,CAAC,SAAS,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,CAAC,KAAK,CAAC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C;AAWpC,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,UAAU,SA6DjB,CAAC"}
|