agdi 2.11.11 → 2.11.12

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 (36) hide show
  1. package/README.md +108 -154
  2. package/bin/agdi.js +7 -7
  3. package/dist/{chunk-UN5WZ5PG.js → chunk-M2FF7ETI.js} +5 -9
  4. package/dist/{chunk-OPFFFAQC.js → chunk-S45VXJEO.js} +1 -19
  5. package/dist/{config-LBIRRMSE.js → config-ZFU7TSU2.js} +2 -3
  6. package/dist/index.js +3541 -163
  7. package/dist/{telemetry-service-D4P7B4B4.js → telemetry-service-UJCRKN3D.js} +6 -8
  8. package/package.json +78 -45
  9. package/dist/agdi-dev-FEGTMGO2.js +0 -3330
  10. package/dist/auth-P6MQA3ZW.js +0 -155
  11. package/dist/chat-NNTZRU5F.js +0 -275
  12. package/dist/chunk-3E3CQLD2.js +0 -314
  13. package/dist/chunk-BVR4UG4C.js +0 -355
  14. package/dist/chunk-DFU7EGNP.js +0 -398
  15. package/dist/chunk-EAQYK3U2.js +0 -41
  16. package/dist/chunk-ESXYGZEO.js +0 -81
  17. package/dist/chunk-NP7LCL7Q.js +0 -341
  18. package/dist/chunk-OXDKL57B.js +0 -9748
  19. package/dist/chunk-QOC2VX23.js +0 -181
  20. package/dist/chunk-SQLXP7LT.js +0 -4792
  21. package/dist/chunk-VUSDFOCN.js +0 -289
  22. package/dist/config-U2UXLNRN.js +0 -13
  23. package/dist/core-P36Q6DOZ.js +0 -34
  24. package/dist/dist-4NXQ5YFU.js +0 -1244
  25. package/dist/doctor-SYT575FZ.js +0 -163
  26. package/dist/import-5AFTGDG7.js +0 -128
  27. package/dist/lib-CAJYQA32.js +0 -5
  28. package/dist/llm-failover-MRW7I5JX.js +0 -9
  29. package/dist/multipart-parser-DV373IRF.js +0 -371
  30. package/dist/node-N4X4IEWV.js +0 -31333
  31. package/dist/onboarding-3IJWFWEN.js +0 -20
  32. package/dist/rag-Z66L77H2.js +0 -17
  33. package/dist/run-NR2ZAGAG.js +0 -82
  34. package/dist/squad-EJ7C6UCQ.js +0 -1438
  35. package/dist/src-T5RRS2HN.js +0 -1408
  36. package/dist/utils-XOFUIMNR.js +0 -15
