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 CHANGED
@@ -18,311 +18,332 @@
18
18
  [![License](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
19
19
  [![Node](https://img.shields.io/badge/Node.js-18+-339933?style=for-the-badge&logo=node.js)](https://nodejs.org/)
20
20
 
21
- **Build apps from natural language • Multi-Agent AI • Cinematic Dark Mode**
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) · [GitHub](https://github.com/anassagd432/Agdi-dev)
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
- ## 🚀 What's New in v2.7.0
29
+ ## 🚀 Quick Start
30
30
 
31
- <div align="center">
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
- ### ✨ New Features
33
+ ```bash
34
+ npm install -g agdi
35
+ ```
38
36
 
39
- | Feature | Description |
40
- |---------|-------------|
41
- | 🐙 **GitHub Import** | Import any public repo via URL. Fetches zipball, extracts with JSZip |
42
- | 🎤 **Voice Commands** | Talk to Agdi! Uses Web Speech API for real-time transcription |
43
- | 🩹 **Self-Repair** | Autonomous build error recovery. AI diagnoses and fixes errors |
44
- | 🧠 **2026 Model Registry** | GPT-5.2 Codex, Claude 4.5 Sonnet, Gemini 3 Pro/Flash |
45
- | 🎨 **Official Brand Logos** | SVG icons for all AI providers (no more emojis) |
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
- ## 🎬 Cinematic Dark Mode
60
+ ## 🎯 Latest in v2.8.8
50
61
 
51
62
  <div align="center">
52
- <img src="https://img.shields.io/badge/Premium_Terminal_UI-blueviolet?style=for-the-badge" alt="New">
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
- ### ✨ Visual Upgrade
68
+ ### ✨ What's New
56
69
 
57
- | Component | What It Looks Like |
58
- |-----------|-------------------|
59
- | **Neon Banner** | Cyan-to-Purple gradient ASCII art on startup |
60
- | **Glass Cards** | Rounded boxen panels for plans and status |
61
- | **Chat Bubbles** | `👤 YOU ›` and `⚡ AGDI ›` styled prompts |
62
- | **Security Alerts** | Red double-bordered warnings |
63
- | **Spinners** | Smooth cyan dots animation |
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
- ### 🖥️ Startup Experience
80
+ ---
66
81
 
67
- ```
68
- ┌──────────────────────────────────────────────────────────────┐
69
- │ │
70
- │ ___ __________ ____ │
71
- │ / | / ____/ __ \/ _/ ← Neon Gradient │
72
- │ / /| |/ / __/ / / // / │
73
- │ / ___ / /_/ / /_/ // / │
74
- │ /_/ |_\____/_____/___/ │
75
- │ │
76
- │ v2.7.0 [ARCHITECT ONLINE] │
77
- │ │
78
- ├──────────────────────────────────────────────────────────────┤
79
- ╭─ SESSION INFO ─────────────────────────────────────────╮ │
80
- │ │ │
81
- │ Model: gemini-2.5-flash │ │
82
- │ Workspace: ~/projects/my-app │ │
83
- │ │ Context: Git Repository │ │
84
- │ │ │
85
- ╰────────────────────────────────────────────────────────╯ │
86
- │ │
87
- ────────────────────────────────────────────────────────────
88
- │ │
89
- │ 👤 YOU › create a dashboard with charts │
90
- │ │
91
- AGDI › │
92
- I'll create a modern dashboard with Recharts... │
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
- ## Quick Start
125
+ ## 📖 Usage Guide
126
+
127
+ ### Basic Commands
100
128
 
101
129
  ```bash
102
- npm install -g agdi
130
+ # Start interactive coding mode
103
131
  agdi
104
- ```
105
132
 
106
- ---
133
+ # Configure/change API keys
134
+ agdi auth
107
135
 
108
- ## 🎯 Highlights
136
+ # Change model
137
+ agdi model
109
138
 
110
- <table>
111
- <tr>
112
- <td width="50%">
139
+ # Build specific app
140
+ agdi build "create a todo app"
113
141
 
114
- ### 🤖 Multi-Agent System
115
- ```bash
116
- → /agent
117
- 🤖 Multi-agent mode: ON
118
- Planner → Coder → Reviewer
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
- </td>
123
- <td width="50%">
149
+ ### Advanced Options
124
150
 
125
- ### 🎤 Voice Input (NEW)
126
151
  ```bash
127
- 🎤 Hold Space to talk
128
- 🎤 "Build a todo app with dark mode"
129
- → Generating...
130
- ```
131
- Talk to build apps!
152
+ # Auto-approve all prompts (CI/CD mode)
153
+ agdi --yes
132
154
 
133
- </td>
134
- </tr>
135
- <tr>
136
- <td width="50%">
155
+ # Generate minimal files only
156
+ agdi --minimal "create a utility function"
137
157
 
138
- ### 🐙 GitHub Import (NEW)
139
- ```bash
140
- → Import from: https://github.com/user/repo
141
- 📦 Fetching zipball...
142
- Imported 47 files
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
- </td>
146
- <td width="50%">
165
+ ### Slash Commands (In Interactive Mode)
147
166
 
148
- ### 🩹 Self-Repair (NEW)
149
167
  ```bash
150
- npm install failed
151
- 🩹 Diagnosing error...
152
- 🔧 Applying fix: removed conflicting dep
153
- Build succeeded!
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
- ## 📋 Commands
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
- ## 🤖 Multi-Agent Pipeline
181
+ ### Clean, Professional UI
185
182
 
186
183
  ```
187
- ┌─────────────────────────────────────────────────────────────┐
188
- │ 📋 PLANNER AGENT │
189
- Analyzes request Creates step-by-step plan │
190
- └─────────────────────────────┬───────────────────────────────┘
191
-
192
- ┌─────────────────────────────────────────────────────────────┐
193
- │ 💻 CODER AGENT │
194
- │ Writes production-ready TypeScript/React code │
195
- └─────────────────────────────┬───────────────────────────────┘
196
-
197
- ┌─────────────────────────────────────────────────────────────┐
198
- 🔍 REVIEWER AGENT
199
- Correctness • Security • Performance
200
-
201
- │ ✅ APPROVED → Delivered to user │
202
- │ ⚠️ NEEDS_CHANGES → Back to CODER (max 3 loops) │
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
- ## 🛡️ Zero-Trust Security
209
-
210
- ### Permission Tiers
213
+ ## 🛡️ Security Features
211
214
 
212
- | Tier | Risk | Examples | Default |
213
- |------|------|----------|---------|
214
- | 0 | Read-only | `ls`, `cat`, `git status` | Auto-approve |
215
- | 1 | Workspace | `touch`, `mkdir`, `git commit` | Prompt once |
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
- ### Security Alert (v2.6.1 Style)
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
- 🛡️ UNTRUSTED WORKSPACE ║
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
- ## 🌐 AI Providers
232
+ ## 🎯 Use Cases
242
233
 
243
- ### Free Models via OpenRouter
244
-
245
- > **Note:** These models are free but require an [OpenRouter API key](https://openrouter.ai/keys) (free to create).
234
+ ### Web Development
235
+ ```bash
236
+ agdi build "create a Next.js blog with MDX support"
237
+ ```
246
238
 
247
- | Model | ID | Best For |
248
- |-------|-----|----------|
249
- | GPT-OSS 120B | `openai/gpt-oss-120b:free` | General |
250
- | Qwen3 Coder | `qwen/qwen3-coder:free` | Code |
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
- ### Bring Your Own Key
244
+ ### Utilities
245
+ ```bash
246
+ agdi --minimal "write a JSON to CSV converter"
247
+ ```
256
248
 
257
- | Provider | Models | Get Key |
258
- |----------|--------|---------|
259
- | **Gemini** 🔥 | Gemini 3 Pro/Flash, 2.5 Flash | [aistudio.google.com](https://aistudio.google.com/apikey) |
260
- | **OpenRouter** | Claude, GPT-5, Llama | [openrouter.ai](https://openrouter.ai/keys) |
261
- | **OpenAI** | GPT-5.2 Codex, o3 | [platform.openai.com](https://platform.openai.com/api-keys) |
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
- ## ⚙️ Configuration
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
- ~/.agdi/
270
- ├── config.json # API keys & settings
271
- ├── rules.json # Permission rules
272
- ├── trusted-workspaces.json # Trusted directories
273
- ├── memory/ # Persistent memory
274
- │ └── store.json
275
- ├── indexes/ # RAG indexes
276
- └── audit.jsonl # Audit log
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
- ## 📊 Quality Metrics
287
+ ## 📋 System Requirements
282
288
 
283
- <div align="center">
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
- | Metric | Value |
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
- </div>
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
- ## 📦 Tech Stack
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
- - **Runtime**: Node.js 18+
300
- - **Language**: TypeScript 5.4
301
- - **CLI**: Commander, Inquirer
302
- - **UI**: Chalk, Ora, Boxen, Gradient-string, Figlet
303
- - **Build**: tsup
304
- - **Testing**: Vitest
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
- ## 🔗 Links
326
+ ## 🤝 Contributing
309
327
 
310
- - 🌐 [agdi-dev.vercel.app](https://agdi-dev.vercel.app)
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 © [Agdi Systems Inc.](https://agdi-dev.vercel.app)
334
+ MIT © 2026 Agdi
319
335
 
320
336
  ---
321
337
 
322
- <div align="center">
338
+ ## 🔗 Links
323
339
 
324
- **Built with ❤️ by [Anass Agdi](https://github.com/anassagd432)**
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
- ⭐ **Star on GitHub** if you find this useful!
345
+ ---
327
346
 
347
+ <div align="center">
348
+ <sub>Built with ❤️ by the Agdi team</sub>
328
349
  </div>
package/bin/agdi.js CHANGED
@@ -1,2 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import '../dist/index.js';
2
+
3
+ // ES module dynamic import for bin executable
4
+ import('../dist/index.js').catch(err => {
5
+ console.error('Failed to load agdi:', err);
6
+ process.exit(1);
7
+ });
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.8.8").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");
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.8.8",
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",