@iservu-inc/adf-cli 0.3.6 → 0.4.13

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 (29) hide show
  1. package/.project/chats/{current → complete}/2025-10-03_AI-PROVIDER-INTEGRATION.md +34 -35
  2. package/.project/chats/complete/2025-10-04_CONFIG-COMMAND.md +503 -0
  3. package/.project/chats/complete/2025-10-04_PHASE-4-1-SMART-FILTERING.md +381 -0
  4. package/.project/chats/current/2025-10-04_PHASE-4-2-COMPLETION-AND-ROADMAP.md +344 -0
  5. package/.project/chats/current/2025-10-04_PHASE-4-2-LEARNING-SYSTEM.md +239 -0
  6. package/.project/chats/current/SESSION-STATUS.md +142 -33
  7. package/.project/docs/PHASE-4-2-LEARNING-SYSTEM.md +881 -0
  8. package/.project/docs/ROADMAP.md +540 -0
  9. package/.project/docs/SMART-FILTERING-SYSTEM.md +385 -0
  10. package/.project/docs/goals/PROJECT-VISION.md +63 -11
  11. package/CHANGELOG.md +125 -1
  12. package/README.md +476 -381
  13. package/lib/analyzers/project-analyzer.js +380 -0
  14. package/lib/commands/config.js +68 -1
  15. package/lib/commands/init.js +3 -22
  16. package/lib/filters/question-filter.js +480 -0
  17. package/lib/frameworks/interviewer.js +208 -4
  18. package/lib/learning/learning-manager.js +447 -0
  19. package/lib/learning/pattern-detector.js +376 -0
  20. package/lib/learning/rule-generator.js +304 -0
  21. package/lib/learning/skip-tracker.js +260 -0
  22. package/lib/learning/storage.js +296 -0
  23. package/package.json +70 -69
  24. package/tests/learning-storage.test.js +184 -0
  25. package/tests/pattern-detector.test.js +297 -0
  26. package/tests/project-analyzer.test.js +221 -0
  27. package/tests/question-filter.test.js +297 -0
  28. package/tests/skip-tracker.test.js +198 -0
  29. /package/.project/chats/{current → complete}/2025-10-03_FRAMEWORK-UPDATE-SYSTEM.md +0 -0
