aided-dev 1.0.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 +615 -0
- package/bin/aidev.js +11 -0
- package/dist/agent-creator/creator.d.ts +22 -0
- package/dist/agent-creator/creator.js +393 -0
- package/dist/agent-creator/index.d.ts +1 -0
- package/dist/agent-creator/index.js +1 -0
- package/dist/bmad/index.d.ts +1 -0
- package/dist/bmad/index.js +1 -0
- package/dist/bmad/loader.d.ts +68 -0
- package/dist/bmad/loader.js +482 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +257 -0
- package/dist/config.d.ts +23 -0
- package/dist/config.js +48 -0
- package/dist/discovery/detector.d.ts +12 -0
- package/dist/discovery/detector.js +272 -0
- package/dist/discovery/documents.d.ts +25 -0
- package/dist/discovery/documents.js +154 -0
- package/dist/discovery/index.d.ts +2 -0
- package/dist/discovery/index.js +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/orchestrator/index.d.ts +3 -0
- package/dist/orchestrator/index.js +3 -0
- package/dist/orchestrator/orchestrator.d.ts +40 -0
- package/dist/orchestrator/orchestrator.js +386 -0
- package/dist/orchestrator/planner.d.ts +44 -0
- package/dist/orchestrator/planner.js +355 -0
- package/dist/postinstall.d.ts +1 -0
- package/dist/postinstall.js +49 -0
- package/package.json +70 -0
package/README.md
ADDED
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
# aidev
|
|
2
|
+
|
|
3
|
+
**AI Development Team Orchestrator** - An intelligent CLI tool that coordinates AI agents to complete software development tasks using the BMAD-METHOD.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Overview](#overview)
|
|
8
|
+
- [Installation](#installation)
|
|
9
|
+
- [Quick Start](#quick-start)
|
|
10
|
+
- [Configuration](#configuration)
|
|
11
|
+
- [Commands](#commands)
|
|
12
|
+
- [Main Command](#main-command-run-orchestration)
|
|
13
|
+
- [analyze](#analyze)
|
|
14
|
+
- [agents](#agents)
|
|
15
|
+
- [create-agent](#create-agent)
|
|
16
|
+
- [config](#config)
|
|
17
|
+
- [Smart Orchestration](#smart-orchestration)
|
|
18
|
+
- [AI Agents](#ai-agents)
|
|
19
|
+
- [Source of Truth Documents](#source-of-truth-documents)
|
|
20
|
+
- [Examples](#examples)
|
|
21
|
+
- [Troubleshooting](#troubleshooting)
|
|
22
|
+
- [License](#license)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Overview
|
|
27
|
+
|
|
28
|
+
aidev is an AI-powered development orchestrator that intelligently coordinates multiple specialized AI agents to complete software development tasks. Instead of using a fixed workflow, aidev analyzes your task and dynamically selects which agents to use and in what order.
|
|
29
|
+
|
|
30
|
+
**Key Features:**
|
|
31
|
+
- Smart task analysis and planning
|
|
32
|
+
- Dynamic agent selection based on task type
|
|
33
|
+
- Automatic project context discovery
|
|
34
|
+
- Support for brownfield (existing) and greenfield (new) projects
|
|
35
|
+
- Integration with BMAD-METHOD agent framework
|
|
36
|
+
- Custom agent creation
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
### Global Installation (Recommended)
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install -g aidev
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Local Development
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
git clone <repository>
|
|
52
|
+
cd aidev-npm
|
|
53
|
+
npm install
|
|
54
|
+
npm run build
|
|
55
|
+
npm link # Makes 'aidev' available globally
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Requirements
|
|
59
|
+
|
|
60
|
+
- Node.js >= 20.0.0
|
|
61
|
+
- Anthropic API key
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Quick Start
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# 1. Install aidev
|
|
69
|
+
npm install -g aidev
|
|
70
|
+
|
|
71
|
+
# 2. Configure your API key (prompted on first run, or set manually)
|
|
72
|
+
aidev config --api-key sk-ant-your-key-here
|
|
73
|
+
|
|
74
|
+
# 3. Navigate to your project
|
|
75
|
+
cd /path/to/your/project
|
|
76
|
+
|
|
77
|
+
# 4. Run a task
|
|
78
|
+
aidev "Add user authentication with JWT"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Configuration
|
|
84
|
+
|
|
85
|
+
### Setting API Key
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# Interactive configuration
|
|
89
|
+
aidev config
|
|
90
|
+
|
|
91
|
+
# Set API key directly
|
|
92
|
+
aidev config --api-key sk-ant-xxx
|
|
93
|
+
|
|
94
|
+
# Via environment variable
|
|
95
|
+
export ANTHROPIC_API_KEY=sk-ant-xxx
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### View Configuration
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
aidev config --show
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Output:
|
|
105
|
+
```
|
|
106
|
+
Configuration:
|
|
107
|
+
Path: /Users/you/.config/aidev-nodejs/config.json
|
|
108
|
+
API Key: configured
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Clear Configuration
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
aidev config --clear
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Configuration File Location
|
|
118
|
+
|
|
119
|
+
- **macOS**: `~/Library/Preferences/aidev-nodejs/config.json`
|
|
120
|
+
- **Linux**: `~/.config/aidev-nodejs/config.json`
|
|
121
|
+
- **Windows**: `%APPDATA%\aidev-nodejs\config.json`
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Commands
|
|
126
|
+
|
|
127
|
+
### Main Command (Run Orchestration)
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
aidev [options] "<task description>"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Arguments:**
|
|
134
|
+
| Argument | Description |
|
|
135
|
+
|----------|-------------|
|
|
136
|
+
| `prompt` | The development task to execute |
|
|
137
|
+
|
|
138
|
+
**Options:**
|
|
139
|
+
| Option | Description | Default |
|
|
140
|
+
|--------|-------------|---------|
|
|
141
|
+
| `-m, --model <model>` | Claude model to use | `claude-sonnet-4-20250514` |
|
|
142
|
+
| `-v, --verbose` | Show detailed output including agent responses | `false` |
|
|
143
|
+
| `-d, --dir <path>` | Project directory to work in | Current directory |
|
|
144
|
+
| `-V, --version` | Output version number | |
|
|
145
|
+
| `-h, --help` | Display help | |
|
|
146
|
+
|
|
147
|
+
**Examples:**
|
|
148
|
+
```bash
|
|
149
|
+
# Basic usage
|
|
150
|
+
aidev "Add a REST API endpoint for user profiles"
|
|
151
|
+
|
|
152
|
+
# With verbose output
|
|
153
|
+
aidev "Fix the authentication bug" --verbose
|
|
154
|
+
|
|
155
|
+
# Specify project directory
|
|
156
|
+
aidev "Add caching layer" --dir ./my-project
|
|
157
|
+
|
|
158
|
+
# Use a different model
|
|
159
|
+
aidev "Refactor the database layer" --model claude-opus-4-20250514
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
### analyze
|
|
165
|
+
|
|
166
|
+
Analyze a repository and display detected context including technology stack and source-of-truth documents.
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
aidev analyze [path]
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Arguments:**
|
|
173
|
+
| Argument | Description | Default |
|
|
174
|
+
|----------|-------------|---------|
|
|
175
|
+
| `path` | Repository path to analyze | Current directory |
|
|
176
|
+
|
|
177
|
+
**Example:**
|
|
178
|
+
```bash
|
|
179
|
+
aidev analyze ./my-project
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Output:**
|
|
183
|
+
```
|
|
184
|
+
Analyzing repository: ./my-project
|
|
185
|
+
|
|
186
|
+
Technology Stack:
|
|
187
|
+
Language: TypeScript
|
|
188
|
+
Framework: Express
|
|
189
|
+
Test Framework: Jest
|
|
190
|
+
Package Manager: npm
|
|
191
|
+
|
|
192
|
+
Source of Truth Documents:
|
|
193
|
+
Project: my-project
|
|
194
|
+
✓ my-project-brownfield-architecture.md
|
|
195
|
+
✓ my-project-integration-map.md
|
|
196
|
+
✓ my-project-system-analysis.md
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### agents
|
|
202
|
+
|
|
203
|
+
Display information about available AI agents loaded from BMAD-METHOD.
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
aidev agents
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
**Output:**
|
|
210
|
+
```
|
|
211
|
+
AI Development Team (BMAD Agents)
|
|
212
|
+
Loaded from: /path/to/BMAD-METHOD
|
|
213
|
+
|
|
214
|
+
📊 Mary - Business Analyst
|
|
215
|
+
Role: Strategic Business Analyst + Requirements Expert
|
|
216
|
+
|
|
217
|
+
🏗️ Winston - System Architect
|
|
218
|
+
Role: System Architect + Technical Design Leader
|
|
219
|
+
|
|
220
|
+
👩💻 Amelia - Senior Developer
|
|
221
|
+
Role: Senior Software Engineer + Implementation Expert
|
|
222
|
+
|
|
223
|
+
🧪 Murat - Test Architect
|
|
224
|
+
Role: Master Test Architect + Quality Assurance Expert
|
|
225
|
+
|
|
226
|
+
Other available agents: pm, sm, tech-writer, ux-designer
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
### create-agent
|
|
232
|
+
|
|
233
|
+
Create a new BMAD-compliant agent using the agent-builder (Bond).
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
aidev create-agent [options]
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
**Options:**
|
|
240
|
+
| Option | Description | Default |
|
|
241
|
+
|--------|-------------|---------|
|
|
242
|
+
| `-q, --quick` | Quick mode - guided prompts without AI conversation | `false` |
|
|
243
|
+
| `-o, --output <path>` | Output directory for the agent file | Current directory |
|
|
244
|
+
| `-m, --model <model>` | Claude model to use | `claude-sonnet-4-20250514` |
|
|
245
|
+
| `-v, --verbose` | Show detailed output | `false` |
|
|
246
|
+
|
|
247
|
+
**Interactive Mode (Default):**
|
|
248
|
+
```bash
|
|
249
|
+
aidev create-agent
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Starts a conversation with Bond (the agent-building expert) who guides you through:
|
|
253
|
+
1. Brainstorming the agent's purpose
|
|
254
|
+
2. Defining metadata (name, title, icon)
|
|
255
|
+
3. Crafting the persona (role, identity, communication style)
|
|
256
|
+
4. Setting principles and guidelines
|
|
257
|
+
5. Adding optional menu commands
|
|
258
|
+
|
|
259
|
+
**Quick Mode:**
|
|
260
|
+
```bash
|
|
261
|
+
aidev create-agent --quick
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Uses guided prompts for rapid agent creation without AI conversation.
|
|
265
|
+
|
|
266
|
+
**Output:**
|
|
267
|
+
Creates a `<agent-name>.agent.yaml` file in the specified directory.
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
### config
|
|
272
|
+
|
|
273
|
+
Configure aidev settings.
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
aidev config [options]
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**Options:**
|
|
280
|
+
| Option | Description |
|
|
281
|
+
|--------|-------------|
|
|
282
|
+
| `--api-key <key>` | Set Anthropic API key |
|
|
283
|
+
| `--show` | Show current configuration |
|
|
284
|
+
| `--clear` | Clear all configuration |
|
|
285
|
+
|
|
286
|
+
**Examples:**
|
|
287
|
+
```bash
|
|
288
|
+
# Interactive configuration
|
|
289
|
+
aidev config
|
|
290
|
+
|
|
291
|
+
# Set API key
|
|
292
|
+
aidev config --api-key sk-ant-xxx
|
|
293
|
+
|
|
294
|
+
# Show current config
|
|
295
|
+
aidev config --show
|
|
296
|
+
|
|
297
|
+
# Clear all settings
|
|
298
|
+
aidev config --clear
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## Smart Orchestration
|
|
304
|
+
|
|
305
|
+
aidev uses intelligent task analysis to determine which agents to call and in what order. Instead of a fixed workflow, it dynamically creates execution plans based on your task.
|
|
306
|
+
|
|
307
|
+
### How It Works
|
|
308
|
+
|
|
309
|
+
1. **Discovery** - Analyzes your repository to detect:
|
|
310
|
+
- Programming language and framework
|
|
311
|
+
- Test framework
|
|
312
|
+
- Package manager
|
|
313
|
+
- Source-of-truth documents
|
|
314
|
+
|
|
315
|
+
2. **Planning** - AI analyzes your task to determine:
|
|
316
|
+
- Task type (bug fix, new feature, refactor, etc.)
|
|
317
|
+
- Required agents
|
|
318
|
+
- Execution order and dependencies
|
|
319
|
+
- Complexity estimate
|
|
320
|
+
|
|
321
|
+
3. **Execution** - Runs only the necessary agents in the optimal order
|
|
322
|
+
|
|
323
|
+
### Task Types
|
|
324
|
+
|
|
325
|
+
| Task Type | Description | Typical Agents |
|
|
326
|
+
|-----------|-------------|----------------|
|
|
327
|
+
| `new_feature` | Building new functionality | Analyst → Architect → Dev → QA |
|
|
328
|
+
| `bug_fix` | Fixing issues | Dev → QA |
|
|
329
|
+
| `refactor` | Improving existing code | Architect → Dev |
|
|
330
|
+
| `testing` | Creating tests | QA |
|
|
331
|
+
| `documentation` | Writing docs | Dev / Tech Writer |
|
|
332
|
+
| `code_review` | Reviewing code | Dev |
|
|
333
|
+
| `architecture` | System design | Analyst → Architect |
|
|
334
|
+
| `analysis` | Research/investigation | Analyst |
|
|
335
|
+
| `general` | Other tasks | Context-dependent |
|
|
336
|
+
|
|
337
|
+
### Step Priorities
|
|
338
|
+
|
|
339
|
+
| Priority | Symbol | Description |
|
|
340
|
+
|----------|--------|-------------|
|
|
341
|
+
| Required | ● | Must complete for task success |
|
|
342
|
+
| Recommended | ◐ | Improves quality but not essential |
|
|
343
|
+
| Optional | ○ | Nice to have |
|
|
344
|
+
|
|
345
|
+
### Example Output
|
|
346
|
+
|
|
347
|
+
```
|
|
348
|
+
AI Dev Team - Smart Orchestration
|
|
349
|
+
Task: Fix the login timeout bug
|
|
350
|
+
|
|
351
|
+
BMAD-METHOD: /path/to/BMAD-METHOD
|
|
352
|
+
Loaded 8 agents
|
|
353
|
+
|
|
354
|
+
✓ Discovery complete
|
|
355
|
+
Language: TypeScript
|
|
356
|
+
Framework: Express
|
|
357
|
+
Found 2 source-of-truth document(s)
|
|
358
|
+
|
|
359
|
+
✓ Execution plan created
|
|
360
|
+
|
|
361
|
+
Task Type: bug_fix
|
|
362
|
+
Complexity: simple
|
|
363
|
+
Reasoning: Bug fix task - only developer needed to fix, QA for regression tests
|
|
364
|
+
|
|
365
|
+
Execution Plan:
|
|
366
|
+
1. ● 👩💻 Amelia: Analyze and fix bug
|
|
367
|
+
2. ◐ 🧪 Murat: Add regression tests
|
|
368
|
+
|
|
369
|
+
👩💻 Analyze and fix bug complete
|
|
370
|
+
🧪 Add regression tests complete
|
|
371
|
+
|
|
372
|
+
✓ Workflow complete!
|
|
373
|
+
|
|
374
|
+
Outputs generated:
|
|
375
|
+
- Fix
|
|
376
|
+
- Tests
|
|
377
|
+
|
|
378
|
+
Task type: bug_fix
|
|
379
|
+
Complexity: simple
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
## AI Agents
|
|
385
|
+
|
|
386
|
+
aidev coordinates specialized AI agents, each with unique expertise:
|
|
387
|
+
|
|
388
|
+
### Core Agents
|
|
389
|
+
|
|
390
|
+
| Agent | Name | Role | Best For |
|
|
391
|
+
|-------|------|------|----------|
|
|
392
|
+
| 📊 | Mary (Analyst) | Strategic Business Analyst + Requirements Expert | PRDs, requirements, analysis |
|
|
393
|
+
| 🏗️ | Winston (Architect) | System Architect + Technical Design Leader | Architecture, API design, tech decisions |
|
|
394
|
+
| 👩💻 | Amelia (Developer) | Senior Software Engineer | Implementation, bug fixes, refactoring |
|
|
395
|
+
| 🧪 | Murat (Test Architect) | Master Test Architect | Test strategy, unit/integration tests |
|
|
396
|
+
|
|
397
|
+
### Additional Agents
|
|
398
|
+
|
|
399
|
+
| Agent | Role |
|
|
400
|
+
|-------|------|
|
|
401
|
+
| PM | Product Manager - roadmap, prioritization |
|
|
402
|
+
| SM | Scrum Master - process, workflow |
|
|
403
|
+
| Tech Writer | Technical documentation |
|
|
404
|
+
| UX Designer | User interface and experience |
|
|
405
|
+
|
|
406
|
+
### BMAD-METHOD Integration
|
|
407
|
+
|
|
408
|
+
aidev comes bundled with **bmad-method** as a dependency - no separate installation required!
|
|
409
|
+
|
|
410
|
+
The loader automatically discovers agents from:
|
|
411
|
+
1. Bundled npm package: `node_modules/bmad-method` (default)
|
|
412
|
+
2. Sibling directory: `../BMAD-METHOD` (for development)
|
|
413
|
+
3. Environment variable: `$BMAD_PATH` (custom location)
|
|
414
|
+
|
|
415
|
+
The bundled bmad-method includes:
|
|
416
|
+
- **Core agents**: analyst, architect, dev, qa, pm, po, sm, ux-expert
|
|
417
|
+
- **Expansion packs**: game development, creative writing, infrastructure agents
|
|
418
|
+
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
## Source of Truth Documents
|
|
422
|
+
|
|
423
|
+
For best results, create these files in your repository root:
|
|
424
|
+
|
|
425
|
+
| File | Purpose |
|
|
426
|
+
|------|---------|
|
|
427
|
+
| `<project>-brownfield-architecture.md` | Current architecture documentation |
|
|
428
|
+
| `<project>-integration-map.md` | External integrations and APIs |
|
|
429
|
+
| `<project>-system-analysis.md` | System analysis and constraints |
|
|
430
|
+
|
|
431
|
+
### Example: myapp-brownfield-architecture.md
|
|
432
|
+
|
|
433
|
+
```markdown
|
|
434
|
+
# MyApp Architecture
|
|
435
|
+
|
|
436
|
+
## Overview
|
|
437
|
+
MyApp is a Node.js/Express REST API with PostgreSQL database.
|
|
438
|
+
|
|
439
|
+
## Technology Stack
|
|
440
|
+
- Runtime: Node.js 20
|
|
441
|
+
- Framework: Express 4.x
|
|
442
|
+
- Database: PostgreSQL 15
|
|
443
|
+
- ORM: Prisma
|
|
444
|
+
- Authentication: JWT
|
|
445
|
+
|
|
446
|
+
## Directory Structure
|
|
447
|
+
├── src/
|
|
448
|
+
│ ├── routes/
|
|
449
|
+
│ ├── controllers/
|
|
450
|
+
│ ├── services/
|
|
451
|
+
│ ├── models/
|
|
452
|
+
│ └── middleware/
|
|
453
|
+
├── tests/
|
|
454
|
+
└── prisma/
|
|
455
|
+
|
|
456
|
+
## Key Patterns
|
|
457
|
+
- Repository pattern for data access
|
|
458
|
+
- Service layer for business logic
|
|
459
|
+
- Controller layer for HTTP handling
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
aidev will automatically discover and use these files to provide better context to agents.
|
|
463
|
+
|
|
464
|
+
---
|
|
465
|
+
|
|
466
|
+
## Examples
|
|
467
|
+
|
|
468
|
+
### New Feature Development
|
|
469
|
+
|
|
470
|
+
```bash
|
|
471
|
+
aidev "Add a password reset feature with email verification"
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
Plan: Analyst (PRD) → Architect (design) → Developer (code) → QA (tests)
|
|
475
|
+
|
|
476
|
+
### Bug Fix
|
|
477
|
+
|
|
478
|
+
```bash
|
|
479
|
+
aidev "Fix: Users can't login after password change"
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
Plan: Developer (fix) → QA (regression tests)
|
|
483
|
+
|
|
484
|
+
### Refactoring
|
|
485
|
+
|
|
486
|
+
```bash
|
|
487
|
+
aidev "Refactor the authentication module to use dependency injection"
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
Plan: Architect (design) → Developer (implement)
|
|
491
|
+
|
|
492
|
+
### Testing
|
|
493
|
+
|
|
494
|
+
```bash
|
|
495
|
+
aidev "Add comprehensive unit tests for the user service"
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
Plan: QA (tests)
|
|
499
|
+
|
|
500
|
+
### Documentation
|
|
501
|
+
|
|
502
|
+
```bash
|
|
503
|
+
aidev "Document all REST API endpoints with examples"
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
Plan: Developer (documentation)
|
|
507
|
+
|
|
508
|
+
### Architecture Design
|
|
509
|
+
|
|
510
|
+
```bash
|
|
511
|
+
aidev "Design a caching strategy for the product catalog"
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
Plan: Analyst (analysis) → Architect (design)
|
|
515
|
+
|
|
516
|
+
### With Verbose Output
|
|
517
|
+
|
|
518
|
+
```bash
|
|
519
|
+
aidev "Add rate limiting to the API" --verbose
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
Shows detailed output from each agent.
|
|
523
|
+
|
|
524
|
+
### Different Project Directory
|
|
525
|
+
|
|
526
|
+
```bash
|
|
527
|
+
aidev "Update the build configuration" --dir ~/projects/my-app
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
### Using Different Model
|
|
531
|
+
|
|
532
|
+
```bash
|
|
533
|
+
aidev "Complex system redesign" --model claude-opus-4-20250514
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
---
|
|
537
|
+
|
|
538
|
+
## Troubleshooting
|
|
539
|
+
|
|
540
|
+
### "API key not configured"
|
|
541
|
+
|
|
542
|
+
```bash
|
|
543
|
+
# Set your API key
|
|
544
|
+
aidev config --api-key sk-ant-your-key
|
|
545
|
+
|
|
546
|
+
# Or via environment variable
|
|
547
|
+
export ANTHROPIC_API_KEY=sk-ant-your-key
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
### "BMAD-METHOD not found"
|
|
551
|
+
|
|
552
|
+
bmad-method is bundled with aidev, so this shouldn't happen. If it does:
|
|
553
|
+
|
|
554
|
+
```bash
|
|
555
|
+
# Reinstall dependencies
|
|
556
|
+
cd /path/to/aidev-npm
|
|
557
|
+
npm install
|
|
558
|
+
|
|
559
|
+
# Or use a custom BMAD-METHOD location
|
|
560
|
+
export BMAD_PATH=/path/to/custom/BMAD-METHOD
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
### "Agent not available"
|
|
564
|
+
|
|
565
|
+
Some agents require BMAD-METHOD. Check available agents:
|
|
566
|
+
|
|
567
|
+
```bash
|
|
568
|
+
aidev agents
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
### Build Errors
|
|
572
|
+
|
|
573
|
+
```bash
|
|
574
|
+
# Rebuild the project
|
|
575
|
+
cd /path/to/aidev-npm
|
|
576
|
+
npm run build
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
### Permission Denied (Global Install)
|
|
580
|
+
|
|
581
|
+
```bash
|
|
582
|
+
# Use sudo (not recommended) or fix npm permissions
|
|
583
|
+
sudo npm install -g aidev
|
|
584
|
+
|
|
585
|
+
# Better: Configure npm to use a different directory
|
|
586
|
+
mkdir ~/.npm-global
|
|
587
|
+
npm config set prefix '~/.npm-global'
|
|
588
|
+
export PATH=~/.npm-global/bin:$PATH
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
### Verbose Debugging
|
|
592
|
+
|
|
593
|
+
```bash
|
|
594
|
+
aidev "your task" --verbose
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
Shows detailed output including:
|
|
598
|
+
- Agent responses
|
|
599
|
+
- Planning reasoning
|
|
600
|
+
- Step-by-step execution
|
|
601
|
+
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
## Environment Variables
|
|
605
|
+
|
|
606
|
+
| Variable | Description |
|
|
607
|
+
|----------|-------------|
|
|
608
|
+
| `ANTHROPIC_API_KEY` | Anthropic API key (alternative to config) |
|
|
609
|
+
| `BMAD_PATH` | Custom path to BMAD-METHOD |
|
|
610
|
+
|
|
611
|
+
---
|
|
612
|
+
|
|
613
|
+
## License
|
|
614
|
+
|
|
615
|
+
MIT
|
package/bin/aidev.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface AgentCreatorOptions {
|
|
2
|
+
outputDir?: string;
|
|
3
|
+
model?: string;
|
|
4
|
+
verbose?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class AgentCreator {
|
|
7
|
+
private client;
|
|
8
|
+
private model;
|
|
9
|
+
private outputDir;
|
|
10
|
+
private verbose;
|
|
11
|
+
private conversationHistory;
|
|
12
|
+
constructor(options?: AgentCreatorOptions);
|
|
13
|
+
private buildAgentBuilderPrompt;
|
|
14
|
+
private getAgentCreationInstructions;
|
|
15
|
+
private getFallbackAgentBuilderPrompt;
|
|
16
|
+
private chat;
|
|
17
|
+
private extractYaml;
|
|
18
|
+
private parseAgentDefinition;
|
|
19
|
+
private saveAgent;
|
|
20
|
+
create(): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
export declare function quickCreateAgent(options?: AgentCreatorOptions): Promise<void>;
|