free-coding-models 0.2.4 β†’ 0.2.8

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/CHANGELOG.md ADDED
@@ -0,0 +1,1242 @@
1
+ # Changelog
2
+
3
+ ---
4
+
5
+ ## 0.2.8
6
+
7
+ ### Updated
8
+
9
+ - πŸ“Š **Provider quota information refreshed** – Updated free‑tier request limits for NVIDIA NIM, Groq, Cerebras, Replicate, DeepInfra, and Fireworks AI in `src/provider-metadata.js` and the README.
10
+ - πŸ“– **README requirements section** – Added the latest quota details for each provider (40β€―req/min for NVIDIA, 30‑50β€―RPM for Groq, generous dev tier for Cerebras, 6β€―req/min free Replicate, 200 concurrent DeepInfra, 10β€―req/min free Fireworks) and clarified payment‑method dependent limits.
11
+ - πŸ› οΈ **No functional code changes** – Metadata updates only; all tests continue to pass.
12
+
13
+ ### Added
14
+
15
+ - πŸ“Š **Added `--json` flag for scriptable output** - Output model results as JSON for automation, CI/CD, and monitoring dashboards. Example: `free-coding-models --tier S --json | jq '.[0].modelId'`
16
+
17
+ - πŸ’Ύ **Added persistent ping cache** - Cache ping results for 5 minutes to speed up subsequent runs:
18
+ - Cache stored in `~/.free-coding-models.cache.json`
19
+ - Automatic cache refresh on startup if stale
20
+ - Saves API rate limits and reduces wait time
21
+ - Cache is saved on exit for next run
22
+
23
+ - πŸ” **Added config file security check with auto-fix** - Warns if `~/.free-coding-models.json` has insecure permissions:
24
+ - Checks file permissions on startup
25
+ - Warns if file is readable by others (security risk)
26
+ - Offers one-click auto-fix with `chmod 600`
27
+ - Shows manual fix command if auto-fix fails or is declined
28
+
29
+ - 🎨 **Added provider colors to logs and settings** - Provider names are now colored the same way as in the main table:
30
+ - Settings overlay (P) shows colored provider names
31
+ - Fiable mode output uses colored provider names
32
+ - Tool launcher messages use colored provider names
33
+ - Request log overlay (X) shows colored provider names
34
+ - Consistent visual experience across all UI elements
35
+
36
+ ### Changed
37
+
38
+ - πŸ“ **Increased default log limit from 200 to 500 entries** - Request log overlay now shows up to 500 entries by default (previously 200)
39
+ - πŸ”€ **Added toggle for unlimited logs** - Press `A` in request log overlay to toggle between showing 500 entries or ALL logs
40
+ - ❌ **Enhanced visual failure indication in logs** - Failed requests with zero tokens now have:
41
+ - Dark red background (`rgb(40, 0, 0)`) on the entire row
42
+ - Model name in red
43
+ - Token column shows red cross emoji (βœ—) instead of token count
44
+ - Quick visual identification of errors vs successful requests
45
+ - πŸ“ **Updated documentation** - Added `--json` flag to CLI flags table in README.md with usage examples
46
+
47
+ - πŸ”Œ Added `terminalcp` MCP server configuration for Claude Code to spawn and interact with the TUI headlessly. Agents can now visually test the terminal interface by capturing output and sending keystrokes programmatically. See AGENTS.md β†’ "Testing the TUI with terminalcp" for usage.
48
+ - 🎨 **Added consistent branding header to all overlays** - Each overlay (Settings, Help, Log, Install Endpoints, Recommend, Feature Request, Bug Report) now displays:
49
+ - Free-coding-models logo with rocket emoji (πŸš€)
50
+ - Version number display
51
+ - Clean title on a separate line
52
+ - Consistent visual styling across all screens
53
+ - **Main table title now uses rocket emoji (πŸš€) and cyanBright color** for consistency with overlays
54
+
55
+ ### Changed
56
+
57
+ - πŸ“ **Updated documentation** - Added `--json` flag to CLI flags table in README.md with usage examples
58
+
59
+ - πŸ“Š **Improved ping progress visibility** - Moved ping completion counter from the W badge to the main status bar:
60
+ - Now shows as `πŸ“¦ 49/59` next to model status counts (up/timeout/down)
61
+ - More prominent placement makes it easier to see ping progress at a glance
62
+ - W badge still shows interval, mode, and countdown to next ping
63
+
64
+ - 🧹 **Removed unnecessary blank line** - Overlays (Settings P, Help K, Log X) no longer have a blank line at the top, giving more vertical space for content
65
+
66
+ - πŸ”½ **Removed duplicate "CONFIGURED ONLY" badge** - The header no longer shows the "CONFIGURED ONLY" indicator since it's already displayed in the footer hints. This reduces header clutter while keeping the information visible.
67
+
68
+ - 🎨 **Enhanced Request Log (X) with colors and visual indicators**:
69
+ - **Latency gradient**: Green (<500ms) β†’ Orange (<1000ms) β†’ Yellow (<1500ms) β†’ Red (β‰₯1500ms) for quick performance assessment
70
+ - **Token opacity**: Light green (low usage) β†’ Medium green β†’ Bright green (high usage, >30k tokens)
71
+ - **Model coloring**: Matches status color for visual consistency
72
+ - **Status colors** - Distinct colors for each HTTP code:
73
+ - `200` βœ… β†’ Bright green
74
+ - `400` β†’ Dark magenta (#8B008B)
75
+ - `401` β†’ Dark orchid (#9932CC)
76
+ - `403` β†’ Medium orchid (#BA55D3)
77
+ - `404` β†’ Dark red (crimson)
78
+ - `413` β†’ Tomato red (#FF6347)
79
+ - `429` β†’ Dark orange (#FFB90F)
80
+ - `500` β†’ Crimson (#DC143C)
81
+ - `502` β†’ Medium violet red (#C71585)
82
+ - `503` β†’ Medium purple (#9370DB)
83
+ - `5xx` β†’ Magenta (other 5xx errors)
84
+ - `0` β†’ Dim gray (timeout/unknown)
85
+ - **Fixed token display bug**: Corrected chalk function calls that were showing JavaScript code instead of token counts
86
+
87
+ - πŸ’– **Added "Buy me a coffee" link to footer**:
88
+ - Added in main TUI footer next to Contributors link (buymeacoffee.com/vavanessadev)
89
+ - Added in Settings overlay (P) footer with credits "Made with πŸ’– & β˜• by vava-nessa"
90
+ - Warm orange color for the coffee link to match the cozy theme
91
+
92
+ ### Fixed
93
+
94
+ - πŸ–₯️ **Overlays now use 100% terminal width** - All overlays (Settings P, Help K, Log X, Recommend Q, Feature J, Bug I) now dynamically adapt to full terminal width instead of fixed 116-column panels:
95
+ - Rate limits text is no longer truncated (full descriptions visible)
96
+ - Diagnostic messages wrap using available terminal width
97
+ - Separator lines extend to full terminal width
98
+ - Better readability on wider terminals
99
+
100
+ - πŸ”’ **Fixed profile loading to preserve API keys** - Loading a profile now MERGES apiKeys instead of replacing them:
101
+ - Keys in the profile override existing keys (allows profile-specific overrides)
102
+ - Keys NOT in the profile are preserved (prevents key loss when switching profiles)
103
+ - Fixes bug where switching profiles would cause API keys disappear
104
+ - Added test to verify merge behavior
105
+
106
+ - πŸ“ **Updated OpenRouter rate limits information**:
107
+ - README now includes detailed explanation of free tier quotas (50/day <$10 credits, 1000/day β‰₯$10)
108
+ - Settings overlay displays accurate rate limit text
109
+ - Added note about failed requests counting toward daily quota
110
+
111
+ ---
112
+
113
+ ## 0.2.5
114
+
115
+ ### Fixed
116
+
117
+ - πŸ”’ **Improved config save reliability** - API keys are now much safer from corruption and loss:
118
+ - Automatic backups before each save (keeps last 5 versions in `~/.free-coding-models.backups/`)
119
+ - Post-write verification confirms file was written correctly and data wasn't lost
120
+ - Explicit error handling instead of silent failures
121
+ - Auto-repair on startup if config is corrupted (restores from latest backup)
122
+ - Console notifications when backup is used or config is repaired
123
+
124
+ ---
125
+
126
+ ## 0.2.4
127
+
128
+ ### Fixed
129
+
130
+ - πŸ”§ Fixed Configured Only filter (E key) not being applied at startup. The flag was initialized correctly but the filter function was never called on first render, causing all models to appear visible even when Configured Only mode was enabled.
131
+
132
+ ---
133
+
134
+ ## 0.2.3
135
+
136
+ ### Fixed
137
+
138
+ - πŸ”§ Fixed Codestral API endpoint URL from `codestral.mistral.ai/v1` to `api.mistral.ai/v1` to align with Mistral AI's unified API platform. This resolves authentication failures when testing Codestral API keys in Settings.
139
+
140
+ ---
141
+
142
+ ## 0.2.2
143
+
144
+ ### Added
145
+
146
+ - πŸ”Œ Added a new `Y` install flow that pushes one configured provider directly into `OpenCode CLI`, `OpenCode Desktop`, `OpenClaw`, `Crush`, or `Goose`, with either the full catalog or a curated model subset.
147
+
148
+ ### Changed
149
+
150
+ - πŸ”„ Tracked endpoint installs are now refreshed automatically on future launches so managed tool catalogs stay aligned when provider model lists evolve.
151
+
152
+ ### Fixed
153
+
154
+ - πŸ” Clarified provider auth failures in the main table so configured keys rejected by a provider no longer appear as `NO KEY`.
155
+ - πŸ” Hardened Settings key tests with multi-model retries plus detailed diagnostics under Setup Instructions when a provider probe fails.
156
+ - 🏷️ Fixed Settings provider badges so configured keys show `Test` before the first probe, while providers without a key now show `Missing Key`.
157
+ - πŸ€— Clarified the Hugging Face setup hint in Settings to require a fine-grained token with `Make calls to Inference Providers`.
158
+
159
+ ## 0.2.1
160
+
161
+ ### Added
162
+
163
+ - 🚨 Added a footer warning that highlights outdated installs with a red banner and the message `This version is outdated .` once a newer npm version is detected.
164
+
165
+ ### Changed
166
+
167
+ - πŸ’Ύ The `Z` launcher choice is now persisted in config, so the app restarts on the last tool used instead of always falling back to OpenCode CLI.
168
+ - πŸ“‹ The request log overlay now highlights proxy fallback reroutes with a dedicated `SWITCHED ↻` route badge and shows `requested β†’ actual` model transitions inline.
169
+
170
+ ### Fixed
171
+
172
+ - πŸ”€ Fixed the footer proxy status so an active proxy now renders as running instead of incorrectly showing `Proxy not configured`.
173
+ - βš™οΈ Fixed the footer proxy status so a proxy enabled in Settings now shows as configured even before the local proxy process is started.
174
+ - 🧭 Fixed the main TUI footer so the outdated-version warning appears directly under the proxy status line where users can see it immediately.
175
+ - 🧠 Fixed proxy-backed launcher model selection so `Crush` and `Goose` now use the universal `fcm-proxy` model slug instead of stale provider-specific ids when proxy mode is enabled.
176
+
177
+ ## 0.2.0
178
+
179
+ ### Added
180
+
181
+ - 🧰 Added direct launch modes for `Crush` and `Goose` as hardened public launchers, with additional internal support for `Aider`, `Claude Code`, `Codex CLI`, `Gemini CLI`, `Qwen Code`, `OpenHands`, `Amp`, and `Pi` (temporarily disabled from public cycle pending hardening).
182
+ - 🧹 Added OpenCode proxy cleanup in Settings plus a `--clean-proxy` CLI command to remove persisted `fcm-proxy` config safely.
183
+ - 🎨 Dynamic color coding for active Tier and Provider filter badges β€” each tier/provider now displays with its signature color directly in the header and footer pills for better visual feedback.
184
+ - πŸ“– Comprehensive documentation refresh across JSDoc headers in `bin/free-coding-models.js` to clarify the new default startup behavior, ping cadence states, and removal of the startup menu.
185
+
186
+ ### Changed
187
+
188
+ - 🧭 Extended the `Z` tool cycle, CLI flag parser, help overlay, and header mode badge so the active target tool is visible and switchable across all supported launchers.
189
+ - πŸ”€ Made the multi-account proxy opt-in and disabled by default, added Settings controls for proxy enablement, OpenCode persistence, and preferred port, and restored direct OpenCode launch as the default path.
190
+ - πŸŽ› Active Tier and Provider filters now show their current value directly inside the highlighted pills, while Crush now writes a real default selected model into `crush.json` and uses either direct provider config or the local FCM proxy depending on the current proxy setting.
191
+ - πŸ“š Audited and synchronized the public documentation, in-app help, and footer hints so they now describe the hardened launcher set (`OpenCode CLI`, `OpenCode Desktop`, `OpenClaw`, `Crush`, `Goose`), the real default startup behavior, the current ping cadence, the Settings shortcuts, and the proxy-only request log semantics.
192
+ - πŸ›‘οΈ **Hardened public launcher set** β€” Narrowed the Z-cycle to only the stable, tested integrations: `OpenCode CLI` β†’ `OpenCode Desktop` β†’ `OpenClaw` β†’ `Crush` β†’ `Goose`. Aider, Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenHands, Amp, and Pi are now temporarily disabled pending flow hardening.
193
+ - 🎯 **Improved Crush configuration** β€” Now writes proper `config.models.large` default selection (instead of relying on CLI args), respects proxy enablement state, and uses `disable_default_providers` to rely on FCM's provider configuration.
194
+ - πŸ”§ **Crush launcher robustness** β€” Spawn call simplified to not pass `--model` argument; model selection now driven entirely through `crush.json` to avoid CLI parsing conflicts.
195
+ - πŸ“š **Synchronized in-app help** β€” Removed references to temporarily disabled launchers from the Z-cycle hint and CLI flag examples to reduce user confusion and match the hardened set.
196
+ - βœ… **Refined filter UI responsiveness** β€” Active Tier and Provider filter values now visually highlight in the main table footer hotkeys with tier-matched or provider-matched colors for instant recognition.
197
+
198
+ ### Fixed
199
+
200
+ - πŸͺ« Temporarily removed unstable external launchers (`Aider`, `Claude Code`, `Codex CLI`, `Gemini CLI`, `Qwen Code`, `OpenHands`, `Amp`, `Pi`) from the public mode cycle/help so only the currently hardened integrations remain exposed.
201
+ - 🧭 Corrected stale docs that still advertised the removed startup picker, mislabeled the `X` overlay as a live activity/error log viewer, and listed public commands or tips that no longer matched the current UI.
202
+ - πŸͺͺ **Crush proxy support** β€” Crush now correctly detects when proxy mode is enabled and routes through the local FCM proxy (`http://127.0.0.1:<port>/v1`) with appropriate token/URL substitution instead of attempting direct provider connection.
203
+ - πŸ“– **Shell compatibility** β€” Fixed spawning command for external tools to use `shell: true` only on Windows; Linux/macOS now spawn without shell wrapper for cleaner process trees.
204
+ - πŸŽ› **Filter state persistence** β€” Tier and Provider filter badges in the footer now correctly calculate and display their active state across all state transitions.
205
+
206
+ ---
207
+
208
+ ## 0.1.89 (merged into 0.2.0)
209
+
210
+ ### Added
211
+
212
+ - 🎨 Dynamic color coding for active Tier and Provider filter badges β€” each tier/provider now displays with its signature color directly in the header and footer pills for better visual feedback.
213
+ - πŸ“– Comprehensive documentation refresh across JSDoc headers in `bin/free-coding-models.js` to clarify the new default startup behavior, ping cadence states, and removal of the startup menu.
214
+
215
+ ### Changed
216
+
217
+ - πŸ›‘οΈ **Hardened public launcher set** β€” Narrowed the Z-cycle to only the stable, tested integrations: `OpenCode CLI` β†’ `OpenCode Desktop` β†’ `OpenClaw` β†’ `Crush` β†’ `Goose`. Aider, Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenHands, Amp, and Pi are now temporarily disabled pending flow hardening.
218
+ - 🎯 **Improved Crush configuration** β€” Now writes proper `config.models.large` default selection (instead of relying on CLI args), respects proxy enablement state, and uses `disable_default_providers` to rely on FCM's provider configuration.
219
+ - πŸ”§ **Crush launcher robustness** β€” Spawn call simplified to not pass `--model` argument; model selection now driven entirely through `crush.json` to avoid CLI parsing conflicts.
220
+ - πŸ“š **Synchronized in-app help** β€” Removed references to temporarily disabled launchers from the Z-cycle hint and CLI flag examples to reduce user confusion and match the hardened set.
221
+ - βœ… **Refined filter UI responsiveness** β€” Active Tier and Provider filter values now visually highlight in the main table footer hotkeys with tier-matched or provider-matched colors for instant recognition.
222
+
223
+ ### Fixed
224
+
225
+ - πŸͺͺ **Crush proxy support** β€” Crush now correctly detects when proxy mode is enabled and routes through the local FCM proxy (`http://127.0.0.1:<port>/v1`) with appropriate token/URL substitution instead of attempting direct provider connection.
226
+ - πŸ“– **Shell compatibility** β€” Fixed spawning command for external tools to use `shell: true` only on Windows; Linux/macOS now spawn without shell wrapper for cleaner process trees.
227
+ - πŸŽ› **Filter state persistence** β€” Tier and Provider filter badges in the footer now correctly calculate and display their active state across all state transitions.
228
+
229
+ ---
230
+
231
+ ## 0.1.88
232
+
233
+ ### Added
234
+
235
+ - 🧰 Added direct launch modes for `Aider`, `Crush`, `Goose`, `Claude Code`, `Codex CLI`, `Gemini CLI`, `Qwen Code`, `OpenHands`, `Amp`, and `Pi`, so pressing `Enter` can now auto-configure and start more than just OpenCode/OpenClaw.
236
+ - 🧹 Added OpenCode proxy cleanup in Settings plus a `--clean-proxy` CLI command to remove persisted `fcm-proxy` config safely.
237
+
238
+ ### Changed
239
+
240
+ - 🧭 Extended the `Z` tool cycle, CLI flag parser, help overlay, and header mode badge so the active target tool is visible and switchable across all supported launchers.
241
+ - πŸ”€ Made the multi-account proxy opt-in and disabled by default, added Settings controls for proxy enablement, OpenCode persistence, and preferred port, and restored direct OpenCode launch as the default path.
242
+ - πŸŽ› Active Tier and Provider filters now show their current value directly inside the highlighted pills, while Crush now writes a real default selected model into `crush.json` and uses either direct provider config or the local FCM proxy depending on the current proxy setting.
243
+ - πŸ“š Audited and synchronized the public documentation, in-app help, and footer hints so they now describe the hardened launcher set (`OpenCode CLI`, `OpenCode Desktop`, `OpenClaw`, `Crush`, `Goose`), the real default startup behavior, the current ping cadence, the Settings shortcuts, and the proxy-only request log semantics.
244
+
245
+ ### Fixed
246
+
247
+ - πŸͺ« Temporarily removed unstable external launchers (`Aider`, `Claude Code`, `Codex CLI`, `Gemini CLI`, `Qwen Code`, `OpenHands`, `Amp`, `Pi`) from the public mode cycle/help so only the currently hardened integrations remain exposed.
248
+ - 🧭 Corrected stale docs that still advertised the removed startup picker, mislabeled the `X` overlay as a live activity/error log viewer, and listed public commands or tips that no longer matched the current UI.
249
+
250
+ ---
251
+
252
+ ## 0.1.87
253
+
254
+ ### Fixed
255
+
256
+ - 🎨 Rebalanced `Perplexity`, `Hyperbolic`, and `Together AI` provider colors so they are more visually distinct from `NIM` and from each other in the TUI.
257
+
258
+ ---
259
+
260
+ ## 0.1.86
261
+
262
+ ### Fixed
263
+
264
+ - πŸ”‘ Provider key tests in the `P` settings screen now discover `/models` when available and probe multiple candidate model IDs, fixing false failures on SambaNova and NVIDIA NIM when a listed model is not actually callable.
265
+ - πŸ“š Refreshed provider catalogs with confirmed public updates for OpenRouter, SambaNova, and Cerebras so outdated model IDs are less likely to appear in the TUI.
266
+ - 🧭 Settings key tests now show distinct `Rate limit` and `No model` states instead of collapsing every non-success into a generic failure badge.
267
+ - 🎨 Reworked provider colors into a soft pastel rainbow palette so each provider is easier to distinguish across the TUI without aggressive saturation.
268
+ - 🧼 Simplified the TUI header/footer by merging ping controls into one badge, moving the active tool mode into a `Z Tool` header badge, and removing redundant footer hints for tool mode and Enter actions.
269
+ - πŸ™ˆ Added an `E` shortcut to hide models from providers without configured API keys, with persistence across sessions and inside saved profiles.
270
+ - πŸ–Œ Refined the TUI visuals: provider-colored model names, header title now shows the current app version, footer version removed, favorites use a lighter pastel yellow, and the selected row uses a punchier pink-violet highlight.
271
+ - πŸŒ‘ Made favorite rows darker for better contrast and changed Scaleway to a cooler blue so it no longer blends with OpenRouter.
272
+ - πŸšͺ `Configured Only` is now enabled by default, and the empty state tells users to press `P` when no configured API key can surface any model.
273
+ - πŸͺŸ Added a centered terminal-width warning instead of rendering a broken table when the shell is too narrow.
274
+ - πŸ“ Updated the README to match the current model count, default filters, and latest TUI behavior.
275
+
276
+ ---
277
+
278
+ ## 0.1.85
279
+
280
+ ### Added
281
+
282
+ - πŸŒ€ Added an inline spinner beside `Latest Ping` so each row shows when a fresh ping is still in flight without hiding the previous latency.
283
+ - 🏎 Added ping mode badges next to `FCM` so the active cadence is always visible in the header.
284
+
285
+ ### Fixed
286
+
287
+ - πŸ”‘ `Avg Ping` and latency-derived metrics now also use `401` responses, so rows without an API key still accumulate real latency samples.
288
+ - 🎨 Unified footer shortcut colors so every hotkey uses the same visual treatment.
289
+
290
+ ### Changed
291
+
292
+ - ⏱ Reworked ping scheduling: startup now runs a 60s `FAST` burst at 2s, steady state uses `NORMAL` at 10s, idle sessions auto-drop to `SLOW` at 30s after 5 minutes, and `FORCED` stays at 4s without auto slowdowns.
293
+ - πŸŽ› `W` now cycles ping modes (`FAST` / `NORMAL` / `SLOW` / `FORCED`) instead of tweaking raw intervals.
294
+ - 🧾 Updated the main footer, in-app help, README, and profile defaults to match the new ping mode system and token log wording.
295
+
296
+ ---
297
+
298
+ ## 0.1.84
299
+
300
+ ### Added
301
+
302
+ - βœ… Added a new `Used` column showing total consumed prompt+completion tokens per exact `provider + model`, formatted in compact `k` / `M` units from startup log aggregation.
303
+ - πŸŒ€ Added an inline spinner beside `Latest Ping` so each row shows when a fresh ping is still in flight without hiding the previous latency.
304
+ - 🏎 Added ping mode badges in the header plus adaptive ping cadence states: `FAST`, `NORMAL`, `SLOW`, and `FORCED`.
305
+
306
+ ### Fixed
307
+
308
+ - 🎯 Aligned TUI header shortcut highlights with live bindings: `Up%` uses the correct shortcut color, and `G` now sorts the `UsaGe` column directly.
309
+ - 🧭 Renamed the `Origin` column to `Provider`, switched the provider filter key from `N` to `D`, and updated the highlighted header shortcuts to `PrOviDer`.
310
+ - 🟒 Fixed provider usage contamination by scoping quota snapshots to exact `provider + model`, so shared model IDs no longer leak usage percentages across providers.
311
+ - 🟒 Show a green dot in `Usage` when quota telemetry is not applicable or not reliable for a provider instead of displaying misleading percentages.
312
+ - πŸ”€ Shortened Alibaba Cloud (DashScope) to `Alibaba` in the main TUI table to avoid layout drift while keeping the full name in Settings.
313
+ - 🩺 Expanded `Health` labels for common errors: `429 TRY LATER`, `410 GONE`, `404 NOT FOUND`, `500 ERROR`.
314
+ - πŸ”‘ `Avg Ping` and latency-derived metrics now also use `401` responses, so rows without an API key still accumulate real latency samples.
315
+
316
+ ### Changed
317
+
318
+ - 🧱 Refactored TUI overlays and key handling into `src/overlays.js` and `src/key-handler.js` to keep `bin/free-coding-models.js` lean.
319
+ - πŸ”Œ Extracted OpenClaw integration into `src/openclaw.js` and aligned OpenCode flow with shared helpers.
320
+ - πŸ—‚οΈ Moved tier/provider filter modes into shared runtime state for clearer ownership.
321
+ - βœ… Renamed the app header to `βœ… FCM`, moved the version next to `Ctrl+C Exit`, and added subtle blue color variations per provider in the `Provider` column.
322
+ - 🧹 Cleaned the footer hints by removing the duplicate `Ctrl+C Exit` entry while keeping the proxy status directly under the shortcut line.
323
+ - πŸ“š Updated README and in-app help to match the new `Provider`, `Used`, `Usage`, and current hotkey behaviors.
324
+ - ⏱ Reworked ping scheduling: app startup now runs a 60s fast burst at 2s, steady-state defaults to 10s, idle sessions auto-drop to 30s after 5 minutes, and `W` now cycles ping modes instead of tweaking raw intervals.
325
+
326
+ ---
327
+
328
+ ## 0.1.83
329
+
330
+ ### Added
331
+
332
+ - **Multi-Account Proxy Server** -- automatically starts a local reverse proxy (`fcm-proxy`) that groups all accounts into a single provider in OpenCode; supports multi-account rotation and auto-detects usage limits to swap between providers.
333
+ - **Transparent ZAI Proxy** -- bridges ZAI's non-standard API format to OpenAI-compatible `/v1/` for OpenCode CLI mode.
334
+ - **Quota & Usage Tracking** -- new `Usage` column in TUI shows remaining quota percentage for each model; persists across sessions via `token-stats.json`.
335
+ - **Dedicated Log Viewer** -- press `X` to view real-time activity and error logs in a focused TUI overlay; includes auto-pruning to keep log history concise.
336
+ - **Usage Sort (`Shift+G`)** -- new hotkey to sort models by remaining quota percentage, helping you pick models with the most bandwidth left.
337
+ - **Ping Interval Increase (`=`)** -- reassigned interval increase to the `=` key to free up `X` for logs; `W` still decreases the interval.
338
+ - **Model Catalogue Merging** -- groups identical models across different providers into a single "merged" view while retaining the ability to probe specific endpoints.
339
+ - **MODEL_NOT_FOUND Rotation** -- if a specific provider returns a 404 for a model, the TUI intelligently rotates through other available providers for the same model.
340
+ - **Sticky Health-break** -- UI improvement that prevents the TUI from jumping when a model's status changes from UP to TIMEOUT/DOWN.
341
+ - **Telemetry Opt-out** -- users can now explicitly disable anonymous telemetry in their config file (opt-in by default for improved bug tracking).
342
+
343
+ ### Changed
344
+
345
+ - **Masked API Keys in Settings** -- hides middle parts of API keys in the `P` menu to prevent accidental exposure during screen sharing.
346
+ - **Enhanced tmux support** -- auto-discovery of available ports for OpenCode sub-agent panes when running in a tmux session.
347
+ - **Hardened Test Suite** -- expanded to 13 suites and 62+ verified test cases covering proxy logic, usage reading, and hotkey behavior.
348
+
349
+ ## 0.1.82
350
+
351
+ ### Fixed
352
+
353
+ - **Alibaba Cloud URL** -- updated from deprecated `dashscope.console.alibabacloud.com` to active `modelstudio.console.alibabacloud.com` (rebranded to Model Studio).
354
+ - **SambaNova URL** -- updated from broken `sambanova.ai/developers` to active `cloud.sambanova.ai/apis` (SambaCloud portal).
355
+ - **OpenRouter key corruption** -- added validation to detect and prevent saving OpenRouter keys that don't start with `sk-or-` prefix. Shows error message and cancels save if corruption detected.
356
+
357
+ ---
358
+
359
+ ## 0.1.81
360
+
361
+ ### Added
362
+
363
+ - **Dynamic OpenRouter free model discovery** -- fetches live free models from OpenRouter API at startup; replaces static list with fresh data so new free models appear automatically without code updates. Falls back to cached static list with a yellow warning on network failure.
364
+ - **`formatCtxWindow` and `labelFromId` utility functions** -- extracted to `lib/utils.js` for testability; used by dynamic OpenRouter discovery to convert API data to display format.
365
+ - **16 new unit tests** -- covering `formatCtxWindow`, `labelFromId`, and MODELS array mutation logic (147 total tests across 23 suites).
366
+ - **NVIDIA NIM auto-configuration** -- selecting a NIM model in OpenCode now auto-creates the nvidia provider block in `opencode.json` if missing, eliminating the manual install prompt.
367
+
368
+ ### Fixed
369
+
370
+ - **Auto-update infinite loop** -- when running from source (dev mode with `.git` directory), auto-update is now skipped to prevent the restart loop where LOCAL_VERSION never changes.
371
+ - **NVIDIA model double-prefix bug** -- model IDs in `sources.js` already include `nvidia/` prefix; `getOpenCodeModelId()` now strips it for nvidia provider (like it does for zai), preventing `nvidia/nvidia/...` in OpenCode config.
372
+
373
+ ### Removed
374
+
375
+ - **`checkNvidiaNimConfig()` function** -- replaced by auto-create pattern; dead code removed.
376
+
377
+ ---
378
+
379
+ ## 0.1.80
380
+
381
+ ### Fixed
382
+
383
+ - **Settings menu crash** -- fixed `ReferenceError: telemetryRowIdx is not defined` error when opening Settings (P key). Removed lingering reference to the deleted telemetry row index.
384
+
385
+ ---
386
+
387
+ ## 0.1.79
388
+
389
+ ### Added
390
+
391
+ - **Alibaba Cloud (DashScope) provider** -- added support for Qwen3-Coder models via Alibaba Cloud Model Studio. 8 new models including Qwen3 Coder Plus (69.6% SWE-bench), Qwen3 Coder Max (67.0%), Qwen3 Coder Next (65.0%), Qwen3 Coder 480B (70.6%), Qwen3 235B (70.0%), Qwen3 80B Instruct (65.0%), Qwen3 32B (50.0%), and Qwen2.5 Coder 32B (46.0%). OpenAI-compatible API with 1M free tokens per model (Singapore region, 90 days). Use `DASHSCOPE_API_KEY` environment variable or configure via Settings (P key).
392
+ - **Model count increased** -- now supporting 158 models across 20 providers (up from 150 models / 19 providers).
393
+
394
+ ---
395
+
396
+ ## 0.1.78
397
+
398
+ ### Added
399
+
400
+ - **Auto-update system** β€” removed manual update popup; now automatically installs updates and opens changelog in browser. Update proceeds immediately after opening changelog.
401
+
402
+ ---
403
+
404
+ ## 0.1.77
405
+
406
+ ### Added
407
+
408
+ - **Bug Report system (I key)** β€” added anonymous bug report overlay that sends bug reports directly to the project team via Discord webhook. Press **I** to open a multi-line input box, describe the bug, and press Enter to send. Uses the same infrastructure as Feature Request (J key) with a separate webhook and distinct red color theme. Includes automatic collection of anonymous metadata (OS, terminal, Node version, architecture, timezone) sent only in the Discord message footer (not visible in UI). Shows success confirmation with 3-second auto-close.
409
+ - **Full-screen overlay** β€” Bug Report overlay hides the main TUI completely (like Settings, Help, and Feature Request), with a bordered multi-line input box supporting up to 500 characters with real-time character counter.
410
+ - **Help documentation** β€” added I key entry in help overlay (K) and navigation hints.
411
+
412
+ ### Changed
413
+
414
+ - **Footer hints** β€” added `I Report bug` to line 2 of navigation hints for discoverability.
415
+
416
+ ---
417
+
418
+ ## 0.1.76
419
+
420
+ ### Added
421
+
422
+ - **Feature Request system (J key)** β€” added anonymous feedback overlay that sends feature requests directly to the project team via Discord webhook. Press **J** to open a multi-line input box, type your request, and press Enter to send. Includes automatic collection of anonymous metadata (OS, terminal, Node version, architecture, timezone) sent only in the Discord message footer (not visible in UI). Shows success confirmation with 3-second auto-close.
423
+ - **Full-screen overlay** β€” Feature Request overlay now hides the main TUI completely (like Settings and Help), with a bordered multi-line input box supporting up to 500 characters with real-time character counter.
424
+ - **Help documentation** β€” added J key entry in help overlay (K) and navigation hints.
425
+
426
+ ### Changed
427
+
428
+ - **Footer hints** β€” added `J Request feature` to line 2 of navigation hints for discoverability.
429
+
430
+ ---
431
+
432
+ ## 0.1.75
433
+
434
+ ### Fixed
435
+
436
+ - **TUI header disappeared** β€” fixed `TABLE_FOOTER_LINES` constant (was 7, now 5) to match the actual footer line count after contributors line was removed in 0.1.73. The mismatch caused `calculateViewport()` to over-reserve vertical space, pushing the header off-screen.
437
+ - **Missing spacer line** β€” restored the `else { lines.push('') }` branch that adds a blank line between model rows and navigation hints when the profile-save message is not shown.
438
+ - **Stray debug line** β€” removed accidental `lines.push('____________________')` left in the Smart Recommend section.
439
+
440
+ ---
441
+
442
+ ## 0.1.74
443
+
444
+ ### Changed
445
+
446
+ - **TUI footer spacing** β€” removed an empty separator line between the β€œ... more below …” indicator and the navigation hints, freeing up vertical space in the main UI.
447
+
448
+ ## 0.1.73
449
+
450
+ ### Fixed
451
+
452
+ - **iFlow OpenCode integration** β€” added missing iFlow provider configuration for OpenCode launch. Selecting iFlow models and pressing Enter now correctly configures OpenCode to use iFlow's API.
453
+
454
+ ---
455
+
456
+ ## 0.1.72
457
+
458
+ ### Changed
459
+
460
+ - **TUI footer spacing** β€” added extra empty line before contributors line for better readability in terminals.
461
+
462
+ ---
463
+
464
+ ## 0.1.71
465
+
466
+ ### Changed
467
+
468
+ - **TUI footer contributors** β€” moved contributor names to their own line at the bottom for cleaner layout.
469
+
470
+ ---
471
+
472
+ ## 0.1.70
473
+
474
+ ### Changed
475
+
476
+ - **Default ping interval 60s -> 3s** -- Changed default re-ping frequency from every 60 seconds back to every 3 seconds for faster model monitoring feedback. Still adjustable with W/X keys.
477
+
478
+ ---
479
+
480
+ ## 0.1.69
481
+
482
+ ### Added
483
+
484
+ - **iFlow provider** β€” new provider with 11 free coding models (TBStars2 200B, DeepSeek V3/V3.2/R1, Qwen3 Coder Plus/235B/32B/Max, Kimi K2, GLM-4.6). Free for individual users with no request limits. API key expires every 7 days.
485
+ - **TUI footer contributors** β€” added contributor names directly in footer line (vava-nessa β€’ erwinh22 β€’ whit3rabbit β€’ skylaweber).
486
+
487
+ ### Changed
488
+
489
+ - **README updates** β€” updated model/provider counts to 150 models across 19 providers; updated provider count references throughout.
490
+
491
+ ### Fixed
492
+
493
+ - **JSDoc in lib/config.js** β€” fixed broken JSON structure in config example (removed duplicate lines, fixed array/object brackets).
494
+ - **CHANGELOG cleanup** β€” removed `[fork]` prefixes from 0.1.68 entries for cleaner presentation.
495
+
496
+ ---
497
+
498
+ ## 0.1.68
499
+
500
+ ### Added
501
+
502
+ - **ZAI reverse proxy for OpenCode** -- When selecting a ZAI model, a local HTTP proxy automatically starts to translate OpenCode's `/v1/*` requests to ZAI's `/api/coding/paas/v4/*` API format. Proxy lifecycle is fully managed (starts on Enter, stops on OpenCode exit).
503
+ - **Stale config cleanup on OpenCode exit** -- The `spawnOpenCode` exit handler now removes the ZAI provider block from `opencode.json` so leftover config does not cause "model not valid" errors on the next manual OpenCode launch.
504
+ - **Smart Recommend (Q key)** β€” new modal overlay with a 3-question wizard (task type, priority, context budget) that runs a 10-second targeted analysis (2 pings/sec) and recommends the Top 3 models for your use case. Recommended models are pinned above favorites with 🎯 prefix and green row highlight.
505
+ - **Config Profiles** β€” save/load named configuration profiles (`--profile work`, `--profile fast`, etc.). Each profile stores API keys, enabled providers, favorites, tier filters, ping interval, and default sort. **Shift+P** cycles through profiles live in the TUI.
506
+ - **`--recommend` CLI flag** β€” auto-opens the Smart Recommend overlay on startup.
507
+ - **`--profile <name>` CLI flag** β€” loads a saved profile at startup; errors if profile doesn't exist.
508
+ - **Scoring engine** (`lib/utils.js`) β€” `TASK_TYPES`, `PRIORITY_TYPES`, `CONTEXT_BUDGETS`, `parseCtxToK()`, `parseSweToNum()`, `scoreModelForTask()`, `getTopRecommendations()` for the recommendation algorithm.
509
+ - **Profile management** (`lib/config.js`) β€” `saveAsProfile()`, `loadProfile()`, `listProfiles()`, `deleteProfile()`, `getActiveProfileName()`, `setActiveProfile()`.
510
+ - 43 new unit tests (131 total) covering scoring constants, `scoreModelForTask`, `getTopRecommendations`, `--profile`/`--recommend` arg parsing, and config profile CRUD.
511
+
512
+ ### Fixed
513
+
514
+ - **OpenCode config path on Windows** -- OpenCode uses `xdg-basedir` which resolves to `%USERPROFILE%\.config` on all platforms. We were writing to `%APPDATA%\Roaming\opencode\` on Windows, so OpenCode never saw the ZAI provider config. Config path is now `~/.config/opencode/opencode.json` on all platforms.
515
+ - **`apiKey` field for ZAI provider** -- Changed from `{env:ZAI_API_KEY}` template string to the actual resolved key so OpenCode's `@ai-sdk/openai-compatible` provider can authenticate immediately.
516
+ - **`--profile` arg parsing** -- the profile value (e.g. `work` in `--profile work`) was incorrectly captured as `apiKey`; fixed with `skipIndices` Set in `parseArgs()`.
517
+ - **`recommendScore` undefined** -- `sortResultsWithPinnedFavorites()` referenced `recommendScore` but it was never set on result objects; now set during `startRecommendAnalysis()`.
518
+
519
+ ### Changed
520
+
521
+ - **Default ping interval 3s -> 60s** -- Reduced re-ping frequency from every 3 seconds to every 60 seconds for a calmer monitoring experience (still adjustable with W/X keys).
522
+ - **Suppress MaxListeners warning** -- Set `NODE_NO_WARNINGS=1` in the OpenCode child process environment to suppress Node.js EventEmitter warnings.
523
+ - **ZAI models synced to 5** -- Updated `sources.js` to 5 ZAI API models with SWE-bench scores: GLM-5 (77.8%), GLM-4.5 (75.0%), GLM-4.7 (73.8%), GLM-4.5-Air (72.0%), GLM-4.6 (70.0%).
524
+ - **README updates** -- Updated model/provider counts (139 models, 18 providers), ZAI model table with SWE-bench scores, ping interval references (60s), added ZAI proxy documentation.
525
+ - **Help overlay (K)** β€” removed the Filters section; moved `T` (Cycle tier) and `N` (Cycle origin) shortcuts into their respective column description rows. Added `Q` (Smart Recommend) and `Shift+P` (Cycle profile) shortcuts. Added `--recommend` and `--profile` to the CLI flags section.
526
+ - **Sort/pin order** β€” `sortResultsWithPinnedFavorites()` now pins recommended+favorite models first, then recommended-only, then favorite-only, then normal sorted models.
527
+ - **Animation loop priority** β€” Settings > Recommend > Help > Table.
528
+
529
+ ---
530
+
531
+ ## 0.1.68
532
+
533
+ ### Added
534
+
535
+ - **ZAI reverse proxy for OpenCode** -- When selecting a ZAI model, a local HTTP proxy automatically starts to translate OpenCode's `/v1/*` requests to ZAI's `/api/coding/paas/v4/*` API format. Proxy lifecycle is fully managed (starts on Enter, stops on OpenCode exit).
536
+ - **Stale config cleanup on OpenCode exit** -- The `spawnOpenCode` exit handler now removes the ZAI provider block from `opencode.json` so leftover config does not cause "model not valid" errors on the next manual OpenCode launch.
537
+
538
+ ### Fixed
539
+
540
+ - **OpenCode config path on Windows** -- OpenCode uses `xdg-basedir` which resolves to `%USERPROFILE%\.config` on all platforms. We were writing to `%APPDATA%\Roaming\opencode\` on Windows, so OpenCode never saw the ZAI provider config. Config path is now `~/.config/opencode/opencode.json` on all platforms.
541
+ - **`apiKey` field for ZAI provider** -- Changed from `{env:ZAI_API_KEY}` template string to the actual resolved key so OpenCode's `@ai-sdk/openai-compatible` provider can authenticate immediately.
542
+
543
+ ### Changed
544
+
545
+ - **Default ping interval 3s -> 60s** -- Reduced re-ping frequency from every 3 seconds to every 60 seconds for a calmer monitoring experience (still adjustable with W/X keys).
546
+ - **Suppress MaxListeners warning** -- Set `NODE_NO_WARNINGS=1` in the OpenCode child process environment to suppress Node.js EventEmitter warnings.
547
+ - **ZAI models synced to 5** -- Updated `sources.js` to 5 ZAI API models with SWE-bench scores: GLM-5 (77.8%), GLM-4.5 (75.0%), GLM-4.7 (73.8%), GLM-4.5-Air (72.0%), GLM-4.6 (70.0%).
548
+ - **README updates** -- Updated model/provider counts (139 models, 18 providers), ZAI model table with SWE-bench scores, ping interval references (60s), added ZAI proxy documentation.
549
+ - **Smart Recommend (Q key)** β€” new modal overlay with a 3-question wizard (task type, priority, context budget) that runs a 10-second targeted analysis (2 pings/sec) and recommends the Top 3 models for your use case. Recommended models are pinned above favorites with 🎯 prefix and green row highlight.
550
+ - **Config Profiles** β€” save/load named configuration profiles (`--profile work`, `--profile fast`, etc.). Each profile stores API keys, enabled providers, favorites, tier filters, ping interval, and default sort. **Shift+P** cycles through profiles live in the TUI.
551
+ - **`--recommend` CLI flag** β€” auto-opens the Smart Recommend overlay on startup.
552
+ - **`--profile <name>` CLI flag** β€” loads a saved profile at startup; errors if profile doesn't exist.
553
+ - **Scoring engine** (`lib/utils.js`) β€” `TASK_TYPES`, `PRIORITY_TYPES`, `CONTEXT_BUDGETS`, `parseCtxToK()`, `parseSweToNum()`, `scoreModelForTask()`, `getTopRecommendations()` for the recommendation algorithm.
554
+ - **Profile management** (`lib/config.js`) β€” `saveAsProfile()`, `loadProfile()`, `listProfiles()`, `deleteProfile()`, `getActiveProfileName()`, `setActiveProfile()`.
555
+ - 43 new unit tests (131 total) covering scoring constants, `scoreModelForTask`, `getTopRecommendations`, `--profile`/`--recommend` arg parsing, and config profile CRUD.
556
+ - **iFlow provider** β€” new provider with 11 free coding models (TBStars2, DeepSeek V3/V3.2/R1, Qwen3 Coder Plus/235B/32B/Max, Kimi K2, GLM-4.6). Free for individual users with no request limits. API key expires every 7 days.
557
+ - **TUI footer contributors** β€” added contributor names directly in footer line (vava-nessa β€’ erwinh22 β€’ whit3rabbit β€’ skylaweber).
558
+
559
+ ### Changed
560
+
561
+ - **Help overlay (K)** β€” removed the Filters section; moved `T` (Cycle tier) and `N` (Cycle origin) shortcuts into their respective column description rows. Added `Q` (Smart Recommend) and `Shift+P` (Cycle profile) shortcuts. Added `--recommend` and `--profile` to the CLI flags section.
562
+ - **Sort/pin order** β€” `sortResultsWithPinnedFavorites()` now pins recommended+favorite models first, then recommended-only, then favorite-only, then normal sorted models.
563
+ - **Animation loop priority** β€” Settings > Recommend > Help > Table.
564
+
565
+ ### Fixed
566
+
567
+ - **`--profile` arg parsing** β€” the profile value (e.g. `work` in `--profile work`) was incorrectly captured as `apiKey`; fixed with `skipIndices` Set in `parseArgs()`.
568
+ - **`recommendScore` undefined** β€” `sortResultsWithPinnedFavorites()` referenced `recommendScore` but it was never set on result objects; now set during `startRecommendAnalysis()`.
569
+ - **JSDoc in lib/config.js** β€” fixed broken JSON structure in config example (duplicate lines, incorrect brackets).
570
+ - **CHANGELOG cleanup** β€” removed `[fork]` prefixes from entries for cleaner presentation.
571
+ - **Smart Recommend (Q key)** β€” new modal overlay with a 3-question wizard (task type, priority, context budget) that runs a 10-second targeted analysis (2 pings/sec) and recommends the Top 3 models for your use case. Recommended models are pinned above favorites with 🎯 prefix and green row highlight.
572
+ - **Config Profiles** β€” save/load named configuration profiles (`--profile work`, `--profile fast`, etc.). Each profile stores API keys, enabled providers, favorites, tier filters, ping interval, and default sort. **Shift+P** cycles through profiles live in the TUI.
573
+ - **`--recommend` CLI flag** β€” auto-opens the Smart Recommend overlay on startup.
574
+ - **`--profile <name>` CLI flag** β€” loads a saved profile at startup; errors if profile doesn't exist.
575
+ - **Scoring engine** (`lib/utils.js`) β€” `TASK_TYPES`, `PRIORITY_TYPES`, `CONTEXT_BUDGETS`, `parseCtxToK()`, `parseSweToNum()`, `scoreModelForTask()`, `getTopRecommendations()` for the recommendation algorithm.
576
+ - **Profile management** (`lib/config.js`) β€” `saveAsProfile()`, `loadProfile()`, `listProfiles()`, `deleteProfile()`, `getActiveProfileName()`, `setActiveProfile()`.
577
+ - 43 new unit tests (131 total) covering scoring constants, `scoreModelForTask`, `getTopRecommendations`, `--profile`/`--recommend` arg parsing, and config profile CRUD.
578
+
579
+ ### Changed
580
+
581
+ - **Help overlay (K)** β€” removed the Filters section; moved `T` (Cycle tier) and `N` (Cycle origin) shortcuts into their respective column description rows. Added `Q` (Smart Recommend) and `Shift+P` (Cycle profile) shortcuts. Added `--recommend` and `--profile` to the CLI flags section.
582
+ - **Sort/pin order** β€” `sortResultsWithPinnedFavorites()` now pins recommended+favorite models first, then recommended-only, then favorite-only, then normal sorted models.
583
+ - **Animation loop priority** β€” Settings > Recommend > Help > Table.
584
+
585
+ ### Fixed
586
+
587
+ - **`--profile` arg parsing** β€” the profile value (e.g. `work` in `--profile work`) was incorrectly captured as `apiKey`; fixed with `skipIndices` Set in `parseArgs()`.
588
+ - **`recommendScore` undefined** β€” `sortResultsWithPinnedFavorites()` referenced `recommendScore` but it was never set on result objects; now set during `startRecommendAnalysis()`.
589
+
590
+ ---
591
+
592
+ ## 0.1.67
593
+
594
+ ### Added
595
+
596
+ - **ZAI provider preserved** β€” merged upstream v0.1.67 while retaining ZAI (z.ai) provider with 5 GLM models (GLM-5, GLM-4.5, GLM-4.7, GLM-4.5-Air, GLM-4.6). ZAI prefix stripping, OpenCode/Desktop integration, and provider metadata all carried forward.
597
+ - **Stability Score** β€” new composite 0–100 metric combining p95 latency (30%), jitter/Οƒ (30%), spike rate (20%), and uptime (20%). Displayed as a color-coded column in the TUI (green β‰₯80, cyan β‰₯60, yellow β‰₯40, red <40).
598
+ - **p95 latency** (`getP95`) β€” 95th percentile latency from successful pings. Answers "95% of requests are faster than X ms."
599
+ - **Jitter** (`getJitter`) β€” standard deviation of latency. Low jitter = predictable, high jitter = erratic/spiky.
600
+ - **"Spiky" verdict** β€” new verdict that catches models with good average latency but terrible tail latency (p95 spikes). A model with avg 250ms but p95 6000ms now gets flagged as "Spiky πŸ“ˆ" instead of "Perfect πŸš€".
601
+ - **Stability sorting** β€” press `B` to sort by stability score. Most stable models rise to the top. `B` key now listed in the footer bar sort keys.
602
+ - 24 new unit tests covering p95, jitter, stability score, Spiky verdict, and stability sorting.
603
+ - **README: TUI Columns reference table** β€” full 12-column table documenting every column (Rank, Tier, SWE%, Model, Origin, Latest, Avg, Health, Verdict, Stability, Context, Up%).
604
+ - **README: Stability Score section** β€” documents the formula, weights, color thresholds, and an example calculation.
605
+ - **README: Verdict values table** β€” lists all 7 verdict categories with their emoji, meaning, and criteria.
606
+
607
+ ### Changed
608
+
609
+ - **"Stab" column renamed to "Stability"** β€” column header widened from 6 to 11 characters; header text now reads `StaBility` with the `B` sort-key letter in uppercase bold yellow.
610
+ - **SWE% column: 8-band color gradient** β€” replaced the old 3-band color scheme (green β‰₯50, yellow β‰₯30, dim otherwise) with an 8-band gradient matching `TIER_COLOR`: β‰₯70% bright neon green, β‰₯60% green, β‰₯50% yellow-green, β‰₯40% yellow, β‰₯35% amber, β‰₯30% orange-red, β‰₯20% red, <20% dark red.
611
+ - `getVerdict()` is now stability-aware: models in "Perfect" or "Normal" avg range get downgraded to "Spiky" when p95 shows extreme tail latency (requires β‰₯3 pings to avoid false positives).
612
+ - `findBestModel()` now uses a 4-key sort: status β†’ avg latency β†’ stability score β†’ uptime (was 3-key: status β†’ avg β†’ uptime).
613
+ - `sortResults()` supports new `'stability'` column.
614
+ - `VERDICT_ORDER` updated to include "Spiky" between "Slow" and "Very Slow".
615
+ - **README: keyboard shortcuts** updated to include `B` for Stability sort; "How it works" diagram updated.
616
+ - **Default ping interval β†’ 3 seconds** (was 2s) for a calmer default pace; still adjustable with W/X keys.
617
+ - **Verdict colors unified with TIER_COLOR gradient** — Perfect (cyan-green) → Normal (lime) → Spiky (yellow-green) → Slow (orange) → Very Slow (red-orange) → Overloaded (red) → Unstable (dark red) → Unusable (darkest red). Best→worst ordering in code.
618
+ - **Footer cleanup** β€” Removed the BETA TUI warning line. Renamed "Join our Discord" to just "Discord" and placed it next to Contributors on the "Made with love" line.
619
+ - **Footer link colors** β€” Star on GitHub: yellow, Contributors: orange, Discord: light purple. Ctrl+C Exit moved to end of "Made with love" line.
620
+ - **Discord plain URL** β€” Shows `Discord β†’ https://discord.gg/5MbTnDC3Md` so terminals without OSC 8 link support can still see the URL.
621
+ - **K Help styling** β€” Changed from green background badge to neon green text (`rgb(0,255,80)`) with no background.
622
+ - **Z Mode styling** β€” Red-orange color (`rgb(255,100,50)`) matching OpenClaw branding.
623
+ - **Selection row styling** β€” Darker backgrounds: favorite rows `bgRgb(35,20,0)`, cursor rows `bgRgb(50,0,60)`. Model name and Origin rendered in white bold when selected.
624
+ - **README** β€” Updated all ping interval references from 2s to 3s; removed BETA warning line.
625
+
626
+ ### Fixed
627
+
628
+ - **Column alignment: Health/Status emoji width** β€” Health column used `.padEnd()` which miscounted emoji width (βœ…, πŸ”₯, ⏳ etc. are 2 terminal columns but counted as fewer). Switched to `padEndDisplay()` so Verdict, Stability, and Up% columns now align correctly.
629
+ - **Verdict emojis moved to end of text** β€” emojis now appear after the word (e.g., `Perfect πŸš€` instead of `πŸš€ Perfect`) for cleaner left-alignment.
630
+ - **Empty cell placeholders** β€” changed from single `β€”` to `β€”β€”β€”` in Latest Ping, Avg Ping, and Stability columns so empty cells have more visual weight and don't look like blank space.
631
+
632
+ ---
633
+
634
+ ## 0.1.66
635
+
636
+ ### Added
637
+
638
+ - Added 4 new providers: SiliconFlow, Together AI, Cloudflare Workers AI, and Perplexity API.
639
+ - Added 23 provider models across these new integrations (OpenAI-compatible endpoints + settings onboarding metadata).
640
+ - Added Cloudflare-specific setup guidance in Settings, including explicit `CLOUDFLARE_ACCOUNT_ID` requirement.
641
+
642
+ ### Changed
643
+
644
+ - Extended provider/env support in config and runtime (`SILICONFLOW_API_KEY`, `TOGETHER_API_KEY`, `CLOUDFLARE_API_TOKEN`/`CLOUDFLARE_API_KEY`, `PERPLEXITY_API_KEY`/`PPLX_API_KEY`).
645
+ - Extended OpenCode Desktop provider auto-configuration for SiliconFlow, Together AI, Cloudflare Workers AI, and Perplexity API.
646
+ - Updated README to reflect current provider/model totals (17 providers / 134 models) and expanded key setup + env variable documentation.
647
+ - Updated `P` (Settings) and `K` (Help) overlays with dedicated dark background panels (distinct from the main table) for clearer visual separation.
648
+
649
+ ### Fixed
650
+
651
+ - Fixed model list scrolling and favorite toggle UX regression introduced after `0.1.65` (cursor/scroll stability when unpinning favorites, last rows reachable).
652
+ - Fixed overlay usability on small terminals: `K` (Help) and `P` (Settings) now use viewport scrolling so all content and top rows remain reachable.
653
+ - Fixed main table keyboard navigation to wrap around: pressing Up on the first row jumps to the last row, and pressing Down on the last row jumps to the first row.
654
+
655
+ ---
656
+
657
+ ## 0.1.65
658
+
659
+ ### Added
660
+
661
+ - Added persistent model favorites with `F` key toggle, star marker in Model column, dark-orange favorite highlighting, and pinned-at-top behavior.
662
+ - Added manual update maintenance flow in Settings (`P`): check npm updates on demand and install directly from the settings screen.
663
+ - Expanded `K` help overlay with complete keybindings (main TUI + settings) and CLI flags usage examples.
664
+
665
+ ### Changed
666
+
667
+ - Favorites now remain visible and pinned regardless of active sort or tier/origin filters.
668
+ - Extended config schema (`~/.free-coding-models.json`) with a persisted `favorites` array (`providerKey/modelId` entries).
669
+ - Updated README documentation for favorites, manual updates, settings shortcuts, and config structure.
670
+
671
+ ---
672
+
673
+ ## 0.1.64
674
+
675
+ ### Added
676
+
677
+ - Added 4 new free providers: Hugging Face Inference, Replicate, DeepInfra, and Fireworks AI (models, key handling, healthchecks, Settings integration).
678
+ - Added richer Settings (`P`) provider rows with inline rate-limit summary and live API key test status.
679
+
680
+ ### Changed
681
+
682
+ - OpenCode launch now detects `tmux` and auto-injects `--port` (`OPENCODE_PORT` if free, otherwise first available `4096-5095`) so sub-agent panes work reliably.
683
+ - Updated OpenRouter free model set to include `qwen/qwen3-coder:480b-free`, `mistralai/devstral-2-free`, and `mimo-v2-flash-free`.
684
+ - Added SambaNova `Llama3-Groq` coding-tuned entry.
685
+ - Updated setup/config docs and env var support for new providers (`HUGGINGFACE_API_KEY`/`HF_TOKEN`, `REPLICATE_API_TOKEN`, `DEEPINFRA_API_KEY`/`DEEPINFRA_TOKEN`).
686
+ - Replicate pings now use `/v1/predictions` request format; OpenCode launch for Replicate is guarded with a clear monitor-only message.
687
+ - Settings bottom panel now shows provider onboarding steps (signup URL + key creation/test flow) instead of model list details.
688
+ - Documented in `AGENTS.md` that top changelog entries must stay clean for direct reuse in GitHub Release notes.
689
+
690
+ ### Fixed
691
+
692
+ - Settings/onboarding disabled state now uses an explicit red cross (`❌`) instead of a gray square glyph for better terminal font compatibility.
693
+
694
+ ---
695
+
696
+ ## 0.1.63
697
+
698
+ ### Changed
699
+
700
+ - Replaced webhook telemetry with PostHog capture API (`/i/v0/e/`) and kept explicit consent + `--no-telemetry` opt-out.
701
+ - Added persistent anonymous telemetry identity in config (`telemetry.anonymousId`) for stable anonymous usage counts.
702
+ - Added telemetry consent screen UX: custom ASCII onboarding, explicit privacy messaging, and β€œAccept & Continue” default action.
703
+ - Added telemetry toggle in Settings (`P`) and documented env controls: `FREE_CODING_MODELS_TELEMETRY`, `FREE_CODING_MODELS_POSTHOG_KEY`, `FREE_CODING_MODELS_POSTHOG_HOST`.
704
+ - Added telemetry metadata fields: `app_version`, `system` (`macOS`/`Windows`/`Linux`), and `terminal` (Terminal.app/iTerm2/kitty/etc. with fallback).
705
+ - Added telemetry debug mode with `FREE_CODING_MODELS_TELEMETRY_DEBUG=1` (stderr traces for sent/skip/error states).
706
+ - Hardened telemetry safety behavior: analytics failures stay non-blocking and non-TTY runs no longer overwrite stored consent.
707
+ - Fixed consent renderer to avoid full-screen clear side effects and preserve header visibility across terminals.
708
+ - Updated TUI footer contributors link to point to the repository contributors graph.
709
+
710
+ ---
711
+
712
+ ## 0.1.61
713
+
714
+ ### Changed β€” TUI Footer & UX
715
+
716
+ - **"Made with" line is now pink**: the entire "Made with πŸ’– & β˜• by vava-nessa" sentence is now rendered in soft pink (`chalk.rgb(255,150,200)`) including the clickable author name link, making it visually distinct from the rest of the footer
717
+ - **`K Help` badge is now ultra-visible**: changed from plain green background to bright green (`bgGreenBright`) with **black bold text** β€” high contrast, stands out immediately at a glance in the footer hint line
718
+ - **`P` key closes Settings**: pressing `P` again while inside the Settings screen now closes it (same behavior as `Esc`). Previously only `Esc` worked. Both keys now trigger the same close + provider rebuild logic
719
+
720
+ ---
721
+
722
+ ## 0.1.60
723
+
724
+ ### Changed β€” TUI Footer
725
+
726
+ - **Discord URL now shown in plain text**: after the clickable "Join our Discord" hyperlink, the raw URL `https://discord.gg/5MbTnDC3Md` is now printed in cyan, separated by `β†’`. This helps users on terminals that don't support OSC 8 clickable links to still see and copy-paste the URL.
727
+
728
+ ---
729
+
730
+ ## 0.1.59
731
+
732
+ ### Changed β€” TUI Footer
733
+
734
+ - **`K Help` badge in footer is now bright green**: previously plain text, now rendered as `chalk.bgGreen.black.bold(' K Help ')` so it's immediately visible in the footer hint line
735
+
736
+ ---
737
+
738
+ ## 0.1.58
739
+
740
+ ### Changed β€” TUI
741
+
742
+ - **Timeout emoji updated**: replaced `⏱` with `⏳` everywhere in the TUI (ping timeout display)
743
+
744
+ ---
745
+
746
+ ## 0.1.57
747
+
748
+ ### Changed β€” TUI Footer
749
+
750
+ - **Discord link text shortened**: "Join our Discord" replaces the longer previous label β€” cleaner footer, same clickable OSC 8 hyperlink
751
+
752
+ ---
753
+
754
+ ## 0.1.56
755
+
756
+ ### Changed β€” TUI Footer
757
+
758
+ - **Footer cleaned up and restructured**: removed duplicate/messy lines left by the 0.1.54 agent; consolidated into two clean footer lines:
759
+ - Line 1: `Made with πŸ’– & β˜• by vava-nessa β€’ ⭐ Star on GitHub` (clickable links)
760
+ - Line 2: `πŸ’¬ Join our Discord β€’ ⚠ BETA TUI β€” might crash or have problems`
761
+ - **BETA warning added to TUI footer**: `⚠ BETA TUI` badge in yellow with a plain-text disclaimer, always visible at the bottom of the TUI app
762
+ - **Discord invite in TUI footer**: clickable OSC 8 hyperlink added directly in the footer (was only in README before)
763
+
764
+ ---
765
+
766
+ ## 0.1.55
767
+
768
+ ### Changed β€” README & Documentation
769
+
770
+ - **README updated for 9 providers / 101 models**: badges, provider list, Support section, and Requirements section all updated to reflect the new state after 0.1.54
771
+ - **Discord header block reformatted**: replaced the join banner with a plain `πŸ’¬ Let's talk about the project on Discord` link
772
+ - **BETA warning added to README**: inline `⚠️ free-coding-models is a BETA TUI β€” expect rough edges and occasional crashes` added to the docs link line in the Support section
773
+
774
+ ---
775
+
776
+ ## 0.1.54
777
+
778
+ ### Added β€” Providers & Models
779
+
780
+ **5 new providers** (9 total, 101 models):
781
+
782
+ - **OpenRouter** β€” 8 free coding models via the `:free` quota tier (20 req/min, 50 req/day shared). Includes Qwen3 Coder, Step 3.5 Flash, DeepSeek R1 0528, GPT OSS 120B/20B, Nemotron Nano 30B, Llama 3.3 70B. Key prefix: `sk-or-`
783
+ - **Mistral Codestral** β€” dedicated coding endpoint (`codestral.mistral.ai`), `codestral-latest` model, 30 req/min / 2 000 req/day. Separate API key from the main Mistral platform. Key prefix: `csk-`
784
+ - **Hyperbolic** β€” $1 free trial credits. 10 models: Qwen3 Coder 480B, DeepSeek R1 0528, Kimi K2, GPT OSS 120B, Qwen3 235B, Qwen3 80B Instruct, DeepSeek V3 0324, Qwen2.5 Coder 32B, Llama 3.3 70B, Llama 3.1 405B. Key prefix: `eyJ`
785
+ - **Scaleway** β€” 1 million free tokens. 7 models: Devstral 2 123B, Qwen3 235B, GPT OSS 120B, Qwen3 Coder 30B, Llama 3.3 70B, R1 Distill 70B, Mistral Small 3.2. Key prefix: `scw-`
786
+ - **Google AI Studio** β€” free Gemma 3 models (14 400 req/day, 30 req/min). Gemma 3 27B / 12B / 4B via the OpenAI-compatible `generativelanguage.googleapis.com/v1beta/openai` endpoint. Key prefix: `AIza`
787
+
788
+ **New models in existing providers:**
789
+
790
+ - **Groq**: GPT OSS 120B (`openai/gpt-oss-120b`), GPT OSS 20B (`openai/gpt-oss-20b`), Qwen3 32B (`qwen/qwen3-32b`)
791
+ - **Cerebras**: GLM 4.6 (`glm-4.6`) from Z.ai β€” 10 req/min, 100 req/day
792
+ - **SambaNova**: DeepSeek V3.1 Terminus (`deepseek-ai/DeepSeek-V3.1-Terminus`, S tier 68.4%)
793
+
794
+ ### Added β€” TUI Features
795
+
796
+ - **`N` key β€” Origin/provider filter**: cycles through All β†’ NIM β†’ Groq β†’ Cerebras β†’ SambaNova β†’ OpenRouter β†’ Codestral β†’ Hyperbolic β†’ Scaleway β†’ Google AI β†’ All, mirroring how `T` cycles tiers. The active provider is shown as a badge in the header. The Origin column header now reads `Origin(N)` and highlights in blue when a filter is active.
797
+ - **`C` key β€” Sort by context window**: the context-window sort was previously on `N`; moved to `C` (mnemonic: Context) to free up `N` for the origin filter.
798
+ - **`K` key β€” Help overlay**: press `K` (or `Esc`) to open/close a full keyboard shortcut reference listing every key and what it does, rendered in the alt-screen buffer without leaving the TUI.
799
+ - **`Esc` closes help and settings**: pressing Escape now dismisses both the `K` help overlay and the `P` settings screen. The help overlay intercepts Esc before the settings handler so there is no key conflict.
800
+
801
+ ### Changed β€” README & UI
802
+
803
+ - Provider count badge updated: **4 β†’ 9 providers**
804
+ - Model count badge updated: **67 β†’ 101 models**
805
+ - Requirements section lists all 9 providers with their signup URLs
806
+ - Discord header block replaced with a plain `πŸ’¬ Let's talk about the project on Discord` link
807
+ - Support section reformatted: GitHub issues link + Discord link on separate lines + docs link with inline BETA warning (`⚠️ free-coding-models is a BETA TUI β€” expect rough edges and occasional crashes`)
808
+ - Footer hint line updated: `T Tier β€’ N Origin β€’ … C` replaces old `N` in sort hint; `K Help` added
809
+
810
+ ### Technical
811
+
812
+ - `sources.js`: 5 new named exports; `sources` object extended to 9 entries; `@exports` JSDoc updated
813
+ - `lib/config.js`: `ENV_VARS` extended with `openrouter`, `codestral`, `hyperbolic`, `scaleway`, `googleai`; JSDoc config structure comment updated
814
+ - `bin/free-coding-models.js`: first-run wizard extended to 9 providers; `ENV_VAR_NAMES` extended; OpenCode/OpenCode-Desktop provider blocks added for all 5 new providers (all use `@ai-sdk/openai-compatible` + baseURL); `ORIGIN_CYCLE` + `originFilterMode` state; `renderTable` signature gains `originFilterMode` parameter; `renderHelp()` function added; all `renderTable` call sites updated
815
+
816
+ ---
817
+
818
+ ## 0.1.53
819
+
820
+ ### Added
821
+
822
+ - **SambaNova Cloud** as a new provider ($5 free trial, 3 months). 10 coding models: Qwen3 235B, DeepSeek R1 0528, DeepSeek V3.1, DeepSeek V3 0324, Llama 4 Maverick, GPT OSS 120B, Qwen3 32B, R1 Distill 70B, Llama 3.3 70B, Llama 3.1 8B. OpenAI-compatible endpoint at `api.sambanova.ai`. Key prefix: `sn-`
823
+ - **Cerebras**: Qwen3 235B (`qwen-3-235b-a22b`), GPT OSS 120B (`gpt-oss-120b`), Llama 3.1 8B (`llama3.1-8b`)
824
+ - **Groq**: Llama 3.1 8B (`llama-3.1-8b-instant`, 14 400 req/day)
825
+ - Full OpenCode + OpenCode Desktop integration for SambaNova (`@ai-sdk/openai-compatible` provider block injected automatically on model select)
826
+ - SambaNova added to first-run API key wizard and Settings screen (`P` key)
827
+
828
+ ---
829
+
830
+ ## 0.1.52
831
+
832
+ ### Fixed
833
+ - **OpenCode model handoff** (PR #14 by @whit3rabbit): API keys from `~/.free-coding-models.json` were not passed to the OpenCode child process, causing silent fallback to the previous model. Also fixes Groq model ID mismatches (e.g. `kimi-k2-instruct` β†’ `kimi-k2-instruct-0905`) via a new `OPENCODE_MODEL_MAP`
834
+ - **OpenClaw nvidia provider missing models array** (PR #13 by @whit3rabbit): `startOpenClaw()` created the nvidia provider block without a `models` property, causing Zod schema validation to reject the config
835
+
836
+ ### Improved
837
+ - **Discord link in TUI footer**: the invite URL is now displayed in plain text on a separate line so it's visible and copiable on terminals that don't support clickable links
838
+
839
+ ---
840
+
841
+ ## 0.1.51
842
+
843
+ ### Fixed
844
+ - **Groq/Cerebras models selected for OpenCode had no provider block**: even with the correct `groq/model-id` prefix, OpenCode couldn't use the model because no `provider.groq` block existed in `opencode.json` β€” now automatically creates the provider block (Groq: built-in with `apiKey: {env:GROQ_API_KEY}`; Cerebras: `@ai-sdk/openai-compatible` with baseURL) and registers the model in `provider.<key>.models`
845
+
846
+ ## 0.1.50
847
+
848
+ ### Fixed
849
+ - **Groq/Cerebras models selected for OpenCode were launched as NVIDIA models**: `providerKey` was not passed in `userSelected` on Enter, causing all models to be prefixed with `nvidia/` regardless of their actual provider β€” now correctly uses `groq/model-id` and `cerebras/model-id`
850
+ - **`startOpenCode` and `startOpenCodeDesktop`**: both functions now handle all 3 providers; Groq and Cerebras use OpenCode's built-in provider support (no custom config block needed, just `GROQ_API_KEY`/`CEREBRAS_API_KEY` env vars); NVIDIA retains its existing custom provider config flow
851
+
852
+ ---
853
+
854
+ ## 0.1.49
855
+
856
+ ### Fixed
857
+ - **Cerebras / Groq without API key**: models were being pinged with the fallback NVIDIA key, causing misleading `❌ 401` β€” now pings without auth header; 401 is treated as `πŸ”‘ NO KEY` (server reachable, latency shown dimly)
858
+ - **Settings: entering an API key had no immediate effect**: after saving a key and closing Settings (Escape), models previously in `noauth` state are now immediately re-pinged with the new key
859
+
860
+ ### Changed
861
+ - Ping without API key is now always attempted β€” a 401 response confirms the server is UP and shows real latency; `πŸ”‘ NO KEY` replaces the old `❌ 401` misleading error
862
+
863
+ ---
864
+
865
+ ## 0.1.48
866
+
867
+ ### Fixed
868
+ - **`--tier` CLI flag**: `parseArgs()` was never called in `main()`, so `--tier S` was silently ignored β€” now wired in and applied on TUI startup (thanks @whit3rabbit, PR #11)
869
+ - **`--tier` value leaking into `apiKey`**: `parseArgs()` for-loop was capturing the tier value as the API key β€” fixed by skipping the value arg after `--tier`
870
+ - **Ctrl+C not exiting**: sort key handler was intercepting all single-letter keypresses including ctrl-modified ones β€” added `!key.ctrl` guard so Ctrl+C reaches the exit handler (PR #11)
871
+
872
+ ### Added
873
+ - Test verifying `--tier` value does not leak into `apiKey` (63 tests total)
874
+
875
+ ---
876
+
877
+ ## 0.1.47
878
+
879
+ ### Fixed
880
+ - **`--tier` CLI flag**: `parseArgs()` was never called in `main()`, so `--tier S` was silently ignored β€” now wired in and applied on TUI startup (thanks @whit3rabbit, PR #11)
881
+ - **`--tier` value leaking into `apiKey`**: `parseArgs()` for-loop was capturing the tier value as the API key β€” fixed by skipping the value arg after `--tier`
882
+ - **Ctrl+C not exiting**: sort key handler was intercepting all single-letter keypresses including ctrl-modified ones β€” added `!key.ctrl` guard so Ctrl+C reaches the exit handler (PR #11)
883
+
884
+ ### Added
885
+ - Test verifying `--tier` value does not leak into `apiKey` (63 tests total)
886
+
887
+ ---
888
+
889
+ ## 0.1.46
890
+
891
+ ### Fixed
892
+ - **Discord notification**: Fixed ECONNRESET error β€” drain response body with `res.resume()` and call `process.exit(0)` immediately after success so the Node process closes cleanly
893
+
894
+ ### Changed
895
+ - **Discord link**: Updated invite URL to `https://discord.gg/5MbTnDC3Md` everywhere (README, TUI footer)
896
+
897
+ ---
898
+
899
+ ## 0.1.45
900
+
901
+ ### Fixed
902
+ - **Discord notification**: Fixed GitHub Actions workflow crash (secrets context not allowed in step `if` conditions β€” now handled in the Node script directly)
903
+
904
+ ---
905
+
906
+ ## 0.1.44
907
+
908
+ ### Added
909
+ - **Multi-provider support** β€” Groq (6 models) and Cerebras (3 models) added alongside NVIDIA NIM, for 53 total models
910
+ - **Multi-provider first-run wizard** β€” Steps through all 3 providers (NIM, Groq, Cerebras) on first launch; each is optional, Enter to skip; requires at least one key
911
+ - **Settings screen (`P` key)** β€” New TUI overlay to manage API keys per provider, toggle providers on/off, and test keys with a live ping
912
+ - **`lib/config.js`** β€” New JSON config system (`~/.free-coding-models.json`) replacing the old plain-text file
913
+ - Auto-migrates old `~/.free-coding-models` (plain nvidia key) on first run
914
+ - Stores keys per provider + per-provider enabled/disabled state
915
+ - `NVIDIA_API_KEY`, `GROQ_API_KEY`, `CEREBRAS_API_KEY` env vars override config
916
+ - **Per-provider ping URLs** β€” `ping()` now accepts explicit endpoint URL; each provider has its own API endpoint in `sources.js`
917
+ - **Provider name in Origin column** β€” Shows `NIM` / `Groq` / `Cerebras` instead of always `NIM`
918
+
919
+ ### Changed
920
+ - `MODELS` flat array now includes `providerKey` as 6th element
921
+ - State init filters models from disabled providers; rebuilds on settings close
922
+ - Config file path changed from `~/.free-coding-models` to `~/.free-coding-models.json` (migration is automatic)
923
+
924
+ ---
925
+
926
+ ## 0.1.41 β€” 2026-02-22
927
+
928
+ ### Changed
929
+ - **sources.js data audit** β€” verified and corrected SWE-bench scores, tiers, and context windows across all NIM models:
930
+ - Devstral 2 123B: `S, 62.0%, 128k` β†’ `S+, 72.2%, 256k` (official Mistral announcement)
931
+ - Mistral Large 675B: ctx `128k` β†’ `256k`
932
+ - QwQ 32B: ctx `32k` β†’ `131k`
933
+ - Llama 4 Maverick: ctx `128k` β†’ `1M` (NVIDIA NIM confirmed)
934
+ - Llama 4 Scout: ctx `128k` β†’ `10M` (NVIDIA NIM confirmed)
935
+ - GPT OSS 20B: ctx `32k` β†’ `128k`
936
+
937
+ ---
938
+
939
+ ## 0.1.38 β€” 2026-02-22
940
+
941
+ ### Fixed
942
+ - **Cross-platform OpenCode integration**: Fixed OpenCode CLI and Desktop installation issues on Windows and Linux
943
+ - **Windows**: Fixed config path to use %APPDATA%\opencode\opencode.json with fallback to ~/.config
944
+ - **Linux**: Added support for snap, flatpak, and xdg-open to launch OpenCode Desktop
945
+ - **All platforms**: Properly detects OS and uses correct commands and paths
946
+ - **OpenCode Desktop**: Platform-specific launch commands (macOS: `open -a`, Windows: `start`, Linux: multiple methods)
947
+
948
+ ---
949
+
950
+ ## 0.1.37 β€” 2026-02-22
951
+
952
+ ### Added
953
+ - **Auto-update with sudo fallback**: When npm update fails due to permissions, automatically retries with sudo to complete the update
954
+
955
+ ---
956
+
957
+ ## 0.1.36 β€” 2026-02-22
958
+
959
+ ### Added
960
+ - **SWE-bench Verified column**: Shows real SWE-bench Verified scores for all 44 models from official benchmarks
961
+ - **Color-coded keyboard shortcuts**: First letter of each column header colored in yellow to indicate sorting key
962
+ - **Heart and Coffee in footer**: "Made with πŸ’– & β˜• by vava-nessa"
963
+
964
+ ### Changed
965
+ - **Column organization**: Reordered columns for better logical flow: Rank / Tier / SWE% / Model / Origin / Latest Ping / Avg Ping / Health / Verdict / Up%
966
+ - **Health column**: Renamed from "Status" to "Health" with H key for sorting
967
+ - **SWE-bench sorting**: S key now sorts by SWE-bench score
968
+ - **Latest ping shortcut**: L key (instead of P) for sorting by latest ping
969
+ - **Source name**: Simplified "NVIDIA NIM" to "NIM"
970
+
971
+ ### Fixed
972
+ - **Column header alignment**: Fixed misalignment caused by ANSI color codes in headers
973
+ - **Discord link**: Updated to permanent invite link https://discord.gg/WKA3TwYVuZ
974
+
975
+ ---
976
+
977
+ ## 0.1.35 β€” 2026-02-22
978
+
979
+ ### Changed
980
+ - **Column reorganization**: Reordered columns for better logical flow: Rank / Tier / SWE% / Model / Origin / Latest Ping / Avg Ping / Health / Verdict / Up%
981
+
982
+ ---
983
+
984
+ ## 0.1.34 β€” 2026-02-22
985
+
986
+ ### Changed
987
+ - **Condition renamed to Health**: Renamed "Condition" column to "Health" for better clarity
988
+ - **Keyboard shortcut update**: H key now sorts by Health (instead of C for Condition)
989
+
990
+ ---
991
+
992
+ ## 0.1.33 β€” 2026-02-22
993
+
994
+ ### Fixed
995
+ - **Column header alignment**: Fixed column headers misalignment issue caused by ANSI color codes interfering with text padding
996
+
997
+ ---
998
+
999
+ ## 0.1.32 β€” 2026-02-22
1000
+
1001
+ ### Changed
1002
+ - **Column header improvements**: Fixed column alignment issues for better visual appearance
1003
+ - **Status renamed to Condition**: "Status" column renamed to "Condition" for clarity
1004
+ - **Keyboard shortcut updates**: S key now sorts by SWE-bench score, C key sorts by Condition
1005
+ - **Footer Discord text update**: Changed "Join our Discord!" to "Join Free-Coding-Models Discord!"
1006
+
1007
+ ---
1008
+
1009
+ ## 0.1.31 β€” 2026-02-22
1010
+
1011
+ ### Added
1012
+ - **SWE-bench column**: Added new SWE-bench Verified score column showing coding performance for each model
1013
+ - **Color-coded column headers**: First letter of each column header is now colored (yellow) to indicate keyboard shortcut for sorting
1014
+ - **Keyboard shortcut improvements**: Changed P to L for latest ping sorting, added E for SWE-bench sorting
1015
+
1016
+ ### Changed
1017
+ - **Source name simplification**: Renamed "NVIDIA NIM" to "NIM" throughout the codebase
1018
+ - **Enhanced footer Discord link**: Discord link now displays in bright cyan color with "(link fixed)" indicator
1019
+
1020
+ ---
1021
+
1022
+ ## 0.1.29 β€” 2026-02-22
1023
+
1024
+ ### Fixed
1025
+ - **Discord link correction**: Updated all Discord invite URLs to use permanent link https://discord.gg/WKA3TwYVuZ
1026
+
1027
+ ---
1028
+
1029
+ ## 0.1.28 β€” 2026-02-22
1030
+
1031
+ ### Added
1032
+ - **Footer emojis**: Added πŸ’¬ emoji before Discord link and ⭐ emoji before GitHub link for better visual appeal
1033
+
1034
+ ---
1035
+
1036
+ ## 0.1.27 β€” 2026-02-22
1037
+
1038
+ ### Changed
1039
+ - **Footer redesign**: All links now on one line with clickable text: "Join our Discord!" and "Read the docs on GitHub"
1040
+ - **Improved UX**: Links use same clickable format as author name for consistent user experience
1041
+
1042
+ ---
1043
+
1044
+ ## 0.1.26 β€” 2026-02-22
1045
+
1046
+ ### Changed
1047
+ - **Footer improvements**: Replaced "Repository GitHub" with "GitHub", "love" with πŸ’– emoji, and simplified Discord text
1048
+ - **README enhancement**: Added GitHub link section below Discord invite
1049
+
1050
+ ---
1051
+
1052
+ ## 0.1.25 β€” 2026-02-22
1053
+
1054
+ ### Added
1055
+ - **Discord community link**: Added Discord invite to README and TUI footer
1056
+ - **Enhanced footer layout**: Improved footer with multi-line layout showing GitHub repo and Discord links
1057
+ - **Clickable author name**: "vava-nessa" is now clickable in terminal (opens GitHub profile)
1058
+ - **Release notes automation**: GitHub Actions now uses CHANGELOG.md content for release notes instead of auto-generated notes
1059
+
1060
+ ### Changed
1061
+ - **Tier filtering system**: Replaced E/D keys with T key that cycles through tier filters: all β†’ S+/S β†’ A+/A/A- β†’ B+/B β†’ C β†’ all
1062
+ - **Footer text**: "Made with love by vava-nessa" with clickable links
1063
+
1064
+ ### Fixed
1065
+ - **Release workflow**: GitHub Releases now display proper changelog content instead of generic commit summaries
1066
+
1067
+ ---
1068
+
1069
+ ## 0.1.24 β€” 2026-02-22
1070
+
1071
+ ### Fixed
1072
+ - **Viewport scrolling for TUI overflow**: Fixed Ghostty and narrow terminal issues where content would scroll past alternate screen
1073
+ - **Terminal wrapping**: Wide rows now clip at terminal edge instead of wrapping to next line
1074
+ - **Scrollback pollution**: Replaced `\x1b[2J` with `\x1b[H` + per-line `\x1b[K` to avoid Ghostty scrollback issues
1075
+ - **Viewport calculation**: Added smart scrolling with "N more above/below" indicators when models exceed screen height
1076
+ - **Scroll offset adjustment**: Cursor stays within visible window during navigation and terminal resize
1077
+
1078
+ ### Changed
1079
+ - **DECAWM off**: Disabled auto-wrap in alternate screen to prevent row height doubling
1080
+ - **Terminal resize handling**: Viewport automatically adjusts when terminal size changes
1081
+
1082
+ ---
1083
+
1084
+ ## 0.1.23 β€” 2026-02-22
1085
+
1086
+ ### Refactored
1087
+ - **Removed startup menu**: No more blocking mode selection menu at startup
1088
+ - **Default to OpenCode CLI**: App starts directly in CLI mode when no flags given
1089
+ - **Mode toggle in TUI**: Added Z key to cycle between CLI β†’ Desktop β†’ OpenClaw β†’ CLI
1090
+ - **GitHub changelogs**: "Read Changelogs" option now opens GitHub URL instead of local file
1091
+ - **Auto-update by default**: When new version available without flags, auto-updates and relaunches
1092
+ - **Centered update menu**: Update notification appears only when needed, with clean centered layout
1093
+
1094
+ ### Changed
1095
+ - **Header display**: Shows `[πŸ’» CLI] (Z to toggle)` with mode toggle hint
1096
+ - **Footer instructions**: Added "M Mode" to key bindings
1097
+ - **Update workflow**: Flags (`--opencode` etc.) still show update menu for compatibility
1098
+
1099
+ ---
1100
+
1101
+ ## 0.1.22 β€” 2026-02-22
1102
+
1103
+ ### Changed
1104
+ - **Local changelogs**: "Read Changelogs" menu option now opens local `CHANGELOG.md` file instead of GitHub releases
1105
+
1106
+ ---
1107
+
1108
+ ## 0.1.21 β€” 2026-02-22
1109
+
1110
+ ### Refactored
1111
+ - **Simplified tier filtering architecture**: Replaced complex object recreation with simple `hidden` flag system
1112
+ - **Flags as shortcuts**: `--tier S` now just sets initial state instead of blocking dynamic filtering
1113
+ - **Dynamic filtering preserved**: E/D keys work seamlessly even when starting with `--tier` flag
1114
+
1115
+ ### Fixed
1116
+ - **Ping loop bug**: Fixed issue where filtered models weren't pinged due to using wrong results array
1117
+ - **Initial ping bug**: Fixed issue where initial ping used wrong results array
1118
+
1119
+ ---
1120
+
1121
+ ## 0.1.20 β€” 2026-02-22
1122
+
1123
+ ### Added
1124
+ - **Dynamic tier filtering**: Use E/D keys to filter models by tier during runtime
1125
+ - Tier filter badge shown in header (e.g., `[Tier S]`)
1126
+ - E key elevates filter (show fewer, higher-tier models)
1127
+ - D key descends filter (show more, lower-tier models)
1128
+ - Preserves ping history when changing filters
1129
+
1130
+ ### Fixed
1131
+ - **Error 401 with --tier flag**: Fixed issue where using `--tier` alone would show selection menu instead of proceeding directly to TUI
1132
+ - Improved flag combination handling for better user experience
1133
+
1134
+ ---
1135
+
1136
+ ## 0.1.16
1137
+
1138
+ ### Added
1139
+ - OpenCode Desktop support: new `--opencode-desktop` flag and menu option to set model & open the Desktop app
1140
+ - "Read Changelogs" menu option when an update is available (opens GitHub releases page)
1141
+ - `startOpenCodeDesktop()` function β€” same config logic as CLI, launches via `open -a OpenCode`
1142
+
1143
+ ### Changed
1144
+ - Startup menu: "OpenCode" renamed to "OpenCode CLI", new "OpenCode Desktop" entry added
1145
+ - TUI mode badge: shows `[πŸ’» CLI]` or `[πŸ–₯ Desktop]` or `[🦞 OpenClaw]`
1146
+ - Footer action hint adapts to desktop mode (`Enter→OpenDesktop`)
1147
+
1148
+ ---
1149
+
1150
+ ## 0.1.12 β€” 2026-02-22
1151
+
1152
+ ### Added
1153
+ - Unit test suite: 59 tests across 11 suites using `node:test` (zero dependencies)
1154
+ - Tests cover: sources data integrity, core logic (getAvg, getVerdict, getUptime, filterByTier, sortResults, findBestModel), CLI arg parsing, package.json sanity
1155
+ - `lib/utils.js`: extracted pure logic functions from the monolithic CLI for testability
1156
+ - `pnpm test` script in package.json
1157
+
1158
+ ### Fixed
1159
+ - GitHub Actions release workflow: removed broken `npm version patch` loop, added version detection via git tags
1160
+ - GitHub Actions now creates a GitHub Release with auto-generated notes for each new version
1161
+
1162
+ ### Changed
1163
+ - AGENTS.md updated with test-first workflow: agents must run `pnpm test` before `pnpm start`
1164
+
1165
+ ---
1166
+
1167
+ ## 0.1.9 β€” 2026-02-22
1168
+
1169
+ ### Fixed
1170
+ - **OpenCode spawn ENOENT**: Use `shell: true` when spawning `opencode` so the command resolves correctly on Windows (`.cmd`/`.bat` wrappers). Added friendly error message when `opencode` is not installed.
1171
+ ### Added
1172
+ - Update available warning: red message shown above selection menu when a new npm version exists
1173
+ - "Update now" menu choice in startup mode selection to install the latest version
1174
+
1175
+ ---
1176
+
1177
+ ## 0.1.4 β€” 2026-02-22
1178
+
1179
+ ### Fixed
1180
+ - **OpenClaw config structure**: `providers` was incorrectly written at the config root. Moved to `models.providers` per official OpenClaw docs (`docs.openclaw.ai/providers/nvidia`).
1181
+ - **OpenClaw API key storage**: Removed `apiKey` from provider block (not a recognized field). API key is now stored under `env.NVIDIA_API_KEY` in the config.
1182
+ - **OpenClaw models array**: Removed the `models: []` array from the provider block (OpenCode format, not valid in OpenClaw).
1183
+ - **`openclaw restart` CLI command doesn't exist**: Replaced hint with correct commands β€” `openclaw models set` / `openclaw configure`. Gateway auto-reloads on config file changes.
1184
+ - **OpenClaw model not allowed**: Model must be explicitly listed in `agents.defaults.models` allowlist β€” without this, OpenClaw rejects the model with "not allowed" even when set as primary.
1185
+ - **README**: Updated OpenClaw integration section with correct JSON structure and correct CLI commands.
1186
+
1187
+ ---
1188
+
1189
+ ## 0.1.3 β€” 2026-02-22
1190
+
1191
+ ### Added
1192
+ - OpenClaw integration: set selected NIM model as default provider in `~/.openclaw/openclaw.json`
1193
+ - Startup mode menu (no flags needed): interactive choice between OpenCode and OpenClaw at launch
1194
+ - `--openclaw` flag: skip menu, go straight to OpenClaw mode
1195
+ - `--tier` flag: filter models by tier letter (S, A, B, C)
1196
+ - Tier badges shown next to model names in the TUI
1197
+ - 44 models listed, ranked by Aider Polyglot benchmark
1198
+
1199
+ ### Fixed
1200
+ - CI permissions for git push in release workflow
1201
+
1202
+ ---
1203
+
1204
+ ## 0.1.2 β€” 2026-02-22
1205
+
1206
+ ### Added
1207
+ - `--fiable` flag: analyze 10 seconds, output the single most reliable model as `provider/model_id`
1208
+ - `--best` flag: show only top-tier models (A+, S, S+)
1209
+ - `--opencode` flag: explicit OpenCode mode
1210
+ - Refactored CLI entry point, cleaner flag handling
1211
+ - Updated release workflow
1212
+
1213
+ ---
1214
+
1215
+ ## 0.1.1 β€” 2026-02-21
1216
+
1217
+ ### Added
1218
+ - Continuous monitoring mode: re-pings all models every 2 seconds forever
1219
+ - Rolling averages calculated from all successful pings since start
1220
+ - Uptime percentage tracking per model
1221
+ - Dynamic ping interval: W key to speed up, X key to slow down
1222
+ - Sortable columns: R/T/O/M/P/A/S/V/U keys
1223
+ - Verdict column with quality rating per model
1224
+ - Interactive model selection with arrow keys + Enter
1225
+ - OpenCode integration: auto-detects NIM setup, sets model as default, launches OpenCode
1226
+ - `sources.js`: extensible architecture for adding new providers
1227
+ - Demo GIF added to README
1228
+ - Renamed CLI to `free-coding-models`
1229
+
1230
+ ---
1231
+
1232
+ ## 0.1.0 β€” 2026-02-21
1233
+
1234
+ ### Added
1235
+ - Initial release as `nimping` then renamed to `free-coding-models`
1236
+ - Parallel pings of NVIDIA NIM coding models via native `fetch`
1237
+ - Real-time terminal table with latency display
1238
+ - Alternate screen buffer (no scrollback pollution)
1239
+ - Top 3 fastest models highlighted with medals πŸ₯‡πŸ₯ˆπŸ₯‰
1240
+ - ASCII banner and clean UI
1241
+ - OpenCode installer and interactive model selector
1242
+ - npm publish workflow via GitHub Actions