antigravity-ide 4.1.3 → 4.1.6
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 +2 -2
- package/README.vi.md +2 -2
- package/cli/create.js +14 -8
- package/cli/logic/gemini-generator.js +3 -3
- package/cli/logic/manifest-manager.js +1 -0
- package/cli/logic/scale-rules.js +14 -7
- package/cli/repair.js +2 -2
- package/package.json +1 -1
- package/setup.js +11 -9
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
3
|
# 🛰️ AntiGravity IDE
|
|
4
|
-
### *
|
|
4
|
+
### *Advanced Edition • v4.1.4 Meta-Engine*
|
|
5
5
|
|
|
6
6
|
[](https://www.npmjs.com/package/antigravity-ide)
|
|
7
7
|
[](https://www.npmjs.com/package/antigravity-ide)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
|
|
10
|
-
**Easy Vibe, Lazy Code.
|
|
10
|
+
**Easy Vibe, Lazy Code. One Command to Rule Them All.**
|
|
11
11
|
## Acknowledgments
|
|
12
12
|
|
|
13
13
|
This project adopts the **[Agent Skills Standard](https://github.com/HoangNguyen0403/agent-skills-standard)** for AI engineering practices.
|
package/README.vi.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
3
|
# 🛰️ AntiGravity IDE
|
|
4
|
-
### *Phiên bản Nâng cao • v4.1.
|
|
4
|
+
### *Phiên bản Nâng cao • v4.1.4 Meta-Engine*
|
|
5
5
|
|
|
6
6
|
[](https://www.npmjs.com/package/antigravity-ide)
|
|
7
7
|
[](https://www.npmjs.com/package/antigravity-ide)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
### 📊 Chỉ số Hệ thống v4.1.
|
|
16
|
+
### 📊 Chỉ số Hệ thống v4.1.4
|
|
17
17
|
|
|
18
18
|
| **15** Quy tắc | **22** Chuyên gia | **573** Kỹ năng | **2977** Chiến thuật | **30** Quy trình | **135** Thư viện DNA |
|
|
19
19
|
| :---: | :---: | :---: | :---: | :---: | :---: |
|
package/cli/create.js
CHANGED
|
@@ -76,17 +76,23 @@ async function createProject(projectName, options, predefinedConfig = null) {
|
|
|
76
76
|
|
|
77
77
|
// If explicitly empty or missing, derive from Scale Rules
|
|
78
78
|
// This ensures automated runs (CI/Test) get balanced resources seamlessly
|
|
79
|
-
if (finalSkillCategories.length === 0 || finalWorkflows.length === 0) {
|
|
79
|
+
if (finalSkillCategories.length === 0 || finalWorkflows.length === 0 || config.rules === 'creative') {
|
|
80
80
|
const scaleConfig = getScaleConfig(config.rules || 'creative'); // Default to creative if rule missing
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
// For Creative mode, we FORCE full set to ensure nothing is stripped
|
|
83
|
+
if (config.rules === 'creative') {
|
|
83
84
|
finalSkillCategories = scaleConfig.coreSkillCategories;
|
|
84
|
-
spinner.info(chalk.dim(`Auto-balanced Skills for ${config.rules}: ${finalSkillCategories.join(', ')}`));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (finalWorkflows.length === 0) {
|
|
88
85
|
finalWorkflows = scaleConfig.baseWorkflows;
|
|
89
|
-
|
|
86
|
+
} else {
|
|
87
|
+
if (finalSkillCategories.length === 0) {
|
|
88
|
+
finalSkillCategories = scaleConfig.coreSkillCategories;
|
|
89
|
+
spinner.info(chalk.dim(`Auto-balanced Skills for ${config.rules}: ${finalSkillCategories.join(', ')}`));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (finalWorkflows.length === 0) {
|
|
93
|
+
finalWorkflows = scaleConfig.baseWorkflows;
|
|
94
|
+
spinner.info(chalk.dim(`Auto-balanced Workflows for ${config.rules}: ${finalWorkflows.join(', ')}`));
|
|
95
|
+
}
|
|
90
96
|
}
|
|
91
97
|
}
|
|
92
98
|
// --- INTELLIGENT RESOURCE BALANCING END ---
|
|
@@ -127,7 +133,7 @@ async function createProject(projectName, options, predefinedConfig = null) {
|
|
|
127
133
|
config.rules,
|
|
128
134
|
config.language,
|
|
129
135
|
config.productType,
|
|
130
|
-
finalProjectName
|
|
136
|
+
config.agentName || finalProjectName // Use Agent Name if valid
|
|
131
137
|
);
|
|
132
138
|
const rootGeminiPath = path.join(projectPath, 'GEMINI.md');
|
|
133
139
|
const rootGeminiDecision = await handleCoreFileConflict(rootGeminiPath, 'GEMINI.md', config.force, config.skipPrompts);
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
function generateGeminiMd(rules, language = 'en', industry = 'other', agentName = 'Antigravity') {
|
|
6
6
|
const strictness = {
|
|
7
|
-
sme: { //
|
|
7
|
+
sme: { // Enterprise / SME
|
|
8
8
|
autoRun: 'false',
|
|
9
9
|
confirmLevel: 'Ask before every file modification and command execution'
|
|
10
10
|
},
|
|
11
|
-
creative: { //
|
|
11
|
+
creative: { // Creative / Team
|
|
12
12
|
autoRun: 'true for safe read operations',
|
|
13
13
|
confirmLevel: 'Ask before destructive operations'
|
|
14
14
|
},
|
|
15
|
-
instant: { //
|
|
15
|
+
instant: { // Instant / Personal
|
|
16
16
|
autoRun: 'true',
|
|
17
17
|
confirmLevel: 'Minimal confirmation, high autonomy'
|
|
18
18
|
}
|
|
@@ -11,6 +11,7 @@ const MANIFEST = {
|
|
|
11
11
|
instant: [
|
|
12
12
|
'GEMINI.md', // Core Constitution (Simple version)
|
|
13
13
|
'code-quality.md', // Basic standards
|
|
14
|
+
'error-logging.md', // Mandatory: Error tracking
|
|
14
15
|
'frontend.md', // UI/UX focus
|
|
15
16
|
'debug.md', // Basic debugging
|
|
16
17
|
'docs-update.md' // Helper
|
package/cli/logic/scale-rules.js
CHANGED
|
@@ -20,12 +20,15 @@ function getScaleConfig(scale) {
|
|
|
20
20
|
|
|
21
21
|
if (scale === 'instant') { // Was Flexible/Personal
|
|
22
22
|
engineMode = 'standard';
|
|
23
|
-
//
|
|
24
|
-
baseWorkflows = [
|
|
25
|
-
|
|
23
|
+
// Target ~25% (Compact) - Focus: Build & Ship Fast
|
|
24
|
+
baseWorkflows = [
|
|
25
|
+
'create', 'plan', 'debug', 'test', 'deploy',
|
|
26
|
+
'preview', 'enhance', 'visually', 'log-error'
|
|
27
|
+
]; // 9 Workflows
|
|
28
|
+
coreSkillCategories = ['webdev', 'uiux', 'maker']; // 3 Categories (30%)
|
|
26
29
|
} else if (scale === 'creative') { // Was Balanced/Team -> Creative/Research
|
|
27
30
|
engineMode = 'advanced';
|
|
28
|
-
//
|
|
31
|
+
// Target 100% (Full)
|
|
29
32
|
baseWorkflows = [
|
|
30
33
|
'api', 'audit', 'blog', 'brainstorm', 'compliance',
|
|
31
34
|
'create', 'debug', 'deploy', 'document', 'enhance',
|
|
@@ -40,9 +43,13 @@ function getScaleConfig(scale) {
|
|
|
40
43
|
];
|
|
41
44
|
} else { // SME (Enterprise)
|
|
42
45
|
engineMode = 'advanced';
|
|
43
|
-
//
|
|
44
|
-
baseWorkflows = [
|
|
45
|
-
|
|
46
|
+
// Target ~50% (Balanced) - Focus: Stability & Ops
|
|
47
|
+
baseWorkflows = [
|
|
48
|
+
'plan', 'status', 'monitor', 'audit', 'deploy',
|
|
49
|
+
'security', 'test', 'compliance', 'api', 'document',
|
|
50
|
+
'log-error', 'release-version', 'update-docs', 'performance', 'onboard'
|
|
51
|
+
]; // 15 Workflows
|
|
52
|
+
coreSkillCategories = ['devops', 'security', 'testing', 'growth', 'research']; // 5 Categories (50%)
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
return { engineMode, rulesMode, baseWorkflows, coreSkillCategories };
|
package/cli/repair.js
CHANGED
|
@@ -72,7 +72,7 @@ async function repairProject(projectPath, options, config) {
|
|
|
72
72
|
config.rules || 'creative',
|
|
73
73
|
config.language || 'vi',
|
|
74
74
|
config.productType || 'other',
|
|
75
|
-
path.basename(projectPath)
|
|
75
|
+
config.agentName || path.basename(projectPath) // Use Agent Name if valid
|
|
76
76
|
);
|
|
77
77
|
|
|
78
78
|
const rootGeminiPath = path.join(projectPath, 'GEMINI.md');
|
|
@@ -89,7 +89,7 @@ async function repairProject(projectPath, options, config) {
|
|
|
89
89
|
// If exists, save as .new to let user compare
|
|
90
90
|
fs.writeFileSync(path.join(projectPath, 'GEMINI.new.md'), geminiContent);
|
|
91
91
|
}
|
|
92
|
-
spinner.succeed('Core Configuration (
|
|
92
|
+
spinner.succeed('Core Configuration applied (v' + require('../package.json').version + ')');
|
|
93
93
|
|
|
94
94
|
console.log(chalk.bold.green('\n✨ Repair & Sync Complete!'));
|
|
95
95
|
console.log(chalk.white(' Your project is now fully aligned with Antigravity v' + require('../package.json').version));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antigravity-ide",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
4
4
|
"description": "The Ultimate AI-Powered IDE for 10x Engineers (Full Agentic Workflow)• 573 Master Skills • 2977 AI Patterns • 30 Workflows • 135 Shared DNA Libraries. One Command to Rule Them All.",
|
|
5
5
|
"homepage": "https://antigravity-ide-cli.vercel.app/",
|
|
6
6
|
"main": "cli/index.js",
|
package/setup.js
CHANGED
|
@@ -86,13 +86,13 @@ async function setup() {
|
|
|
86
86
|
name: 'projectScale',
|
|
87
87
|
message: (prev, values) => values.lang === 'vi' ? 'Chọn Quy mô Dự án (Project Scale):' : 'Select Project Scale:',
|
|
88
88
|
choices: (prev, values) => values.lang === 'vi' ? [
|
|
89
|
-
{ title: '
|
|
90
|
-
{ title: '
|
|
91
|
-
{ title: '
|
|
89
|
+
{ title: '⚡ Instant (Tức thời) - Cá nhân & Nhanh gọn', value: 'instant' },
|
|
90
|
+
{ title: '🎨 Creative (Sáng tạo) - Full AI Suite [Mặc định]', value: 'creative' },
|
|
91
|
+
{ title: '🏢 SME / Enterprise (Doanh nghiệp) - Bảo mật & Chuẩn hóa', value: 'sme' }
|
|
92
92
|
] : [
|
|
93
|
-
{ title: '
|
|
94
|
-
{ title: '
|
|
95
|
-
{ title: '
|
|
93
|
+
{ title: '⚡ Instant - Personal & Fast', value: 'instant' },
|
|
94
|
+
{ title: '🎨 Creative - Full AI Suite [Default]', value: 'creative' },
|
|
95
|
+
{ title: '🏢 SME / Enterprise - Security & Standard', value: 'sme' }
|
|
96
96
|
],
|
|
97
97
|
initial: 1
|
|
98
98
|
},
|
|
@@ -243,9 +243,11 @@ async function setup() {
|
|
|
243
243
|
|
|
244
244
|
// Define rules for each scale
|
|
245
245
|
const rulesToApply = {
|
|
246
|
-
'
|
|
247
|
-
'
|
|
248
|
-
'
|
|
246
|
+
'instant': ['GEMINI.md', 'security.md', 'debug.md'], // Minimal
|
|
247
|
+
'personal': ['GEMINI.md', 'security.md', 'debug.md'], // Legacy fallback
|
|
248
|
+
'creative': null, // All Rules (Full Power)
|
|
249
|
+
'sme': ['GEMINI.md', 'security.md', 'frontend.md', 'backend.md', 'debug.md', 'business.md', 'compliance.md', 'architecture-review.md'],
|
|
250
|
+
'enterprise': null // All Rules
|
|
249
251
|
};
|
|
250
252
|
|
|
251
253
|
const targetRules = rulesToApply[projectScale];
|