@iservu-inc/adf-cli 0.14.5 → 0.16.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/.project/chats/current/SESSION-STATUS.md +25 -279
- package/.project/docs/AI-MODEL-SOURCES.md +217 -249
- package/.project/docs/AI-PROVIDER-INTEGRATION.md +1 -1
- package/.project/docs/PHASE-6-ADVANCED-LEARNING.md +46 -0
- package/.project/docs/ROADMAP.md +72 -157
- package/.project/docs/designs/CUSTOM-ARTIFACT-UPLOAD.md +259 -0
- package/.project/docs/designs/LEARNING-RULES-EXCHANGE.md +77 -0
- package/CHANGELOG.md +2054 -2995
- package/README.md +5 -8
- package/bin/adf.js +84 -4
- package/conductor/tracks/session_resume_review_20260113/plan.md +18 -0
- package/conductor/tracks.md +4 -0
- package/gemini.md +3 -0
- package/lib/ai/ai-client.js +9 -9
- package/lib/ai/ai-config.js +14 -14
- package/lib/commands/import.js +439 -0
- package/lib/commands/init.js +8 -4
- package/lib/frameworks/interviewer.js +281 -89
- package/lib/frameworks/progress-tracker.js +18 -0
- package/lib/generators/antigravity-generator.js +6 -5
- package/lib/generators/opencode-generator.js +42 -33
- package/lib/generators/tool-config-generator.js +24 -0
- package/lib/learning/learning-manager.js +107 -8
- package/lib/learning/rules-exporter.js +103 -0
- package/lib/learning/rules-importer.js +141 -0
- package/lib/utils/artifact-detector.js +253 -0
- package/package.json +1 -1
- package/tests/progress-tracker.test.js +16 -0
|
@@ -1,249 +1,217 @@
|
|
|
1
|
-
# AI Model Documentation Sources
|
|
2
|
-
|
|
3
|
-
This document tracks the official documentation URLs for AI model listings from each provider. These should be checked regularly to ensure adf-cli supports the latest models.
|
|
4
|
-
|
|
5
|
-
**Last Updated:**
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Provider Model Documentation URLs
|
|
10
|
-
|
|
11
|
-
### Anthropic Claude
|
|
12
|
-
|
|
13
|
-
**Official Models Page:**
|
|
14
|
-
- https://docs.anthropic.com/en/docs/about-claude/models
|
|
15
|
-
|
|
16
|
-
**API Models List:**
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
**Current Models (as of
|
|
21
|
-
- `claude-
|
|
22
|
-
- `claude-3-5-
|
|
23
|
-
- `claude-3-opus-20240229`
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
- GPT-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- `gemini-2.5-
|
|
71
|
-
- `gemini-2.5-flash
|
|
72
|
-
- `gemini-2.5-flash-
|
|
73
|
-
|
|
74
|
-
**Gemini 2.0 Series:**
|
|
75
|
-
- `gemini-2.0-flash`
|
|
76
|
-
- `gemini-2.0-
|
|
77
|
-
|
|
78
|
-
**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
- [ ]
|
|
111
|
-
- [ ] Check for new model
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
- [ ] Verify
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
- [ ]
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
- **
|
|
216
|
-
- **
|
|
217
|
-
- **
|
|
218
|
-
- **DOCUMENT** any assumptions or limitations in this file
|
|
219
|
-
|
|
220
|
-
---
|
|
221
|
-
|
|
222
|
-
## Future Improvements
|
|
223
|
-
|
|
224
|
-
1. **Add model metadata caching**
|
|
225
|
-
- Cache API responses for 24 hours
|
|
226
|
-
- Reduce API calls during testing
|
|
227
|
-
|
|
228
|
-
2. **Add model capability detection**
|
|
229
|
-
- Vision support
|
|
230
|
-
- Function calling
|
|
231
|
-
- Context window size
|
|
232
|
-
- Pricing information
|
|
233
|
-
|
|
234
|
-
3. **Add model recommendation system**
|
|
235
|
-
- Suggest best model for use case
|
|
236
|
-
- Warn about deprecated models
|
|
237
|
-
- Show model capabilities in selection
|
|
238
|
-
|
|
239
|
-
4. **Automated model list updates**
|
|
240
|
-
- GitHub Actions workflow
|
|
241
|
-
- Monthly PR with updated model lists
|
|
242
|
-
- Automated testing against provider APIs
|
|
243
|
-
|
|
244
|
-
---
|
|
245
|
-
|
|
246
|
-
## Version History
|
|
247
|
-
|
|
248
|
-
- **2025-10-04:** Initial documentation
|
|
249
|
-
- **2025-10-04:** Identified OpenAI filtering bug (v0.4.29)
|
|
1
|
+
# AI Model Documentation Sources
|
|
2
|
+
|
|
3
|
+
This document tracks the official documentation URLs for AI model listings from each provider. These should be checked regularly to ensure adf-cli supports the latest models.
|
|
4
|
+
|
|
5
|
+
**Last Updated:** 2026-01-12
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Provider Model Documentation URLs
|
|
10
|
+
|
|
11
|
+
### Anthropic Claude
|
|
12
|
+
|
|
13
|
+
**Official Models Page:**
|
|
14
|
+
- https://docs.anthropic.com/en/docs/about-claude/models
|
|
15
|
+
|
|
16
|
+
**API Models List:**
|
|
17
|
+
- ✅ Supported via `GET /v1/models`
|
|
18
|
+
- Node.js SDK: `client.models.list()`
|
|
19
|
+
|
|
20
|
+
**Current Models (as of 2026-01-12):**
|
|
21
|
+
- `claude-3-5-sonnet-20241022`
|
|
22
|
+
- `claude-3-5-haiku-20241022`
|
|
23
|
+
- `claude-3-opus-20240229`
|
|
24
|
+
|
|
25
|
+
**Update Strategy:** Dynamic discovery via API
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
### OpenAI
|
|
30
|
+
|
|
31
|
+
**Official Models Page:**
|
|
32
|
+
- https://platform.openai.com/docs/models
|
|
33
|
+
|
|
34
|
+
**API Models List Endpoint:**
|
|
35
|
+
- ✅ `GET https://api.openai.com/v1/models`
|
|
36
|
+
- Requires API key in Authorization header
|
|
37
|
+
|
|
38
|
+
**Current Model Families (as of 2026-01-12):**
|
|
39
|
+
- GPT-4o series: `gpt-4o`, `gpt-4o-mini`
|
|
40
|
+
- o1 series: `o1`, `o1-mini`
|
|
41
|
+
- o3 series: `o3`, `o3-mini`
|
|
42
|
+
- GPT-5 series (if available)
|
|
43
|
+
|
|
44
|
+
**Update Strategy:** Dynamic fetching via API endpoint (DO NOT filter by model name prefix)
|
|
45
|
+
|
|
46
|
+
**Important:**
|
|
47
|
+
- OpenAI API returns ALL available models for your API key
|
|
48
|
+
- Do NOT filter by prefix (e.g., `gpt-`) as this excludes o1, o3, and future model families
|
|
49
|
+
- Filter only by owned_by or other metadata if needed
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
### Google Gemini
|
|
54
|
+
|
|
55
|
+
**Official Models Page:**
|
|
56
|
+
- https://ai.google.dev/gemini-api/docs/models
|
|
57
|
+
|
|
58
|
+
**API Models List:**
|
|
59
|
+
- ✅ Supported via `v1beta/models` endpoint
|
|
60
|
+
- Node.js SDK: `@google/genai` (Unified SDK)
|
|
61
|
+
|
|
62
|
+
**Current Models (as of 2026-01-12):**
|
|
63
|
+
|
|
64
|
+
**Gemini 3.0 Series (Latest - Frontier):**
|
|
65
|
+
- `gemini-3.0-pro`
|
|
66
|
+
- `gemini-3.0-flash`
|
|
67
|
+
- `gemini-3.0-deep-think`
|
|
68
|
+
|
|
69
|
+
**Gemini 2.5 Series (Stable):**
|
|
70
|
+
- `gemini-2.5-pro`
|
|
71
|
+
- `gemini-2.5-flash`
|
|
72
|
+
- `gemini-2.5-flash-lite`
|
|
73
|
+
|
|
74
|
+
**Gemini 2.0 Series (Legacy):**
|
|
75
|
+
- `gemini-2.0-flash`
|
|
76
|
+
- `gemini-2.0-pro`
|
|
77
|
+
|
|
78
|
+
**Update Strategy:** Dynamic discovery via API
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### OpenRouter
|
|
83
|
+
|
|
84
|
+
**Official Models Page:**
|
|
85
|
+
- https://openrouter.ai/models
|
|
86
|
+
|
|
87
|
+
**API Models List Endpoint:**
|
|
88
|
+
- ✅ `GET https://openrouter.ai/api/v1/models`
|
|
89
|
+
- Returns JSON with all available models
|
|
90
|
+
|
|
91
|
+
**Update Strategy:** Dynamic fetching via API endpoint
|
|
92
|
+
|
|
93
|
+
**Current Implementation:** ✅ Working correctly - fetches all models dynamically
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Update Process
|
|
98
|
+
|
|
99
|
+
### Monthly Model Review Checklist
|
|
100
|
+
|
|
101
|
+
Run this checklist at the start of each month to ensure latest models are available:
|
|
102
|
+
|
|
103
|
+
1. **Anthropic Claude**
|
|
104
|
+
- [ ] Visit https://docs.anthropic.com/en/docs/about-claude/models
|
|
105
|
+
- [ ] Check for new model releases
|
|
106
|
+
- [ ] Verify `fetchAvailableModels()` is getting all models via pagination
|
|
107
|
+
|
|
108
|
+
2. **OpenAI**
|
|
109
|
+
- [ ] Verify `fetchAvailableModels()` is NOT filtering by model prefix
|
|
110
|
+
- [ ] Test with real API key to ensure all models returned
|
|
111
|
+
- [ ] Check https://platform.openai.com/docs/models for new model families
|
|
112
|
+
|
|
113
|
+
3. **Google Gemini**
|
|
114
|
+
- [ ] Visit https://ai.google.dev/gemini-api/docs/models
|
|
115
|
+
- [ ] Check for new Gemini versions (3.1, 4.0, etc.)
|
|
116
|
+
- [ ] Verify dynamic discovery works via `v1beta/models`
|
|
117
|
+
|
|
118
|
+
4. **OpenRouter**
|
|
119
|
+
- [ ] API fetching is dynamic - no action needed
|
|
120
|
+
- [ ] Verify API endpoint still works
|
|
121
|
+
- [ ] Check for API changes at https://openrouter.ai/docs
|
|
122
|
+
|
|
123
|
+
### Testing After Updates
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Test each provider's model fetching
|
|
127
|
+
cd adf-cli
|
|
128
|
+
npm test
|
|
129
|
+
|
|
130
|
+
# Manual test with real API keys
|
|
131
|
+
node bin/adf.js config
|
|
132
|
+
# Select each provider and verify model list
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Known Issues
|
|
138
|
+
|
|
139
|
+
### OpenAI Model Filtering Bug (CRITICAL - Fixed in v0.4.29)
|
|
140
|
+
|
|
141
|
+
**Problem:**
|
|
142
|
+
```javascript
|
|
143
|
+
.filter(m => m.id.startsWith('gpt-')) // ❌ TOO RESTRICTIVE
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
This filter excludes:
|
|
147
|
+
- o1, o1-mini, o1-preview
|
|
148
|
+
- o3, o3-pro, o3-mini
|
|
149
|
+
- Any future non-GPT model families
|
|
150
|
+
|
|
151
|
+
**Solution:**
|
|
152
|
+
```javascript
|
|
153
|
+
// Fetch ALL models without prefix filtering
|
|
154
|
+
const models = response.data
|
|
155
|
+
.map(m => m.id)
|
|
156
|
+
.sort();
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**Status:** Fixed in v0.4.29
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## API Response Examples
|
|
164
|
+
|
|
165
|
+
### OpenAI `/v1/models` Response
|
|
166
|
+
|
|
167
|
+
```json
|
|
168
|
+
{
|
|
169
|
+
"object": "list",
|
|
170
|
+
"data": [
|
|
171
|
+
{
|
|
172
|
+
"id": "gpt-4o",
|
|
173
|
+
"object": "model",
|
|
174
|
+
"created": 1234567890,
|
|
175
|
+
"owned_by": "openai"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "o1-mini",
|
|
179
|
+
"object": "model",
|
|
180
|
+
"created": 1234567890,
|
|
181
|
+
"owned_by": "openai"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### OpenRouter `/api/v1/models` Response
|
|
188
|
+
|
|
189
|
+
```json
|
|
190
|
+
{
|
|
191
|
+
"data": [
|
|
192
|
+
{
|
|
193
|
+
"id": "anthropic/claude-3-5-sonnet",
|
|
194
|
+
"name": "Claude 3.5 Sonnet",
|
|
195
|
+
"pricing": { ... }
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Maintenance Notes
|
|
204
|
+
|
|
205
|
+
- **DO NOT** hardcode model lists unless provider has no API
|
|
206
|
+
- **DO NOT** filter by model name prefix unless absolutely necessary
|
|
207
|
+
- **ALWAYS** fetch dynamically when API is available
|
|
208
|
+
- **TEST** with real API keys before publishing updates
|
|
209
|
+
- **DOCUMENT** any assumptions or limitations in this file
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Version History
|
|
214
|
+
|
|
215
|
+
- **2026-01-12:** Updated to remove deprecated models (Gemini 1.5, GPT-3.5) and enable dynamic discovery across all providers.
|
|
216
|
+
- **2025-10-04:** Initial documentation
|
|
217
|
+
- **2025-10-04:** Identified OpenAI filtering bug (v0.4.29)
|
|
@@ -15,7 +15,7 @@ The adf-cli interview system now supports **4 AI providers**, giving users flexi
|
|
|
15
15
|
| Provider | Models | API Key Format | Website |
|
|
16
16
|
|----------|--------|----------------|---------|
|
|
17
17
|
| **Anthropic Claude** | Sonnet 4.5, Claude 3.5, Opus | `sk-ant-*` | https://console.anthropic.com/ |
|
|
18
|
-
| **OpenAI GPT** | GPT-
|
|
18
|
+
| **OpenAI GPT** | GPT-4o, GPT-4o-mini, o1, o3 | `sk-*` | https://platform.openai.com/ |
|
|
19
19
|
| **Google Gemini** | 2.0-flash-exp, 1.5-pro, 1.5-flash | (varies) | https://ai.google.dev/ |
|
|
20
20
|
| **OpenRouter** | Multi-model access | `sk-or-*` | https://openrouter.ai/ |
|
|
21
21
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Phase 6: Advanced Learning & Analytics
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
Phase 6 enhances the ADF CLI Learning System with transparency, intelligence, and adaptability. It introduces a comprehensive analytics dashboard, an automated pattern decay algorithm, and multi-format data export capabilities.
|
|
5
|
+
|
|
6
|
+
## Key Features
|
|
7
|
+
|
|
8
|
+
### 1. Learning Analytics Dashboard
|
|
9
|
+
Accessible via `adf config` → **Learning System** → **📊 Analytics Dashboard**, this interactive UI provides visibility into the learning engine's behavior.
|
|
10
|
+
|
|
11
|
+
- **Skip Trends**: A 12-week visualization of manual vs. filtered skips.
|
|
12
|
+
- **Category Preferences**: Heatmap of skip rates and answer quality by category (e.g., Deployment, Security).
|
|
13
|
+
- **Pattern Confidence**: Distribution of learned patterns by confidence level (High, Medium, Low).
|
|
14
|
+
- **Effectiveness Metrics**: Automated calculation of total development time saved (in minutes/hours).
|
|
15
|
+
- **Question Statistics**: Deep dive into most-answered and most-skipped questions.
|
|
16
|
+
|
|
17
|
+
### 2. Pattern Decay Algorithm
|
|
18
|
+
To ensure learning data remains relevant as user habits evolve, Phase 6 implements a time-based decay system.
|
|
19
|
+
|
|
20
|
+
- **Exponential Decay**: Pattern confidence reduces over time if not reconfirmed.
|
|
21
|
+
- **Confidence-Based Rates**:
|
|
22
|
+
- High Confidence (≥90): 7.5% decay per month.
|
|
23
|
+
- Medium Confidence (75-89): 15% decay per month.
|
|
24
|
+
- Low Confidence (<75): 22.5% decay per month.
|
|
25
|
+
- **Automatic Cleanup**: Patterns are removed if confidence falls below 40% or if inactive for 6+ months.
|
|
26
|
+
- **Renewal Mechanism**: Reconfirming a pattern (skipping a question manually) provides a +10 confidence boost.
|
|
27
|
+
|
|
28
|
+
### 3. Data Export
|
|
29
|
+
Export learning analytics for team reporting or personal review.
|
|
30
|
+
- **Formats**: JSON (single file) and CSV (5-file suite including trends, categories, and impactful patterns).
|
|
31
|
+
- **Location**: Exports are saved to the user's current project directory.
|
|
32
|
+
|
|
33
|
+
## Architecture
|
|
34
|
+
|
|
35
|
+
- `lib/learning/analytics.js`: Calculation engine for 10+ metrics.
|
|
36
|
+
- `lib/learning/decay-manager.js`: Orchestrates decay application and cleanup.
|
|
37
|
+
- `lib/learning/analytics-view.js`: Handles ASCII chart generation and menu navigation.
|
|
38
|
+
- `lib/learning/analytics-exporter.js`: Manages CSV/JSON serialization logic.
|
|
39
|
+
|
|
40
|
+
## Technical Improvements
|
|
41
|
+
- **Performance**: Optimized for 100+ sessions (<2s load time).
|
|
42
|
+
- **Testing**: Added 50+ new tests covering decay logic and metric accuracy.
|
|
43
|
+
- **UI**: Improved navigation with "Back" functionality and real-time refresh.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
*Status: COMPLETE (v0.15.0)*
|