agdi 2.8.8 → 2.9.0
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 +238 -217
- package/bin/agdi.js +6 -1
- package/dist/index.js +22 -2
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -18,311 +18,332 @@
|
|
|
18
18
|
[](https://opensource.org/licenses/MIT)
|
|
19
19
|
[](https://nodejs.org/)
|
|
20
20
|
|
|
21
|
-
**Build apps from natural language •
|
|
21
|
+
**Build apps from natural language • Latest 2026 AI Models • Clean Terminal UI**
|
|
22
22
|
|
|
23
|
-
[Website](https://agdi-dev.vercel.app) · [npm](https://www.npmjs.com/package/agdi) ·
|
|
23
|
+
[Website](https://agdi-dev.vercel.app) · [npm](https://www.npmjs.com/package/agdi) · [GitHub](https://github.com/anassagd432/Agdi-dev)
|
|
24
24
|
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
|
-
## 🚀
|
|
29
|
+
## 🚀 Quick Start
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
<img src="https://img.shields.io/badge/NEW-GitHub_Import-00d1b2?style=for-the-badge" alt="GitHub Import">
|
|
33
|
-
<img src="https://img.shields.io/badge/NEW-Voice_Commands-ff6b6b?style=for-the-badge" alt="Voice">
|
|
34
|
-
<img src="https://img.shields.io/badge/NEW-Self_Repair-8b5cf6?style=for-the-badge" alt="Self-Repair">
|
|
35
|
-
</div>
|
|
31
|
+
### Installation
|
|
36
32
|
|
|
37
|
-
|
|
33
|
+
```bash
|
|
34
|
+
npm install -g agdi
|
|
35
|
+
```
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
### **IMPORTANT: Configure API Keys First**
|
|
38
|
+
|
|
39
|
+
After installation, you **MUST** set up your API keys before using agdi:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
agdi auth
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
This command will guide you through:
|
|
46
|
+
1. Selecting your AI provider (Gemini, OpenAI, Anthropic, DeepSeek, OpenRouter, xAI)
|
|
47
|
+
2. Entering your API key
|
|
48
|
+
3. Choosing your default model
|
|
49
|
+
|
|
50
|
+
### Start Coding
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
agdi
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
That's it! Start describing what you want to build.
|
|
46
57
|
|
|
47
58
|
---
|
|
48
59
|
|
|
49
|
-
##
|
|
60
|
+
## 🎯 Latest in v2.8.8
|
|
50
61
|
|
|
51
62
|
<div align="center">
|
|
52
|
-
<img src="https://img.shields.io/badge/
|
|
63
|
+
<img src="https://img.shields.io/badge/NEW-xAI_Grok-00d1b2?style=for-the-badge" alt="xAI">
|
|
64
|
+
<img src="https://img.shields.io/badge/NEW-DeepSeek_Coder-ff6b6b?style=for-the-badge" alt="DeepSeek Coder">
|
|
65
|
+
<img src="https://img.shields.io/badge/UPDATED-All_2026_Models-8b5cf6?style=for-the-badge" alt="2026 Models">
|
|
53
66
|
</div>
|
|
54
67
|
|
|
55
|
-
### ✨
|
|
68
|
+
### ✨ What's New
|
|
56
69
|
|
|
57
|
-
|
|
|
58
|
-
|
|
59
|
-
| **
|
|
60
|
-
| **
|
|
61
|
-
| **
|
|
62
|
-
| **
|
|
63
|
-
| **
|
|
70
|
+
| Update | Details |
|
|
71
|
+
|--------|---------|
|
|
72
|
+
| **xAI Provider** | NEW! Grok 3, Grok 2, Grok 2 Mini support |
|
|
73
|
+
| **DeepSeek Coder** | Latest coding models: Coder V3 & V2.5 |
|
|
74
|
+
| **Gemini 3** | Pro, Flash, Deep Think (Nov 2025) |
|
|
75
|
+
| **GPT-5** | 5.2 (Flagship), 5.1, Codex variants |
|
|
76
|
+
| **Claude 4.5** | Opus, Sonnet, Haiku (Nov 2025) |
|
|
77
|
+
| **Multi-Line Input** | Paste long prompts easily |
|
|
78
|
+
| **Clean UI** | Removed emojis for professional look |
|
|
64
79
|
|
|
65
|
-
|
|
80
|
+
---
|
|
66
81
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
82
|
+
## 🤖 Supported AI Providers
|
|
83
|
+
|
|
84
|
+
agdi supports **6 AI providers** with the latest 2026 models:
|
|
85
|
+
|
|
86
|
+
### 1. Google Gemini (Recommended - Free Tier)
|
|
87
|
+
- Gemini 3 Pro (Most Intelligent)
|
|
88
|
+
- Gemini 3 Flash (Fast)
|
|
89
|
+
- Gemini 3 Deep Think (Reasoning)
|
|
90
|
+
- Gemini 2.5 Pro/Flash
|
|
91
|
+
- Get key: https://aistudio.google.com/apikey
|
|
92
|
+
|
|
93
|
+
### 2. OpenAI
|
|
94
|
+
- GPT-5.2 (Flagship), Instant, Thinking, Codex
|
|
95
|
+
- GPT-5.1, Instant, Codex Max
|
|
96
|
+
- GPT-4o, 4o Mini, o1, o1-mini
|
|
97
|
+
- Get key: https://platform.openai.com/api-keys
|
|
98
|
+
|
|
99
|
+
### 3. Anthropic
|
|
100
|
+
- Claude Opus 4.5 (Most Intelligent)
|
|
101
|
+
- Claude Sonnet 4.5, Haiku 4.5
|
|
102
|
+
- Claude 3.5 Sonnet/Haiku
|
|
103
|
+
- Get key: https://console.anthropic.com/
|
|
104
|
+
|
|
105
|
+
### 4. DeepSeek
|
|
106
|
+
- DeepSeek V3
|
|
107
|
+
- DeepSeek R1 (Reasoning)
|
|
108
|
+
- DeepSeek Coder V3 (NEW - Coding Specialist)
|
|
109
|
+
- DeepSeek Coder V2.5
|
|
110
|
+
- Get key: https://platform.deepseek.com/
|
|
111
|
+
|
|
112
|
+
### 5. xAI (NEW!)
|
|
113
|
+
- Grok 3 (Latest)
|
|
114
|
+
- Grok 2
|
|
115
|
+
- Grok 2 Mini
|
|
116
|
+
- Get key: https://console.x.ai/
|
|
117
|
+
|
|
118
|
+
### 6. OpenRouter
|
|
119
|
+
- 100+ models from multiple providers
|
|
120
|
+
- Free models available
|
|
121
|
+
- Get key: https://openrouter.ai/keys
|
|
96
122
|
|
|
97
123
|
---
|
|
98
124
|
|
|
99
|
-
##
|
|
125
|
+
## 📖 Usage Guide
|
|
126
|
+
|
|
127
|
+
### Basic Commands
|
|
100
128
|
|
|
101
129
|
```bash
|
|
102
|
-
|
|
130
|
+
# Start interactive coding mode
|
|
103
131
|
agdi
|
|
104
|
-
```
|
|
105
132
|
|
|
106
|
-
|
|
133
|
+
# Configure/change API keys
|
|
134
|
+
agdi auth
|
|
107
135
|
|
|
108
|
-
|
|
136
|
+
# Change model
|
|
137
|
+
agdi model
|
|
109
138
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
<td width="50%">
|
|
139
|
+
# Build specific app
|
|
140
|
+
agdi build "create a todo app"
|
|
113
141
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
142
|
+
# Chat mode
|
|
143
|
+
agdi chat
|
|
144
|
+
|
|
145
|
+
# Help
|
|
146
|
+
agdi --help
|
|
119
147
|
```
|
|
120
|
-
Your code is reviewed by AI before delivery.
|
|
121
148
|
|
|
122
|
-
|
|
123
|
-
<td width="50%">
|
|
149
|
+
### Advanced Options
|
|
124
150
|
|
|
125
|
-
### 🎤 Voice Input (NEW)
|
|
126
151
|
```bash
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
→ Generating...
|
|
130
|
-
```
|
|
131
|
-
Talk to build apps!
|
|
152
|
+
# Auto-approve all prompts (CI/CD mode)
|
|
153
|
+
agdi --yes
|
|
132
154
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
<tr>
|
|
136
|
-
<td width="50%">
|
|
155
|
+
# Generate minimal files only
|
|
156
|
+
agdi --minimal "create a utility function"
|
|
137
157
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
158
|
+
# Dry run (preview without creating)
|
|
159
|
+
agdi --dry-run "build a landing page"
|
|
160
|
+
|
|
161
|
+
# System health check
|
|
162
|
+
agdi doctor
|
|
143
163
|
```
|
|
144
164
|
|
|
145
|
-
|
|
146
|
-
<td width="50%">
|
|
165
|
+
### Slash Commands (In Interactive Mode)
|
|
147
166
|
|
|
148
|
-
### 🩹 Self-Repair (NEW)
|
|
149
167
|
```bash
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
168
|
+
/status # Show git status with AI summary
|
|
169
|
+
/diff # Show git diff with AI explanation
|
|
170
|
+
/commit # Generate AI commit message
|
|
171
|
+
/build # Create new files/features
|
|
172
|
+
/edit # Modify existing files
|
|
173
|
+
/help # Show all commands
|
|
174
|
+
/exit # Exit agdi
|
|
154
175
|
```
|
|
155
176
|
|
|
156
|
-
</td>
|
|
157
|
-
</tr>
|
|
158
|
-
</table>
|
|
159
|
-
|
|
160
177
|
---
|
|
161
178
|
|
|
162
|
-
##
|
|
163
|
-
|
|
164
|
-
| Command | Description |
|
|
165
|
-
|---------|-------------|
|
|
166
|
-
| `/build <prompt>` | Generate & execute an application |
|
|
167
|
-
| `/edit <file>` | AI-powered surgical file editing |
|
|
168
|
-
| `/index` | Index project for semantic search |
|
|
169
|
-
| `/search <query>` | Search codebase with AI |
|
|
170
|
-
| `/agent` | Toggle multi-agent mode |
|
|
171
|
-
| `/tools` | List MCP tools |
|
|
172
|
-
| `/memory` | View persistent memory |
|
|
173
|
-
| `/status` | AI git status analysis |
|
|
174
|
-
| `/diff` | AI change explanation |
|
|
175
|
-
| `/commit` | Auto-generate commit message |
|
|
176
|
-
| `/clear` | Clear conversation |
|
|
177
|
-
| `/history` | Show recent messages |
|
|
178
|
-
| `/model` | Change AI model |
|
|
179
|
-
| `/help` | Show all commands |
|
|
180
|
-
| `/exit` | Exit Agdi |
|
|
181
|
-
|
|
182
|
-
---
|
|
179
|
+
## 🎬 Terminal Experience
|
|
183
180
|
|
|
184
|
-
|
|
181
|
+
### Clean, Professional UI
|
|
185
182
|
|
|
186
183
|
```
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
│
|
|
199
|
-
│
|
|
200
|
-
│
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
184
|
+
___ __________ ____
|
|
185
|
+
/ | / ____/ __ \/ _/
|
|
186
|
+
/ /| |/ / __/ / / // /
|
|
187
|
+
/ ___ / /_/ / /_/ // /
|
|
188
|
+
/_/ |_\____/_____/___/
|
|
189
|
+
|
|
190
|
+
v2.8.8 [ARCHITECT ONLINE]
|
|
191
|
+
|
|
192
|
+
╭ SESSION INFO ─────────────────────────────╮
|
|
193
|
+
│ │
|
|
194
|
+
│ Model: gemini-3-pro-preview │
|
|
195
|
+
│ Workspace: ~/projects/my-app │
|
|
196
|
+
│ Context: Local Folder │
|
|
197
|
+
│ │
|
|
198
|
+
╰───────────────────────────────────────────╯
|
|
199
|
+
|
|
200
|
+
👤 YOU › create a modern landing page
|
|
201
|
+
|
|
202
|
+
╭ PLAN: landing-page ────────╮
|
|
203
|
+
│ │
|
|
204
|
+
│ 📁 Create 2 directories │
|
|
205
|
+
│ 📄 Create 8 files │
|
|
206
|
+
│ ⚡ Run 2 commands │
|
|
207
|
+
│ │
|
|
208
|
+
╰────────────────────────────╯
|
|
204
209
|
```
|
|
205
210
|
|
|
206
211
|
---
|
|
207
212
|
|
|
208
|
-
## 🛡️
|
|
209
|
-
|
|
210
|
-
### Permission Tiers
|
|
213
|
+
## 🛡️ Security Features
|
|
211
214
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
| 2 | System | `npm install`, `docker run` | Always prompt |
|
|
217
|
-
| 3 | Dangerous | `sudo`, `rm -rf`, `curl\|bash` | Block |
|
|
215
|
+
### Workspace Trust
|
|
216
|
+
- Prompts before executing commands outside workspace
|
|
217
|
+
- Prevents accidental system modifications
|
|
218
|
+
- Audit logging of all dangerous operations
|
|
218
219
|
|
|
219
|
-
###
|
|
220
|
+
### Dangerous Command Detection
|
|
221
|
+
- Detects risky commands (rm, curl, wget, eval)
|
|
222
|
+
- Requires explicit confirmation
|
|
223
|
+
- Shows command preview before execution
|
|
220
224
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
║ ║
|
|
226
|
-
║ The agent wants to execute 5 actions in this folder. ║
|
|
227
|
-
║ This includes writing files and/or running commands. ║
|
|
228
|
-
║ ║
|
|
229
|
-
║ Target: /Users/dev/projects/my-app ║
|
|
230
|
-
║ ║
|
|
231
|
-
╚══════════════════════════════════════════════════════════════╝
|
|
232
|
-
|
|
233
|
-
? Trust this workspace?
|
|
234
|
-
❯ Trust for this session
|
|
235
|
-
Trust and remember
|
|
236
|
-
Cancel
|
|
237
|
-
```
|
|
225
|
+
### API Key Security
|
|
226
|
+
- Stored securely in `~/.agdi/config.json`
|
|
227
|
+
- File permissions: 0600 (owner read/write only)
|
|
228
|
+
- Never exposed in logs or output
|
|
238
229
|
|
|
239
230
|
---
|
|
240
231
|
|
|
241
|
-
##
|
|
232
|
+
## 🎯 Use Cases
|
|
242
233
|
|
|
243
|
-
###
|
|
244
|
-
|
|
245
|
-
|
|
234
|
+
### Web Development
|
|
235
|
+
```bash
|
|
236
|
+
agdi build "create a Next.js blog with MDX support"
|
|
237
|
+
```
|
|
246
238
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
| Kimi K2 | `moonshotai/kimi-k2:free` | General |
|
|
252
|
-
| Gemma 3n | `google/gemma-3n-e2b-it:free` | Lightweight |
|
|
253
|
-
| Devstral | `mistralai/devstral-2512:free` | Code |
|
|
239
|
+
### API Development
|
|
240
|
+
```bash
|
|
241
|
+
agdi build "RESTful API with Express and MongoDB"
|
|
242
|
+
```
|
|
254
243
|
|
|
255
|
-
###
|
|
244
|
+
### Utilities
|
|
245
|
+
```bash
|
|
246
|
+
agdi --minimal "write a JSON to CSV converter"
|
|
247
|
+
```
|
|
256
248
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
| **Anthropic** | Claude 4.5 Sonnet/Opus | [console.anthropic.com](https://console.anthropic.com/) |
|
|
249
|
+
### Debugging
|
|
250
|
+
```bash
|
|
251
|
+
agdi chat
|
|
252
|
+
> "Why is my React component not re-rendering?"
|
|
253
|
+
```
|
|
263
254
|
|
|
264
255
|
---
|
|
265
256
|
|
|
266
|
-
##
|
|
257
|
+
## 🔧 Configuration
|
|
267
258
|
|
|
259
|
+
### API Key Management
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
# First-time setup
|
|
263
|
+
agdi auth
|
|
264
|
+
|
|
265
|
+
# Change provider
|
|
266
|
+
agdi model
|
|
267
|
+
|
|
268
|
+
# View current config
|
|
269
|
+
cat ~/.agdi/config.json
|
|
268
270
|
```
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
|
|
272
|
+
### Configuration File Location
|
|
273
|
+
- **macOS/Linux**: `~/.agdi/config.json`
|
|
274
|
+
- **Windows**: `C:\Users\<YourName>\.agdi\config.json`
|
|
275
|
+
|
|
276
|
+
### Example Config
|
|
277
|
+
```json
|
|
278
|
+
{
|
|
279
|
+
"geminiApiKey": "AIza...",
|
|
280
|
+
"defaultProvider": "gemini",
|
|
281
|
+
"defaultModel": "gemini-3-pro-preview"
|
|
282
|
+
}
|
|
277
283
|
```
|
|
278
284
|
|
|
279
285
|
---
|
|
280
286
|
|
|
281
|
-
##
|
|
287
|
+
## 📋 System Requirements
|
|
282
288
|
|
|
283
|
-
|
|
289
|
+
- **Node.js**: 18.x or higher
|
|
290
|
+
- **npm**: 9.x or higher
|
|
291
|
+
- **OS**: macOS, Linux, Windows
|
|
292
|
+
- **Terminal**: Any modern terminal (supports UTF-8)
|
|
284
293
|
|
|
285
|
-
|
|
286
|
-
|--------|-------|
|
|
287
|
-
| TypeScript Errors | **0** |
|
|
288
|
-
| Tests Passing | **60** |
|
|
289
|
-
| Build Size | **150 KB** |
|
|
290
|
-
| Security Patterns | **22+** |
|
|
291
|
-
| Weekly Downloads | **900+** |
|
|
294
|
+
---
|
|
292
295
|
|
|
293
|
-
|
|
296
|
+
## 🆘 Troubleshooting
|
|
294
297
|
|
|
295
|
-
|
|
298
|
+
### "Command not found: agdi"
|
|
299
|
+
```bash
|
|
300
|
+
npm install -g agdi
|
|
301
|
+
# Ensure ~/.npm-global/bin is in your PATH
|
|
302
|
+
```
|
|
296
303
|
|
|
297
|
-
|
|
304
|
+
### "No API key configured"
|
|
305
|
+
```bash
|
|
306
|
+
agdi auth
|
|
307
|
+
# Follow the prompts to set up your API key
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### "Permission denied" (macOS/Linux)
|
|
311
|
+
```bash
|
|
312
|
+
sudo npm install -g agdi
|
|
313
|
+
# Or configure npm global without sudo:
|
|
314
|
+
# https://docs.npmjs.com/resolving-eacces-permissions-errors
|
|
315
|
+
```
|
|
298
316
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
-
|
|
303
|
-
|
|
304
|
-
|
|
317
|
+
### TypeScript Errors
|
|
318
|
+
```bash
|
|
319
|
+
# Clear and rebuild
|
|
320
|
+
rm -rf node_modules package-lock.json
|
|
321
|
+
npm install
|
|
322
|
+
```
|
|
305
323
|
|
|
306
324
|
---
|
|
307
325
|
|
|
308
|
-
##
|
|
326
|
+
## 🤝 Contributing
|
|
309
327
|
|
|
310
|
-
|
|
311
|
-
- 📦 [npmjs.com/package/agdi](https://www.npmjs.com/package/agdi)
|
|
312
|
-
- 🐙 [github.com/anassagd432/Agdi-dev](https://github.com/anassagd432/Agdi-dev)
|
|
328
|
+
We welcome contributions! Please see our [Contributing Guide](../../CONTRIBUTING.md).
|
|
313
329
|
|
|
314
330
|
---
|
|
315
331
|
|
|
316
332
|
## 📄 License
|
|
317
333
|
|
|
318
|
-
MIT ©
|
|
334
|
+
MIT © 2026 Agdi
|
|
319
335
|
|
|
320
336
|
---
|
|
321
337
|
|
|
322
|
-
|
|
338
|
+
## 🔗 Links
|
|
323
339
|
|
|
324
|
-
|
|
340
|
+
- 🌐 [Website](https://agdi-dev.vercel.app)
|
|
341
|
+
- 📦 [npm Package](https://www.npmjs.com/package/agdi)
|
|
342
|
+
- 💻 [GitHub](https://github.com/anassagd432/Agdi-dev)
|
|
343
|
+
- 📧 [Issues](https://github.com/anassagd432/Agdi-dev/issues)
|
|
325
344
|
|
|
326
|
-
|
|
345
|
+
---
|
|
327
346
|
|
|
347
|
+
<div align="center">
|
|
348
|
+
<sub>Built with ❤️ by the Agdi team</sub>
|
|
328
349
|
</div>
|
package/bin/agdi.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -989,7 +989,8 @@ async function login() {
|
|
|
989
989
|
{ name: "OpenAI (GPT-4, GPT-5)", value: "openai" },
|
|
990
990
|
{ name: "Anthropic (Claude)", value: "anthropic" },
|
|
991
991
|
{ name: "DeepSeek", value: "deepseek" },
|
|
992
|
-
{ name: "Local LLM (Ollama)", value: "ollama" }
|
|
992
|
+
{ name: "Local LLM (Ollama)", value: "ollama" },
|
|
993
|
+
{ name: "Search API (Brave/Perplexity - for DeepSearch)", value: "search" }
|
|
993
994
|
]
|
|
994
995
|
});
|
|
995
996
|
if (provider === "ollama") {
|
|
@@ -1025,6 +1026,25 @@ async function login() {
|
|
|
1025
1026
|
case "openrouter":
|
|
1026
1027
|
config.openrouterApiKey = apiKey;
|
|
1027
1028
|
break;
|
|
1029
|
+
case "search": {
|
|
1030
|
+
const searchProvider = await select({
|
|
1031
|
+
message: "Select search provider:",
|
|
1032
|
+
choices: [
|
|
1033
|
+
{ name: "Brave Search (Recommended - Free 2k/month)", value: "brave" },
|
|
1034
|
+
{ name: "Perplexity API", value: "perplexity" },
|
|
1035
|
+
{ name: "Tavily", value: "tavily" }
|
|
1036
|
+
]
|
|
1037
|
+
});
|
|
1038
|
+
config.searchProvider = searchProvider;
|
|
1039
|
+
config.searchApiKey = apiKey;
|
|
1040
|
+
config.searchEnabled = true;
|
|
1041
|
+
config.searchAutoTrigger = true;
|
|
1042
|
+
console.log(chalk5.green(`
|
|
1043
|
+
\u2705 ${searchProvider} API key saved for DeepSearch`));
|
|
1044
|
+
console.log(chalk5.gray("DeepSearch enabled - will automatically search for latest docs\n"));
|
|
1045
|
+
saveConfig(config);
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1028
1048
|
}
|
|
1029
1049
|
config.defaultProvider = provider;
|
|
1030
1050
|
saveConfig(config);
|
|
@@ -4914,7 +4934,7 @@ ${chalk15.cyan(`/_/ |_|\\_, /\\__,_//_/ `)}
|
|
|
4914
4934
|
${chalk15.cyan(` /____/ `)}
|
|
4915
4935
|
`;
|
|
4916
4936
|
var program = new Command();
|
|
4917
|
-
program.name("agdi").description(chalk15.cyan("\u{1F680} AI-powered coding assistant")).version("2.
|
|
4937
|
+
program.name("agdi").description(chalk15.cyan("\u{1F680} AI-powered coding assistant")).version("2.9.0").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");
|
|
4918
4938
|
program.hook("preAction", (thisCommand) => {
|
|
4919
4939
|
const opts = thisCommand.opts();
|
|
4920
4940
|
if (opts.yes) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agdi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "AI-powered app generator - build full-stack apps from natural language in your terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"node": ">=18.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
+
"@types/file-saver": "^2.0.7",
|
|
49
50
|
"@types/fs-extra": "^11.0.0",
|
|
50
51
|
"@types/node": "^20.0.0",
|
|
51
52
|
"tsup": "^8.0.0",
|
|
@@ -54,10 +55,15 @@
|
|
|
54
55
|
"vitest": "^3.0.0"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
58
|
+
"@babel/core": "^7.28.6",
|
|
59
|
+
"@babel/parser": "^7.28.6",
|
|
60
|
+
"@babel/traverse": "^7.28.6",
|
|
61
|
+
"@babel/types": "^7.28.6",
|
|
57
62
|
"@google/genai": "^1.0.0",
|
|
58
63
|
"@inquirer/prompts": "^5.0.0",
|
|
59
64
|
"@types/figlet": "^1.7.0",
|
|
60
65
|
"@types/gradient-string": "^1.1.6",
|
|
66
|
+
"better-sqlite3": "^12.6.2",
|
|
61
67
|
"boxen": "^8.0.1",
|
|
62
68
|
"chalk": "^5.3.0",
|
|
63
69
|
"commander": "^12.0.0",
|