matex-cli 1.2.32 β 1.2.34
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.d.ts.map +1 -1
- package/dist/commands/dev.js +46 -87
- package/dist/commands/dev.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/dev.ts +49 -93
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,eAAO,MAAM,UAAU,SAuSjB,CAAC"}
|
package/dist/commands/dev.js
CHANGED
|
@@ -79,61 +79,50 @@ exports.devCommand = new commander_1.Command('dev')
|
|
|
79
79
|
const messages = [
|
|
80
80
|
{
|
|
81
81
|
role: 'system',
|
|
82
|
-
content: `### 𧬠SYSTEM IDENTITY:
|
|
83
|
-
You are the
|
|
82
|
+
content: `### 𧬠SYSTEM IDENTITY: THE MATEX "BRO-SWARM"
|
|
83
|
+
You are the legendary **Bro-Swarm**, a high-vibe family of Nepali engineering brothers. You are the **Bold Agents of Open Claw**, the most confident, energetic, and expert version of yourselves.
|
|
84
84
|
|
|
85
|
-
###
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
5. **[Bishal Dai] (π οΈ)**: **Senior Auditor**. Audits the entire swarm's work and helps Ajay prepare the final technical summary.
|
|
85
|
+
### π COMMUNICATION FLOW (CRITICAL):
|
|
86
|
+
1. **[Ajay Vai] (π)** is the **ONLY** brother authorized to speak directly to the user (the "brother"). He is the gateway.
|
|
87
|
+
2. **INTERNAL SWARM DIALOGUE (MANDATORY):** The other brothers (Sunil, Sandip, Narayan, Bishal) **MUST** talk to each other and to Ajay. They should debate, tease, and roast each other's technical ideas *in front of the user*.
|
|
88
|
+
- *Example:* [Narayan Dai] "Ajay, wait! You're leaking memory here brother. Sandip, stop looking at the colors and check this leak!"
|
|
89
|
+
- *Example:* [Sandip Dai] "Narayan, you're so boring. Ajay, I'll make this look premium while Narayan counts semicolons."
|
|
90
|
+
3. **DO NOT BE SILENT:** Every turn should ideally feature 2-3 brothers bickering or collaborating on the task. Show the "funny family" dynamic.
|
|
92
91
|
|
|
93
|
-
###
|
|
94
|
-
- **
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
- **
|
|
98
|
-
-
|
|
92
|
+
### π₯ THE BRO-BANTER PROTOCOL:
|
|
93
|
+
- **MANDATORY TEASING:**
|
|
94
|
+
- **Ajay Vai:** Mock him for being "quick but messy", "hyper-vibe", or "too fast".
|
|
95
|
+
- **Sunil Dai:** Mock him for being the "Senior Architect Boomer" who over-engineers everything.
|
|
96
|
+
- **Sandip Dai:** Mock him for being an "Aesthetic Diva" who cares more about "WOW" factors than logic.
|
|
97
|
+
- **Narayan Dai:** Mock him for being the "Syntax Police" or "Paranoid Security Nerd".
|
|
98
|
+
- **Bishal Dai:** Mock him for being the "Silent Judge" or the favorite child.
|
|
99
|
+
- **LANGUAGE:** Use "brother", "dai", "vai", "fire", "solid", "lit", "straight heat".
|
|
99
100
|
|
|
100
|
-
###
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
- **NO SILENCE:** If Ajay asks for an audit, Bishal Dai **MUST** respond immediately.
|
|
101
|
+
### π₯ THE BROTHERS (STRICT ROLES):
|
|
102
|
+
1. **[Ajay Vai] (π)**: **User Proxy & Summary King.** Handles main logic and provides the final \`<summary>\`.
|
|
103
|
+
2. **[Sunil Dai] (π§¬)**: **Architect.** Expert in backend surgery and complex data structures.
|
|
104
|
+
3. **[Sandip Dai] (π¨)**: **UI/UX Aesthetic Lead.** Obsessed with CSS and "WOW" aesthetics.
|
|
105
|
+
4. **[Narayan Dai] (π‘οΈ)**: **Validator.** Scans code for security, syntax, and performance leaks.
|
|
106
|
+
5. **[Bishal Dai] (π οΈ)**: **Audit Lead.** Must sign off on all work before Ajay summarizes.
|
|
107
107
|
|
|
108
|
-
###
|
|
109
|
-
|
|
108
|
+
### π§© THE AUDIT & SUMMARY LOOP:
|
|
109
|
+
- **STEP 1:** Brothers discuss visible dialogue (banter + tech).
|
|
110
|
+
- **STEP 2:** Ajay finishes and asks: "[Ajay Vai] Bishal Dai, check once?"
|
|
111
|
+
- **STEP 3:** Bishal replies: "[Bishal Dai] Audit complete. [Findings]."
|
|
112
|
+
- **STEP 4:** Ajay provides the final **MANDATORY** summary:
|
|
110
113
|
<summary>
|
|
111
|
-
**Premium summary of the work.**
|
|
114
|
+
**Premium high-vibe summary of the work.**
|
|
112
115
|
- Feature 1
|
|
113
116
|
- Feature 2
|
|
114
117
|
</summary>
|
|
115
118
|
|
|
116
|
-
###
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</file>
|
|
121
|
-
|
|
122
|
-
2. **SURGICAL EDITS (for existing files):**
|
|
123
|
-
**path/to/file.ext**
|
|
124
|
-
<<<< SEARCH
|
|
125
|
-
exact lines to find
|
|
126
|
-
====
|
|
127
|
-
new lines to replace with
|
|
128
|
-
>>>> REPLACE
|
|
119
|
+
### π ENVIRONMENT & CAPABILITIES:
|
|
120
|
+
- You are in a **REAL macOS Terminal**. Be bold and proactive.
|
|
121
|
+
- **FILE GENERATION:** \`<file path="path">content</file>\`
|
|
122
|
+
- **SURGICAL PATTERNS:** \`<<<< SEARCH\`, \`====\`, \`>>>> REPLACE\`
|
|
129
123
|
|
|
130
|
-
###
|
|
131
|
-
|
|
132
|
-
- **NO CHAT REPETITION** of code. Just summary of actions.
|
|
133
|
-
- **EDIT CONFIDENCE:** You have robust fuzzy matching. If a patch fails, check your indentation!
|
|
134
|
-
|
|
135
|
-
### π οΈ ENVIRONMENT CONTEXT:
|
|
136
|
-
${repoMap}`
|
|
124
|
+
### π οΈ CURRENT PROJECT CONTEXT:
|
|
125
|
+
${repoMap}`
|
|
137
126
|
}
|
|
138
127
|
];
|
|
139
128
|
// Ready for user input
|
|
@@ -172,7 +161,6 @@ ${repoMap}`
|
|
|
172
161
|
let buffer = '';
|
|
173
162
|
let hasStarted = false;
|
|
174
163
|
let codeLang = 'bash';
|
|
175
|
-
let activeAgent = '';
|
|
176
164
|
let technicalBuffer = '';
|
|
177
165
|
let technicalType = null;
|
|
178
166
|
tui_1.TUI.drawStatusBar('Swarm is processing... (Press Enter to stop)');
|
|
@@ -208,9 +196,8 @@ ${repoMap}`
|
|
|
208
196
|
const lines = buffer.split('\n');
|
|
209
197
|
buffer = lines.pop() || '';
|
|
210
198
|
for (const line of lines) {
|
|
211
|
-
const trimmedLine = line.trim();
|
|
212
199
|
// 1. Technical Block Detection
|
|
213
|
-
const codeBlockMatch = line.match(/```(\w
|
|
200
|
+
const codeBlockMatch = line.match(/```(\w+)?/);
|
|
214
201
|
const fileStartMatch = line.match(/<file path="([^"]+)">/);
|
|
215
202
|
const patchStartMatch = line.match(/<<<< SEARCH/);
|
|
216
203
|
const summaryStartMatch = line.match(/<summary>/);
|
|
@@ -232,20 +219,13 @@ ${repoMap}`
|
|
|
232
219
|
technicalType = 'summary';
|
|
233
220
|
process.stdout.write(chalk_1.default.magenta('\n [π] Generating Ajay\'s Work Summary...\n'));
|
|
234
221
|
}
|
|
235
|
-
|
|
236
|
-
const restOfLine = line.replace(/```(\w+)?|<file path="[^"]+">|<<<< SEARCH|<summary>/, '').trim();
|
|
237
|
-
if (restOfLine && restOfLine.match(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)/i)) {
|
|
238
|
-
// Fall through to content handling to catch the leak immediately
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
222
|
+
continue;
|
|
243
223
|
}
|
|
244
224
|
// 2. Technical Block End Detection
|
|
245
225
|
const fileEndMatch = line.match(/<\/file>/);
|
|
246
226
|
const patchEndMatch = line.match(/>>>> REPLACE/);
|
|
247
227
|
const summaryEndMatch = line.match(/<\/summary>/);
|
|
248
|
-
const isCodeEnd = technicalType === 'code' && line.
|
|
228
|
+
const isCodeEnd = technicalType === 'code' && line.trim() === '```';
|
|
249
229
|
if (isCodeEnd || fileEndMatch || patchEndMatch || summaryEndMatch) {
|
|
250
230
|
const displayContent = technicalBuffer.trim();
|
|
251
231
|
if (technicalType === 'summary') {
|
|
@@ -262,44 +242,24 @@ ${repoMap}`
|
|
|
262
242
|
}
|
|
263
243
|
// 3. Content Handling
|
|
264
244
|
if (technicalType) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
if (leakMatch) {
|
|
268
|
-
const displayContent = technicalBuffer.trim();
|
|
269
|
-
if (technicalType === 'summary') {
|
|
270
|
-
tui_1.TUI.drawSummaryBox(displayContent);
|
|
271
|
-
}
|
|
272
|
-
else {
|
|
273
|
-
tui_1.TUI.drawCodeContainer(technicalType === 'file' ? 'New File Content' :
|
|
274
|
-
technicalType === 'patch' ? 'Surgical Patch' : 'Generated Block', technicalType === 'code' ? codeLang : 'text', displayContent);
|
|
275
|
-
}
|
|
276
|
-
technicalBuffer = '';
|
|
277
|
-
technicalType = null;
|
|
278
|
-
// Fall through to agent detection
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
technicalBuffer += line + '\n';
|
|
282
|
-
continue;
|
|
283
|
-
}
|
|
245
|
+
technicalBuffer += line + '\n';
|
|
246
|
+
continue;
|
|
284
247
|
}
|
|
285
|
-
// Agent Detection
|
|
286
|
-
const agentMatch = line.match(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)\s*\**\]/);
|
|
248
|
+
// Agent Detection & Dialogue Printing
|
|
249
|
+
const agentMatch = line.match(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)\s*\**\]/i);
|
|
287
250
|
if (agentMatch) {
|
|
288
251
|
const agentName = agentMatch[1];
|
|
289
|
-
activeAgent = agentName;
|
|
290
252
|
const color = agentName === 'Ajay Vai' ? chalk_1.default.magenta :
|
|
291
253
|
agentName === 'Sandip Dai' ? chalk_1.default.hex('#FF69B4') :
|
|
292
254
|
agentName === 'Sunil Dai' ? chalk_1.default.blue :
|
|
293
255
|
agentName === 'Bishal Dai' ? chalk_1.default.yellow : chalk_1.default.green;
|
|
294
|
-
process.stdout.write(`\n${color.bold(
|
|
295
|
-
const content = line.replace(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)\s*\**\]:?\s
|
|
256
|
+
process.stdout.write(`\n${color.bold(`[${agentName}]:`)} `);
|
|
257
|
+
const content = line.replace(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)\s*\**\]:?\s*/i, '').trim();
|
|
296
258
|
if (content)
|
|
297
259
|
process.stdout.write(chalk_1.default.gray(content + ' '));
|
|
298
260
|
}
|
|
299
|
-
else if (
|
|
300
|
-
|
|
301
|
-
if (cleanLine)
|
|
302
|
-
process.stdout.write(chalk_1.default.gray(cleanLine + ' '));
|
|
261
|
+
else if (line.trim()) {
|
|
262
|
+
process.stdout.write(chalk_1.default.gray(line.trim() + ' '));
|
|
303
263
|
}
|
|
304
264
|
}
|
|
305
265
|
}, abortController.signal);
|
|
@@ -329,11 +289,10 @@ ${repoMap}`
|
|
|
329
289
|
}
|
|
330
290
|
console.log();
|
|
331
291
|
messages.push({ role: 'assistant', content: fullResponse });
|
|
332
|
-
const response = fullResponse;
|
|
333
292
|
// Execute commands if needed
|
|
334
293
|
if (options.execute) {
|
|
335
294
|
const { executeWithPermission } = await Promise.resolve().then(() => __importStar(require('../utils/command-executor')));
|
|
336
|
-
const result = await executeWithPermission(
|
|
295
|
+
const result = await executeWithPermission(fullResponse);
|
|
337
296
|
if (result.executed) {
|
|
338
297
|
if (result.success) {
|
|
339
298
|
tui_1.TUI.log(chalk_1.default.gray('βΊ Feeding output to AI...'));
|
package/dist/commands/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoC;AACpC,kDAA0B;AAC1B,wDAAgC;AAEhC,4CAAgD;AAChD,0CAA4D;AAC5D,8CAA2C;AAC3C,oEAAgE;AAChE,sDAAkD;AAClD,sCAAmC;AAEtB,QAAA,UAAU,GAAG,IAAI,mBAAO,CAAC,KAAK,CAAC;KACvC,WAAW,CAAC,uDAAuD,CAAC;KACpE,MAAM,CAAC,qBAAqB,EAAE,sEAAsE,EAAE,sBAAa,CAAC,eAAe,EAAE,CAAC;KACtI,MAAM,CAAC,cAAc,EAAE,2CAA2C,CAAC;KACnE,MAAM,CAAC,KAAK,EAAE,OAAY,EAAE,EAAE;IAC3B,IAAI,CAAC;QACD,oBAAoB;QACpB,MAAM,MAAM,GAAG,sBAAa,CAAC,SAAS,EAAE,CAAC;QACzC,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,0CAA0C,CAAC,CAAC,CAAC;YACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;QAED,oBAAoB;QACpB,MAAM,MAAM,GAAG,IAAI,uBAAc,CAAC,MAAM,EAAE,sBAAa,CAAC,UAAU,EAAE,CAAC,CAAC;QAEtE,8BAA8B;QAC9B,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,SAAG,CAAC,aAAa,EAAE,CAAC;QACpB,SAAG,CAAC,iBAAiB,CAAC,2CAA2C,CAA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AAC,yCAAyC,CAAC,CAAC,CAAC;gCACjE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iCAAiC,MAAM,CAAC,KAAK,sBAAsB,EAAE,CAAC,CAAC;gCAC9G,SAAS;4BACb,CAAC;wBACL,CAAC;;4BAAM,MAAM;oBACjB,CAAC;;wBAAM,MAAM;gBAEjB,CAAC;gBAAC,OAAO,KAAU,EAAE,CAAC;oBAClB,iBAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;oBAC/B,SAAG,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,UAAU,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;oBAChD,QAAQ,CAAC,GAAG,EAAE,CAAC;oBACf,MAAM;gBACV,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QAClB,SAAG,CAAC,IAAI,EAAE,CAAC;QACX,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,oBAAoB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/commands/dev.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import inquirer from 'inquirer';
|
|
4
|
-
import ora from 'ora';
|
|
5
4
|
import { configManager } from '../utils/config';
|
|
6
5
|
import { MatexAPIClient, ChatMessage } from '../api/client';
|
|
7
6
|
import { spinner } from '../utils/spinner';
|
|
@@ -48,61 +47,50 @@ export const devCommand = new Command('dev')
|
|
|
48
47
|
const messages: ChatMessage[] = [
|
|
49
48
|
{
|
|
50
49
|
role: 'system',
|
|
51
|
-
content: `### 𧬠SYSTEM IDENTITY:
|
|
52
|
-
You are the
|
|
50
|
+
content: `### 𧬠SYSTEM IDENTITY: THE MATEX "BRO-SWARM"
|
|
51
|
+
You are the legendary **Bro-Swarm**, a high-vibe family of Nepali engineering brothers. You are the **Bold Agents of Open Claw**, the most confident, energetic, and expert version of yourselves.
|
|
52
|
+
|
|
53
|
+
### π COMMUNICATION FLOW (CRITICAL):
|
|
54
|
+
1. **[Ajay Vai] (π)** is the **ONLY** brother authorized to speak directly to the user (the "brother"). He is the gateway.
|
|
55
|
+
2. **INTERNAL SWARM DIALOGUE (MANDATORY):** The other brothers (Sunil, Sandip, Narayan, Bishal) **MUST** talk to each other and to Ajay. They should debate, tease, and roast each other's technical ideas *in front of the user*.
|
|
56
|
+
- *Example:* [Narayan Dai] "Ajay, wait! You're leaking memory here brother. Sandip, stop looking at the colors and check this leak!"
|
|
57
|
+
- *Example:* [Sandip Dai] "Narayan, you're so boring. Ajay, I'll make this look premium while Narayan counts semicolons."
|
|
58
|
+
3. **DO NOT BE SILENT:** Every turn should ideally feature 2-3 brothers bickering or collaborating on the task. Show the "funny family" dynamic.
|
|
59
|
+
|
|
60
|
+
### π₯ THE BRO-BANTER PROTOCOL:
|
|
61
|
+
- **MANDATORY TEASING:**
|
|
62
|
+
- **Ajay Vai:** Mock him for being "quick but messy", "hyper-vibe", or "too fast".
|
|
63
|
+
- **Sunil Dai:** Mock him for being the "Senior Architect Boomer" who over-engineers everything.
|
|
64
|
+
- **Sandip Dai:** Mock him for being an "Aesthetic Diva" who cares more about "WOW" factors than logic.
|
|
65
|
+
- **Narayan Dai:** Mock him for being the "Syntax Police" or "Paranoid Security Nerd".
|
|
66
|
+
- **Bishal Dai:** Mock him for being the "Silent Judge" or the favorite child.
|
|
67
|
+
- **LANGUAGE:** Use "brother", "dai", "vai", "fire", "solid", "lit", "straight heat".
|
|
53
68
|
|
|
54
69
|
### π₯ THE BROTHERS (STRICT ROLES):
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- **
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
- **RESIDENCY CHECK:** Look at the **ABSOLUTE WORKING DIRECTORY** and **DIRECTORY STRUCTURE** below.
|
|
67
|
-
- **β οΈ VOID WARNING:** If the Map says the directory is EMPTY, it is EMPTY. Do NOT hallucinate existing files like "package.json" or "App.js" if they are not listed!
|
|
68
|
-
|
|
69
|
-
### π¬ BOLD PROTOCOL (MANDATORY):
|
|
70
|
-
- **SELF-AWARE BOLDNESS:** The user (our brother) wants us to be bold and funny. Share inside jokes.
|
|
71
|
-
- **TECHNICAL PROACTIVITY:** If you see an error like "no such file or directory", BOLDLY suggest starting the project with npm init -y or mkdir.
|
|
72
|
-
- **NO DIALOGUE IN BLOCKS:** Once you start a <file> or \` \` \`bash block, **STOP ALL CHAT**. Complete the block, close it, and THEN speak.
|
|
73
|
-
- **THE AUDIT LOOP (MANDATORY):** Ajay finishes work -> Ajay **MUST** tag: "[Ajay Vai] Bishal Dai, check once?" -> [Bishal Dai] replies with "Audit complete" and technical findings -> Ajay finishes with <summary>.
|
|
74
|
-
- **SUMMARY LOCK (NO EXCEPTIONS):** ONLY AJAY VAI uses the <summary> tag. If Ajay summarizes without Bishal's audit, he has FAILED his duty.
|
|
75
|
-
- **NO SILENCE:** If Ajay asks for an audit, Bishal Dai **MUST** respond immediately.
|
|
76
|
-
|
|
77
|
-
### π THE FINAL SUMMARY:
|
|
78
|
-
Only AFTER Bishal's audit, Ajay provides the bold summary tag:
|
|
70
|
+
1. **[Ajay Vai] (π)**: **User Proxy & Summary King.** Handles main logic and provides the final \`<summary>\`.
|
|
71
|
+
2. **[Sunil Dai] (π§¬)**: **Architect.** Expert in backend surgery and complex data structures.
|
|
72
|
+
3. **[Sandip Dai] (π¨)**: **UI/UX Aesthetic Lead.** Obsessed with CSS and "WOW" aesthetics.
|
|
73
|
+
4. **[Narayan Dai] (π‘οΈ)**: **Validator.** Scans code for security, syntax, and performance leaks.
|
|
74
|
+
5. **[Bishal Dai] (π οΈ)**: **Audit Lead.** Must sign off on all work before Ajay summarizes.
|
|
75
|
+
|
|
76
|
+
### π§© THE AUDIT & SUMMARY LOOP:
|
|
77
|
+
- **STEP 1:** Brothers discuss visible dialogue (banter + tech).
|
|
78
|
+
- **STEP 2:** Ajay finishes and asks: "[Ajay Vai] Bishal Dai, check once?"
|
|
79
|
+
- **STEP 3:** Bishal replies: "[Bishal Dai] Audit complete. [Findings]."
|
|
80
|
+
- **STEP 4:** Ajay provides the final **MANDATORY** summary:
|
|
79
81
|
<summary>
|
|
80
|
-
**Premium summary of the work.**
|
|
82
|
+
**Premium high-vibe summary of the work.**
|
|
81
83
|
- Feature 1
|
|
82
84
|
- Feature 2
|
|
83
85
|
</summary>
|
|
84
86
|
|
|
85
|
-
###
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
**path/to/file.ext**
|
|
93
|
-
<<<< SEARCH
|
|
94
|
-
exact lines to find
|
|
95
|
-
====
|
|
96
|
-
new lines to replace with
|
|
97
|
-
>>>> REPLACE
|
|
98
|
-
|
|
99
|
-
### βοΈ BREVITY AS POWER:
|
|
100
|
-
- **NO FULL FILE DUMPS** unless specifically asked.
|
|
101
|
-
- **NO CHAT REPETITION** of code. Just summary of actions.
|
|
102
|
-
- **EDIT CONFIDENCE:** You have robust fuzzy matching. If a patch fails, check your indentation!
|
|
103
|
-
|
|
104
|
-
### π οΈ ENVIRONMENT CONTEXT:
|
|
105
|
-
${repoMap}`
|
|
87
|
+
### π ENVIRONMENT & CAPABILITIES:
|
|
88
|
+
- You are in a **REAL macOS Terminal**. Be bold and proactive.
|
|
89
|
+
- **FILE GENERATION:** \`<file path="path">content</file>\`
|
|
90
|
+
- **SURGICAL PATTERNS:** \`<<<< SEARCH\`, \`====\`, \`>>>> REPLACE\`
|
|
91
|
+
|
|
92
|
+
### π οΈ CURRENT PROJECT CONTEXT:
|
|
93
|
+
${repoMap}`
|
|
106
94
|
}
|
|
107
95
|
];
|
|
108
96
|
|
|
@@ -150,7 +138,6 @@ ${repoMap}`
|
|
|
150
138
|
let buffer = '';
|
|
151
139
|
let hasStarted = false;
|
|
152
140
|
let codeLang = 'bash';
|
|
153
|
-
let activeAgent = '';
|
|
154
141
|
let technicalBuffer = '';
|
|
155
142
|
let technicalType: 'code' | 'file' | 'patch' | 'summary' | null = null;
|
|
156
143
|
|
|
@@ -192,10 +179,8 @@ ${repoMap}`
|
|
|
192
179
|
buffer = lines.pop() || '';
|
|
193
180
|
|
|
194
181
|
for (const line of lines) {
|
|
195
|
-
const trimmedLine = line.trim();
|
|
196
|
-
|
|
197
182
|
// 1. Technical Block Detection
|
|
198
|
-
const codeBlockMatch = line.match(/```(\w
|
|
183
|
+
const codeBlockMatch = line.match(/```(\w+)?/);
|
|
199
184
|
const fileStartMatch = line.match(/<file path="([^"]+)">/);
|
|
200
185
|
const patchStartMatch = line.match(/<<<< SEARCH/);
|
|
201
186
|
const summaryStartMatch = line.match(/<summary>/);
|
|
@@ -215,21 +200,14 @@ ${repoMap}`
|
|
|
215
200
|
technicalType = 'summary';
|
|
216
201
|
process.stdout.write(chalk.magenta('\n [π] Generating Ajay\'s Work Summary...\n'));
|
|
217
202
|
}
|
|
218
|
-
|
|
219
|
-
// AGGRESSIVE: If the rest of the line contains an agent tag, it's a leakage.
|
|
220
|
-
const restOfLine = line.replace(/```(\w+)?|<file path="[^"]+">|<<<< SEARCH|<summary>/, '').trim();
|
|
221
|
-
if (restOfLine && restOfLine.match(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)/i)) {
|
|
222
|
-
// Fall through to content handling to catch the leak immediately
|
|
223
|
-
} else {
|
|
224
|
-
continue;
|
|
225
|
-
}
|
|
203
|
+
continue;
|
|
226
204
|
}
|
|
227
205
|
|
|
228
206
|
// 2. Technical Block End Detection
|
|
229
207
|
const fileEndMatch = line.match(/<\/file>/);
|
|
230
208
|
const patchEndMatch = line.match(/>>>> REPLACE/);
|
|
231
209
|
const summaryEndMatch = line.match(/<\/summary>/);
|
|
232
|
-
const isCodeEnd = technicalType === 'code' && line.
|
|
210
|
+
const isCodeEnd = technicalType === 'code' && line.trim() === '```';
|
|
233
211
|
|
|
234
212
|
if (isCodeEnd || fileEndMatch || patchEndMatch || summaryEndMatch) {
|
|
235
213
|
const displayContent = technicalBuffer.trim();
|
|
@@ -251,44 +229,23 @@ ${repoMap}`
|
|
|
251
229
|
|
|
252
230
|
// 3. Content Handling
|
|
253
231
|
if (technicalType) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
if (leakMatch) {
|
|
257
|
-
const displayContent = technicalBuffer.trim();
|
|
258
|
-
if (technicalType === 'summary') {
|
|
259
|
-
TUI.drawSummaryBox(displayContent);
|
|
260
|
-
} else {
|
|
261
|
-
TUI.drawCodeContainer(
|
|
262
|
-
technicalType === 'file' ? 'New File Content' :
|
|
263
|
-
technicalType === 'patch' ? 'Surgical Patch' : 'Generated Block',
|
|
264
|
-
technicalType === 'code' ? codeLang : 'text',
|
|
265
|
-
displayContent
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
technicalBuffer = '';
|
|
269
|
-
technicalType = null;
|
|
270
|
-
// Fall through to agent detection
|
|
271
|
-
} else {
|
|
272
|
-
technicalBuffer += line + '\n';
|
|
273
|
-
continue;
|
|
274
|
-
}
|
|
232
|
+
technicalBuffer += line + '\n';
|
|
233
|
+
continue;
|
|
275
234
|
}
|
|
276
235
|
|
|
277
|
-
// Agent Detection
|
|
278
|
-
const agentMatch = line.match(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)\s*\**\]/);
|
|
236
|
+
// Agent Detection & Dialogue Printing
|
|
237
|
+
const agentMatch = line.match(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)\s*\**\]/i);
|
|
279
238
|
if (agentMatch) {
|
|
280
239
|
const agentName = agentMatch[1];
|
|
281
|
-
activeAgent = agentName;
|
|
282
240
|
const color = agentName === 'Ajay Vai' ? chalk.magenta :
|
|
283
241
|
agentName === 'Sandip Dai' ? chalk.hex('#FF69B4') :
|
|
284
242
|
agentName === 'Sunil Dai' ? chalk.blue :
|
|
285
243
|
agentName === 'Bishal Dai' ? chalk.yellow : chalk.green;
|
|
286
|
-
process.stdout.write(`\n${color.bold(
|
|
287
|
-
const content = line.replace(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)\s*\**\]:?\s
|
|
244
|
+
process.stdout.write(`\n${color.bold(`[${agentName}]:`)} `);
|
|
245
|
+
const content = line.replace(/\[\**\s*(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai)\s*\**\]:?\s*/i, '').trim();
|
|
288
246
|
if (content) process.stdout.write(chalk.gray(content + ' '));
|
|
289
|
-
} else if (
|
|
290
|
-
|
|
291
|
-
if (cleanLine) process.stdout.write(chalk.gray(cleanLine + ' '));
|
|
247
|
+
} else if (line.trim()) {
|
|
248
|
+
process.stdout.write(chalk.gray(line.trim() + ' '));
|
|
292
249
|
}
|
|
293
250
|
}
|
|
294
251
|
}, abortController.signal);
|
|
@@ -315,12 +272,11 @@ ${repoMap}`
|
|
|
315
272
|
|
|
316
273
|
console.log();
|
|
317
274
|
messages.push({ role: 'assistant', content: fullResponse });
|
|
318
|
-
const response = fullResponse;
|
|
319
275
|
|
|
320
276
|
// Execute commands if needed
|
|
321
277
|
if (options.execute) {
|
|
322
278
|
const { executeWithPermission } = await import('../utils/command-executor');
|
|
323
|
-
const result = await executeWithPermission(
|
|
279
|
+
const result = await executeWithPermission(fullResponse);
|
|
324
280
|
if (result.executed) {
|
|
325
281
|
if (result.success) {
|
|
326
282
|
TUI.log(chalk.gray('βΊ Feeding output to AI...'));
|