antigravity-ide 4.1.26 → 4.1.28

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/README.md CHANGED
@@ -1,17 +1,23 @@
1
-
1
+ <div align="center">
2
2
 
3
3
  # 🛰️ AntiGravity IDE
4
- ### *Advanced Edition • v4.1.22 Meta-Engine*
4
+ ### *Advanced Edition • v4.1.28 Meta-Engine*
5
+
6
+ <!-- BADGES: Spaced & Tightly Wrapped to prevent Underlines -->
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/antigravity-ide"><img src="https://img.shields.io/npm/v/antigravity-ide?color=2ea44f&logo=npm" alt="npm version" /></a>&nbsp;&nbsp;
9
+ <a href="https://www.npmjs.com/package/antigravity-ide"><img src="https://img.shields.io/npm/dm/antigravity-ide?color=blueviolet&logo=npm" alt="npm downloads" /></a>&nbsp;&nbsp;
10
+ <a href="https://github.com/Dokhacgiakhoa/antigravity-ide/actions"><img src="https://img.shields.io/github/actions/workflow/status/Dokhacgiakhoa/antigravity-ide/npm-publish.yml?logo=github&label=BUILD" alt="Build Status" /></a>&nbsp;&nbsp;
11
+ <a href="LICENSE"><img src="https://img.shields.io/npm/l/antigravity-ide?color=orange" alt="License" /></a>
12
+ </p>
5
13
 
