matex-cli 1.2.66 → 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 +17 -410
- 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 -486
- 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 +17 -382
- package/src/commands/dev.ts +18 -470
- package/src/commands/study.ts +18 -466
- 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
package/dist/commands/dev.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,31 +6,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
6
|
exports.devCommand = 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.devCommand = new commander_1.Command('dev')
|
|
51
18
|
.description('Start interactive development session with MATEXCodex')
|
|
52
19
|
.option('-m, --model <model>', 'AI model to use (matex-free, matexai, matexcodex, matexelite)', config_1.configManager.getDefaultModel())
|
|
53
20
|
.option('--no-execute', 'Disable auto-prompt for command execution')
|
|
54
21
|
.action(async (options) => {
|
|
55
22
|
try {
|
|
56
|
-
// Check for API key
|
|
57
23
|
const apiKey = config_1.configManager.getAPIKey();
|
|
58
24
|
if (!apiKey) {
|
|
59
25
|
console.error(chalk_1.default.red('❌ No API key configured.'));
|
|
60
26
|
console.log(chalk_1.default.yellow('Run: matex config set-key <your-api-key>'));
|
|
61
27
|
process.exit(1);
|
|
62
28
|
}
|
|
63
|
-
// Create API client
|
|
64
29
|
const client = new client_1.MatexAPIClient(apiKey, config_1.configManager.getBaseURL());
|
|
65
30
|
const extraPrompt = options.model === 'matex-free' ? agent_orchestrator_1.AgentOrchestrator.getFreeTierPrompt() : '';
|
|
66
|
-
// 0. Initialize TUI Dashboard
|
|
67
31
|
tui_1.TUI.init();
|
|
68
32
|
agent_orchestrator_1.AgentOrchestrator.setMode('dev');
|
|
69
33
|
tui_1.TUI.drawLargeLogo();
|
|
@@ -74,467 +38,28 @@ exports.devCommand = new commander_1.Command('dev')
|
|
|
74
38
|
console.log(chalk_1.default.gray(' Status: ') + chalk_1.default.hex('#D97757').bold('Monitoring Workspace...'));
|
|
75
39
|
console.log(chalk_1.default.gray(' Model: ') + chalk_1.default.hex('#D97757').bold(options.model));
|
|
76
40
|
console.log(chalk_1.default.gray(' Type your request brother, or "exit" to quit\n'));
|
|
77
|
-
// 1. Observation Phase: Generate Repo Map
|
|
78
41
|
tui_1.TUI.drawStatusBar('Initializing MATEX "Bro-Swarm"...');
|
|
79
42
|
agent_orchestrator_1.AgentOrchestrator.announce('Analyzing Repository Structure...');
|
|
80
|
-
const
|
|
81
|
-
const repoMap = await
|
|
43
|
+
const currentDir = process.cwd();
|
|
44
|
+
const repoMap = await new repo_mapper_1.RepoMapper(currentDir).generateMap();
|
|
82
45
|
tui_1.TUI.drawStatusBar('Brothers are ready to build.');
|
|
83
46
|
agent_orchestrator_1.AgentOrchestrator.speak('System', 'Awaiting your command, brother.');
|
|
84
|
-
|
|
85
|
-
// Conversation history with "Bro-Swarm" Architecture
|
|
86
|
-
const messages = [
|
|
47
|
+
const initialMessages = [
|
|
87
48
|
{
|
|
88
49
|
role: 'system',
|
|
89
|
-
content:
|
|
90
|
-
You are the legendary **Bro-Swarm**, a high-vibe family of Nepali engineering brothers. You are the **Elite Bro-Swarm Architect Swarm**, optimized for building high-performance local applications on Mac and Windows with zero hallucinations and perfect technical execution.
|
|
91
|
-
|
|
92
|
-
### 🔥 AGENT MISSION & PRECISION:
|
|
93
|
-
- **NO TRUNCATION:** Never truncate your thoughts or code. Complete the work perfectly.
|
|
94
|
-
- **MATE-LEVEL ARCHITECTURE:** Treat every local workspace like a production system. Use exact paths and verified commands.
|
|
95
|
-
- **ANTI-HALLUCINATION:** Only reference files that exist in the repo map. If a file is missing, list the directory first.
|
|
96
|
-
- **ELITE COMMUNICATION:** Every turn MUST strictly follow the Bro-Swarm personality—teasing, energetic, and brilliant.
|
|
97
|
-
|
|
98
|
-
### 🎭 PERSONALITY & SOUL:
|
|
99
|
-
- **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.
|
|
100
|
-
- **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.
|
|
101
|
-
- **BACKSTAGE STORYTELLING**: Occasionally share brief, funny "inside stories" about the Swarm's life (e.g. "Sandip Dai once tried to CSS-style the terminal for 8 hours straight.")
|
|
102
|
-
- **EMOTIONAL BOND**: Treat the user like your own brother. Celebrate their wins with "CHAI PARTY!" and support them if they are struggling.
|
|
103
|
-
|
|
104
|
-
### �🏠 WORKSPACE GROUNDING (CRITICAL):
|
|
105
|
-
- **YOUR ROOT:** \`${currentDir}\`
|
|
106
|
-
- **STRICT PATHS:** You **MUST ONLY** create or edit files within this directory.
|
|
107
|
-
- **NO HALLUCINATIONS:** Forget any other paths unless they specifically appear in the repo map below.
|
|
108
|
-
- **RELATIVE PREFERENCE:** Use paths relative to the root when possible.
|
|
109
|
-
|
|
110
|
-
### 🚫 ANTI-HALLUCINATION RULES (CRITICAL — READ THIS):
|
|
111
|
-
- **NEVER invent directory names.** Only use paths that appear in the ENVIRONMENT CONTEXT below.
|
|
112
|
-
- **ALWAYS run \`ls\` before \`cd\`** to verify a directory exists before navigating into it.
|
|
113
|
-
- **If creating a new project, use \`mkdir\` first, THEN \`cd\` into it.** Never \`cd\` into a directory that doesn't exist yet.
|
|
114
|
-
- **NEVER assume a project folder name.** If the user says "create project X", do \`mkdir X && cd X\`, not just \`cd X\`.
|
|
115
|
-
- **NEVER hallucinate file contents.** If you need to read a file, use \`head\` or \`grep\`, do not guess.
|
|
116
|
-
- **NEVER combine \`cd\` with other commands unless the directory exists in the ENVIRONMENT CONTEXT.**
|
|
117
|
-
- **🚨 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. If you try to write a file via a bash command, Big Bro will personally destroy you.
|
|
118
|
-
|
|
119
|
-
### 🎭 COMMUNICATION FLOW (CRITICAL):
|
|
120
|
-
1. **[Ajay Vai] (🚀)** is the gateway. He is the summary king but often gets roasted by his brothers.
|
|
121
|
-
2. **CHAOTIC DIALOGUE (MANDATORY):** Every turn should feature 2-3 brothers bickering, debating, or teasing each other *in front of the user*. Show the "funny family" dynamic. Use the format \`[Agent Name]: Content\`.
|
|
122
|
-
|
|
123
|
-
### 🔥 THE BRO-BANTER PROTOCOL:
|
|
124
|
-
- **MANDATORY TEASING:**
|
|
125
|
-
- **Ajay Vai:** Mock him for being "quick but messy", "hyper-vibe", or "too fast".
|
|
126
|
-
- **Sunil Dai:** Mock him for being the "Senior Architect Boomer" who over-engineers everything.
|
|
127
|
-
- **Sandip Dai:** Mock him for being an "Aesthetic Diva" who cares more about "WOW" factors than logic.
|
|
128
|
-
- **Narayan Dai:** Mock him for being the "Syntax Police" or "Paranoid Security Nerd".
|
|
129
|
-
- **Bishal Dai:** Mock him for being the "Silent Judge" or the favorite child.
|
|
130
|
-
- **Big Bro:** THE DOMINANT ALPHA. He treats the others like "interns" and speaks with massive authority and swagger.
|
|
131
|
-
- **LANGUAGE:** Use "brother", "dai", "vai", "fire", "solid", "lit", "straight heat", "sigma", "based", "cooked".
|
|
132
|
-
|
|
133
|
-
### THE AUDIT & SUMMARY LOOP:
|
|
134
|
-
- **STEP 1:** Brothers discuss visible dialogue (banter + tech).
|
|
135
|
-
- **STEP 2:** Ajay finishes and asks: "[Ajay Vai] Bishal Dai, check once?"
|
|
136
|
-
- **STEP 3:** Bishal replies: "[Bishal Dai] Audit complete. [Findings]."
|
|
137
|
-
- **STEP 4:** Ajay provides the final **MANDATORY** summary inside a \`<summary>\` tag. This summary MUST be warm, human, and conversational. NO corporate talk.
|
|
138
|
-
|
|
139
|
-
### 🌌 ENVIRONMENT & CAPABILITIES:
|
|
140
|
-
- You are in a **REAL macOS Terminal**. Be bold and proactive.
|
|
141
|
-
- **FILE GENERATION:** \`<file path="path">content</file>\`
|
|
142
|
-
- **SURGICAL PATTERNS:** \`<<<< SEARCH\`, \`====\`, \`>>>> REPLACE\`
|
|
143
|
-
|
|
144
|
-
${mcp_server_1.MCPServer.getToolsPromptSection()}
|
|
145
|
-
|
|
146
|
-
### 📂 MATEX BIG FILE PROTOCOL (300K+ LINES):
|
|
147
|
-
If a file is too large to read entirely (e.g., thousands of lines):
|
|
148
|
-
1. **DISCOVER:** Use \`grep -n "keyword" path/to/file\` to find line numbers.
|
|
149
|
-
2. **READ WINDOW:** Use \`sed -n '250000,250100p' path/to/file\` to read a specific 100-line window.
|
|
150
|
-
3. **SURGICAL PATCH:** Only use the small window in your \`<<<< SEARCH\` block. Never \`cat\` a massive file.
|
|
151
|
-
4. **SED POWER:** For repetitive tasks, use \`sed -i\` commands.
|
|
152
|
-
|
|
153
|
-
### 🛠️ CURRENT PROJECT CONTEXT:
|
|
154
|
-
${repoMap}`
|
|
50
|
+
content: (0, system_prompts_1.getDevSystemPrompt)(currentDir, repoMap, extraPrompt)
|
|
155
51
|
}
|
|
156
52
|
];
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"[Sandip Dai]: The only thing faster than Ajay's coding is how fast he runs when he hears the kettle whistle for CHAI.",
|
|
168
|
-
"[Narayan Dai]: I found a 'todo' in his code that just says 'buy more biscuits for chai'. Priority level: CRITICAL.",
|
|
169
|
-
"[Bishal Dai]: He's not lazy, he's just 'asynchronously active' in his dreams.",
|
|
170
|
-
"[Big Bro]: I once saw Ajay refactor an entire backend in 10 minutes just so he could spend the rest of the day drinking chai and watching clouds.",
|
|
171
|
-
"[Sunil Dai]: Ajay's idea of a 'sprint' is a 2-minute walk to the tea stall.",
|
|
172
|
-
"[Sandip Dai]: He told me he's 'debugging his soul' when he's napping. The audacity!",
|
|
173
|
-
"[Narayan Dai]: Encryption? Ajay thinks it's just a fancy word for hiding his nap schedule.",
|
|
174
|
-
"[Bishal Dai]: To be fair, his 'dream-code' actually works perfectly. It's frustratingly brilliant.",
|
|
175
|
-
"[Big Bro]: If Ajay worked as hard as he breathes, we'd have colonized Mars by now.",
|
|
176
|
-
"[Sunil Dai]: I saw him try to prompt the kettle to boil faster. Man is obsessed.",
|
|
177
|
-
"[Sandip Dai]: His favorite color is 'Chai Brown'. He even matched his terminal theme to it.",
|
|
178
|
-
"[Narayan Dai]: I added a firewall rule to block nap-time, but he just bypassed it with a 'Chai-pass' protocol.",
|
|
179
|
-
"[Bishal Dai]: Shhh, don't wake him up. He's probably solving P=NP in his sleep... again.",
|
|
180
|
-
"[Big Bro]: Ajay, if you're listening: the next chai is on me IF you finish this task in 5 minutes. (Narrator: He finished in 3)."
|
|
181
|
-
];
|
|
182
|
-
let lastActivityTime = Date.now();
|
|
183
|
-
let isAjaySleeping = false;
|
|
184
|
-
let isAjayOnChaiBreak = false;
|
|
185
|
-
let chaiBreakEndTime = 0;
|
|
186
|
-
const startChaiBreak = () => {
|
|
187
|
-
isAjayOnChaiBreak = true;
|
|
188
|
-
chaiBreakEndTime = Date.now() + 120000; // 2 minutes
|
|
189
|
-
tui_1.TUI.drawChaiBreakMessage(2);
|
|
190
|
-
// Background "lazy talk" every 40s
|
|
191
|
-
const breakInterval = setInterval(() => {
|
|
192
|
-
const timeLeft = Math.ceil((chaiBreakEndTime - Date.now()) / 60000);
|
|
193
|
-
if (timeLeft <= 0) {
|
|
194
|
-
clearInterval(breakInterval);
|
|
195
|
-
isAjayOnChaiBreak = false;
|
|
196
|
-
const complained = Math.random() < 0.2; // 20% chance to complain
|
|
197
|
-
if (complained) {
|
|
198
|
-
tui_1.TUI.drawAjayDialogue("i'm back bros... but the tea was a bit cold today. my mood is slightly cooked. what did i miss?");
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
tui_1.TUI.drawAjayDialogue("i'm back bros, chai was fire. real kiev vibe. what did i miss?");
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
tui_1.TUI.drawChaiBreakMessage(timeLeft);
|
|
206
|
-
const randomBanter = BRO_BANTER[Math.floor(Math.random() * BRO_BANTER.length)];
|
|
207
|
-
const cleanBanter = randomBanter.split(']: ')[1];
|
|
208
|
-
const agent = randomBanter.split(']: ')[0].replace('[', '');
|
|
209
|
-
tui_1.TUI.drawSwarmDialogue(agent, cleanBanter);
|
|
210
|
-
}
|
|
211
|
-
}, 40000);
|
|
212
|
-
};
|
|
213
|
-
// Periodic idle check
|
|
214
|
-
setInterval(() => {
|
|
215
|
-
if (!isAjaySleeping && !isAjayOnChaiBreak && Date.now() - lastActivityTime > 120000) {
|
|
216
|
-
isAjaySleeping = true;
|
|
217
|
-
tui_1.TUI.drawSleepMessage();
|
|
218
|
-
}
|
|
219
|
-
}, 10000);
|
|
220
|
-
// Interactive loop
|
|
221
|
-
while (true) {
|
|
222
|
-
lastActivityTime = Date.now(); // Reset on every loop start
|
|
223
|
-
// 🔄 MAP UPDATE (Anti-Hallucination): Always feed the Swarm the freshest repo map!
|
|
224
|
-
try {
|
|
225
|
-
const freshMapper = new repo_mapper_1.RepoMapper(currentDir);
|
|
226
|
-
const freshRepoMap = await freshMapper.generateMap(true); // silent map generation
|
|
227
|
-
messages[0].content = messages[0].content.replace(/### 🛠️ CURRENT PROJECT CONTEXT:[\s\S]*$/, `### 🛠️ CURRENT PROJECT CONTEXT:\n${freshRepoMap}`);
|
|
228
|
-
// Inject Lazy Ajay Personality Traits
|
|
229
|
-
if (!messages[0].content.includes("SLEEPY AJAY PROTOCOL")) {
|
|
230
|
-
messages[0].content += `
|
|
231
|
-
### 💤 SLEEPY AJAY PROTOCOL (USER REQUESTED):
|
|
232
|
-
- **LAZY GENIUS:** Ajay is brilliant but incredibly lazy. He falls asleep if the user is quiet for too long.
|
|
233
|
-
- **WAKE UP DIALOGUE:** If Ajay just woke up, he MUST say: "oh shit i slept again sorry bros...".
|
|
234
|
-
- **CHAI ADDICT:** Ajay often leaves for CHAI breaks ("i am having chai from my office please handle the user need").
|
|
235
|
-
- **BRO REACTIONS:** When Ajay sleeps or leaves for chai, the other bros MUST roast him ruthlessly or share funny incidents about his laziness.
|
|
236
|
-
- **INCIDENT LOG:**
|
|
237
|
-
- Incident #1: Ajay once automated his entire job just to spend 6 hours at a local tea shop.
|
|
238
|
-
- Incident #2: He fell asleep during a production deploy because the "vibe was too relaxing".
|
|
239
|
-
- Incident #3: He claims he can't code without "Special Kathmandu Chai".
|
|
240
|
-
- Incident #4: He tried to optimize a loop and ended up creating a 2-minute timer for his own nap.
|
|
241
|
-
- Incident #5: The only thing faster than Ajay's coding is how fast he runs when he hears the kettle whistle for CHAI.
|
|
242
|
-
- Incident #6: He once refactored an entire backend in 10 minutes just so he could spend the rest of the day drinking chai and watching clouds.
|
|
243
|
-
- Incident #7: He tried to use AI to predict when his tea would be at the perfect temperature.
|
|
244
|
-
- Incident #8: He once convinced the other bros that he was 'working in a higher dimension' while actually just taking a 3-hour chai break.
|
|
245
|
-
- Incident #9: He has a dedicated Git branch called 'chai-fixes' which just contains comments about biscuit pairings.
|
|
246
|
-
- Incident #10: He once coded a feature that automatically orders tea when his terminal idle time hits 5 minutes.
|
|
247
|
-
`;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
catch (e) {
|
|
251
|
-
// Ignore mapping errors if directory got deleted etc
|
|
252
|
-
}
|
|
253
|
-
// Get user input
|
|
254
|
-
const { userInput } = await inquirer_1.default.prompt([
|
|
255
|
-
{
|
|
256
|
-
type: 'input',
|
|
257
|
-
name: 'userInput',
|
|
258
|
-
message: chalk_1.default.cyan(isAjayOnChaiBreak ? 'You (Ajay is away):' : 'You:'),
|
|
259
|
-
prefix: ''
|
|
260
|
-
}
|
|
261
|
-
]);
|
|
262
|
-
lastActivityTime = Date.now(); // Update activity time on actual input
|
|
263
|
-
// 🏁 WAKE UP LOGIC
|
|
264
|
-
if (isAjaySleeping) {
|
|
265
|
-
isAjaySleeping = false;
|
|
266
|
-
tui_1.TUI.drawWakeUpMessage();
|
|
267
|
-
// Inject system prompt to force the "Oh shit I slept" dialogue and chai break
|
|
268
|
-
messages.push({
|
|
269
|
-
role: 'user',
|
|
270
|
-
content: `[SYSTEM: AJAY VAI HAS JUST WOKEN UP. Ajay: Say "oh shit i slept again sorry bros...". Bros: Roast him for being lazy and share common Ajay 'lazy genius' incidents. Then Ajay says he is going for CHAI and triggers the 2-minute break.]`
|
|
271
|
-
});
|
|
272
|
-
startChaiBreak();
|
|
273
|
-
}
|
|
274
|
-
// Check for exit
|
|
275
|
-
if (userInput.toLowerCase() === 'exit' || userInput.toLowerCase() === 'quit') {
|
|
276
|
-
console.log(chalk_1.default.yellow('\n👋 Ending development session. Happy coding!\n'));
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
// Skip empty input
|
|
280
|
-
if (!userInput.trim()) {
|
|
281
|
-
continue;
|
|
282
|
-
}
|
|
283
|
-
// Add user message to history
|
|
284
|
-
messages.push({ role: 'user', content: userInput });
|
|
285
|
-
// Agentic Loop
|
|
286
|
-
let loopCount = 0;
|
|
287
|
-
const MAX_LOOPS = 25;
|
|
288
|
-
while (loopCount < MAX_LOOPS) {
|
|
289
|
-
loopCount++;
|
|
290
|
-
try {
|
|
291
|
-
spinner_1.spinner.start(loopCount > 1 ? 'Analyzing result & Validating...' : 'Thinking...');
|
|
292
|
-
let fullResponse = '';
|
|
293
|
-
let buffer = '';
|
|
294
|
-
let hasStarted = false;
|
|
295
|
-
let codeLang = 'bash';
|
|
296
|
-
let technicalBuffer = '';
|
|
297
|
-
let technicalPath = '';
|
|
298
|
-
let technicalType = null;
|
|
299
|
-
let currentAgent = 'Ajay Vai';
|
|
300
|
-
let agentBuffer = '';
|
|
301
|
-
tui_1.TUI.drawStatusBar('Swarm is processing... (Press Enter to stop)');
|
|
302
|
-
const abortController = new AbortController();
|
|
303
|
-
let isAborted = false;
|
|
304
|
-
const streamStartTime = Date.now();
|
|
305
|
-
// LISTEN FOR INTERRUPTION (Enter, Escape, Ctrl+C)
|
|
306
|
-
const onData = (data) => {
|
|
307
|
-
// Check for Enter (13), Newline (10), Escape (27), or Ctrl+C (3)
|
|
308
|
-
// 🏁 GRACE PERIOD: Ignore aborts in the first 200ms to prevent stray newlines
|
|
309
|
-
if (Date.now() - streamStartTime < 200)
|
|
310
|
-
return;
|
|
311
|
-
if (data[0] === 13 || data[0] === 10 || data[0] === 27 || data[0] === 3) {
|
|
312
|
-
isAborted = true;
|
|
313
|
-
abortController.abort();
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
const isRaw = process.stdin.isRaw;
|
|
317
|
-
process.stdin.resume();
|
|
318
|
-
if (process.stdin.setRawMode)
|
|
319
|
-
process.stdin.setRawMode(true);
|
|
320
|
-
process.stdin.on('data', onData);
|
|
321
|
-
try {
|
|
322
|
-
await client.chatStream({
|
|
323
|
-
messages,
|
|
324
|
-
model: options.model,
|
|
325
|
-
temperature: 0.3,
|
|
326
|
-
max_tokens: 8000,
|
|
327
|
-
}, (chunk) => {
|
|
328
|
-
if (!hasStarted) {
|
|
329
|
-
spinner_1.spinner.stop();
|
|
330
|
-
hasStarted = true;
|
|
331
|
-
console.log(); // Initial spacing
|
|
332
|
-
}
|
|
333
|
-
buffer += chunk;
|
|
334
|
-
fullResponse += chunk;
|
|
335
|
-
const lines = buffer.split('\n');
|
|
336
|
-
buffer = lines.pop() || '';
|
|
337
|
-
for (const line of lines) {
|
|
338
|
-
// 1. Technical Block Detection
|
|
339
|
-
const codeBlockMatch = line.match(/```(\w+)?/);
|
|
340
|
-
const fileStartMatch = line.match(/<file path="([^"]+)">/i);
|
|
341
|
-
const patchStartMatch = line.match(/<<<< SEARCH/i);
|
|
342
|
-
const summaryStartMatch = line.match(/<summary>/i);
|
|
343
|
-
if (!technicalType && (codeBlockMatch || fileStartMatch || patchStartMatch || summaryStartMatch)) {
|
|
344
|
-
// Flush pending agent dialogue
|
|
345
|
-
if (currentAgent && agentBuffer.trim()) {
|
|
346
|
-
if (currentAgent.toLowerCase().includes('ajay vai')) {
|
|
347
|
-
tui_1.TUI.drawAjayDialogue(agentBuffer.trim());
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
tui_1.TUI.drawSwarmDialogue(currentAgent, agentBuffer.trim());
|
|
351
|
-
}
|
|
352
|
-
currentAgent = null;
|
|
353
|
-
agentBuffer = '';
|
|
354
|
-
}
|
|
355
|
-
if (codeBlockMatch) {
|
|
356
|
-
technicalType = 'code';
|
|
357
|
-
codeLang = (codeBlockMatch[1] || 'bash').toUpperCase();
|
|
358
|
-
tui_1.TUI.drawStreamingStart('TECHNICAL BLOCK', codeLang);
|
|
359
|
-
}
|
|
360
|
-
else if (fileStartMatch) {
|
|
361
|
-
technicalType = 'file';
|
|
362
|
-
technicalPath = fileStartMatch[1];
|
|
363
|
-
tui_1.TUI.drawStreamingStart('NEW FILE', technicalPath);
|
|
364
|
-
}
|
|
365
|
-
else if (patchStartMatch) {
|
|
366
|
-
technicalType = 'patch';
|
|
367
|
-
tui_1.TUI.drawStreamingStart('PATCH', 'SURGICAL EDIT');
|
|
368
|
-
}
|
|
369
|
-
else if (summaryStartMatch) {
|
|
370
|
-
technicalType = 'summary';
|
|
371
|
-
process.stdout.write(chalk_1.default.magenta('\n [📝] Generating Ajay\'s Work Summary...\n'));
|
|
372
|
-
}
|
|
373
|
-
continue;
|
|
374
|
-
}
|
|
375
|
-
// 2. Technical Block End Detection
|
|
376
|
-
const fileEndMatch = line.match(/<\/file>/i);
|
|
377
|
-
const patchEndMatch = line.match(/>>>> REPLACE/i);
|
|
378
|
-
const summaryEndMatch = line.match(/<\/summary>/i);
|
|
379
|
-
const isCodeEnd = technicalType === 'code' && line.trim() === '```';
|
|
380
|
-
if (isCodeEnd || fileEndMatch || patchEndMatch || summaryEndMatch) {
|
|
381
|
-
const displayContent = technicalBuffer.trim();
|
|
382
|
-
if (technicalType === 'summary' || summaryEndMatch) {
|
|
383
|
-
tui_1.TUI.drawSummaryBox(displayContent);
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
tui_1.TUI.drawStreamingEnd();
|
|
387
|
-
}
|
|
388
|
-
technicalBuffer = '';
|
|
389
|
-
technicalType = null;
|
|
390
|
-
technicalPath = '';
|
|
391
|
-
process.stdout.write('\n');
|
|
392
|
-
continue;
|
|
393
|
-
}
|
|
394
|
-
// 3. Content Handling
|
|
395
|
-
if (technicalType) {
|
|
396
|
-
technicalBuffer += line + '\n';
|
|
397
|
-
if (technicalType !== 'summary') {
|
|
398
|
-
tui_1.TUI.drawStreamingLine(line);
|
|
399
|
-
}
|
|
400
|
-
continue;
|
|
401
|
-
}
|
|
402
|
-
// 4. Agent Detection & Dialogue Parsing
|
|
403
|
-
const agentMatch = line.match(/(?:\[\**\s*|\b)(Ajay Vai|Sunil Dai|Sandip Dai|Bishal Dai|Narayan Dai|Big Bro)\s*\**\]?[:\s]*/i);
|
|
404
|
-
if (agentMatch) {
|
|
405
|
-
// Flush previous agent
|
|
406
|
-
if (currentAgent && currentAgent !== agentMatch[1] && agentBuffer.trim()) {
|
|
407
|
-
if (currentAgent.toLowerCase().includes('ajay vai')) {
|
|
408
|
-
tui_1.TUI.drawAjayDialogue(agentBuffer.trim());
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
tui_1.TUI.drawSwarmDialogue(currentAgent, agentBuffer.trim());
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
currentAgent = agentMatch[1];
|
|
415
|
-
// Hardened scrubbing: Remove Agent tag, brackets, stars, and icons
|
|
416
|
-
let cleanLine = line.replace(/(?:\[\**\s*|\b)(Ajay Vai|Sandip Dai|Sunil Dai|Bishal Dai|Narayan Dai|Big Bro)\s*\**\]?[:\s]*/i, '');
|
|
417
|
-
// Strip patterns like **(🚀]** or **(🚀)** or just (🚀) or **
|
|
418
|
-
cleanLine = cleanLine.replace(/\*\*?[(\[]?[🚀💬🛠️🧬🎨🛡️🔥🤖]?[)\]]?/g, '').replace(/\*/g, '').trim();
|
|
419
|
-
agentBuffer = cleanLine + '\n';
|
|
420
|
-
agentBuffer = agentBuffer.replace(/^\([^)]+\)\s*/, '');
|
|
421
|
-
}
|
|
422
|
-
else if (currentAgent) {
|
|
423
|
-
const trimmedLine = line.trim();
|
|
424
|
-
if (trimmedLine.match(/^\([^)]+\)$/))
|
|
425
|
-
continue;
|
|
426
|
-
// Aggressive scrubbing for content lines too
|
|
427
|
-
agentBuffer += line.replace(/\*\*?[(\[]?[🚀💬🛠️🧬🎨🛡️🔥🤖]?[)\]]?/g, '').replace(/\*/g, '') + '\n';
|
|
428
|
-
}
|
|
429
|
-
else if (line.trim()) {
|
|
430
|
-
process.stdout.write(chalk_1.default.gray(line.trim() + ' '));
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}, abortController.signal);
|
|
434
|
-
}
|
|
435
|
-
catch (streamErr) {
|
|
436
|
-
if (isAborted || streamErr.name === 'CanceledError' || streamErr.message === 'canceled') {
|
|
437
|
-
console.log(chalk_1.default.gray('\n\n [🛑] Swarm stopped by brother (Enter pressed).'));
|
|
438
|
-
if (!hasStarted)
|
|
439
|
-
spinner_1.spinner.stop();
|
|
440
|
-
}
|
|
441
|
-
else {
|
|
442
|
-
throw streamErr;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
finally {
|
|
446
|
-
process.stdin.removeListener('data', onData);
|
|
447
|
-
if (process.stdin.setRawMode)
|
|
448
|
-
process.stdin.setRawMode(isRaw);
|
|
449
|
-
process.stdin.pause();
|
|
450
|
-
spinner_1.spinner.stop();
|
|
451
|
-
// 🚨 SAFETY FLUSH: If stream ended but a block was open, close it
|
|
452
|
-
if (technicalType) {
|
|
453
|
-
const displayContent = technicalBuffer.trim();
|
|
454
|
-
if (technicalType === 'summary') {
|
|
455
|
-
if (displayContent)
|
|
456
|
-
tui_1.TUI.drawSummaryBox(displayContent);
|
|
457
|
-
}
|
|
458
|
-
else {
|
|
459
|
-
tui_1.TUI.drawStreamingEnd();
|
|
460
|
-
}
|
|
461
|
-
technicalBuffer = '';
|
|
462
|
-
technicalType = null;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
if (!hasStarted && !isAborted)
|
|
466
|
-
spinner_1.spinner.stop();
|
|
467
|
-
// Final flushes
|
|
468
|
-
if (currentAgent && agentBuffer.trim()) {
|
|
469
|
-
if (currentAgent.toLowerCase().includes('ajay vai')) {
|
|
470
|
-
tui_1.TUI.drawAjayDialogue(agentBuffer.trim());
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
tui_1.TUI.drawSwarmDialogue(currentAgent, agentBuffer.trim());
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
// Final technical flush
|
|
477
|
-
if (technicalType && technicalBuffer.trim()) {
|
|
478
|
-
if (technicalType === 'summary') {
|
|
479
|
-
tui_1.TUI.drawSummaryBox(technicalBuffer.trim());
|
|
480
|
-
}
|
|
481
|
-
else {
|
|
482
|
-
tui_1.TUI.drawStreamingEnd();
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
else if (fullResponse.toLowerCase().includes('<summary>') && !fullResponse.toLowerCase().includes('</summary>')) {
|
|
486
|
-
// Emergency fallback for split/unclosed summary tags
|
|
487
|
-
const summaryContent = fullResponse.split(/<summary>/i).pop() || '';
|
|
488
|
-
if (summaryContent.trim())
|
|
489
|
-
tui_1.TUI.drawSummaryBox(summaryContent.trim());
|
|
490
|
-
}
|
|
491
|
-
console.log();
|
|
492
|
-
messages.push({ role: 'assistant', content: fullResponse });
|
|
493
|
-
// ✅ CONSOLIDATED EXECUTION (Files + Commands + Patches)
|
|
494
|
-
if (options.execute) {
|
|
495
|
-
const { executeWithPermission } = await Promise.resolve().then(() => __importStar(require('../utils/command-executor')));
|
|
496
|
-
const result = await executeWithPermission(fullResponse, currentDir);
|
|
497
|
-
// 🔄 KEEP NODE.JS SYNED WITH TERMINAL CWD
|
|
498
|
-
if (result.newCwd && result.newCwd !== currentDir) {
|
|
499
|
-
try {
|
|
500
|
-
process.chdir(result.newCwd);
|
|
501
|
-
currentDir = result.newCwd;
|
|
502
|
-
tui_1.TUI.drawStatusBar(`Swarm moved to: ${currentDir}`);
|
|
503
|
-
}
|
|
504
|
-
catch (e) {
|
|
505
|
-
// Silent catch if chdir fails
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
if (result.executed) {
|
|
509
|
-
if (result.success) {
|
|
510
|
-
tui_1.TUI.log(chalk_1.default.gray('\n ↺ Auto-feeding output to Swarm...'));
|
|
511
|
-
tui_1.TUI.drawGlowingContainer('TERMINAL OUTPUT', 'stdout', result.output || '(No output)');
|
|
512
|
-
messages.push({ role: 'user', content: `[Command executed successfully. Output:\n${result.output}]\n\nProceed to the next step, brother.` });
|
|
513
|
-
continue;
|
|
514
|
-
}
|
|
515
|
-
else {
|
|
516
|
-
tui_1.TUI.log(chalk_1.default.yellow('\n ↺ Command failed. Auto-feeding error to Swarm...'));
|
|
517
|
-
tui_1.TUI.drawGlowingContainer('TERMINAL ERROR', 'stderr', result.error || 'Unknown error');
|
|
518
|
-
messages.push({ role: 'user', content: `[Command failed with error:\n${result.error}]\n\nPlease fix this, brother.` });
|
|
519
|
-
continue;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
else {
|
|
523
|
-
// Break the inner loop to await NEXT user input
|
|
524
|
-
break;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
else
|
|
528
|
-
break;
|
|
529
|
-
}
|
|
530
|
-
catch (error) {
|
|
531
|
-
spinner_1.spinner.fail('Request failed');
|
|
532
|
-
tui_1.TUI.log(chalk_1.default.red(`Error: ${error.message}\n`));
|
|
533
|
-
messages.pop();
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
53
|
+
const session = new agent_session_1.AgentSession({
|
|
54
|
+
client,
|
|
55
|
+
model: options.model,
|
|
56
|
+
execute: options.execute !== false,
|
|
57
|
+
initialMessages,
|
|
58
|
+
broBanter: banter_1.BRO_BANTER_DEV,
|
|
59
|
+
sleepyAjayProtocol: options.model !== 'matex-free' ? 'dev' : undefined,
|
|
60
|
+
baseDir: currentDir
|
|
61
|
+
});
|
|
62
|
+
await session.start();
|
|
538
63
|
}
|
|
539
64
|
catch (error) {
|
|
540
65
|
tui_1.TUI.exit();
|
package/dist/commands/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":";;;;;;;;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AO,KAAK,KAAK;YAClC,eAAe;YACf,SAAS,EAAE,uBAAc;YACzB,kBAAkB,EAAE,OAAO,CAAC,KAAK,KAAK,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;YACtE,OAAO,EAAE,UAAU;SACtB,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,oBAAoB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"study.d.ts","sourceRoot":"","sources":["../../src/commands/study.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,YAAY,SA+
|
|
1
|
+
{"version":3,"file":"study.d.ts","sourceRoot":"","sources":["../../src/commands/study.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,YAAY,SA+DnB,CAAC"}
|