antigravity-ide 4.1.3 → 4.1.4

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,13 +1,13 @@
1
1
  <div align="center">
2
2
 
3
3
  # 🛰️ AntiGravity IDE
4
- ### *Enhanced Edition • v4.1.0 Meta-Engine*
4
+ ### *Advanced Edition • v4.1.4 Meta-Engine*
5
5
 
6
6
  [![npm version](https://img.shields.io/npm/v/antigravity-ide.svg?style=for-the-badge&color=2ea44f)](https://www.npmjs.com/package/antigravity-ide)
7
7
  [![npm downloads](https://img.shields.io/npm/dm/antigravity-ide.svg?style=for-the-badge&color=blueviolet)](https://www.npmjs.com/package/antigravity-ide)
8
8
  [![license](https://img.shields.io/npm/l/antigravity-ide.svg?style=for-the-badge&color=orange)](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.0 Meta-Engine*
4
+ ### *Phiên bản Nâng cao • v4.1.4 Meta-Engine*
5
5
 
6
6
  [![npm version](https://img.shields.io/npm/v/antigravity-ide.svg?style=for-the-badge&color=2ea44f)](https://www.npmjs.com/package/antigravity-ide)
7
7
  [![npm downloads](https://img.shields.io/npm/dm/antigravity-ide.svg?style=for-the-badge&color=blueviolet)](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.0
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
- if (finalSkillCategories.length === 0) {
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
- spinner.info(chalk.dim(`Auto-balanced Workflows for ${config.rules}: ${finalWorkflows.join(', ')}`));
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: { // Was Strict/Enterprise
7
+ sme: { // Enterprise / SME
8
8
  autoRun: 'false',
9
9
  confirmLevel: 'Ask before every file modification and command execution'
10
10
  },
11
- creative: { // Was Balanced/Team
11
+ creative: { // Creative / Team
12
12
  autoRun: 'true for safe read operations',
13
13
  confirmLevel: 'Ask before destructive operations'
14
14
  },
15
- instant: { // Was Flexible/Personal
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
@@ -20,12 +20,15 @@ function getScaleConfig(scale) {
20
20
 
21
21
  if (scale === 'instant') { // Was Flexible/Personal
22
22
  engineMode = 'standard';
23
- // Enriched: Essential dev loop (Plan -> Create -> Test -> Deploy)
24
- baseWorkflows = ['create', 'plan', 'debug', 'test', 'deploy', 'preview'];
25
- coreSkillCategories = ['webdev', 'uiux', 'testing', 'maker'];
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
- // User requested FULL TOOLS for Creative mode
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
- // Enriched: Corporate-grade control + Architecture
44
- baseWorkflows = ['plan', 'status', 'monitor', 'audit', 'deploy', 'security', 'test', 'compliance', 'api', 'document'];
45
- coreSkillCategories = ['devops', 'security', 'testing', 'growth', 'research'];
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 (v4.0.8) applied');
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",
3
+ "version": "4.1.4",
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: '👤 Personal ( nhân) - Tinh gọn (Core + Debug)', value: 'personal' },
90
- { title: '🏢 SME / Start-Up (Tiêu chuẩn) - Đầy đủ Big 5 [Mặc định]', value: 'sme' },
91
- { title: '🏭 Enterprise (Tập đoàn) - Full Option + Compliance', value: 'enterprise' }
89
+ { title: ' Instant (Tức thời) - 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: '👤 Personal - Lean (Core + Debug)', value: 'personal' },
94
- { title: '🏢 SME / Start-Up - Standard Big 5 [Default]', value: 'sme' },
95
- { title: '🏭 Enterprise - Full Option + Compliance', value: 'enterprise' }
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
- 'personal': ['GEMINI.md', 'security.md', 'debug.md'],
247
- 'sme': ['GEMINI.md', 'security.md', 'frontend.md', 'backend.md', 'debug.md', 'business.md'],
248
- 'enterprise': null // null means ALL files from Global
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];