free-coding-models 0.2.5 β†’ 0.2.9

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