agdi 2.9.0 โ†’ 2.10.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.
Files changed (3) hide show
  1. package/README.md +98 -265
  2. package/dist/index.js +1495 -68
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -1,349 +1,182 @@
1
- <div align="center">
1
+ # Agdi CLI
2
2
 
3
- ```
4
- ___ __________ ____
5
- / | / ____/ __ \/ _/
6
- / /| |/ / __/ / / // /
7
- / ___ / /_/ / /_/ // /
8
- /_/ |_\____/_____/___/
9
-
10
- ```
11
-
12
- # agdi
13
-
14
- ### The AI-Powered Terminal Architect
15
-
16
- [![npm](https://img.shields.io/npm/v/agdi?style=for-the-badge&logo=npm&color=CB3837)](https://www.npmjs.com/package/agdi)
17
- [![downloads](https://img.shields.io/npm/dw/agdi?style=for-the-badge&logo=npm&color=4FC08D)](https://www.npmjs.com/package/agdi)
18
- [![License](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)
19
- [![Node](https://img.shields.io/badge/Node.js-18+-339933?style=for-the-badge&logo=node.js)](https://nodejs.org/)
3
+ > ๐Ÿฆธ The Autonomous AI Development Team โ€” Build, Test, and Deploy from a Single Prompt
20
4
 
21
- **Build apps from natural language โ€ข Latest 2026 AI Models โ€ข Clean Terminal UI**
22
-
23
- [Website](https://agdi-dev.vercel.app) ยท [npm](https://www.npmjs.com/package/agdi) ยท [GitHub](https://github.com/anassagd432/Agdi-dev)
24
-
25
- </div>
5
+ [![npm version](https://img.shields.io/npm/v/agdi.svg?style=flat-square)](https://www.npmjs.com/package/agdi)
6
+ [![npm downloads](https://img.shields.io/npm/dw/agdi.svg?style=flat-square)](https://www.npmjs.com/package/agdi)
26
7
 
27
8
  ---
28
9
 
29
- ## ๐Ÿš€ Quick Start
30
-
31
- ### Installation
10
+ ## Installation
32
11
 
33
12
  ```bash
34
13
  npm install -g agdi
35
14
  ```
36
15
 
37
- ### **IMPORTANT: Configure API Keys First**
38
-
39
- After installation, you **MUST** set up your API keys before using agdi:
16
+ ## Quick Start
40
17
 
41
18
  ```bash
19
+ # 1. Configure your API key (required)
42
20
  agdi auth
43
- ```
44
21
 
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
22
+ # 2. Start building!
53
23
  agdi
54
24
  ```
55
25
 
56
- That's it! Start describing what you want to build.
57
-
58
- ---
59
-
60
- ## ๐ŸŽฏ Latest in v2.8.8
61
-
62
- <div align="center">
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">
66
- </div>
67
-
68
- ### โœจ What's New
69
-
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 |
79
-
80
26
  ---
81
27
 
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
28
+ ## Commands
122
29
 
123
- ---
124
-
125
- ## ๐Ÿ“– Usage Guide
126
-
127
- ### Basic Commands
30
+ ### `agdi` โ€” Interactive Mode
31
+ Start the AI coding assistant in your terminal.
128
32
 
129
33
  ```bash
130
- # Start interactive coding mode
131
34
  agdi
132
-
133
- # Configure/change API keys
134
- agdi auth
135
-
136
- # Change model
137
- agdi model
138
-
139
- # Build specific app
140
- agdi build "create a todo app"
141
-
142
- # Chat mode
143
- agdi chat
144
-
145
- # Help
146
- agdi --help
147
35
  ```
148
36
 
149
- ### Advanced Options
37
+ ### `agdi squad` โ€” Autonomous Multi-Agent Builder ๐Ÿ†•
38
+ Activate the Agdi Squad โ€” a team of AI agents that build complete apps.
150
39
 
151
40
  ```bash
152
- # Auto-approve all prompts (CI/CD mode)
153
- agdi --yes
154
-
155
- # Generate minimal files only
156
- agdi --minimal "create a utility function"
157
-
158
- # Dry run (preview without creating)
159
- agdi --dry-run "build a landing page"
160
-
161
- # System health check
162
- agdi doctor
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
163
44
  ```
164
45
 
165
- ### Slash Commands (In Interactive Mode)
46
+ **Options:**
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.
166
53
 
167
54
  ```bash
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
55
+ agdi build "create a portfolio website"
56
+ agdi build "REST API with Express" --output ./api
57
+ agdi build "CLI tool in TypeScript" --minimal
175
58
  ```
176
59
 
177
- ---
178
-
179
- ## ๐ŸŽฌ Terminal Experience
60
+ ### `agdi auth` โ€” Configure Authentication
61
+ Set up API keys for AI providers and deployment tokens.
180
62
 
181
- ### Clean, Professional UI
182
-
183
- ```
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
- โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
63
+ ```bash
64
+ agdi auth # Interactive setup
65
+ agdi auth --status # Show configured providers
209
66
  ```
210
67
 
211
- ---
212
-
213
- ## ๐Ÿ›ก๏ธ Security Features
214
-
215
- ### Workspace Trust
216
- - Prompts before executing commands outside workspace
217
- - Prevents accidental system modifications
218
- - Audit logging of all dangerous operations
219
-
220
- ### Dangerous Command Detection
221
- - Detects risky commands (rm, curl, wget, eval)
222
- - Requires explicit confirmation
223
- - Shows command preview before execution
68
+ **Supported Providers:**
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)
224
75
 
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
76
+ **Deployment Tokens:**
77
+ - Vercel
78
+ - Netlify
229
79
 
230
- ---
231
-
232
- ## ๐ŸŽฏ Use Cases
80
+ ### `agdi model` โ€” Change AI Model
81
+ Switch between AI providers and models.
233
82
 
234
- ### Web Development
235
83
  ```bash
236
- agdi build "create a Next.js blog with MDX support"
84
+ agdi model
237
85
  ```
238
86
 
239
- ### API Development
240
- ```bash
241
- agdi build "RESTful API with Express and MongoDB"
242
- ```
87
+ ### `agdi chat` โ€” Q&A Mode
88
+ Simple question-and-answer mode.
243
89
 
244
- ### Utilities
245
90
  ```bash
246
- agdi --minimal "write a JSON to CSV converter"
91
+ agdi chat
247
92
  ```
248
93
 
249
- ### Debugging
94
+ ### `agdi doctor` โ€” System Check
95
+ Run diagnostics and health checks.
96
+
250
97
  ```bash
251
- agdi chat
252
- > "Why is my React component not re-rendering?"
98
+ agdi doctor
253
99
  ```
254
100
 
255
101
  ---
256
102
 
257
- ## ๐Ÿ”ง Configuration
258
-
259
- ### API Key Management
103
+ ## The Agdi Squad
260
104
 
261
- ```bash
262
- # First-time setup
263
- agdi auth
105
+ When you run `agdi squad`, a team of specialized AI agents works together:
264
106
 
265
- # Change provider
266
- agdi model
107
+ | Agent | Role |
108
+ |-------|------|
109
+ | ๐Ÿง  **Manager** | Analyzes your prompt, creates project spec, delegates tasks |
110
+ | ๐ŸŽจ **Frontend** | Builds React/Next.js UI components and pages |
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) |
267
114
 
268
- # View current config
269
- cat ~/.agdi/config.json
115
+ **Flow:**
116
+ ```
117
+ Prompt โ†’ Manager โ†’ [Frontend + Backend] โ†’ QA โ†’ DevOps โ†’ Live URL
270
118
  ```
271
119
 
272
- ### Configuration File Location
120
+ ---
121
+
122
+ ## Configuration
123
+
124
+ Config file location:
273
125
  - **macOS/Linux**: `~/.agdi/config.json`
274
- - **Windows**: `C:\Users\<YourName>\.agdi\config.json`
126
+ - **Windows**: `C:\Users\<You>\.agdi\config.json`
275
127
 
276
- ### Example Config
128
+ Example:
277
129
  ```json
278
130
  {
279
131
  "geminiApiKey": "AIza...",
280
132
  "defaultProvider": "gemini",
281
- "defaultModel": "gemini-3-pro-preview"
133
+ "defaultModel": "gemini-3-pro-preview",
134
+ "vercelToken": "...",
135
+ "deploymentProvider": "vercel"
282
136
  }
283
137
  ```
284
138
 
285
139
  ---
286
140
 
287
- ## ๐Ÿ“‹ System Requirements
288
-
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)
293
-
294
- ---
141
+ ## Interactive Mode Commands
295
142
 
296
- ## ๐Ÿ†˜ Troubleshooting
143
+ When in interactive mode (`agdi`), use these slash commands:
297
144
 
298
- ### "Command not found: agdi"
299
- ```bash
300
- npm install -g agdi
301
- # Ensure ~/.npm-global/bin is in your PATH
302
- ```
303
-
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
- ```
316
-
317
- ### TypeScript Errors
318
- ```bash
319
- # Clear and rebuild
320
- rm -rf node_modules package-lock.json
321
- npm install
322
- ```
145
+ | Command | Description |
146
+ |---------|-------------|
147
+ | `/status` | Git status with AI summary |
148
+ | `/diff` | Git diff with AI explanation |
149
+ | `/commit` | Generate AI commit message |
150
+ | `/build` | Create new features |
151
+ | `/edit` | Modify existing files |
152
+ | `/help` | Show all commands |
323
153
 
324
154
  ---
325
155
 
326
- ## ๐Ÿค Contributing
156
+ ## Security
327
157
 
328
- We welcome contributions! Please see our [Contributing Guide](../../CONTRIBUTING.md).
158
+ - **API Keys**: Stored with 0600 permissions (owner-only)
159
+ - **Workspace Boundary**: Commands restricted to current directory
160
+ - **Dangerous Commands**: Detected and require confirmation
161
+ - **Audit Logging**: All operations logged for review
329
162
 
330
163
  ---
331
164
 
332
- ## ๐Ÿ“„ License
165
+ ## Requirements
333
166
 
334
- MIT ยฉ 2026 Agdi
167
+ - Node.js 18+
168
+ - npm 9+
335
169
 
336
170
  ---
337
171
 
338
- ## ๐Ÿ”— Links
172
+ ## Links
339
173
 
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)
174
+ - ๐Ÿ“ฆ **npm**: https://www.npmjs.com/package/agdi
175
+ - ๐Ÿ’ป **GitHub**: https://github.com/anassagd432/Agdi-dev
176
+ - ๐ŸŒ **Web App**: https://agdi-dev.vercel.app
344
177
 
345
178
  ---
346
179
 
347
- <div align="center">
348
- <sub>Built with โค๏ธ by the Agdi team</sub>
349
- </div>
180
+ ## License
181
+
182
+ MIT ยฉ 2024-2026 Agdi