agdi 2.10.0 → 2.10.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.
- package/README.md +130 -116
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,182 +1,196 @@
|
|
|
1
1
|
# Agdi CLI
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
<div align="center">
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
### 🦸 The Autonomous AI Development Team
|
|
6
|
+
### Build, Test, and Deploy Full-Stack Apps from a Single Prompt
|
|
7
|
+
|
|
8
|
+
[](https://www.npmjs.com/package/agdi)
|
|
9
|
+
[](https://www.npmjs.com/package/agdi)
|
|
10
|
+
|
|
11
|
+
</div>
|
|
7
12
|
|
|
8
13
|
---
|
|
9
14
|
|
|
10
|
-
##
|
|
15
|
+
## 🎬 What is Agdi?
|
|
16
|
+
|
|
17
|
+
> **One prompt. Full app. Live URL.**
|
|
11
18
|
|
|
12
19
|
```bash
|
|
13
|
-
|
|
20
|
+
agdi squad "Build a todo app with authentication" --deploy
|
|
21
|
+
# → Live URL in ~2 minutes
|
|
14
22
|
```
|
|
15
23
|
|
|
16
|
-
|
|
24
|
+
---
|
|
17
25
|
|
|
18
|
-
|
|
19
|
-
# 1. Configure your API key (required)
|
|
20
|
-
agdi auth
|
|
26
|
+
## 🔄 How It Works
|
|
21
27
|
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
```
|
|
29
|
+
┌─────────────────┐
|
|
30
|
+
│ 👤 Your Prompt │
|
|
31
|
+
└────────┬────────┘
|
|
32
|
+
│
|
|
33
|
+
▼
|
|
34
|
+
┌─────────────────┐
|
|
35
|
+
│ 🧠 Manager │───▶ 📋 Project Spec
|
|
36
|
+
└────────┬────────┘
|
|
37
|
+
│
|
|
38
|
+
┌──────────────┴──────────────┐
|
|
39
|
+
│ │
|
|
40
|
+
▼ ▼
|
|
41
|
+
┌─────────────────┐ ┌─────────────────┐
|
|
42
|
+
│ 🎨 Frontend │ │ ⚙️ Backend │
|
|
43
|
+
└────────┬────────┘ └────────┬────────┘
|
|
44
|
+
│ │
|
|
45
|
+
└──────────────┬──────────────┘
|
|
46
|
+
│
|
|
47
|
+
▼
|
|
48
|
+
┌─────────────────┐
|
|
49
|
+
│ 🕵️ QA Agent │
|
|
50
|
+
└────────┬────────┘
|
|
51
|
+
│
|
|
52
|
+
┌────────┴────────┐
|
|
53
|
+
│ Build Pass? │
|
|
54
|
+
└────────┬────────┘
|
|
55
|
+
│
|
|
56
|
+
┌──────────────┴──────────────┐
|
|
57
|
+
│ No Yes │
|
|
58
|
+
▼ ▼
|
|
59
|
+
┌─────────────────┐ ┌─────────────────┐
|
|
60
|
+
│ 🔧 Auto-Fix │ │ 🚀 DevOps │
|
|
61
|
+
└────────┬────────┘ └────────┬────────┘
|
|
62
|
+
│ │
|
|
63
|
+
└──────────▶ ◀────────────────┘
|
|
64
|
+
│
|
|
65
|
+
▼
|
|
66
|
+
┌─────────────────┐
|
|
67
|
+
│ 🌐 Live URL! │
|
|
68
|
+
└─────────────────┘
|
|
24
69
|
```
|
|
25
70
|
|
|
26
71
|
---
|
|
27
72
|
|
|
28
|
-
##
|
|
73
|
+
## 🚀 Quick Start
|
|
29
74
|
|
|
30
|
-
###
|
|
31
|
-
Start the AI coding assistant in your terminal.
|
|
75
|
+
### 1. Install
|
|
32
76
|
|
|
33
77
|
```bash
|
|
34
|
-
agdi
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### `agdi squad` — Autonomous Multi-Agent Builder 🆕
|
|
38
|
-
Activate the Agdi Squad — a team of AI agents that build complete apps.
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
agdi squad "Build a todo app with authentication"
|
|
42
|
-
agdi squad "Build a SaaS dashboard" --deploy
|
|
43
|
-
agdi squad "Build a blog" --output ./my-blog
|
|
78
|
+
npm install -g agdi
|
|
44
79
|
```
|
|
45
80
|
|
|
46
|
-
|
|
47
|
-
- `--deploy` — Auto-deploy to Vercel/Netlify after build
|
|
48
|
-
- `--output <dir>` — Specify output directory (default: `./`)
|
|
49
|
-
- `--verbose` — Show detailed agent logs
|
|
50
|
-
|
|
51
|
-
### `agdi build` — Single-Shot Build
|
|
52
|
-
Generate an app from a prompt without interactive mode.
|
|
81
|
+
### 2. Configure
|
|
53
82
|
|
|
54
83
|
```bash
|
|
55
|
-
agdi
|
|
56
|
-
|
|
57
|
-
|
|
84
|
+
agdi auth
|
|
85
|
+
# Select: Google Gemini (Recommended - Free Tier)
|
|
86
|
+
# Enter your API key from: https://aistudio.google.com/apikey
|
|
58
87
|
```
|
|
59
88
|
|
|
60
|
-
###
|
|
61
|
-
Set up API keys for AI providers and deployment tokens.
|
|
89
|
+
### 3. Build
|
|
62
90
|
|
|
63
91
|
```bash
|
|
64
|
-
agdi
|
|
65
|
-
agdi auth --status # Show configured providers
|
|
92
|
+
agdi squad "Build a blog with comments" --deploy
|
|
66
93
|
```
|
|
67
94
|
|
|
68
|
-
|
|
69
|
-
- Google Gemini (Recommended - Free tier)
|
|
70
|
-
- OpenAI (GPT-5, o1)
|
|
71
|
-
- Anthropic (Claude 4.5)
|
|
72
|
-
- DeepSeek (V3, R1)
|
|
73
|
-
- xAI (Grok 3)
|
|
74
|
-
- OpenRouter (100+ models)
|
|
75
|
-
|
|
76
|
-
**Deployment Tokens:**
|
|
77
|
-
- Vercel
|
|
78
|
-
- Netlify
|
|
79
|
-
|
|
80
|
-
### `agdi model` — Change AI Model
|
|
81
|
-
Switch between AI providers and models.
|
|
95
|
+
---
|
|
82
96
|
|
|
83
|
-
|
|
84
|
-
agdi model
|
|
85
|
-
```
|
|
97
|
+
## 🦸 The Agdi Squad
|
|
86
98
|
|
|
87
|
-
|
|
88
|
-
|
|
99
|
+
| Agent | Role | What It Does |
|
|
100
|
+
|-------|------|--------------|
|
|
101
|
+
| 🧠 **Manager** | Project Lead | Analyzes prompt → Creates project spec |
|
|
102
|
+
| 🎨 **Frontend** | UI Developer | React, Next.js, Tailwind components |
|
|
103
|
+
| ⚙️ **Backend** | API Developer | Prisma schema, REST APIs, DB logic |
|
|
104
|
+
| 🕵️ **QA** | Quality Engineer | Runs build → Fixes errors → Repeats |
|
|
105
|
+
| 🚀 **DevOps** | Deployment | Deploys to Vercel/Netlify |
|
|
89
106
|
|
|
90
|
-
|
|
91
|
-
agdi chat
|
|
92
|
-
```
|
|
107
|
+
---
|
|
93
108
|
|
|
94
|
-
|
|
95
|
-
Run diagnostics and health checks.
|
|
109
|
+
## 📖 Commands
|
|
96
110
|
|
|
97
111
|
```bash
|
|
98
|
-
|
|
112
|
+
# Core
|
|
113
|
+
agdi # Interactive mode
|
|
114
|
+
agdi auth # Configure API keys
|
|
115
|
+
agdi squad "..." # Multi-agent builder
|
|
116
|
+
agdi build "..." # Single-agent build
|
|
117
|
+
|
|
118
|
+
# Squad Options
|
|
119
|
+
agdi squad "..." --deploy # Auto-deploy to Vercel
|
|
120
|
+
agdi squad "..." --output ./ # Specify output directory
|
|
121
|
+
|
|
122
|
+
# Other
|
|
123
|
+
agdi model # Change AI model
|
|
124
|
+
agdi chat # Q&A mode
|
|
125
|
+
agdi doctor # System health check
|
|
99
126
|
```
|
|
100
127
|
|
|
101
128
|
---
|
|
102
129
|
|
|
103
|
-
##
|
|
130
|
+
## 🔐 Zero-Touch Deployment
|
|
104
131
|
|
|
105
|
-
|
|
132
|
+
### Setup (One-Time)
|
|
106
133
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
| ⚙️ **Backend** | Creates APIs, database schemas (Prisma), server logic |
|
|
112
|
-
| 🕵️ **QA** | Runs builds, tests, and auto-fixes errors |
|
|
113
|
-
| 🚀 **DevOps** | Deploys to Vercel/Netlify (if `--deploy` is used) |
|
|
114
|
-
|
|
115
|
-
**Flow:**
|
|
116
|
-
```
|
|
117
|
-
Prompt → Manager → [Frontend + Backend] → QA → DevOps → Live URL
|
|
134
|
+
```bash
|
|
135
|
+
agdi auth
|
|
136
|
+
# Select: 🚀 Deployment (Vercel/Netlify)
|
|
137
|
+
# Get token from: https://vercel.com/account/tokens
|
|
118
138
|
```
|
|
119
139
|
|
|
120
|
-
|
|
140
|
+
### Deploy
|
|
121
141
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"geminiApiKey": "AIza...",
|
|
132
|
-
"defaultProvider": "gemini",
|
|
133
|
-
"defaultModel": "gemini-3-pro-preview",
|
|
134
|
-
"vercelToken": "...",
|
|
135
|
-
"deploymentProvider": "vercel"
|
|
136
|
-
}
|
|
142
|
+
```bash
|
|
143
|
+
agdi squad "Build a landing page" --deploy
|
|
144
|
+
|
|
145
|
+
# 🚀 Agdi Squad Activated!
|
|
146
|
+
# 📋 Phase 1: Planning... ✓
|
|
147
|
+
# ⚡ Phase 2: Execution... ✓
|
|
148
|
+
# ✅ Phase 3: Validation... ✓
|
|
149
|
+
# 🚀 Phase 4: Deployment... ✓
|
|
150
|
+
# 🎉 Live at: https://your-app.vercel.app
|
|
137
151
|
```
|
|
138
152
|
|
|
139
153
|
---
|
|
140
154
|
|
|
141
|
-
##
|
|
142
|
-
|
|
143
|
-
When in interactive mode (`agdi`), use these slash commands:
|
|
155
|
+
## 🤖 Supported AI Providers
|
|
144
156
|
|
|
145
|
-
|
|
|
146
|
-
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
157
|
+
| Provider | Models | Get Key |
|
|
158
|
+
|----------|--------|---------|
|
|
159
|
+
| 🔥 **Gemini** | Gemini 3 Pro, Flash | [aistudio.google.com](https://aistudio.google.com/apikey) |
|
|
160
|
+
| 🧠 **OpenAI** | GPT-5.2, o1 | [platform.openai.com](https://platform.openai.com/api-keys) |
|
|
161
|
+
| 💜 **Anthropic** | Claude 4.5 | [console.anthropic.com](https://console.anthropic.com/) |
|
|
162
|
+
| 🌊 **DeepSeek** | V3, R1, Coder | [platform.deepseek.com](https://platform.deepseek.com/) |
|
|
163
|
+
| 🚀 **xAI** | Grok 3 | [console.x.ai](https://console.x.ai/) |
|
|
164
|
+
| 🌐 **OpenRouter** | 100+ models | [openrouter.ai](https://openrouter.ai/keys) |
|
|
153
165
|
|
|
154
166
|
---
|
|
155
167
|
|
|
156
|
-
## Security
|
|
168
|
+
## 🛡️ Security
|
|
157
169
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
170
|
+
| Feature | Protection |
|
|
171
|
+
|---------|------------|
|
|
172
|
+
| 🔐 **API Keys** | Stored in ~/.agdi/config.json with 0600 permissions |
|
|
173
|
+
| 📁 **Workspace** | Commands restricted to current directory |
|
|
174
|
+
| ⚠️ **Dangerous Ops** | Requires user confirmation |
|
|
175
|
+
| 📝 **Audit Log** | All operations logged |
|
|
162
176
|
|
|
163
177
|
---
|
|
164
178
|
|
|
165
|
-
## Requirements
|
|
179
|
+
## 📋 Requirements
|
|
166
180
|
|
|
167
|
-
- Node.js 18+
|
|
168
|
-
- npm 9+
|
|
181
|
+
- **Node.js**: 18+
|
|
182
|
+
- **npm**: 9+
|
|
169
183
|
|
|
170
184
|
---
|
|
171
185
|
|
|
172
|
-
## Links
|
|
186
|
+
## 🔗 Links
|
|
173
187
|
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
188
|
+
- 🌐 **Web App**: [agdi-dev.vercel.app](https://agdi-dev.vercel.app)
|
|
189
|
+
- 📦 **npm**: [npmjs.com/package/agdi](https://www.npmjs.com/package/agdi)
|
|
190
|
+
- 💻 **GitHub**: [github.com/anassagd432/Agdi-dev](https://github.com/anassagd432/Agdi-dev)
|
|
177
191
|
|
|
178
192
|
---
|
|
179
193
|
|
|
180
|
-
## License
|
|
194
|
+
## 📄 License
|
|
181
195
|
|
|
182
196
|
MIT © 2024-2026 Agdi
|
package/dist/index.js
CHANGED
|
@@ -6327,7 +6327,7 @@ ${chalk18.cyan(`/_/ |_|\\_, /\\__,_//_/ `)}
|
|
|
6327
6327
|
${chalk18.cyan(` /____/ `)}
|
|
6328
6328
|
`;
|
|
6329
6329
|
var program = new Command();
|
|
6330
|
-
program.name("agdi").description(chalk18.cyan("\u{1F680} AI-powered coding assistant")).version("2.10.
|
|
6330
|
+
program.name("agdi").description(chalk18.cyan("\u{1F680} AI-powered coding assistant")).version("2.10.2").option("-y, --yes", "Auto-approve all prompts (headless/CI mode)").option("-m, --minimal", "Generate only the requested file(s), not a full app").option("-d, --dry-run", "Show what would be created without writing files");
|
|
6331
6331
|
program.hook("preAction", (thisCommand) => {
|
|
6332
6332
|
const opts = thisCommand.opts();
|
|
6333
6333
|
if (opts.yes) {
|