@iservu-inc/adf-cli 0.9.0 → 0.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.
- package/.claude/settings.local.json +11 -0
- package/.project/PROJECT-SETTINGS.md +68 -0
- package/.project/chats/current/2025-10-05_UX-IMPROVEMENTS-AND-AI-ANALYSIS-CONFIG.md +389 -0
- package/.project/chats/current/SESSION-STATUS.md +170 -222
- package/.project/docs/DOCUMENTATION-UPDATE-CHECKLIST.md +196 -0
- package/.project/docs/ROADMAP.md +99 -16
- package/.project/docs/designs/PATTERN-DECAY-ALGORITHM.md +526 -0
- package/CHANGELOG.md +452 -0
- package/README.md +112 -23
- package/lib/frameworks/interviewer.js +13 -6
- package/lib/learning/decay-manager.js +336 -0
- package/lib/learning/pattern-detector.js +285 -2
- package/lib/learning/storage.js +49 -1
- package/lib/utils/pre-publish-check.js +74 -0
- package/package.json +3 -2
- package/tests/decay-manager.test.js +394 -0
- package/tests/pattern-decay.test.js +339 -0
- /package/.project/chats/{current → complete}/2025-10-05_INTELLIGENT-ANSWER-ANALYSIS.md +0 -0
- /package/.project/chats/{current → complete}/2025-10-05_MULTI-IDE-IMPROVEMENTS.md +0 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# Documentation Update Checklist
|
|
2
|
+
|
|
3
|
+
This checklist must be completed **BEFORE** publishing any new version to npm.
|
|
4
|
+
|
|
5
|
+
## Pre-Publish Documentation Requirements
|
|
6
|
+
|
|
7
|
+
Before running `npm version` or `npm publish`, ensure ALL of the following are updated:
|
|
8
|
+
|
|
9
|
+
### 1. CHANGELOG.md ✅
|
|
10
|
+
|
|
11
|
+
**Location:** `./CHANGELOG.md`
|
|
12
|
+
|
|
13
|
+
**Requirements:**
|
|
14
|
+
- [ ] Add new version entry at the top (format: `## [X.Y.Z] - YYYY-MM-DD`)
|
|
15
|
+
- [ ] Include comprehensive description of changes:
|
|
16
|
+
- What was added/changed/fixed
|
|
17
|
+
- Why it matters (user benefit)
|
|
18
|
+
- Technical details (files changed, new features)
|
|
19
|
+
- Breaking changes (if any)
|
|
20
|
+
- Testing status
|
|
21
|
+
- [ ] Use emojis for section headers (🚀, 🐛, ✨, 🔧, etc.)
|
|
22
|
+
- [ ] Include code examples for significant features
|
|
23
|
+
- [ ] Link to related issues/PRs if applicable
|
|
24
|
+
|
|
25
|
+
**Example Entry:**
|
|
26
|
+
```markdown
|
|
27
|
+
## [0.9.0] - 2025-10-05
|
|
28
|
+
|
|
29
|
+
### 🎛️ AI Analysis Settings & Performance Modes
|
|
30
|
+
|
|
31
|
+
**MAJOR FEATURE:** Configurable AI analysis with three performance modes.
|
|
32
|
+
|
|
33
|
+
#### Three Performance Modes
|
|
34
|
+
...
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 2. README.md ✅
|
|
38
|
+
|
|
39
|
+
**Location:** `./README.md`
|
|
40
|
+
|
|
41
|
+
**Requirements:**
|
|
42
|
+
- [ ] Update "Version History" section with latest version
|
|
43
|
+
- [ ] Add new feature documentation if applicable:
|
|
44
|
+
- New commands or options
|
|
45
|
+
- Configuration changes
|
|
46
|
+
- New workflows or capabilities
|
|
47
|
+
- [ ] Update any code examples that changed
|
|
48
|
+
- [ ] Update feature lists if new capabilities added
|
|
49
|
+
- [ ] Ensure all links and references are current
|
|
50
|
+
|
|
51
|
+
**Key Sections to Check:**
|
|
52
|
+
- Version History (line ~488)
|
|
53
|
+
- Configure ADF Settings (line ~63)
|
|
54
|
+
- Feature-specific sections (AI Provider, Learning System, etc.)
|
|
55
|
+
|
|
56
|
+
### 3. package.json ✅
|
|
57
|
+
|
|
58
|
+
**Location:** `./package.json`
|
|
59
|
+
|
|
60
|
+
**Requirements:**
|
|
61
|
+
- [ ] Version number matches the version being published
|
|
62
|
+
- [ ] Use `npm version <major|minor|patch>` to auto-increment
|
|
63
|
+
- [ ] Verify description is up-to-date
|
|
64
|
+
- [ ] Check dependencies are current
|
|
65
|
+
|
|
66
|
+
### 4. SESSION-STATUS.md
|
|
67
|
+
|
|
68
|
+
**Location:** `./.project/chats/current/SESSION-STATUS.md`
|
|
69
|
+
|
|
70
|
+
**Requirements:**
|
|
71
|
+
- [ ] Update "Latest Version" field
|
|
72
|
+
- [ ] Update "Status" field
|
|
73
|
+
- [ ] Update "Recent Completion" section with release details
|
|
74
|
+
- [ ] Update "Published Version" section
|
|
75
|
+
- [ ] Update "npm Registry" code block with new version
|
|
76
|
+
- [ ] Add new achievement section if major feature
|
|
77
|
+
- [ ] Update "Recent Version History" list
|
|
78
|
+
- [ ] Update "Last Updated" timestamp
|
|
79
|
+
|
|
80
|
+
### 5. Chat History
|
|
81
|
+
|
|
82
|
+
**Location:** `./.project/chats/current/`
|
|
83
|
+
|
|
84
|
+
**Requirements:**
|
|
85
|
+
- [ ] Create comprehensive chat file for the session (if significant work)
|
|
86
|
+
- [ ] Move completed chat files to `./.project/chats/complete/` folder
|
|
87
|
+
- [ ] Document all decisions, changes, and reasoning
|
|
88
|
+
- [ ] Include technical details and code changes
|
|
89
|
+
|
|
90
|
+
## Automation Script
|
|
91
|
+
|
|
92
|
+
To help automate documentation updates, use this workflow:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# 1. Complete your code changes
|
|
96
|
+
# 2. Run tests to ensure everything passes
|
|
97
|
+
npm test
|
|
98
|
+
|
|
99
|
+
# 3. Update CHANGELOG.md manually (most important)
|
|
100
|
+
# Add entry for new version with all changes documented
|
|
101
|
+
|
|
102
|
+
# 4. Update README.md if needed
|
|
103
|
+
# Add feature documentation, update version history
|
|
104
|
+
|
|
105
|
+
# 5. Update SESSION-STATUS.md
|
|
106
|
+
# Update version, status, and latest achievement
|
|
107
|
+
|
|
108
|
+
# 6. Version bump (auto-updates package.json)
|
|
109
|
+
npm version patch # or minor, or major
|
|
110
|
+
|
|
111
|
+
# 7. Create git commit with documentation
|
|
112
|
+
git add .
|
|
113
|
+
git commit -m "Release vX.Y.Z - Description
|
|
114
|
+
|
|
115
|
+
- Feature/fix 1
|
|
116
|
+
- Feature/fix 2
|
|
117
|
+
- Documentation updates
|
|
118
|
+
|
|
119
|
+
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
120
|
+
|
|
121
|
+
Co-Authored-By: Claude (Bob) <noreply@anthropic.com>"
|
|
122
|
+
|
|
123
|
+
# 8. Publish to npm
|
|
124
|
+
npm publish
|
|
125
|
+
|
|
126
|
+
# 9. Push to GitHub with tags
|
|
127
|
+
git push && git push --tags
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Quick Reference: Files That Must Be Updated
|
|
131
|
+
|
|
132
|
+
| File | Section | Update Frequency |
|
|
133
|
+
|------|---------|------------------|
|
|
134
|
+
| `CHANGELOG.md` | Top of file | **Every release** |
|
|
135
|
+
| `README.md` | Version History | **Every release** |
|
|
136
|
+
| `README.md` | Feature sections | When features added |
|
|
137
|
+
| `package.json` | version | **Every release** (via npm version) |
|
|
138
|
+
| `SESSION-STATUS.md` | Latest Version | **Every release** |
|
|
139
|
+
| `SESSION-STATUS.md` | Recent completion | **Every release** |
|
|
140
|
+
| Chat files | New session file | Significant work |
|
|
141
|
+
|
|
142
|
+
## Common Mistakes to Avoid
|
|
143
|
+
|
|
144
|
+
❌ **Don't:**
|
|
145
|
+
- Publish without updating CHANGELOG.md
|
|
146
|
+
- Forget to update version history in README.md
|
|
147
|
+
- Skip SESSION-STATUS.md updates
|
|
148
|
+
- Leave placeholder text in documentation
|
|
149
|
+
- Forget to move old chat files to complete/
|
|
150
|
+
|
|
151
|
+
✅ **Do:**
|
|
152
|
+
- Update ALL documentation files before publishing
|
|
153
|
+
- Include comprehensive change descriptions
|
|
154
|
+
- Test all code examples in documentation
|
|
155
|
+
- Proofread all documentation updates
|
|
156
|
+
- Create git commit with documentation changes
|
|
157
|
+
|
|
158
|
+
## Validation Checklist
|
|
159
|
+
|
|
160
|
+
Before running `npm publish`, verify:
|
|
161
|
+
|
|
162
|
+
- [ ] All 200 tests passing (`npm test`)
|
|
163
|
+
- [ ] CHANGELOG.md has new version entry
|
|
164
|
+
- [ ] README.md version history updated
|
|
165
|
+
- [ ] SESSION-STATUS.md reflects latest version
|
|
166
|
+
- [ ] package.json version incremented
|
|
167
|
+
- [ ] Git commit includes all documentation
|
|
168
|
+
- [ ] No uncommitted changes remain
|
|
169
|
+
|
|
170
|
+
## Emergency: Published Without Documentation
|
|
171
|
+
|
|
172
|
+
If you accidentally published without updating documentation:
|
|
173
|
+
|
|
174
|
+
1. **Don't panic** - the code is already published
|
|
175
|
+
2. Update documentation immediately (CHANGELOG.md, README.md)
|
|
176
|
+
3. Commit documentation updates: `git commit -m "docs: Update documentation for vX.Y.Z"`
|
|
177
|
+
4. Push to GitHub: `git push`
|
|
178
|
+
5. npm registry users will see updated README on next refresh
|
|
179
|
+
6. Add note in next version's CHANGELOG about late documentation
|
|
180
|
+
|
|
181
|
+
## Bob's Responsibility
|
|
182
|
+
|
|
183
|
+
As project assistant, Bob (Claude) must:
|
|
184
|
+
- ✅ Update CHANGELOG.md with detailed release notes
|
|
185
|
+
- ✅ Update README.md version history and feature docs
|
|
186
|
+
- ✅ Update SESSION-STATUS.md with release info
|
|
187
|
+
- ✅ Ensure all tests pass before publish
|
|
188
|
+
- ✅ Create comprehensive git commit message
|
|
189
|
+
- ✅ Follow semantic versioning correctly
|
|
190
|
+
- ✅ Never skip documentation updates
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
**Last Updated:** 2025-10-05
|
|
195
|
+
**Maintained By:** Bob
|
|
196
|
+
**Purpose:** Ensure documentation is always current with published versions
|
package/.project/docs/ROADMAP.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# ADF CLI - Development Roadmap
|
|
2
2
|
|
|
3
|
-
**Last Updated:** 2025-10-
|
|
4
|
-
**Current Version:** v0.
|
|
5
|
-
**Status:** Phase 5 Complete, Phase 6 Planning
|
|
3
|
+
**Last Updated:** 2025-10-26
|
|
4
|
+
**Current Version:** v0.9.1
|
|
5
|
+
**Status:** Phase 5 Complete (with UX Polish), Phase 6 Planning
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -238,10 +238,73 @@ Create the definitive AI-driven requirements gathering tool that transforms vagu
|
|
|
238
238
|
|
|
239
239
|
---
|
|
240
240
|
|
|
241
|
+
### ✅ Phase 5.1: UX Polish & Performance Configuration (v0.5.3 - v0.9.1)
|
|
242
|
+
**Released:** 2025-10-05
|
|
243
|
+
**Status:** Complete
|
|
244
|
+
|
|
245
|
+
**Delivered (9 versions):**
|
|
246
|
+
|
|
247
|
+
**v0.9.1 - Critical Bug Fix:**
|
|
248
|
+
- Fixed syntax error in interviewer.js causing interview failures
|
|
249
|
+
- All 200 tests passing
|
|
250
|
+
|
|
251
|
+
**v0.9.0 - AI Analysis Settings (MAJOR FEATURE):**
|
|
252
|
+
- Three performance modes: Fast, Balanced, Comprehensive
|
|
253
|
+
- Five configurable AI features with granular control
|
|
254
|
+
- Complete control over speed vs intelligence tradeoff
|
|
255
|
+
- New "AI Analysis Settings" category in `adf config`
|
|
256
|
+
- Performance mode display at interview start
|
|
257
|
+
- Settings persist to `.adf/analysis-config.json`
|
|
258
|
+
|
|
259
|
+
**v0.8.0 - Resume from Exit (MAJOR FEATURE):**
|
|
260
|
+
- Type `exit` or press Ctrl+C to save progress and quit gracefully
|
|
261
|
+
- Resume with `adf init` continues from last question
|
|
262
|
+
- Already-answered questions automatically skipped with preview
|
|
263
|
+
- Global Ctrl+C handler for clean exit anywhere
|
|
264
|
+
- Enhanced session manager with resume prompts
|
|
265
|
+
|
|
266
|
+
**v0.7.1 - UX Improvement:**
|
|
267
|
+
- Reverted to terminal input (v0.6.0-v0.7.0 external editor was disruptive)
|
|
268
|
+
- Kept exit and skip functionality
|
|
269
|
+
- Better user experience with inline typing
|
|
270
|
+
|
|
271
|
+
**v0.7.0 - Exit Shortcut:**
|
|
272
|
+
- Added `exit` command to quit interview anytime
|
|
273
|
+
- (Note: Later reverted external editor approach in v0.7.1)
|
|
274
|
+
|
|
275
|
+
**v0.6.0 - Multi-line Input Experiment:**
|
|
276
|
+
- Attempted fix for cursor lag with editor-based input
|
|
277
|
+
- (Note: Reverted in v0.7.1 based on user feedback)
|
|
278
|
+
|
|
279
|
+
**v0.5.6 - Configuration Validation:**
|
|
280
|
+
- Automatic detection and reset of invalid .env states
|
|
281
|
+
- Prevents "cart before the horse" configuration issues
|
|
282
|
+
|
|
283
|
+
**v0.5.5 - Provider Display Fix:**
|
|
284
|
+
- Fixed provider checkmark display logic in config menu
|
|
285
|
+
|
|
286
|
+
**v0.5.4 - Version Display:**
|
|
287
|
+
- Enhanced version display in help and commands
|
|
288
|
+
|
|
289
|
+
**v0.5.3 - Dependency Updates:**
|
|
290
|
+
- Updated AI SDK dependencies for better compatibility
|
|
291
|
+
- Improved stability
|
|
292
|
+
|
|
293
|
+
**Impact:**
|
|
294
|
+
- ✅ Flexible resume capability - exit and continue anytime
|
|
295
|
+
- ✅ User control over AI performance - choose speed or intelligence
|
|
296
|
+
- ✅ Graceful quit handling - Ctrl+C works everywhere
|
|
297
|
+
- ✅ Better UX - reverted disruptive experiments, kept what works
|
|
298
|
+
- ✅ Configuration safety - prevents invalid states
|
|
299
|
+
- ✅ Professional polish - 9 iterative improvements
|
|
300
|
+
- ✅ Zero breaking changes - fully backward compatible
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
241
304
|
## Active Development
|
|
242
305
|
|
|
243
306
|
### 🔄 Phase 6: Advanced Learning Features (Planned)
|
|
244
|
-
**Target Version:** v0.
|
|
307
|
+
**Target Version:** v0.10.0
|
|
245
308
|
**Priority:** High
|
|
246
309
|
**Estimated Effort:** 2-3 weeks
|
|
247
310
|
**Status:** Planning
|
|
@@ -329,11 +392,11 @@ Enhance the learning system with advanced features for better accuracy, visibili
|
|
|
329
392
|
---
|
|
330
393
|
|
|
331
394
|
### 🔄 Phase 7: AI-Enhanced Filtering (Planned)
|
|
332
|
-
**Target Version:** v0.
|
|
395
|
+
**Target Version:** v0.11.0
|
|
333
396
|
**Priority:** Medium
|
|
334
397
|
**Estimated Effort:** 3-4 weeks
|
|
335
398
|
**Status:** Planning
|
|
336
|
-
**Dependencies:** Phase
|
|
399
|
+
**Dependencies:** Phase 6 complete
|
|
337
400
|
|
|
338
401
|
#### Goals
|
|
339
402
|
Use AI to go beyond rule-based filtering for even more intelligent question selection.
|
|
@@ -518,32 +581,52 @@ Build a community-driven ecosystem around ADF CLI with plugins, templates, and s
|
|
|
518
581
|
|
|
519
582
|
## Version Planning
|
|
520
583
|
|
|
521
|
-
### v0.
|
|
522
|
-
-
|
|
523
|
-
-
|
|
524
|
-
|
|
525
|
-
-
|
|
584
|
+
### v0.9.1 - Current Release ✅
|
|
585
|
+
- Critical bug fix (syntax error in interviewer.js)
|
|
586
|
+
- Released: 2025-10-05
|
|
587
|
+
|
|
588
|
+
### v0.9.0 - AI Analysis Settings ✅
|
|
589
|
+
- Three performance modes (Fast, Balanced, Comprehensive)
|
|
590
|
+
- Five configurable AI features
|
|
591
|
+
- Complete control over speed vs intelligence
|
|
592
|
+
- Released: 2025-10-05
|
|
593
|
+
|
|
594
|
+
### v0.8.0 - Resume from Exit ✅
|
|
595
|
+
- Exit and Ctrl+C graceful quit
|
|
596
|
+
- Resume capability from any point
|
|
597
|
+
- Already-answered questions skipped
|
|
598
|
+
- Released: 2025-10-05
|
|
599
|
+
|
|
600
|
+
### v0.7.1 - UX Improvements ✅
|
|
601
|
+
- Terminal input restoration
|
|
602
|
+
- Reverted external editor experiment
|
|
603
|
+
- Released: 2025-10-05
|
|
604
|
+
|
|
605
|
+
### v0.5.0 - v0.7.0 - Core Features ✅
|
|
606
|
+
- Intelligent Answer Analysis (v0.5.0)
|
|
607
|
+
- Multi-line input experiments (v0.6.0-v0.7.0, later reverted)
|
|
608
|
+
- Configuration improvements (v0.5.3-v0.5.6)
|
|
526
609
|
- Released: 2025-10-05
|
|
527
610
|
|
|
528
|
-
### v0.
|
|
611
|
+
### v0.10.0 - Advanced Learning (Next)
|
|
529
612
|
- Pattern decay algorithm
|
|
530
613
|
- Learning analytics dashboard
|
|
531
|
-
- Export/Import rules
|
|
614
|
+
- Export/Import rules for team sharing
|
|
532
615
|
- Estimated: 2-3 weeks
|
|
533
616
|
|
|
534
|
-
### v0.
|
|
617
|
+
### v0.11.0 - AI Enhancement
|
|
535
618
|
- AI-powered relevance scoring
|
|
536
619
|
- Dynamic question generation
|
|
537
620
|
- Custom follow-ups
|
|
538
621
|
- Estimated: 3-4 weeks
|
|
539
622
|
|
|
540
|
-
### v0.
|
|
623
|
+
### v0.12.0 - Cross-Project Learning
|
|
541
624
|
- Cross-project pattern aggregation
|
|
542
625
|
- Time-based patterns
|
|
543
626
|
- Advanced analytics
|
|
544
627
|
- Estimated: 2 weeks
|
|
545
628
|
|
|
546
|
-
### v0.
|
|
629
|
+
### v0.13.0 - AI Pattern Detection
|
|
547
630
|
- AI-assisted pattern detection
|
|
548
631
|
- Semantic clustering
|
|
549
632
|
- Natural language descriptions
|