antigravity-ide 3.5.71 → 3.5.73
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/cli/logic/product-skills.js +15 -14
- package/cli/logic/workflow-manager.js +6 -6
- package/cli/prompts.js +10 -40
- package/package.json +1 -1
|
@@ -6,29 +6,30 @@
|
|
|
6
6
|
function getProductSkills(productType) {
|
|
7
7
|
const skillsToAdd = new Set();
|
|
8
8
|
|
|
9
|
-
// 1. User Applications
|
|
10
|
-
if (
|
|
9
|
+
// 1. User Applications (Web/Mobile/Desktop)
|
|
10
|
+
if (productType === 'user_app') {
|
|
11
11
|
skillsToAdd.add('webdev');
|
|
12
|
-
}
|
|
13
|
-
if (['web_app', 'pwa', 'desktop'].includes(productType)) {
|
|
14
|
-
skillsToAdd.add('testing'); // Apps need QA
|
|
15
|
-
}
|
|
16
|
-
if (productType === 'mobile_app' || productType === 'game') {
|
|
17
12
|
skillsToAdd.add('mobile');
|
|
13
|
+
skillsToAdd.add('testing');
|
|
18
14
|
}
|
|
19
15
|
|
|
20
|
-
// 2.
|
|
21
|
-
if (
|
|
16
|
+
// 2. Developer Tools (CLI/Lib/API)
|
|
17
|
+
if (productType === 'dev_tool') {
|
|
22
18
|
skillsToAdd.add('devops');
|
|
23
|
-
skillsToAdd.add('testing');
|
|
19
|
+
skillsToAdd.add('testing');
|
|
24
20
|
}
|
|
25
21
|
|
|
26
|
-
// 3. AI Agents
|
|
27
|
-
if (
|
|
22
|
+
// 3. AI Agents (Chatbot/Auto)
|
|
23
|
+
if (productType === 'ai_agent') {
|
|
28
24
|
skillsToAdd.add('ai');
|
|
25
|
+
skillsToAdd.add('maker');
|
|
29
26
|
}
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
|
|
28
|
+
// 4. Digital Assets (Game/Template)
|
|
29
|
+
if (productType === 'digital_asset') {
|
|
30
|
+
skillsToAdd.add('mobile'); // For Game Dev skills
|
|
31
|
+
skillsToAdd.add('webdev'); // For Templates
|
|
32
|
+
skillsToAdd.add('growth'); // For SEO/Marketing
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
return Array.from(skillsToAdd);
|
|
@@ -33,22 +33,22 @@ function getWorkflows(industryDomain, productType, scaleWorkflows) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Implicit Product/Industry Workflows logic
|
|
36
|
-
if (industryDomain === 'personal' || industryDomain === 'fnb' || productType === '
|
|
36
|
+
if (industryDomain === 'personal' || industryDomain === 'fnb' || productType === 'user_app') {
|
|
37
37
|
finalWorkflows.add('ui-ux-pro-max');
|
|
38
38
|
}
|
|
39
|
-
if (industryDomain === 'finance' || industryDomain === 'healthcare' || productType === 'ai_agent'
|
|
39
|
+
if (industryDomain === 'finance' || industryDomain === 'healthcare' || productType === 'ai_agent') {
|
|
40
40
|
finalWorkflows.add('orchestrate');
|
|
41
41
|
}
|
|
42
|
-
if (['logistics', 'other'].includes(industryDomain) ||
|
|
42
|
+
if (['logistics', 'other'].includes(industryDomain) || productType === 'dev_tool') {
|
|
43
43
|
finalWorkflows.add('create');
|
|
44
44
|
}
|
|
45
|
-
if (productType === '
|
|
45
|
+
if (productType === 'dev_tool') {
|
|
46
46
|
finalWorkflows.add('api');
|
|
47
47
|
}
|
|
48
|
-
if (productType === '
|
|
48
|
+
if (productType === 'user_app' || productType === 'digital_asset') {
|
|
49
49
|
finalWorkflows.add('mobile');
|
|
50
50
|
}
|
|
51
|
-
if (productType === '
|
|
51
|
+
if (productType === 'digital_asset') {
|
|
52
52
|
finalWorkflows.add('seo');
|
|
53
53
|
}
|
|
54
54
|
|
package/cli/prompts.js
CHANGED
|
@@ -38,7 +38,7 @@ async function getProjectConfig(skipPrompts = false, predefinedName = null) {
|
|
|
38
38
|
language: 'en',
|
|
39
39
|
packageManager: 'npm',
|
|
40
40
|
engineMode: 'standard',
|
|
41
|
-
productType: '
|
|
41
|
+
productType: 'user_app', // Default
|
|
42
42
|
industryDomain: 'other' // Default
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -96,47 +96,17 @@ async function getProjectConfig(skipPrompts = false, predefinedName = null) {
|
|
|
96
96
|
name: 'productType',
|
|
97
97
|
message: (prev, values) => values.language === 'vi' ? 'Loại sản phẩm (Product Type):' : 'Select Product Type:',
|
|
98
98
|
choices: (prev, values) => values.language === 'vi' ? [
|
|
99
|
-
{ title: '
|
|
100
|
-
{ title: '
|
|
101
|
-
{ title: '
|
|
102
|
-
{ title: '
|
|
103
|
-
{ title: '📱 Mobile App (iOS/Android)', value: 'mobile_app' },
|
|
104
|
-
{ title: '🧩 Browser Extension (Chrome/Edge)', value: 'extension' },
|
|
105
|
-
|
|
106
|
-
{ title: '──────── DEV TOOLS ────────', disabled: true },
|
|
107
|
-
{ title: '⌨️ CLI Tool (Terminal Command)', value: 'cli_tool' },
|
|
108
|
-
{ title: '📦 Library / Package (NPM)', value: 'library' },
|
|
109
|
-
{ title: '🔌 API Service (Backend Only)', value: 'api_service' },
|
|
110
|
-
|
|
111
|
-
{ title: '──────── AI AGENTS ────────', disabled: true },
|
|
112
|
-
{ title: '💬 Chatbot / Assistant (Telegram/Discord)', value: 'chatbot' },
|
|
113
|
-
{ title: '🤖 Autonomous Agent (Tự động hóa)', value: 'ai_agent' },
|
|
114
|
-
|
|
115
|
-
{ title: '──────── ASSETS ────────', disabled: true },
|
|
116
|
-
{ title: '🎮 Interactive Game (Web/Mobile)', value: 'game' },
|
|
117
|
-
{ title: '🎨 Template / Theme', value: 'template' }
|
|
99
|
+
{ title: '📱 User Application (App/Web/Mobile/Desktop)', value: 'user_app' },
|
|
100
|
+
{ title: '🛠️ Developer Tool (CLI/Library/API)', value: 'dev_tool' },
|
|
101
|
+
{ title: '🤖 AI Agent (Chatbot/Automation)', value: 'ai_agent' },
|
|
102
|
+
{ title: '🎨 Digital Asset (Game/Template/Media)', value: 'digital_asset' }
|
|
118
103
|
] : [
|
|
119
|
-
{ title: '
|
|
120
|
-
{ title: '
|
|
121
|
-
{ title: '
|
|
122
|
-
{ title: '
|
|
123
|
-
{ title: '📱 Mobile App (iOS/Android)', value: 'mobile_app' },
|
|
124
|
-
{ title: '🧩 Browser Extension', value: 'extension' },
|
|
125
|
-
|
|
126
|
-
{ title: '──────── DEV TOOLS ────────', disabled: true },
|
|
127
|
-
{ title: '⌨️ CLI Tool', value: 'cli_tool' },
|
|
128
|
-
{ title: '📦 Library / Package', value: 'library' },
|
|
129
|
-
{ title: '🔌 API Service (Backend)', value: 'api_service' },
|
|
130
|
-
|
|
131
|
-
{ title: '──────── AI AGENTS ────────', disabled: true },
|
|
132
|
-
{ title: '💬 Chatbot / Assistant', value: 'chatbot' },
|
|
133
|
-
{ title: '🤖 Autonomous Agent', value: 'ai_agent' },
|
|
134
|
-
|
|
135
|
-
{ title: '──────── ASSETS ────────', disabled: true },
|
|
136
|
-
{ title: '🎮 Interactive Game', value: 'game' },
|
|
137
|
-
{ title: '🎨 Template / Theme', value: 'template' }
|
|
104
|
+
{ title: '📱 User Application (App/Web/Mobile/Desktop)', value: 'user_app' },
|
|
105
|
+
{ title: '🛠️ Developer Tool (CLI/Library/API)', value: 'dev_tool' },
|
|
106
|
+
{ title: '🤖 AI Agent (Chatbot/Automation)', value: 'ai_agent' },
|
|
107
|
+
{ title: '🎨 Digital Asset (Game/Template/Media)', value: 'digital_asset' }
|
|
138
108
|
],
|
|
139
|
-
initial:
|
|
109
|
+
initial: 0
|
|
140
110
|
},
|
|
141
111
|
{
|
|
142
112
|
type: 'text',
|