@mrtrinhvn/ag-kit 1.3.1 → 1.3.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.
Files changed (2) hide show
  1. package/bin/cli.js +16 -9
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -286,19 +286,26 @@ async function runInteractiveMenu() {
286
286
  console.log('\x1b[35m\n🧠 ANTIGRAVITY KIT - BẢNG ĐIỀU KHIỂN TÁC VỤ\x1b[0m');
287
287
  console.log('\x1b[34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b[0m');
288
288
 
289
+ const hasAgent = fs.existsSync(TARGET_AGENT_DIR);
290
+
291
+ const choices = hasAgent ? [
292
+ { name: '🔄 Cập nhật (update) - Nâng cấp bộ não mới nhất', value: 'update' },
293
+ { name: '🔍 Kiểm tra (check) - Test cổng IDE & Môi trường', value: 'check' },
294
+ { name: '📊 Trạng thái (status) - Xem phiên bản hiện tại', value: 'status' },
295
+ new inquirer.Separator(),
296
+ { name: '❌ Thoát', value: 'exit' }
297
+ ] : [
298
+ { name: '🚀 Khởi tạo (init) - Cấy ghép Tủy Não .agent vào đây', value: 'init' },
299
+ new inquirer.Separator(),
300
+ { name: '❌ Thoát', value: 'exit' }
301
+ ];
302
+
289
303
  const { action } = await inquirer.prompt([
290
304
  {
291
305
  type: 'list',
292
306
  name: 'action',
293
- message: 'Chọn một tác vụ để thực hiện:',
294
- choices: [
295
- { name: '🚀 Khởi tạo (init) - Cài đặt .agent', value: 'init' },
296
- { name: '🔄 Cập nhật (update) - Nâng cấp bộ não', value: 'update' },
297
- { name: '🔍 Kiểm tra (check) - Test môi trường', value: 'check' },
298
- { name: '📊 Trạng thái (status) - Xem version', value: 'status' },
299
- new inquirer.Separator(),
300
- { name: '❌ Thoát', value: 'exit' }
301
- ]
307
+ message: hasAgent ? 'Dự án đã có AG-KIT. Chọn thao tác quản trị:' : 'Thư mục trống. Hãy chọn cấy ghép AG-KIT:',
308
+ choices: choices
302
309
  }
303
310
  ]);
304
311
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrtrinhvn/ag-kit",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Antigravity Kit Base Framework - Generic Agentic AI Programming Core",
5
5
  "main": "index.js",
6
6
  "bin": {