@mrtrinhvn/ag-kit 1.5.0 → 1.5.2

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/bin/cli.js CHANGED
@@ -288,17 +288,29 @@ async function runInteractiveMenu() {
288
288
  { name: '❌ Thoát', value: 'exit' }
289
289
  );
290
290
 
291
- const choices = hasAgent ? agentChoices : [
292
- { name: '🚀 Khởi tạo (init) - Cấy ghép Tủy Não .agent vào thư mục này', value: 'init' },
293
- new inquirer.Separator(),
294
- { name: '❌ Thoát', value: 'exit' }
295
- ];
291
+ if (!hasAgent) {
292
+ console.log('\x1b[33m[Auto-Install] Phát hiện dự án chưa cấy ghép, tiến hành Khởi tạo Đọc Não tự động...\x1b[0m\n');
293
+ await program.parseAsync([process.argv[0], process.argv[1], 'init']);
294
+ console.log('\n\x1b[34m--- TIẾP TỤC QUÉT NÃO (BRAIN BUILDER) ---\x1b[0m\n');
295
+ await program.parseAsync([process.argv[0], process.argv[1], 'brain']);
296
+
297
+ const { resume } = await inquirer.prompt([
298
+ {
299
+ type: 'input',
300
+ name: 'resume',
301
+ message: 'Hoàn tất Auto-Install! Nhấn Enter để vào Menu quản trị...'
302
+ }
303
+ ]);
304
+ return runInteractiveMenu();
305
+ }
306
+
307
+ const choices = agentChoices;
296
308
 
297
309
  const { action } = await inquirer.prompt([
298
310
  {
299
311
  type: 'list',
300
312
  name: 'action',
301
- message: hasAgent ? 'Lõi .agent đã sẵn sàng. Bạn muốn làm gì?' : 'Thư mục trống. Hãy chọn thao tác:',
313
+ message: 'Lõi .agent đã sẵn sàng. Bạn muốn làm gì?',
302
314
  choices: choices
303
315
  }
304
316
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrtrinhvn/ag-kit",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Antigravity Kit Base Framework - Generic Agentic AI Programming Core",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -32,4 +32,4 @@
32
32
  "commander": "^14.0.3",
33
33
  "inquirer": "^8.2.5"
34
34
  }
35
- }
35
+ }