package/README.md CHANGED
@@ -1,154 +1,108 @@
1
- # Agdi CLI
2
-
3
- <div align="center">
4
-
5
- ### 🦸 The Autonomous AI Development Team
6
- ### Build, Test, and Deploy Full-Stack Apps from a Single Prompt
7
-
8
- [![npm version](https://img.shields.io/npm/v/agdi.svg?style=for-the-badge&logo=npm&color=CB3837)](https://www.npmjs.com/package/agdi)
9
- [![npm downloads](https://img.shields.io/npm/dw/agdi.svg?style=for-the-badge&logo=npm&color=4FC08D)](https://www.npmjs.com/package/agdi)
10
-
11
- </div>
12
-
13
- ---
14
-
15
- ### ⚠️ Development Status: Alpha
16
-
17
- > **Agdi is currently in active development.**
18
- > Use for experimentation and prototyping. Not recommended for mission-critical production use yet.
19
-
20
- ---
21
-
22
- ## 🎬 What is Agdi?
23
-
24
- > **One prompt. Full app. Live URL.**
25
-
26
- ```bash
27
- agdi squad "Build a todo app with authentication" --deploy
28
- # → Live URL in ~2 minutes
29
- ```
30
-
31
- ---
32
-
33
- ## 🔄 How It Works
34
-
35
- ```
36
- 👤 Your Prompt
37
-
38
-
39
- 🧠 Manager Agent ────► 📋 Project Spec
40
-
41
- ├───► 🎨 Frontend
42
- │ │
43
- └───► ⚙️ Backend
44
-
45
- ┌─────────▼─────────┐
46
- │ 🕵️ QA Agent │
47
- └─────────┬─────────┘
48
-
49
- Build Pass?
50
- │ │
51
- No ─▼─ ──▼── Yes
52
- │ │
53
- 🔧 Fix 🚀 DevOps Agent
54
- │ │
55
- └──────► 🌐 Live URL
56
- ```
57
-
58
- ---
59
-
60
- ## 🚀 Quick Start
61
-
62
- ### 1. Install
63
-
64
- ```bash
65
- npm install -g agdi
66
- ```
67
-
68
- ### 2. Configure
69
-
70
- ```bash
71
- agdi auth
72
- # Select: Google Gemini (Recommended - Free Tier)
73
- # Enter your API key from: https://aistudio.google.com/apikey
74
- ```
75
-
76
- ### 3. Build
77
-
78
- ```bash
79
- agdi squad "Build a blog with comments" --deploy
80
- ```
81
-
82
- ---
83
-
84
- ## 🚧 Limitations & Roadmap
85
-
86
- ### Current Limitations
87
- - Best for **MVPs and prototypes**.
88
- - Large complex projects may hit **context limits**.
89
- - Generated code may require **manual review**.
90
-
91
- ### Roadmap
92
- - [ ] Voice Interface ("Talk to Code")
93
- - [ ] GitHub Repo Import
94
- - [ ] E2E Testing Agent
95
- - [ ] Docker Support
96
-
97
- ---
98
-
99
- ## 🦸 The Agdi Squad
100
-
101
- | Agent | Role | What It Does |
102
- |-------|------|--------------|
103
- | 🧠 **Manager** | Project Lead | Analyzes prompt → Creates project spec |
104
- | 🎨 **Frontend** | UI Developer | React, Next.js, Tailwind components |
105
- | ⚙️ **Backend** | API Developer | Prisma schema, REST APIs, DB logic |
106
- | 🕵️ **QA** | Quality Engineer | Runs build → Fixes errors → Repeats |
107
- | 🚀 **DevOps** | Deployment | Deploys to Vercel/Netlify |
108
-
109
- ---
110
-
111
- ## 📖 Commands
112
-
113
- ### Core
114
- ```bash
115
- agdi # Interactive mode
116
- agdi auth # Configure API keys
117
- agdi squad "..." # 🆕 Multi-agent builder
118
- agdi build "..." # Single-agent build
119
- ```
120
-
121
- ### Options
122
- ```bash
123
- --deploy # Auto-deploy to Vercel
124
- --output ./dir # Output directory
125
- ```
126
-
127
- ---
128
-
129
- ## 🛡️ Security
130
-
131
- - ✅ API Keys stored securely (0600 permissions)
132
- - ✅ Commands restricted to workspace
133
- - ✅ Dangerous operations require confirmation
134
-
135
- ---
136
-
137
- ## 📋 Requirements
138
-
139
- - **Node.js**: 18+
140
- - **npm**: 9+
141
-
142
- ---
143
-
144
- ## 🔗 Links
145
-
146
- - 🌐 **Web App**: [agdi-dev.vercel.app](https://agdi-dev.vercel.app)
147
- - 📦 **npm**: [npmjs.com/package/agdi](https://www.npmjs.com/package/agdi)
148
- - 💻 **GitHub**: [github.com/anassagd432/Agdi-dev](https://github.com/anassagd432/Agdi-dev)
149
-
150
- ---
151
-
152
- ## 📄 License
153
-
154
- MIT © 2024-2026 Agdi
1
+ # Agdi CLI
2
+
3
+ <div align="center">
4
+ <img src="https://agdi-dev.vercel.app/logo.svg" alt="Agdi Logo" width="120" height="120">
5
+
6
+ ### 🦸 The Autonomous AI Employee
7
+ ### Build, Test, and Deploy Full-Stack Apps from a Single Prompt
8
+
9
+ [![npm version](https://img.shields.io/npm/v/agdi.svg?style=for-the-badge&logo=npm&color=CB3837)](https://www.npmjs.com/package/agdi)
10
+ [![npm downloads](https://img.shields.io/npm/dw/agdi.svg?style=for-the-badge&logo=npm&color=4FC08D)](https://www.npmjs.com/package/agdi)
11
+
12
+ </div>
13
+
14
+ ---
15
+
16
+ ## 🎬 What is Agdi?
17
+
18
+ > **"I want a pizza shop website with a red theme."**
19
+ >
20
+ > *... 2 minutes later ...*
21
+ >
22
+ > **"Here is your live URL: `pizza-shop.vercel.app`. It has a menu, contact form, and mobile design."**
23
+
24
+ Agdi is not just a coding assistant. It is an **Autonomous AI Squad**. You give the vision; Agdi hires the agents (Manager, Frontend, Backend, QA) to build, fix, and deploy it for you.
25
+
26
+ **No monthly fees.** **No agency markups.** You just bring your own API key (Gemini Free Tier works!).
27
+
28
+ ---
29
+
30
+ ## 🚀 Quick Start
31
+
32
+ ### 1. Install
33
+ ```bash
34
+ npm install -g agdi
35
+ ```
36
+
37
+ ### 2. Run
38
+ ```bash
39
+ agdi
40
+ ```
41
+
42
+ That's it. The **Interactive Wizard** will guide you:
43
+ 1. **🛡️ Safety Check:** Ensures you don't messy up your home folder.
44
+ 2. **🔑 Auth:** Helps you connect Gemini (Free), OpenAI, or Anthropic.
45
+ 3. **🧠 The Brain:** Takes your prompt and wakes up the squad.
46
+
47
+ ---
48
+
49
+ ## 🔄 How It Works
50
+
51
+ Agdi runs a self-healing loop. If the code breaks, the **QA Agent** rejects it, and the **Coder** fixes it instantly. You don't see the errors; you just see the result.
52
+
53
+ ```
54
+ 👤 Your Prompt ("Make a pizza site")
55
+
56
+
57
+ 🧠 Manager Agent ────► 📋 Project Spec
58
+
59
+ ├───► 🎨 Frontend (React/Tailwind)
60
+ │ │
61
+ └───► ⚙️ Backend (API/DB)
62
+
63
+ ┌─────────▼─────────┐
64
+ │ 🕵️ QA Agent │◄──┐
65
+ └─────────┬─────────┘ │
66
+ │ │
67
+ Build Pass? │
68
+ │ │ │
69
+ No ─▼─ │ │
70
+ │ │ │
71
+ 🔧 Auto-Fix ────┘ │
72
+
73
+ Yes ──► 🚀 DevOps ──────┘
74
+
75
+
76
+ 🌐 Live URL
77
+ (pizza-shop.vercel.app)
78
+ ```
79
+
80
+ ---
81
+
82
+ ## 🦸 The Squad
83
+
84
+ Your new employees work 24/7 for free.
85
+
86
+ | Agent | Role | Responsibility |
87
+ |-------|------|----------------|
88
+ | 🧠 **Manager** | **Project Lead** | Breaks your prompt into technical specs and assigns tasks. |
89
+ | 🎨 **Frontend** | **UI/UX Expert** | Builds React/Next.js interfaces with Tailwind CSS and Shadcn. |
90
+ | ⚙ **Backend** | **Systems Architect** | Sets up APIs, Databases (Prisma/SQLite), and logic. |
91
+ | 🕵️ **QA** | **Bug Hunter** | Runs builds and tests. If it fails, they force the coders to fix it. |
92
+ | 🚀 **DevOps** | **Release Engineer** | Configures environment variables and deploys to the cloud. |
93
+
94
+ ---
95
+
96
+ ## ✨ Features
97
+
98
+ - **🧙 Zero-Config Wizard:** Interactive setup for keys, search, and deployment.
99
+ - **🌐 Live Web Search:** (Optional) Give Agdi web access to read the latest docs.
100
+ - **🛡️ Safety Sandbox:** Prevents accidental file overwrites in sensitive directories.
101
+ - **🔁 Auto-Repair:** The agents fix their own compilation errors before asking for help.
102
+ - **☁️ 1-Click Deploy:** Supports Vercel and Netlify out of the box.
103
+
104
+ ---
105
+
106
+ ## 📄 License
107
+
108
+ MIT © 2026 Agdi Systems.
package/bin/agdi.js CHANGED
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env node
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
- });
1
+ #!/usr/bin/env node
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
+ });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadConfig,
3
3
  saveConfig
4
- } from "./chunk-OPFFFAQC.js";
4
+ } from "./chunk-S45VXJEO.js";
5
5
 
6
6
  // src/core/telemetry/config.ts
7
7
  import { randomUUID } from "crypto";
@@ -10,24 +10,21 @@ var DEFAULT_CONFIG = {
10
10
  consentAsked: false
11
11
  };
12
12
  function isTelemetryEnabled() {
13
- var _a;
14
13
  const config = loadConfig();
15
- return ((_a = config.telemetry) == null ? void 0 : _a.enabled) ?? false;
14
+ return config.telemetry?.enabled ?? false;
16
15
  }
17
16
  function hasAskedForConsent() {
18
- var _a;
19
17
  const config = loadConfig();
20
- return ((_a = config.telemetry) == null ? void 0 : _a.consentAsked) ?? false;
18
+ return config.telemetry?.consentAsked ?? false;
21
19
  }
22
20
  function setTelemetryConsent(enabled) {
23
- var _a;
24
21
  const config = loadConfig();
25
22
  config.telemetry = {
26
23
  ...DEFAULT_CONFIG,
27
24
  ...config.telemetry,
28
25
  enabled,
29
26
  consentAsked: true,
30
- anonymousId: ((_a = config.telemetry) == null ? void 0 : _a.anonymousId) ?? generateAnonymousId()
27
+ anonymousId: config.telemetry?.anonymousId ?? generateAnonymousId()
31
28
  };
32
29
  saveConfig(config);
33
30
  }
@@ -41,9 +38,8 @@ function markConsentAsked() {
41
38
  saveConfig(config);
42
39
  }
43
40
  function getAnonymousId() {
44
- var _a;
45
41
  const config = loadConfig();
46
- if ((_a = config.telemetry) == null ? void 0 : _a.anonymousId) {
42
+ if (config.telemetry?.anonymousId) {
47
43
  return config.telemetry.anonymousId;
48
44
  }
49
45
  const anonymousId = generateAnonymousId();
@@ -62,26 +62,8 @@ function saveConfig(config) {
62
62
  console.error(chalk.red("Failed to save config:"), error);
63
63
  }
64
64
  }
65
- function getConfigDir() {
66
- return CONFIG_DIR;
67
- }
68
- function secureDeleteConfig() {
69
- try {
70
- if (fs.existsSync(CONFIG_FILE)) {
71
- const size = fs.statSync(CONFIG_FILE).size;
72
- const zeros = Buffer.alloc(size, 0);
73
- fs.writeFileSync(CONFIG_FILE, zeros);
74
- fs.unlinkSync(CONFIG_FILE);
75
- console.log(chalk.green("\u2705 Config securely deleted"));
76
- }
77
- } catch (error) {
78
- console.error(chalk.red("Failed to delete config:"), error);
79
- }
80
- }
81
65
 
82
66
  export {
83
67
  loadConfig,
84
- saveConfig,
85
- getConfigDir,
86
- secureDeleteConfig
68
+ saveConfig
87
69
  };
@@ -5,9 +5,8 @@ import {
5
5
  isTelemetryEnabled,
6
6
  markConsentAsked,
7
7
  setTelemetryConsent
8
- } from "./chunk-UN5WZ5PG.js";
9
- import "./chunk-OPFFFAQC.js";
10
- import "./chunk-EAQYK3U2.js";
8
+ } from "./chunk-M2FF7ETI.js";
9
+ import "./chunk-S45VXJEO.js";
11
10
  export {
12
11
  getAnonymousId,
13
12
  getTelemetryConfig,