@iservu-inc/adf-cli 0.2.0 → 0.3.6
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/.project/chats/complete/2025-10-03_AGENTS-MD-AND-TOOL-GENERATORS.md +764 -0
- package/.project/chats/current/2025-10-03_AI-PROVIDER-INTEGRATION.md +569 -0
- package/.project/chats/current/2025-10-03_FRAMEWORK-UPDATE-SYSTEM.md +497 -0
- package/.project/chats/current/SESSION-STATUS.md +127 -0
- package/.project/docs/AI-PROVIDER-INTEGRATION.md +600 -0
- package/.project/docs/FRAMEWORK-UPDATE-INTEGRATION.md +421 -0
- package/.project/docs/FRAMEWORK-UPDATE-SYSTEM.md +832 -0
- package/.project/docs/PROJECT-STRUCTURE-EXPLANATION.md +500 -0
- package/.project/docs/architecture/SYSTEM-DESIGN.md +122 -1
- package/.project/docs/goals/PROJECT-VISION.md +33 -28
- package/.project/docs/tool-integrations/RESEARCH-FINDINGS.md +828 -0
- package/CHANGELOG.md +325 -0
- package/README.md +100 -11
- package/bin/adf.js +7 -0
- package/lib/ai/ai-client.js +328 -0
- package/lib/ai/ai-config.js +398 -0
- package/lib/commands/config.js +154 -0
- package/lib/commands/deploy.js +122 -3
- package/lib/commands/init.js +56 -10
- package/lib/frameworks/interviewer.js +89 -11
- package/lib/frameworks/progress-tracker.js +8 -1
- package/lib/generators/agents-md-generator.js +388 -0
- package/lib/generators/cursor-generator.js +374 -0
- package/lib/generators/index.js +98 -0
- package/lib/generators/tool-config-generator.js +188 -0
- package/lib/generators/vscode-generator.js +403 -0
- package/lib/generators/windsurf-generator.js +596 -0
- package/package.json +15 -3
- package/tests/agents-md-generator.test.js +245 -0
- package/tests/cursor-generator.test.js +326 -0
- package/tests/vscode-generator.test.js +436 -0
- package/tests/windsurf-generator.test.js +320 -0
- /package/.project/chats/{current → complete}/2025-10-03_ADF-CLI-QUALITY-BASED-PROGRESS-AND-RESUME.md +0 -0
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
# Framework Update System Integration
|
|
2
|
+
|
|
3
|
+
**Date:** 2025-10-03
|
|
4
|
+
**Status:** ✅ Complete - Ready to Deploy
|
|
5
|
+
**Purpose:** Integration between AgentDevFramework monitoring and adf-cli updates
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 🎯 System Overview
|
|
10
|
+
|
|
11
|
+
We've created a complete system to:
|
|
12
|
+
1. **Monitor** the 4 upstream framework repositories for updates
|
|
13
|
+
2. **Notify** when changes are detected
|
|
14
|
+
3. **Analyze** changes using AI (Claude) to determine impact
|
|
15
|
+
4. **Recommend** specific updates for adf-cli
|
|
16
|
+
5. **Automate** the entire process (optional)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 📁 What Was Created
|
|
21
|
+
|
|
22
|
+
### In AgentDevFramework Repository
|
|
23
|
+
|
|
24
|
+
**Scripts:**
|
|
25
|
+
- `scripts/check-framework-updates.js` - Check for new commits in 4 frameworks
|
|
26
|
+
- `scripts/update-frameworks.js` - Pull latest changes from all frameworks
|
|
27
|
+
- `scripts/analyze-framework-updates.js` - AI analysis of changes
|
|
28
|
+
|
|
29
|
+
**Automation:**
|
|
30
|
+
- `.github/workflows/monitor-framework-updates.yml` - GitHub Actions workflow (runs daily)
|
|
31
|
+
|
|
32
|
+
**Documentation:**
|
|
33
|
+
- `FRAMEWORK-UPDATE-SYSTEM-QUICKSTART.md` - Quick start guide
|
|
34
|
+
|
|
35
|
+
**Package Updates:**
|
|
36
|
+
- Added `@anthropic-ai/sdk` dependency
|
|
37
|
+
- Added 4 new npm scripts
|
|
38
|
+
|
|
39
|
+
### In adf-cli Repository
|
|
40
|
+
|
|
41
|
+
**Documentation:**
|
|
42
|
+
- `.project/docs/FRAMEWORK-UPDATE-SYSTEM.md` - Complete system design
|
|
43
|
+
- `.project/docs/FRAMEWORK-UPDATE-INTEGRATION.md` - This file
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## 🔄 How It Works
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
51
|
+
│ Upstream Frameworks (Git Repos) │
|
|
52
|
+
│ • BMAD-METHOD │
|
|
53
|
+
│ • Spec-Kit (GitHub) │
|
|
54
|
+
│ • Context Engineering │
|
|
55
|
+
│ • PRPs Agentic Engineering │
|
|
56
|
+
└──────────────────┬──────────────────────────────────────────┘
|
|
57
|
+
│
|
|
58
|
+
│ Monitor (Daily via GitHub Actions)
|
|
59
|
+
│ Or Manual (npm run check-updates)
|
|
60
|
+
↓
|
|
61
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
62
|
+
│ AgentDevFramework Repository │
|
|
63
|
+
│ • Git submodules detect new commits │
|
|
64
|
+
│ • Creates update branch │
|
|
65
|
+
│ • Creates GitHub issue │
|
|
66
|
+
└──────────────────┬──────────────────────────────────────────┘
|
|
67
|
+
│
|
|
68
|
+
│ Trigger AI Analysis
|
|
69
|
+
↓
|
|
70
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
71
|
+
│ Claude AI Analysis │
|
|
72
|
+
│ • Analyzes diffs │
|
|
73
|
+
│ • Determines impact on adf-cli │
|
|
74
|
+
│ • Provides specific recommendations │
|
|
75
|
+
│ • Suggests code changes │
|
|
76
|
+
└──────────────────┬──────────────────────────────────────────┘
|
|
77
|
+
│
|
|
78
|
+
│ Generate Reports
|
|
79
|
+
↓
|
|
80
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
81
|
+
│ Decision & Implementation │
|
|
82
|
+
│ • Human reviews AI recommendations │
|
|
83
|
+
│ • Decides which changes to adopt │
|
|
84
|
+
│ • Updates adf-cli code │
|
|
85
|
+
│ • Tests, commits, publishes new version │
|
|
86
|
+
└─────────────────────────────────────────────────────────────┘
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 🚀 Usage
|
|
92
|
+
|
|
93
|
+
### Option 1: Manual (Recommended for Start)
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
# 1. Go to AgentDevFramework
|
|
97
|
+
cd D:\Documents\GitHub\AgentDevFramework
|
|
98
|
+
|
|
99
|
+
# 2. Install dependencies (first time only)
|
|
100
|
+
npm install
|
|
101
|
+
|
|
102
|
+
# 3. Set API key
|
|
103
|
+
export ANTHROPIC_API_KEY="your-key"
|
|
104
|
+
|
|
105
|
+
# 4. Check for updates
|
|
106
|
+
npm run check-updates
|
|
107
|
+
|
|
108
|
+
# 5. If updates found, analyze them
|
|
109
|
+
npm run update-and-analyze
|
|
110
|
+
|
|
111
|
+
# 6. Review the report
|
|
112
|
+
cat framework-analysis-report.md
|
|
113
|
+
|
|
114
|
+
# 7. Update adf-cli based on recommendations
|
|
115
|
+
cd ../adf-cli
|
|
116
|
+
# Make changes...
|
|
117
|
+
npm test
|
|
118
|
+
# Commit, publish
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Option 2: Automated (GitHub Actions)
|
|
122
|
+
|
|
123
|
+
**One-time setup:**
|
|
124
|
+
```bash
|
|
125
|
+
# 1. Add API key to GitHub secrets
|
|
126
|
+
# Go to: https://github.com/your-username/AgentDevFramework/settings/secrets/actions
|
|
127
|
+
# Add: ANTHROPIC_API_KEY = your-key
|
|
128
|
+
|
|
129
|
+
# 2. Commit and push the workflow
|
|
130
|
+
cd D:\Documents\GitHub\AgentDevFramework
|
|
131
|
+
git add .github/workflows/monitor-framework-updates.yml
|
|
132
|
+
git commit -m "feat: Add framework update monitoring system"
|
|
133
|
+
git push
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Then it runs automatically:**
|
|
137
|
+
- Daily at 2am UTC
|
|
138
|
+
- Creates GitHub issues when updates detected
|
|
139
|
+
- Runs AI analysis
|
|
140
|
+
- You just review and decide
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 📊 AI Analysis Output
|
|
145
|
+
|
|
146
|
+
The AI provides structured analysis for each framework update:
|
|
147
|
+
|
|
148
|
+
```json
|
|
149
|
+
{
|
|
150
|
+
"summary": "Added new DevOps Engineer persona and infrastructure testing",
|
|
151
|
+
"impactLevel": "High",
|
|
152
|
+
"affectsAdfCli": true,
|
|
153
|
+
"reason": "New persona requires agent definition in adf-cli",
|
|
154
|
+
"recommendedActions": [
|
|
155
|
+
"Add DevOps Engineer agent to lib/templates/shared/agents/",
|
|
156
|
+
"Update output-generators.js to include infrastructure testing",
|
|
157
|
+
"Add infrastructure testing questions to questions.js"
|
|
158
|
+
],
|
|
159
|
+
"codeSuggestions": [
|
|
160
|
+
{
|
|
161
|
+
"file": "lib/templates/shared/agents/devops.md",
|
|
162
|
+
"change": "Create new DevOps Engineer agent",
|
|
163
|
+
"priority": "High",
|
|
164
|
+
"code": "# DevOps Engineer Agent\n\n## Role\n..."
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"breakingChanges": [],
|
|
168
|
+
"confidence": "High"
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 🎯 Decision Framework
|
|
175
|
+
|
|
176
|
+
### When to Update adf-cli
|
|
177
|
+
|
|
178
|
+
| Impact Level | Affects adf-cli | Action |
|
|
179
|
+
|--------------|-----------------|--------|
|
|
180
|
+
| **Critical** | Yes | ✅ Update immediately |
|
|
181
|
+
| **Critical** | No | ⏸️ Review but may skip |
|
|
182
|
+
| **High** | Yes | ✅ Plan to update soon |
|
|
183
|
+
| **High** | No | ⏸️ Monitor |
|
|
184
|
+
| **Medium** | Yes | 🤔 Consider updating |
|
|
185
|
+
| **Medium** | No | ⏸️ Skip |
|
|
186
|
+
| **Low** | Yes/No | ⏸️ Optional |
|
|
187
|
+
| **None** | No | ❌ Skip |
|
|
188
|
+
|
|
189
|
+
### Update Process
|
|
190
|
+
|
|
191
|
+
**When AI recommends updates:**
|
|
192
|
+
|
|
193
|
+
1. **Review Recommendations**
|
|
194
|
+
- Read the AI analysis report
|
|
195
|
+
- Understand what changed
|
|
196
|
+
- Evaluate impact on adf-cli
|
|
197
|
+
|
|
198
|
+
2. **Create Feature Branch**
|
|
199
|
+
```bash
|
|
200
|
+
cd D:\Documents\GitHub\adf-cli
|
|
201
|
+
git checkout -b feature/framework-update-YYYY-MM-DD
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
3. **Implement Changes**
|
|
205
|
+
- Follow code suggestions from AI
|
|
206
|
+
- Update relevant files
|
|
207
|
+
- Add new features if needed
|
|
208
|
+
|
|
209
|
+
4. **Test Thoroughly**
|
|
210
|
+
```bash
|
|
211
|
+
npm test
|
|
212
|
+
# All 57 tests should pass
|
|
213
|
+
# Add new tests for new features
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
5. **Update Documentation**
|
|
217
|
+
- Update CHANGELOG.md
|
|
218
|
+
- Update README if features changed
|
|
219
|
+
- Document new capabilities
|
|
220
|
+
|
|
221
|
+
6. **Commit and Release**
|
|
222
|
+
```bash
|
|
223
|
+
git add .
|
|
224
|
+
git commit -m "feat: Adopt [framework] updates
|
|
225
|
+
|
|
226
|
+
- [Change 1]
|
|
227
|
+
- [Change 2]
|
|
228
|
+
|
|
229
|
+
Based on framework update analysis YYYY-MM-DD"
|
|
230
|
+
|
|
231
|
+
# Bump version
|
|
232
|
+
npm version minor # or major/patch
|
|
233
|
+
|
|
234
|
+
# Publish
|
|
235
|
+
npm publish
|
|
236
|
+
git push --tags
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## 📋 Real-World Example
|
|
242
|
+
|
|
243
|
+
### Scenario: BMAD-METHOD adds DevOps persona
|
|
244
|
+
|
|
245
|
+
**1. Detection:**
|
|
246
|
+
```
|
|
247
|
+
🔍 Checking for framework updates...
|
|
248
|
+
📦 BMAD-METHOD: 2 new commits available
|
|
249
|
+
• Add DevOps Engineer persona
|
|
250
|
+
• Update testing methodology
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**2. AI Analysis:**
|
|
254
|
+
```json
|
|
255
|
+
{
|
|
256
|
+
"impactLevel": "High",
|
|
257
|
+
"affectsAdfCli": true,
|
|
258
|
+
"recommendedActions": [
|
|
259
|
+
"Add devops.md to lib/templates/shared/agents/",
|
|
260
|
+
"Update questions.js with infrastructure questions"
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
**3. Implementation in adf-cli:**
|
|
266
|
+
```bash
|
|
267
|
+
# Create new agent
|
|
268
|
+
cat > lib/templates/shared/agents/devops.md <<EOF
|
|
269
|
+
# DevOps Engineer
|
|
270
|
+
|
|
271
|
+
## Role
|
|
272
|
+
Infrastructure automation and deployment specialist...
|
|
273
|
+
EOF
|
|
274
|
+
|
|
275
|
+
# Update questions
|
|
276
|
+
# Edit lib/frameworks/questions.js
|
|
277
|
+
# Add infrastructure testing questions
|
|
278
|
+
|
|
279
|
+
# Test
|
|
280
|
+
npm test
|
|
281
|
+
|
|
282
|
+
# Commit
|
|
283
|
+
git commit -m "feat: Add DevOps Engineer agent from BMAD-METHOD update"
|
|
284
|
+
|
|
285
|
+
# Publish v0.4.0
|
|
286
|
+
npm version minor
|
|
287
|
+
npm publish
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**4. Result:**
|
|
291
|
+
- Users can now use DevOps agent
|
|
292
|
+
- Infrastructure testing questions added
|
|
293
|
+
- adf-cli stays current with methodology
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## 🔐 Security & Best Practices
|
|
298
|
+
|
|
299
|
+
**API Keys:**
|
|
300
|
+
- ✅ Store in GitHub Secrets (for automation)
|
|
301
|
+
- ✅ Store in .env file (for local)
|
|
302
|
+
- ❌ NEVER commit to git
|
|
303
|
+
|
|
304
|
+
**Review Before Merging:**
|
|
305
|
+
- ✅ Always review AI recommendations
|
|
306
|
+
- ✅ Don't blindly accept changes
|
|
307
|
+
- ✅ Test thoroughly
|
|
308
|
+
- ✅ Consider user impact
|
|
309
|
+
|
|
310
|
+
**Version Management:**
|
|
311
|
+
- Breaking changes → major version bump
|
|
312
|
+
- New features → minor version bump
|
|
313
|
+
- Bug fixes → patch version bump
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## 📈 Monitoring Metrics
|
|
318
|
+
|
|
319
|
+
Track these to measure system effectiveness:
|
|
320
|
+
|
|
321
|
+
| Metric | Target |
|
|
322
|
+
|--------|--------|
|
|
323
|
+
| Detection time | < 24 hours |
|
|
324
|
+
| AI accuracy | > 80% |
|
|
325
|
+
| False positives | < 20% |
|
|
326
|
+
| Review time | < 30 min |
|
|
327
|
+
| Missed critical updates | 0 |
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## 🛠️ Maintenance
|
|
332
|
+
|
|
333
|
+
**Weekly:**
|
|
334
|
+
- Run `npm run check-updates` manually
|
|
335
|
+
- Review any open GitHub issues
|
|
336
|
+
|
|
337
|
+
**Monthly:**
|
|
338
|
+
- Review AI analysis accuracy
|
|
339
|
+
- Adjust prompts if needed
|
|
340
|
+
- Check for missed updates
|
|
341
|
+
|
|
342
|
+
**As Needed:**
|
|
343
|
+
- Update API key if changed
|
|
344
|
+
- Adjust cron schedule if needed
|
|
345
|
+
- Tune impact level thresholds
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## 🎓 Training the Team
|
|
350
|
+
|
|
351
|
+
**For Maintainers:**
|
|
352
|
+
1. Read FRAMEWORK-UPDATE-SYSTEM-QUICKSTART.md
|
|
353
|
+
2. Try manual workflow once
|
|
354
|
+
3. Set up automation
|
|
355
|
+
4. Practice decision-making with mock updates
|
|
356
|
+
|
|
357
|
+
**For Contributors:**
|
|
358
|
+
1. Understand the 4 frameworks
|
|
359
|
+
2. Know where to find analysis reports
|
|
360
|
+
3. Understand adf-cli architecture
|
|
361
|
+
4. Follow update process
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## ✅ Checklist
|
|
366
|
+
|
|
367
|
+
**Setup Complete:**
|
|
368
|
+
- [x] Scripts created in AgentDevFramework
|
|
369
|
+
- [x] Dependencies added to package.json
|
|
370
|
+
- [x] GitHub Actions workflow created
|
|
371
|
+
- [x] Documentation written
|
|
372
|
+
- [x] Scripts made executable
|
|
373
|
+
|
|
374
|
+
**To Deploy:**
|
|
375
|
+
- [x] Install dependencies: `npm install` ✅ Tested 2025-10-03
|
|
376
|
+
- [ ] Set ANTHROPIC_API_KEY
|
|
377
|
+
- [x] Test manual workflow: `npm run check-updates` ✅ Tested 2025-10-03
|
|
378
|
+
- [ ] Set up GitHub Actions (optional)
|
|
379
|
+
- [ ] Add to weekly routine
|
|
380
|
+
|
|
381
|
+
**First Use:**
|
|
382
|
+
- [x] Check for updates ✅ Detected 3 framework updates
|
|
383
|
+
- [ ] Run AI analysis (requires API key)
|
|
384
|
+
- [ ] Review report
|
|
385
|
+
- [ ] Make first update to adf-cli
|
|
386
|
+
- [ ] Document lessons learned
|
|
387
|
+
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
## 📚 Related Documentation
|
|
391
|
+
|
|
392
|
+
**In AgentDevFramework:**
|
|
393
|
+
- `FRAMEWORK-UPDATE-SYSTEM-QUICKSTART.md` - Quick start guide
|
|
394
|
+
- `FRAMEWORK-UPDATE-SYSTEM-TEST-RESULTS.md` - Test validation ✅
|
|
395
|
+
- `scripts/check-framework-updates.js` - Check script
|
|
396
|
+
- `scripts/analyze-framework-updates.js` - Analysis script
|
|
397
|
+
- `.github/workflows/monitor-framework-updates.yml` - Automation
|
|
398
|
+
|
|
399
|
+
**In adf-cli:**
|
|
400
|
+
- `.project/docs/FRAMEWORK-UPDATE-SYSTEM.md` - Full system design
|
|
401
|
+
- `.project/docs/PROJECT-STRUCTURE-EXPLANATION.md` - Project relationship
|
|
402
|
+
- `CHANGELOG.md` - Version history
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
406
|
+
## 🎯 Success Criteria
|
|
407
|
+
|
|
408
|
+
**System is successful when:**
|
|
409
|
+
- ✅ Framework updates detected within 24 hours
|
|
410
|
+
- ✅ AI provides actionable recommendations
|
|
411
|
+
- ✅ Impact assessment is 80%+ accurate
|
|
412
|
+
- ✅ Human review takes < 30 minutes
|
|
413
|
+
- ✅ Zero missed critical updates
|
|
414
|
+
- ✅ adf-cli stays current with methodology
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
**Created:** 2025-10-03
|
|
419
|
+
**Status:** ✅ Tested & Operational
|
|
420
|
+
**Test Results:** See `AgentDevFramework/FRAMEWORK-UPDATE-SYSTEM-TEST-RESULTS.md`
|
|
421
|
+
**Next Step:** Set ANTHROPIC_API_KEY and run AI analysis
|