@@ -0,0 +1,540 @@
1
+ # ADF CLI - Development Roadmap
2
+
3
+ **Last Updated:** 2025-10-04
4
+ **Current Version:** v0.4.12
5
+ **Status:** Phase 4 Complete, Phase 5 Planning
6
+
7
+ ---
8
+
9
+ ## Vision
10
+
11
+ Create the definitive AI-driven requirements gathering tool that transforms vague ideas into comprehensive, actionable development documentation through intelligent conversation, learning from user behavior, and seamlessly integrating with development workflows.
12
+
13
+ ---
14
+
15
+ ## Completed Phases
16
+
17
+ ### ✅ Phase 1: Core System (v0.1.0 - v0.2.0)
18
+ **Released:** 2025-10-03
19
+ **Status:** Complete
20
+
21
+ **Delivered:**
22
+ - Quality-based progress tracking (Information Richness Score)
23
+ - Triple-redundant save system (progress.json, backup, log, emergency)
24
+ - Resume capability from exact point of interruption
25
+ - Framework-specific outputs (PRP, Balanced, BMAD)
26
+ - Answer quality analyzer (0-100 scoring with metrics)
27
+ - Session manager for resume prompts
28
+ - Comprehensive test coverage (78%)
29
+
30
+ **Impact:**
31
+ - Zero data loss guarantee
32
+ - 60% quality-weighted progress tracking
33
+ - Seamless resume from any interruption
34
+ - Professional outputs for all frameworks
35
+
36
+ ---
37
+
38
+ ### ✅ Phase 2: Tool Integration (v0.3.0)
39
+ **Released:** 2025-10-03
40
+ **Status:** Complete
41
+
42
+ **Delivered:**
43
+ - AGENTS.md universal standard generator
44
+ - Windsurf generator (.windsurfrules, rules/, workflows/)
45
+ - Cursor generator (.cursor/rules, deprecation notices)
46
+ - VS Code generator (copilot-instructions, chat modes)
47
+ - Enhanced deploy command with tool-specific configs
48
+ - Template variable substitution system
49
+ - File preservation logic (VS Code settings)
50
+
51
+ **Impact:**
52
+ - One-command deployment to any IDE
53
+ - Professional AI agent configurations
54
+ - Tool-specific optimizations
55
+ - Universal AGENTS.md standard support
56
+
57
+ ---
58
+
59
+ ### ✅ Phase 3: AI Integration (v0.3.4 - v0.3.6)
60
+ **Released:** 2025-10-04
61
+ **Status:** Complete
62
+
63
+ **Delivered:**
64
+ - Multi-provider AI support (Anthropic, OpenAI, Google Gemini, OpenRouter)
65
+ - Real-time answer quality analysis (0-100 scoring)
66
+ - Intelligent AI-generated follow-up questions
67
+ - API key persistence in `.adf/.env`
68
+ - Dynamic model fetching with autocomplete
69
+ - New `adf config` command with category menu
70
+ - Optional AI configuration during init
71
+
72
+ **Impact:**
73
+ - Choice of AI provider based on preference/budget
74
+ - Intelligent interview adaptation
75
+ - Secure local API key storage
76
+ - Easy provider switching
77
+ - Professional configuration management
78
+
79
+ ---
80
+
81
+ ### ✅ Phase 4.1: Smart Question Filtering (v0.4.12)
82
+ **Released:** 2025-10-04
83
+ **Status:** Complete
84
+
85
+ **Delivered:**
86
+ - Automatic project analysis (type, frameworks, tech stack detection)
87
+ - Context-aware question filtering (skip irrelevant questions)
88
+ - Relevance scoring algorithm (0-100 per question)
89
+ - Time savings estimation (40-60% for specialized projects)
90
+ - User control with enable/disable prompt
91
+ - Graceful degradation (works without AI, handles low confidence)
92
+ - Comprehensive tests (37 tests: 16 analyzer + 21 filter)
93
+
94
+ **Impact:**
95
+ - 40-60% time savings on specialized projects
96
+ - Better user experience (relevant questions only)
97
+ - Intelligent project understanding
98
+ - Transparent filtering with explanations
99
+
100
+ ---
101
+
102
+ ### ✅ Phase 4.2: Learning System (v0.4.12)
103
+ **Released:** 2025-10-04
104
+ **Status:** Complete
105
+
106
+ **Delivered:**
107
+ - Session-based skip and answer tracking
108
+ - Pattern detection engine (4 types):
109
+ - Consistent skip patterns (3+ sessions, 75%+ confidence)
110
+ - Category skip patterns (≥80% skip rate)
111
+ - Framework-specific patterns
112
+ - User preference patterns (brief vs detailed)
113
+ - Learned rule generation from high-confidence patterns
114
+ - Adaptive filtering with learned rules
115
+ - Learning management CLI via `adf config`
116
+ - Privacy-first local storage (`.adf/learning/`)
117
+ - Multiple layers of user control
118
+ - Comprehensive tests (50 tests: 20 storage + 14 tracker + 16 detector)
119
+
120
+ **Impact:**
121
+ - Reduces repetitive manual skipping
122
+ - Learns user preferences automatically
123
+ - Improves efficiency across sessions
124
+ - Complete user control and transparency
125
+ - Zero privacy concerns (all local)
126
+
127
+ ---
128
+
129
+ ## Active Development
130
+
131
+ ### 🔄 Phase 4.3: Advanced Learning Features (Planned)
132
+ **Target Version:** v0.5.0
133
+ **Priority:** High
134
+ **Estimated Effort:** 2-3 weeks
135
+ **Status:** Planning
136
+
137
+ #### Goals
138
+ Enhance the learning system with advanced features for better accuracy, visibility, and collaboration.
139
+
140
+ #### Features
141
+
142
+ ##### 1. Pattern Decay (High Priority)
143
+ **Problem:** Old patterns may become stale and inaccurate over time.
144
+ **Solution:** Reduce confidence scores over time for inactive patterns.
145
+
146
+ **Implementation:**
147
+ - Decay algorithm: Reduce confidence by X% per month of inactivity
148
+ - Configurable decay rate in learning settings
149
+ - Automatic removal of patterns below confidence threshold
150
+ - Pattern "last seen" timestamp tracking
151
+
152
+ **User Benefit:** Keeps learning data fresh and relevant
153
+
154
+ ##### 2. Learning Analytics Dashboard (High Priority)
155
+ **Problem:** Users can't visualize their learning data effectively.
156
+ **Solution:** Comprehensive analytics with insights and visualizations.
157
+
158
+ **Implementation:**
159
+ - Skip trends over time (chart data)
160
+ - Category preference heatmap
161
+ - Pattern confidence distribution
162
+ - Learning effectiveness metrics
163
+ - Export analytics as JSON/CSV
164
+
165
+ **User Benefit:** Visibility into learning behavior and patterns
166
+
167
+ ##### 3. Export/Import Rules (Medium Priority)
168
+ **Problem:** Teams can't share learned preferences.
169
+ **Solution:** Export rules as JSON, import with validation.
170
+
171
+ **Implementation:**
172
+ - Export rules to JSON file
173
+ - Import with schema validation
174
+ - Merge strategies (replace, append, skip duplicates)
175
+ - Rule provenance tracking (who created/imported)
176
+
177
+ **User Benefit:** Team collaboration and knowledge sharing
178
+
179
+ ##### 4. Cross-Project Learning (Low Priority)
180
+ **Problem:** Patterns learned in one project could benefit others.
181
+ **Solution:** Optional aggregation across projects.
182
+
183
+ **Implementation:**
184
+ - Opt-in cross-project pattern detection
185
+ - Privacy-preserving aggregation
186
+ - Project-specific rule overrides
187
+ - Clear user consent flow
188
+
189
+ **User Benefit:** Faster learning for new projects
190
+
191
+ ##### 5. Time-Based Patterns (Low Priority)
192
+ **Problem:** Some patterns are time-dependent (e.g., skip deployment on Fridays).
193
+ **Solution:** Detect and apply schedule-aware patterns.
194
+
195
+ **Implementation:**
196
+ - Timestamp all skip events
197
+ - Detect day-of-week patterns
198
+ - Detect time-of-day patterns
199
+ - Contextual pattern application
200
+
201
+ **User Benefit:** More intelligent, context-aware filtering
202
+
203
+ #### Success Criteria
204
+ - Pattern decay prevents >90% of stale patterns from affecting filtering
205
+ - Analytics dashboard shows 5+ meaningful insights
206
+ - Export/Import works across team members
207
+ - Cross-project learning requires explicit user opt-in
208
+ - Time patterns detected with >80% accuracy
209
+
210
+ #### Technical Challenges
211
+ - Decay algorithm tuning (what's the right rate?)
212
+ - Analytics performance with large datasets
213
+ - Import validation and merge conflicts
214
+ - Privacy in cross-project learning
215
+ - Time pattern noise vs signal
216
+
217
+ ---
218
+
219
+ ### 🔄 Phase 4.4: AI-Enhanced Filtering (Planned)
220
+ **Target Version:** v0.6.0
221
+ **Priority:** Medium
222
+ **Estimated Effort:** 3-4 weeks
223
+ **Status:** Planning
224
+ **Dependencies:** Phase 4.3 complete
225
+
226
+ #### Goals
227
+ Use AI to go beyond rule-based filtering for even more intelligent question selection.
228
+
229
+ #### Features
230
+
231
+ ##### 1. AI-Powered Relevance Scoring
232
+ **Problem:** Rule-based scoring may miss nuanced relevance.
233
+ **Solution:** Use LLM to evaluate question relevance to project.
234
+
235
+ **Implementation:**
236
+ - Send project context + question to AI
237
+ - Get relevance score (0-100) with reasoning
238
+ - Combine with rule-based score
239
+ - Confidence-based suggestions
240
+
241
+ **User Benefit:** More accurate relevance determination
242
+
243
+ ##### 2. Dynamic Question Generation
244
+ **Problem:** Fixed question set may not cover all scenarios.
245
+ **Solution:** Generate questions based on project context.
246
+
247
+ **Implementation:**
248
+ - Analyze project deeply with AI
249
+ - Generate custom questions for gaps
250
+ - Adaptive interview paths
251
+ - Framework-specific question sets
252
+
253
+ **User Benefit:** Perfectly tailored interviews
254
+
255
+ ##### 3. Custom Follow-Ups for Project Types
256
+ **Problem:** Generic follow-ups don't fit all project types.
257
+ **Solution:** Generate context-aware follow-up questions.
258
+
259
+ **Implementation:**
260
+ - Project-type-specific follow-up templates
261
+ - AI-generated follow-ups based on context
262
+ - Intelligent question chains
263
+ - Deep-dive capabilities
264
+
265
+ **User Benefit:** More thorough requirements gathering
266
+
267
+ ##### 4. AI-Assisted Pattern Detection
268
+ **Problem:** Rule-based pattern detection may miss subtle patterns.
269
+ **Solution:** Use AI to find patterns in skip/answer history.
270
+
271
+ **Implementation:**
272
+ - Semantic similarity clustering
273
+ - Natural language pattern descriptions
274
+ - Anomaly detection
275
+ - Confidence scoring improvements
276
+
277
+ **User Benefit:** Better pattern recognition
278
+
279
+ #### Success Criteria
280
+ - AI scoring improves relevance accuracy by >15%
281
+ - Dynamic questions fill gaps in 90% of interviews
282
+ - Custom follow-ups rated higher quality by users
283
+ - AI pattern detection finds 20% more patterns
284
+
285
+ #### Technical Challenges
286
+ - AI API costs (need caching/batching)
287
+ - Latency (can't slow down interview)
288
+ - Quality control on generated questions
289
+ - Balancing AI vs rules
290
+
291
+ ---
292
+
293
+ ## Future Vision
294
+
295
+ ### 🔮 Phase 5: Community & Ecosystem (Long-term)
296
+ **Target Version:** v1.0.0
297
+ **Priority:** Low
298
+ **Estimated Effort:** 8-12 weeks
299
+ **Status:** Future Planning
300
+ **Dependencies:** Phase 4.4 complete, community feedback
301
+
302
+ #### Goals
303
+ Build a community-driven ecosystem around ADF CLI with plugins, templates, and shared knowledge.
304
+
305
+ #### Features
306
+
307
+ ##### 1. Plugin System
308
+ **Vision:** Allow third-party developers to extend ADF CLI.
309
+
310
+ **Implementation:**
311
+ - Plugin API and hooks
312
+ - Plugin discovery and installation
313
+ - Sandboxed execution
314
+ - Plugin marketplace
315
+
316
+ **Examples:**
317
+ - Custom framework generators
318
+ - Additional AI providers
319
+ - New question categories
320
+ - Integration with other tools
321
+
322
+ ##### 2. Shareable Interview Templates
323
+ **Vision:** Community-driven library of interview templates.
324
+
325
+ **Implementation:**
326
+ - Template creation wizard
327
+ - Template library (hosted)
328
+ - Version control for templates
329
+ - Quality ratings and reviews
330
+
331
+ **Examples:**
332
+ - "Startup MVP Template"
333
+ - "Enterprise Architecture Template"
334
+ - "Mobile App Template"
335
+ - "API Service Template"
336
+
337
+ ##### 3. Community Question Database
338
+ **Vision:** Crowdsourced questions for better interviews.
339
+
340
+ **Implementation:**
341
+ - Question submission system
342
+ - Quality voting mechanism
343
+ - Categorization and tagging
344
+ - Moderation tools
345
+
346
+ **Impact:**
347
+ - Better question coverage
348
+ - Community expertise
349
+ - Continuous improvement
350
+
351
+ ##### 4. Analytics Dashboard
352
+ **Vision:** Comprehensive insights into ADF CLI usage.
353
+
354
+ **Implementation:**
355
+ - Usage metrics and trends
356
+ - Performance tracking
357
+ - Popular frameworks/tools
358
+ - Community statistics
359
+
360
+ **Impact:**
361
+ - Data-driven decisions
362
+ - Feature prioritization
363
+ - Community insights
364
+
365
+ ##### 5. Multi-Framework Project Support
366
+ **Vision:** Handle complex projects with multiple frameworks.
367
+
368
+ **Implementation:**
369
+ - Detect multiple frameworks
370
+ - Monorepo support
371
+ - Framework-specific sessions
372
+ - Composite outputs
373
+
374
+ **Impact:**
375
+ - Support for modern architectures
376
+ - Better for large projects
377
+ - Reduced friction
378
+
379
+ #### Success Criteria
380
+ - 100+ plugins published
381
+ - 500+ community templates
382
+ - 10,000+ community questions
383
+ - 50,000+ monthly active users
384
+ - Multi-framework support for top 20 combos
385
+
386
+ ---
387
+
388
+ ## Prioritization Framework
389
+
390
+ ### High Priority (Do Next)
391
+ - **Pattern Decay** - Critical for learning quality
392
+ - **Learning Analytics** - User visibility and trust
393
+ - **Export/Import Rules** - Team collaboration
394
+
395
+ ### Medium Priority (Do Soon)
396
+ - **AI-Powered Relevance** - Improve accuracy
397
+ - **Dynamic Question Generation** - Better coverage
398
+ - **Cross-Project Learning** - Faster onboarding
399
+
400
+ ### Low Priority (Do Eventually)
401
+ - **Time-Based Patterns** - Nice to have
402
+ - **Plugin System** - Requires community
403
+ - **Community Features** - Needs scale
404
+
405
+ ---
406
+
407
+ ## Version Planning
408
+
409
+ ### v0.5.0 - Advanced Learning (Next)
410
+ - Pattern decay algorithm
411
+ - Learning analytics dashboard
412
+ - Export/Import rules
413
+ - Estimated: 2-3 weeks
414
+
415
+ ### v0.6.0 - AI Enhancement
416
+ - AI-powered relevance scoring
417
+ - Dynamic question generation
418
+ - Custom follow-ups
419
+ - Estimated: 3-4 weeks
420
+
421
+ ### v0.7.0 - Cross-Project Learning
422
+ - Cross-project pattern aggregation
423
+ - Time-based patterns
424
+ - Advanced analytics
425
+ - Estimated: 2 weeks
426
+
427
+ ### v0.8.0 - AI Pattern Detection
428
+ - AI-assisted pattern detection
429
+ - Semantic clustering
430
+ - Natural language descriptions
431
+ - Estimated: 2 weeks
432
+
433
+ ### v0.9.0 - Pre-Release Polish
434
+ - Bug fixes and optimizations
435
+ - Performance improvements
436
+ - Documentation updates
437
+ - Community feedback integration
438
+ - Estimated: 2 weeks
439
+
440
+ ### v1.0.0 - Community Release
441
+ - Plugin system
442
+ - Template library
443
+ - Community question database
444
+ - Analytics dashboard
445
+ - Multi-framework support
446
+ - Estimated: 8-12 weeks
447
+
448
+ ---
449
+
450
+ ## Success Metrics
451
+
452
+ ### Technical Metrics
453
+ - **Test Coverage:** Maintain >75%
454
+ - **Performance:** Interview start <2s
455
+ - **Reliability:** Zero data loss incidents
456
+ - **Quality:** No critical bugs in production
457
+
458
+ ### User Metrics
459
+ - **NPM Downloads:** 1,000+/month by v1.0
460
+ - **GitHub Stars:** 500+ by v1.0
461
+ - **Issue Resolution:** <7 days average
462
+ - **User Satisfaction:** >90% positive feedback
463
+
464
+ ### Learning Metrics
465
+ - **Pattern Detection Rate:** >80% accuracy
466
+ - **Learning Effectiveness:** >50% time saved after 3 sessions
467
+ - **Rule Confidence:** >75% average
468
+ - **Pattern Decay:** <10% stale patterns active
469
+
470
+ ---
471
+
472
+ ## Community Engagement
473
+
474
+ ### Current State
475
+ - NPM package published: ✅
476
+ - GitHub repository public: ✅
477
+ - Documentation complete: ✅
478
+ - Issue tracker active: ✅
479
+
480
+ ### Future Plans
481
+ - Create Discord community
482
+ - Write blog posts about features
483
+ - Create video tutorials
484
+ - Speak at conferences
485
+ - Engage with AI dev communities
486
+
487
+ ---
488
+
489
+ ## Dependencies & Risks
490
+
491
+ ### External Dependencies
492
+ - **AI Providers:** Continued API availability (Anthropic, OpenAI, Google)
493
+ - **NPM Registry:** Stable package hosting
494
+ - **Node.js:** LTS version support
495
+
496
+ ### Technical Risks
497
+ - **AI API Costs:** Could impact feasibility of AI-heavy features
498
+ - **Pattern Quality:** Learning system effectiveness depends on data quality
499
+ - **Scaling:** Large learning datasets may impact performance
500
+ - **Breaking Changes:** AI provider API changes
501
+
502
+ ### Mitigation Strategies
503
+ - **API Costs:** Implement caching, batching, and rate limiting
504
+ - **Pattern Quality:** Confidence thresholds and decay algorithms
505
+ - **Scaling:** Efficient data structures, pagination, archiving
506
+ - **Breaking Changes:** Abstract AI provider interfaces, version pinning
507
+
508
+ ---
509
+
510
+ ## Contributing
511
+
512
+ ### How to Contribute
513
+ 1. Check current phase in roadmap
514
+ 2. Review open issues on GitHub
515
+ 3. Propose new features via issues
516
+ 4. Submit pull requests with tests
517
+ 5. Help with documentation
518
+
519
+ ### Priority Areas for Contributors
520
+ - Learning analytics visualizations
521
+ - Additional AI provider support
522
+ - Question database expansion
523
+ - Translation/internationalization
524
+ - Performance optimizations
525
+
526
+ ---
527
+
528
+ ## Changelog
529
+
530
+ ### 2025-10-04
531
+ - Initial roadmap created
532
+ - Phase 4.1 & 4.2 marked complete (v0.4.12)
533
+ - Phase 4.3, 4.4, and 5 defined
534
+ - Prioritization framework established
535
+
536
+ ---
537
+
538
+ **Ready for:** Phase 4.3 implementation
539
+ **Current Focus:** Advanced learning features
540
+ **Long-term Vision:** Community-driven ecosystem at v1.0