6
- <!-- VISUAL BADGES -->
7
- [![npm version](https://img.shields.io/npm/v/antigravity-ide?style=flat&color=2ea44f&logo=npm)](https://www.npmjs.com/package/antigravity-ide)
8
- [![npm downloads](https://img.shields.io/npm/dm/antigravity-ide?style=flat&color=blueviolet&logo=npm)](https://www.npmjs.com/package/antigravity-ide)
9
- [![CI Status](https://img.shields.io/github/actions/workflow/status/Dokhacgiakhoa/antigravity-ide/npm-publish.yml?style=flat&logo=github&label=BUILD)](https://github.com/Dokhacgiakhoa/antigravity-ide/actions)
10
- [![License](https://img.shields.io/npm/l/antigravity-ide?style=flat&color=orange)](LICENSE)
14
+ <!-- SECOND ROW: Stats -->
15
+ <p align="center">
16
+ <a href="https://socket.dev/npm/package/antigravity-ide"><img src="https://socket.dev/api/badge/npm/package/antigravity-ide" alt="Socket Badge" /></a>&nbsp;&nbsp;
17
+ <a href="https://github.com/Dokhacgiakhoa/antigravity-ide"><img src="https://img.shields.io/github/languages/code-size/Dokhacgiakhoa/antigravity-ide?color=blue" alt="Code Size" /></a>
18
+ </p>
11
19
 
12
- <!-- SECURITY & QUALITY -->
13
- [![Socket Badge](https://socket.dev/api/badge/npm/package/antigravity-ide)](https://socket.dev/npm/package/antigravity-ide)
14
- [![Code Size](https://img.shields.io/github/languages/code-size/Dokhacgiakhoa/antigravity-ide?style=flat&color=blue)](https://github.com/Dokhacgiakhoa/antigravity-ide)
20
+ <br>
15
21
 
16
22
  **Easy Vibe, Lazy Code. One Command to Rule Them All.**
17
23
 
@@ -19,27 +25,22 @@
19
25
 
20
26
  ---
21
27
 
22
- ### 📊 System Capability Matrix
28
+ ### 📊 System Identity Matrix
23
29
 
24
- | **15** Rules | **573** Skills | **2977** Patterns | **30** Flows | **17** Core Libs |
30
+ | **16** Rules | **573** Skills | **2977** Patterns | **30** Flows | **17** Core Libs |
25
31
  | :---: | :---: | :---: | :---: | :---: |
26
32
  | *Governance* | *Operational* | *Advanced AI* | *Standardized* | *Core Libraries* |
27
33
 
28
34
  </div>
29
35
 
30
- ---
36
+ <br>
31
37
 
32
38
  ## ⚡ Smart Installation (npx)
33
39
 
34
- Antigravity uses a **Dual-Scope Installation Strategy** to ensure stability:
40
+ Antigravity uses a **Dual-Scope Strategy** to ensure absolute stability:
35
41
 
36
42
  1. **Global Scope (Project Root)**: Installs `GEMINI.md` (Configuration).
37
- 2. **Workspace Scope (.agent/)**: Installs Rules, Skills, and Workflows (The Brain).
38
-
39
- **Safe-Sync Protocol:**
40
- - 🟢 **Missing Files**: Automatically added.
41
- - 🟡 **Existing Files**: Skipped to preserve your customizations.
42
- - 🔴 **Reset Force**: Use `--force` if you want to overwrite everything.
43
+ 2. **Workspace Scope (`.agent/`)**: Installs Rules, Skills, and Workflows (The Brain).
43
44
 
44
45
  ```bash
45
46
  # ONE COMMAND TO RULE THEM ALL
@@ -51,7 +52,7 @@ npx antigravity-ide [project-name]
51
52
 
52
53
  ---
53
54
 
54
- ## ✨ The Premium Edge (v4.1.22)
55
+ ## ✨ The Premium Edge (v4.1.28)
55
56
 
56
57
  Why choose AntiGravity over standard AI wrappers?
57
58
 
@@ -84,23 +85,13 @@ your-project/
84
85
  │ ├── rules/ # ⚖️ Governance (Compliance, Context)
85
86
  │ ├── skills/ # 🛠️ Mastery (573 Fractal Skills)
86
87
  │ └── workflows/ # 🚀 Ops (/create, /debug, /audit)
87
- └── (your app) # Your Source Code
88
+ └── GEMINI.md # 📋 Agent Identity & Configuration
88
89
  ```
89
90
 
90
91
  > [!NOTE]
91
92
  > **Scope Definition**:
92
93
  > - **Global**: The CLI Tool (`npx antigravity-ide`) acts as the installer.
93
- > - **Workspace**: All Rules (`.agent/rules`), Skills, and Workflows are installed **Locally** into your project. This ensures total isolation—what happens in one project stays in that project.
94
-
95
- ---
96
-
97
- ### 🧠 Master Ecosystem
98
-
99
- ### 🛠️ Strategic Skill Domains
100
- - **High-Perf Web**: Next.js 15, React 19, Tailwind v4.
101
- - **Offensive Security**: OWASP, Malware, Pentesting.
102
- - **Infra & Cloud**: K8s, Docker, AWS, Vercel, Supabase.
103
- - **Advanced AI**: LangGraph, RAG, Multi-Agent Orchestration.
94
+ > - **Workspace**: All Rules (`.agent/rules`), Skills, and Workflows are installed **Locally** into your project. This ensures total isolation context.
104
95
 
105
96
  ---
106
97
 
@@ -116,14 +107,22 @@ your-project/
116
107
 
117
108
  ## ❓ Frequent Questions
118
109
 
119
- **Q: Is this just another AI wrapper?**
120
- A: No. Wrappers are stateless. Antigravity installs a **Fractal Memory System** (.agent folder) directly into your project. It gives your AI long-term memory, context awareness, and self-correction capabilities.
110
+ <details>
111
+ <summary><strong>Q: Is this just another AI wrapper?</strong></summary>
112
+ A: No. Wrappers are stateless. Antigravity installs a **Fractal Memory System** (`.agent` folder) directly into your project. It gives your AI long-term memory, context awareness, and self-correction capabilities.
113
+ </details>
121
114
 
122
- **Q: What is "Pure Install"?**
115
+ <details>
116
+ <summary><strong>Q: What is "Pure Install"?</strong></summary>
123
117
  A: Starting from v4.1.23, we stripped all bloat. No internal scripts, no dev dependencies. You get **only** the production artifacts needed to run your AI team.
118
+ </details>
119
+
120
+ <details>
121
+ <summary><strong>Q: Can I customize the Agents?</strong></summary>
122
+ A: Yes. "Agents" are now dynamic personas powered by **Skills**. You can teach them new tricks by adding files to `.agent/skills/` or editing `GEMINI.md`. The system adapts to your instructions instantly.
123
+ </details>
124
124
 
125
- **Q: Can I customize the Agents?**
126
- A: Yes. All agents live in `.agent/agents/`. You can edit their prompts, give them new skills, or fire them. You are the boss.
125
+ <br>
127
126
 
128
127
  ---
129
128
 
@@ -133,9 +132,7 @@ A: Yes. All agents live in `.agent/agents/`. You can edit their prompts, give th
133
132
 
134
133
  ---
135
134
 
136
-
137
-
138
-
135
+ <div align="center">
139
136
  Developed with 💡 by <strong>Dokhacgiakhoa</strong><br>
140
137
  <a href="LICENSE">MIT LICENSE</a>
141
138
  </div>
package/README.vi.md CHANGED
@@ -1,17 +1,23 @@
1
-
1
+ <div align="center">
2
2
 
3
3
  # 🛰️ AntiGravity IDE
4
- ### *Phiên bản Nâng cao • v4.1.22 Meta-Engine*
4
+ ### *Phiên bản Nâng cao • v4.1.28 Meta-Engine*
5
+
6
+ <!-- BADGES: Spaced & Tightly Wrapped to prevent Underlines -->
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/antigravity-ide"><img src="https://img.shields.io/npm/v/antigravity-ide?color=2ea44f&logo=npm" alt="npm version" /></a>&nbsp;&nbsp;
9
+ <a href="https://www.npmjs.com/package/antigravity-ide"><img src="https://img.shields.io/npm/dm/antigravity-ide?color=blueviolet&logo=npm" alt="npm downloads" /></a>&nbsp;&nbsp;
10
+ <a href="https://github.com/Dokhacgiakhoa/antigravity-ide/actions"><img src="https://img.shields.io/github/actions/workflow/status/Dokhacgiakhoa/antigravity-ide/npm-publish.yml?logo=github&label=BUILD" alt="Build Status" /></a>&nbsp;&nbsp;
11
+ <a href="LICENSE"><img src="https://img.shields.io/npm/l/antigravity-ide?color=orange" alt="License" /></a>
12
+ </p>
5
13
 
6
- <!-- VISUAL BADGES -->
7
- [![npm version](https://img.shields.io/npm/v/antigravity-ide?style=flat&color=2ea44f&logo=npm)](https://www.npmjs.com/package/antigravity-ide)
8
- [![npm downloads](https://img.shields.io/npm/dm/antigravity-ide?style=flat&color=blueviolet&logo=npm)](https://www.npmjs.com/package/antigravity-ide)
9
- [![CI Status](https://img.shields.io/github/actions/workflow/status/Dokhacgiakhoa/antigravity-ide/npm-publish.yml?style=flat&logo=github&label=BUILD)](https://github.com/Dokhacgiakhoa/antigravity-ide/actions)
10
- [![License](https://img.shields.io/npm/l/antigravity-ide?style=flat&color=orange)](LICENSE)
14
+ <!-- SECOND ROW: Stats -->
15
+ <p align="center">
16
+ <a href="https://socket.dev/npm/package/antigravity-ide"><img src="https://socket.dev/api/badge/npm/package/antigravity-ide" alt="Socket Badge" /></a>&nbsp;&nbsp;
17
+ <a href="https://github.com/Dokhacgiakhoa/antigravity-ide"><img src="https://img.shields.io/github/languages/code-size/Dokhacgiakhoa/antigravity-ide?color=blue" alt="Code Size" /></a>
18
+ </p>
11
19
 
12
- <!-- SECURITY & QUALITY -->
13
- [![Socket Badge](https://socket.dev/api/badge/npm/package/antigravity-ide)](https://socket.dev/npm/package/antigravity-ide)
14
- [![Code Size](https://img.shields.io/github/languages/code-size/Dokhacgiakhoa/antigravity-ide?style=flat&color=blue)](https://github.com/Dokhacgiakhoa/antigravity-ide)
20
+ <br>
15
21
 
16
22
  **Vibe thoải mái, Code thảnh thơi. Một lệnh duy nhất cân cả thế giới.**
17
23
 
@@ -21,13 +27,13 @@
21
27
 
22
28
  ### 📊 Ma trận Năng lực Hệ thống
23
29
 
24
- | **15** Quy tắc | **573** Kỹ năng | **2977** Chiến thuật | **30** Quy trình | **17** Core Libs |
30
+ | **16** Quy tắc | **573** Kỹ năng | **2977** Chiến thuật | **30** Quy trình | **17** Core Libs |
25
31
  | :---: | :---: | :---: | :---: | :---: |
26
32
  | *Quản trị* | *Công cụ lõi* | *Mẫu AI Nâng cao* | *Chuẩn hóa* | *DNA Dùng chung* |
27
33
 
28
34
  </div>
29
35
 
30
- ---
36
+ <br>
31
37
 
32
38
  ## ⚡ Cơ Chế Cài Đặt Thông Minh (Smart Sync)
33
39
 
@@ -36,11 +42,6 @@ Antigravity sử dụng chiến lược **Dual-Scope Installation** để đảm
36
42
  1. **Global Scope (Gốc Dự Án)**: Cài đặt `GEMINI.md` (Cấu hình định danh).
37
43
  2. **Workspace Scope (Thư mục .agent)**: Cài đặt Rules, Skills, Workflows (Bộ não).
38
44
 
39
- **Giao thức Safe-Sync:**
40
- - 🟢 **File Thiếu**: Tự động bổ sung.
41
- - 🟡 **File Trùng**: Tự động bỏ qua (Giữ nguyên code bạn đã sửa).
42
- - 🔴 **Reset Force**: Chỉ ghi đè khi bạn dùng cờ `--force`.
43
-
44
45
  ```bash
45
46
  # MỘT LỆNH DUY NHẤT CHO TẤT CẢ
46
47
  npx antigravity-ide [ten-du-an]
@@ -51,7 +52,7 @@ npx antigravity-ide [ten-du-an]
51
52
 
52
53
  ---
53
54
 
54
- ## ✨ Điểm khác biệt (Phiên bản v4.1.22)
55
+ ## ✨ Điểm khác biệt (Phiên bản v4.1.28)
55
56
 
56
57
  Tại sao nên chọn AntiGravity thay vì các AI wrapper thông thường?
57
58
 
@@ -84,7 +85,7 @@ du-an-cua-ban/
84
85
  │ ├── rules/ # ⚖️ Quản trị (Compliance, Context)
85
86
  │ ├── skills/ # 🛠️ Kỹ năng (573 Fractal Skills)
86
87
  │ └── workflows/ # 🚀 Quy trình (/create, /debug, /audit)
87
- └── (code của bạn) # nguồn ứng dụng
88
+ └── GEMINI.md # 📋 Cấu hình định danh Agent
88
89
  ```
89
90
 
90
91
  > [!NOTE]
@@ -94,16 +95,6 @@ du-an-cua-ban/
94
95
 
95
96
  ---
96
97
 
97
- ## 🧠 Hệ sinh thái Master
98
-
99
- ### 🛠️ Lĩnh vực Tác chiến Kỹ năng
100
- - **Web Hiệu năng cao**: Next.js 15, React 19, Tailwind v4.
101
- - **Bảo mật Tấn công**: OWASP, Malware, Pentesting.
102
- - **Hạ tầng & Cloud**: K8s, Docker, AWS, Vercel, Supabase.
103
- - **AI Chuyên sâu**: LangGraph, RAG, Điều phối Đa Agent.
104
-
105
- ---
106
-
107
98
  ## 🚀 Lệnh Nâng Cao (Power Commands)
108
99
 
109
100
  | Lệnh | Hành động | Logic Xử Lý |
@@ -116,14 +107,22 @@ du-an-cua-ban/
116
107
 
117
108
  ## ❓ Câu Hỏi Thường Gặp
118
109
 
119
- **Q: Đây có phải chỉ là AI wrapper nữa không?**
110
+ <details>
111
+ <summary><strong>Q: Đây có phải chỉ là AI wrapper nữa không?</strong></summary>
120
112
  A: Không. Wrapper thì vô tri (stateless). Antigravity cài đặt một **Hệ Thống Ký Ức Fractal** (thư mục .agent) trực tiếp vào dự án. Nó mang lại khả năng ghi nhớ dài hạn, nhận thức ngữ cảnh và tự sửa lỗi.
113
+ </details>
121
114
 
122
- **Q: "Pure Install" là gì?**
115
+ <details>
116
+ <summary><strong>Q: "Pure Install" là gì?</strong></summary>
123
117
  A: Từ v4.1.23, chúng tôi loại bỏ hoàn toàn mã thừa. Không script nội bộ, không file rác. Bạn chỉ nhận được **đúng** những gì cần thiết để vận hành đội ngũ AI.
118
+ </details>
119
+
120
+ <details>
121
+ <summary><strong>Q: Tôi có thể tùy chỉnh Agent không?</strong></summary>
122
+ A: Có. "Agent" giờ đây là các vai trò động dựa trên **Kỹ năng (Skills)**. Bạn có thể dạy họ chiêu mới bằng cách thêm file vào `.agent/skills/` hoặc sửa `GEMINI.md`. Hệ thống sẽ tự học ngay lập tức.
123
+ </details>
124
124
 
125
- **Q: Tôi có thể tùy chỉnh Agent không?**
126
- A: Có. Tất cả nhân sự ảo nằm trong `.agent/agents/`. Bạn có thể sửa prompt, dạy skill mới hoặc... sa thải họ. Bạn là sếp mà.
125
+ <br>
127
126
 
128
127
  ---
129
128
 
@@ -133,9 +132,7 @@ A: Có. Tất cả nhân sự ảo nằm trong `.agent/agents/`. Bạn có thể
133
132
 
134
133
  ---
135
134
 
136
-
137
-
138
-
135
+ <div align="center">
139
136
  Phát triển với 💡 bởi <strong>Dokhacgiakhoa</strong><br>
140
137
  <a href="LICENSE">MIT LICENSE</a>
141
138
  </div>
package/cli/create.js CHANGED
@@ -112,12 +112,31 @@ async function createProject(projectName, options, predefinedConfig = null) {
112
112
  spinner.succeed(`Installed ${skillCount} skills across ${finalSkillCategories.length} categories`);
113
113
  }
114
114
 
115
+ // Copy workflows
115
116
  // Copy workflows
116
117
  let workflowCount = 0;
117
- if (finalWorkflows.length > 0) {
118
- spinner.start('Setting up workflows...');
119
- workflowCount = await copyWorkflows(projectPath, finalWorkflows);
120
- spinner.succeed(`Configured ${workflowCount} workflows`);
118
+ const workflowsSourceDir = path.join(__dirname, '..', '.agent', 'workflows');
119
+ const workflowsDestDir = path.join(projectPath, '.agent', 'workflows');
120
+
121
+ try {
122
+ if (config.rules === 'creative' && fs.existsSync(workflowsSourceDir)) {
123
+ // FORCE FULL COPY for Creative Mode (Robustness)
124
+ spinner.start('Installing ALL workflows (Creative Mode)...');
125
+ await fs.copy(workflowsSourceDir, workflowsDestDir, { overwrite: true });
126
+ // Count files
127
+ workflowCount = fs.readdirSync(workflowsDestDir).filter(f => f.endsWith('.md')).length;
128
+ spinner.succeed(`Installed ${workflowCount} workflows (Full Suite)`);
129
+ } else if (finalWorkflows.length > 0) {
130
+ // Selective Installation
131
+ spinner.start(`Setting up ${finalWorkflows.length} specific workflows...`);
132
+ workflowCount = await copyWorkflows(projectPath, finalWorkflows);
133
+ spinner.succeed(`Configured ${workflowCount} workflows`);
134
+ } else {
135
+ // Fallback / Warning
136
+ spinner.warn('No workflows configured or found.');
137
+ }
138
+ } catch (err) {
139
+ spinner.warn(`Workflow installation warning: ${err.message}`);
121
140
  }
122
141
 
123
142
  // ... existing code ...
@@ -92,8 +92,9 @@ The following **17 Shared Modules** in \`.agent/.shared\` must be respected:
92
92
  16. **Error Logging**: Automatic learning system.
93
93
  17. **Docs Sync**: Documentation integrity.
94
94
 
95
- 94.
96
95
  ## ⌨️ Slash Commands (Auto-Active)
96
+ > **System Instruction**: Workflows are located in \`.agent/workflows/\`. When a user runs a command, YOU MUST read the corresponding \`.md\` file (e.g. \`/api\` -> \`.agent/workflows/api.md\`) to execute it.
97
+
97
98
  Use these commands to trigger specialized workflows:
98
99
 
99
100
  - **/api**: API Design & Documentation (OpenAPI 3.1).
@@ -196,6 +197,8 @@ Vui lòng sử dụng các kỹ năng phù hợp nhất cho **${industryFocus}**
196
197
  17. **Docs Sync**: Đồng bộ tài liệu.
197
198
 
198
199
  ## ⌨️ Hệ thống lệnh Slash Command (Tự động Kích hoạt)
200
+ > **Chỉ dẫn Hệ thống**: Các quy trình (workflows) nằm trong thư mục \`.agent/workflows/\`. Khi người dùng gọi lệnh, BẠN PHẢI đọc file \`.md\` tương ứng (ví dụ: \`/api\` -> \`.agent/workflows/api.md\`) để thực thi.
201
+
199
202
  Sử dụng các lệnh sau để kích hoạt quy trình tác chiến chuyên sâu:
200
203
 
201
204
  - **/api**: Thiết kế API & Tài liệu hóa (OpenAPI 3.1).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-ide",
3
- "version": "4.1.26",
3
+ "version": "4.1.28",
4
4
  "description": "The Ultimate AI-Powered IDE for 10x Engineers (Full Agentic Workflow)• 573 Master Skills • 2977 AI Patterns • 30 Workflows • 17 Shared Core Libraries. One Command to Rule Them All.",
5
5
  "homepage": "https://antigravity-ide-cli.vercel.app/",
6
6
  "main": "cli/index.js",