free-coding-models 0.3.36 → 0.3.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +10 -1798
  2. package/README.md +4 -1
  3. package/bin/free-coding-models.js +1 -1
  4. package/package.json +11 -2
  5. package/src/app.js +3 -0
  6. package/src/cli-help.js +2 -0
  7. package/src/command-palette.js +3 -0
  8. package/src/endpoint-installer.js +1 -1
  9. package/src/tool-bootstrap.js +34 -0
  10. package/src/tool-launchers.js +137 -1
  11. package/src/tool-metadata.js +9 -0
  12. package/src/utils.js +8 -2
  13. package/web/index.html +2 -300
  14. package/web/server.js +80 -15
  15. package/web/src/App.jsx +150 -0
  16. package/web/src/components/analytics/AnalyticsView.jsx +109 -0
  17. package/web/src/components/analytics/AnalyticsView.module.css +186 -0
  18. package/web/src/components/atoms/Sparkline.jsx +44 -0
  19. package/web/src/components/atoms/StabilityCell.jsx +18 -0
  20. package/web/src/components/atoms/StabilityCell.module.css +8 -0
  21. package/web/src/components/atoms/StatusDot.jsx +10 -0
  22. package/web/src/components/atoms/StatusDot.module.css +17 -0
  23. package/web/src/components/atoms/TierBadge.jsx +10 -0
  24. package/web/src/components/atoms/TierBadge.module.css +18 -0
  25. package/web/src/components/atoms/Toast.jsx +25 -0
  26. package/web/src/components/atoms/Toast.module.css +35 -0
  27. package/web/src/components/atoms/ToastContainer.jsx +16 -0
  28. package/web/src/components/atoms/ToastContainer.module.css +10 -0
  29. package/web/src/components/atoms/VerdictBadge.jsx +13 -0
  30. package/web/src/components/atoms/VerdictBadge.module.css +19 -0
  31. package/web/src/components/dashboard/DetailPanel.jsx +131 -0
  32. package/web/src/components/dashboard/DetailPanel.module.css +99 -0
  33. package/web/src/components/dashboard/ExportModal.jsx +79 -0
  34. package/web/src/components/dashboard/ExportModal.module.css +99 -0
  35. package/web/src/components/dashboard/FilterBar.jsx +73 -0
  36. package/web/src/components/dashboard/FilterBar.module.css +43 -0
  37. package/web/src/components/dashboard/ModelTable.jsx +86 -0
  38. package/web/src/components/dashboard/ModelTable.module.css +46 -0
  39. package/web/src/components/dashboard/StatsBar.jsx +40 -0
  40. package/web/src/components/dashboard/StatsBar.module.css +28 -0
  41. package/web/src/components/layout/Footer.jsx +19 -0
  42. package/web/src/components/layout/Footer.module.css +10 -0
  43. package/web/src/components/layout/Header.jsx +38 -0
  44. package/web/src/components/layout/Header.module.css +73 -0
  45. package/web/src/components/layout/Sidebar.jsx +41 -0
  46. package/web/src/components/layout/Sidebar.module.css +76 -0
  47. package/web/src/components/settings/SettingsView.jsx +264 -0
  48. package/web/src/components/settings/SettingsView.module.css +377 -0
  49. package/web/src/global.css +199 -0
  50. package/web/src/hooks/useFilter.js +83 -0
  51. package/web/src/hooks/useSSE.js +49 -0
  52. package/web/src/hooks/useTheme.js +27 -0
  53. package/web/src/main.jsx +15 -0
  54. package/web/src/utils/download.js +15 -0
  55. package/web/src/utils/format.js +42 -0
  56. package/web/src/utils/ranks.js +37 -0
  57. /package/web/{app.js → app.legacy.js} +0 -0
  58. /package/web/{styles.css → styles.legacy.css} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,1809 +1,21 @@
1
1
  # Changelog
2
2
  ---
3
3
 
4
- ## [0.3.36] - 2026-04-07
5
-
6
- ### Added
7
- - **Settings Page** — Full API key management: add, edit, delete, reveal (masked with last 4 chars), and copy keys from the browser.
8
- - **Provider Toggle Switches** — Enable/disable providers with smooth toggle switches directly from Settings.
9
- - **Sidebar Navigation** — Collapsible sidebar with Dashboard, Settings, and Analytics views.
10
- - **Analytics View** — Provider health overview with % bars, Top 10 fastest models leaderboard, and tier distribution chart.
11
- - **Toast Notification System** — Beautiful slide-in notifications for save/delete/copy/error feedback.
12
- - **Export Modal** — Export filtered model data as JSON, CSV, or copy summary to clipboard.
13
- - **Provider Search** — Search/filter providers in the Settings page.
14
- - **Expand/Collapse All** — Bulk expand or collapse all provider cards in Settings.
15
-
16
- ### Changed
17
- - Upgraded web dashboard from V1 (read-only) to V2 (full management console).
18
- - Improved sidebar hover-expand behavior with smooth label reveal.
19
-
20
- ### Fixed
21
- - **P1**: Serialized ping rounds using recursive `setTimeout` instead of `setInterval` to prevent overlapping concurrent mutations when providers are slow.
22
- - **P2**: Disabled providers are now skipped during ping rounds, honoring the Settings toggle.
23
- - **P2**: `saveConfig` failures are now caught and returned as errors to the client instead of silently reporting success.
24
-
25
- ## [0.3.35] - 2026-04-07
26
-
27
- ### Added
28
- - **Web Dashboard / GUI Mode** — Launch a premium graphical interface using \`--web\` or \`--gui\` flag.
29
- - **Glassmorphism Design** — Real-time ping visualization, 🥇🥈🥉 medals, live stability scores, and sparklines.
30
- - **Background SSE Streaming** — The built-in Node.js server streams live data to the browser with zero dependencies.
31
- - **Quick Search & Filters** — Sort by any column, filter by tiers, or use the real-time search box (Ctrl+K).
32
- - **Detail Panel** — Slide-out side panel showing P95 latency, jitter (σ), and historical trends.
33
-
34
- ## [0.3.34] - 2026-04-06
35
-
36
- ### Added
37
- - **Chutes AI** — new decentralized free provider (4 models: DeepSeek R1, Llama 3.1 70B, Qwen 2.5 72B, Qwen2.5 Coder 32B)
38
- - **Google Gemini 3.1 Pro** — replaced dead Gemini 3 Pro (shut down March 9)
39
- - **Google Gemma 4 family** — Gemma 4 31B, Gemma 4 26B MoE, Gemma 4 E4B added to Google AI Studio
40
- - **Qwen3.6 Plus** and **Qwen3.5 Plus** added to Alibaba DashScope
41
- - **NVIDIA NIM: Kimi K2 Instruct 0905** added
42
- - **SambaNova: Qwen3-235B-A22B-Instruct-2507** added
43
- - **OpenRouter: ~10 new free models** (arcee trinity, mimo-v2-flash, etc.) — 25 total
44
- - **Together AI: expanded to 19 free models** (DeepSeek V3.2, MiniMax M2.1, etc.)
45
- - **Cloudflare: 4 new models** (gemma-4-26b, mistral-small-3.1, qwq-32b, granite-4.0) — 15 total
46
- - **Scaleway: gpt-oss-120b and holo2-30b-a3b** added
47
- - **Hyperbolic: gpt-oss-20b and Qwen3-235B-Instruct-2507** added
48
- - **Rovo: GPT-5.2, GPT-5.2-Codex, Claude Haiku 4.5** added
49
- - **OpenCode Zen: mimo-v2-pro-free, mimo-v2-omni-free** added; fixed context windows (gpt-5-nano: 128k→400k, nemotron-3-super-free: 128k→1M)
50
-
51
- ### Changed
52
- - **Groq scout model renamed** — `llama-4-scout-17b-16e-preview` → `llama-4-scout-17b-16e-instruct`
53
- - **Now 230 models across 24 providers** (was 174/23)
54
- - **README provider table fully updated** with accurate per-provider counts
55
-
56
- ### Fixed
57
- - Removed 3 deprecated Cerebras models (llama3.3-70b, qwen-3-32b, llama-4-scout-17b-16e-instruct) — 4 remain
58
- - Fixed missing comma in googleai array causing undefined model entry
59
- - Replaced all `??%` placeholder SWE scores with reasonable estimates
60
-
61
- ## [0.3.33] - 2026-04-01
62
-
63
- ### Changed
64
- - **X badge darker fuchsia background** (`rgb(140,0,80)`) for better readability
65
- - **Updated text** → "Follow me on X: @vavanessadev to check my other projects! 💖"
66
-
67
- ## [0.3.32] - 2026-04-01
68
-
69
- ### Fixed
70
- - **Corrected X/Twitter username to @vavanessadev** — link and display text now point to the right profile
71
-
72
- ### Changed
73
- - **X support badge now on fuchsia background** — bold white-on-fuchsia with yellow username, impossible to miss
74
- - **Discord moved to the very bottom line** of the TUI footer
75
- - **X follow link added to top of README**
76
-
77
- ## [0.3.31] - 2026-04-01
78
-
79
- ### Changed
80
- - **Footer layout reorganized** — Discord link moved to the very bottom line of the TUI for better visibility
81
- - **X/Twitter support message** — added 🐦 "Support me on X: @vavanessadev 💖" with clickable link in the last release footer line
82
-
83
- ## [0.3.29] - 2026-03-27
84
-
85
- ### Added
86
- - **Fluorescent green UPDATE AVAILABLE banner** — impossible-to-miss fluo green (🚀⬆️) banner at the bottom of the TUI when a new version is detected; click it to update instantly
87
- - **Command Palette update entry** — `⬆️ UPDATE NOW` is always the first result in Ctrl+P when an update is available
88
- - **Shift+U hotkey** — press Shift+U from the main table to trigger an immediate update
89
- - **Mouse-clickable update banner** — click the fluo green banner to install the latest version and relaunch
90
- - **Background version re-check every 5 minutes** — if a new version is published while the TUI is open, the banner appears live without restarting
91
- - **Aggressive pre-TUI update prompt** — fluorescent green header, and "Continue without update" warns that reminders will follow
92
- - **Last release date in footer** — light pink `Last release: Mar 27, 2026, 09:42 PM` shows when the package was last published to npm, so users know how fresh the model data is
93
- - **Demo2 GIF** — added `demo2.gif` to README for visual showcase of the TUI
94
-
95
- ### Fixed
96
- - **Auto-update now detects the correct package manager** — bun, pnpm, and yarn users no longer get duplicate npm installs (fixes #46)
97
- - Update banner in footer shows the correct install command for your package manager
98
-
99
- ## [0.3.28] - 2026-03-27
100
-
101
- _(Skipped — published as 0.3.28 without changelog in commit message, all changes are in 0.3.29)_
102
-
103
- ## [0.3.27] - 2026-03-27
104
-
105
- ## [0.3.26] - 2026-03-27
106
-
107
- ### Added
108
- - **Groq**: Added Compound + Compound Mini; fixed Llama 4 Scout context (10M)
109
- - **OpenRouter**: Added MiniMax M2.5, Nemotron 3 Super, Hermes 3 405B, Gemma 3n E4B
110
- - **HuggingFace**: Replaced invalid DeepSeek-V3-Coder + outdated starcoder2-15b with DeepSeek V3 0324 + Qwen2.5 Coder 32B
111
- - **Replicate**: Replaced CodeLlama 70B (2023) with DeepSeek V3 0324 + Llama 3.3 70B
112
- - **Cloudflare**: Added Kimi K2.5, GLM-4.7-Flash, Llama 4 Scout, Nemotron 3 Super, Qwen3 30B MoE
113
- - **Scaleway**: Added Qwen3.5 400B VLM + Mistral Large 675B
114
- - **DeepInfra**: Replaced Mixtral Code with Nemotron 3 Super + DeepSeek V3 0324 + Qwen3 235B
115
- - **Fireworks**: Added Llama 4 Maverick + Qwen3 235B
116
- - **Hyperbolic**: Added Qwen3 80B Thinking variant
117
- - **Together AI**: Added Qwen3.5 400B VLM, MiniMax M2.5, GLM-5
118
-
119
- ### Changed
120
- - **Rovo Dev CLI**: Updated Sonnet 4 → Sonnet 4.6, added Opus 4.6
121
- - **Groq**: Removed 4 deprecated models (R1 Distill 70B, QwQ 32B, Kimi K2, Maverick)
122
- - **OpenRouter**: Updated context sizes for multiple models
123
-
124
- ## [0.3.25] - 2026-03-19
125
-
126
- ### Added
127
- - **Installed Models Manager** — View, launch, and disable models configured in external tools (Goose, Crush, Aider, Qwen, Pi, OpenHands, Amp)
128
- - Access via Command Palette (Ctrl+P) → "Installed models"
129
- - Scans all supported tool configs automatically on opening
130
- - Displays all models per tool (e.g., Crush shows both large and small models)
131
- - Actions: Launch (Enter), Disable (D) with backup, Reinstall (R)
132
- - Soft delete: Comments out model entries and saves backups to ~/.free-coding-models-backups.json
133
- - **Full mouse support for the TUI** — Click, right-click, double-click, and scroll work throughout the interface
134
- - **Click column headers** — Sort by any column (click Rank, Tier, SWE%, CTX, Model, Provider, etc.)
135
- - **Click model rows** — Move cursor to any model (left-click)
136
- - **Right-click model rows** — Toggle favorite (same as F key)
137
- - **Double-click model rows** — Select model and launch (same as Enter)
138
- - **Mouse wheel** — Scroll through the main table, overlays (Settings, Help, Changelog), and command palette results
139
- - **Click CLI Tools header** — Cycle through tool modes (same as Z key)
140
- - **Click Tier header** — Cycle through tier filters (same as T key)
141
- - **Click footer hotkeys** — Trigger any visible hotkey from the footer
142
- - **Command palette click** — Click inside to select items, double-click to confirm; click outside to close
143
- - **Recommend questionnaire click** — Click on option rows to select, double-click to confirm
144
- - **Mouse unit tests** — 46 new tests covering SGR sequence parsing, double-click detection, modifiers, and COLUMN_SORT_MAP validation
145
-
146
- ### Changed
147
- - **CLI Tools column redesigned** — Renamed from "Compatible with" to "CLI Tools", with left-aligned emoji display (compatible tools packed left instead of fixed slot positions)
148
- - **Sort arrow overflow fixed** — SWE%, CTX, Stability, and Uptime columns now properly fit within their widths when sorted (arrow now `↑SWE%` instead of `↑ SWE%`)
149
- - **Mouse sequence suppression** — SGR mouse sequences no longer leak into keypress handlers (prevents spurious sort/filter triggers when clicking)
150
-
151
- ### Fixed
152
- - **Command palette scroll leak** — Mouse wheel no longer injects raw SGR sequence bytes into the command palette text input
153
- - **Double-action on model click** — Clicking a model row now only moves the cursor; it no longer simultaneously triggers column sorting
154
- - **Mouse event listener order** — Fixed race condition where readline emitted keypress events before mouse data was processed
155
-
156
- ## [0.3.24] - 2026-03-19
157
-
158
- ### Added
159
- - **Unique emoji per tool** — Every CLI tool now has a dedicated emoji shown in the Compatible column, Z-cycle badge, command palette, help overlay, and README (📦 OpenCode, 🦞 OpenClaw, 💘 Crush, 🪿 Goose, π Pi, 🛠 Aider, 🐉 Qwen, 🤲 OpenHands, ⚡ Amp, 🦘 Rovo, ♊ Gemini)
160
- - **Merged compat column** — OpenCode CLI and Desktop share 📦 in a single slot (11 slots instead of 12 separate initials)
161
- - **COMPAT_COLUMN_SLOTS** — New export in tool-metadata.js for merged compatible-column rendering
162
- - **Width warning now always shows** - Terminal width warning displays every time terminal is resized below 80 columns (previously limited to 2 shows per session)
163
- - **Gemini CLI integration** - New CLI-only tool provider with 3 models (Gemini 3 Pro 🆕, Gemini 2.5 Pro, Gemini 2.5 Flash)
164
- - **Rovo Dev CLI integration** - New CLI-only tool provider with Claude Sonnet 4 🆕
165
- - **Tool compatibility alerts** - When trying to launch Rovo/Gemini models with wrong tool, shows alert and offers to switch
166
- - **Auto-install detection** - Prompt to install CLI tools when binary not found (Rovo/Gemini)
167
- - **OpenAI-compatible API support for Gemini** - Gemini CLI can use custom providers via environment variables
168
- - **New CLI flags** - Added `--rovo` and `--gemini` launch options
169
- - **"🆕" badges** - Mark newly added models in the table (Claude Sonnet 4, Gemini 3 Pro)
170
- - **OpenCode Zen free models** - 5 new free models (Big Pickle, GPT 5 Nano, MiMo V2 Flash Free, MiniMax M2.5 Free, Nemotron 3 Super Free) exclusive to OpenCode CLI/Desktop via `opencode-zen` provider
171
- - **"Compatible with" column** - New TUI column showing colored emojis for each tool a model supports; incompatible tools show dim spaces
172
- - **Tool color system** - Each of the 12 supported tools now has a unique RGB color and emoji used in the Z-cycle badge and compatibility column
173
- - **Incompatible model highlighting** - When a tool mode is active (via Z), models that can't run with that tool get a dark red background for instant visibility — they stay in their normal sorted position (not pushed to the bottom)
174
- - **Tool compatibility functions** - `getCompatibleTools()` and `isModelCompatibleWithTool()` in tool-metadata.js for programmatic compatibility checks
175
- - **Incompatible model fallback overlay** - When pressing Enter on a model that can't run on the active tool (red-highlighted row), an in-TUI overlay appears with two options: (1) switch to a compatible tool, or (2) pick a similar model by SWE score that works with the current tool
176
- - **findSimilarCompatibleModels()** - New function in tool-metadata.js that finds models with closest SWE scores compatible with the active tool
177
- - **Updated provider/model counts** - Now 23 providers with 171 models (was 20/160)
178
-
179
- ### Changed
180
- - **Z key cycle** - Rovo and Gemini added to tool mode cycle (last in order)
181
- - **Tool metadata** - Removed `initial` field (replaced by emojis), added `cliOnly` flag for CLI-only tools, `emoji` and `color` properties for all 12 tools
182
- - **Provider metadata** - Added Rovo, Gemini, and OpenCode Zen provider information
183
- - **Responsive column hiding** - Compatible column hides first (before Rank) on narrow terminals
184
- - **Key handler** - Zen models auto-switch to OpenCode CLI on launch; API key warnings skip Zen models
185
- - **Documentation** - Updated README with CLI-only tools section, Zen models, compatibility matrix
186
-
187
- ### Fixed
188
- - **Missing import error** - Fixed `getToolMeta` not defined in key-handler.js
189
- - **CLI-only tools API key requirement** - Gemini CLI and Rovo Dev CLI no longer require API keys to be configured before launching; these tools manage their own authentication
190
-
191
- ## 0.3.23
192
-
193
- ### Added
194
- - **Favorites display mode (`Y`)**: Added a global toggle to switch favorites between `pinned + always visible` and `normal rows` (starred only, fully obeying active filters/sort).
195
- - **Favorites mode row in Settings**: Added a dedicated Settings row to inspect/toggle favorites display behavior without leaving the maintenance screen.
196
- - **Expanded command palette action menus**: Added nested menus for Ping Mode (speed/normal/slow/forced with explanations), Target Tool (all supported tools with explanations), and Favorites Mode (including the new `Y` flow).
197
- - **Active text-filter footer alert**: When a custom search filter is active (for example `deep`), the last TUI footer line now shows a high-visibility inline badge (between `N Changelog` and `Ctrl+C Exit`) with the exact query and an `X` shortcut to clear it instantly.
198
-
199
- ### Changed
200
- - **Favorites sorting/filtering behavior**: Sort/filter logic now respects the selected favorites mode across the table refresh loop, hotkeys, and renderer so non-pinned mode behaves consistently everywhere.
201
- - **Favorites default mode**: New/legacy configs now default to `Normal filter/sort` favorites mode (not pinned) until users press `Y` to opt into pinned+sticky behavior.
202
- - **Footer/help/docs shortcut hints**: Surfaced `Y` in the TUI footer, Help overlay, and README so the new favorites mode is discoverable.
203
-
204
- ## 0.3.22
205
-
206
- ### Added
207
- - **Hierarchical command palette navigation**: Ctrl+P now opens an improved command palette with expandable/collapsible categories and subcategories for better organization.
208
- - **Arrow key navigation in command palette**: Use left/right arrows to expand and collapse categories, up/down to navigate, Enter to execute or toggle.
209
- - **Rich color scheme for command palette**: Categories use bold blue headers, subcategories use bold text, commands show keyboard shortcuts.
210
- - **Visual expand/collapse indicators**: ▼ shows expanded categories, ▶ shows collapsed, • marks individual commands.
211
- - **Concise default view**: Categories are collapsed by default (except Filters) showing less detail on first open.
212
- - **Colored tier filters**: Tier filters (S+, S, A+, A, A-, B+, B, C) now display with their corresponding TUI colors for quick identification.
213
- - **Specific provider filters**: Added 13 individual provider filters (NVIDIA NIM, Groq, Cerebras, SambaNova, OpenRouter, Together AI, DeepInfra, Fireworks, Hyperbolic, Google AI, Hugging Face) with their signature provider colors.
214
- - **Filter by model category**: New "Filter by model" category with autocomplete that dynamically shows top 20 visible models, complete with provider icons and colored model names.
215
- - **Improved search cursor**: Cursor placement fixed to appear right after the `>` prompt instead of after placeholder text for natural typing flow.
216
- - **Lightning bolt in title**: Command Palette title now shows ⚡ emoji for better visibility and visual appeal.
217
-
218
- ### Changed
219
- - **Footer layout cleanup**: Added consistent spacing before `F Toggle Favorite`, moved `N Changelog • Ctrl+C Exit` to a dedicated final footer line for better readability.
220
- - **Removed Y key binding**: Install Endpoints is no longer a direct hotkey — accessible only via Settings (`P`) or Command Palette (`Ctrl+P`). The `Y` key is now free/unbound.
221
- - **Removed proxy notice from footer**: The "Proxy is temporarily disabled" banner has been fully retired from the TUI footer and its backing constant removed.
222
- - **Command palette fuzzy search fix**: `buildCommandPaletteEntries()` now expands all categories so child commands are visible to fuzzy search.
223
- - **Flat Pages + Actions in ⚡️ Command Palette**: page entries and action entries are now listed directly at root level (no extra submenu depth) for faster access.
224
- - **Command explanations after shortcuts**: command palette rows now show concise English hints after hotkeys (example: `(Z) — Change target AI Coding CLI Tool.`).
225
- - **⚡️ emoji consistency**: user-facing Command Palette mentions now consistently render as `⚡️ Command Palette` in TUI and docs.
226
- - **README Quick Start flow**: install section now explicitly adds “create a free account on one of the providers” with a direct anchor link.
227
- - **Provider section renamed for clarity**: Quick Start provider table now lives under `List of Free AI Providers`.
228
- - **Quick Start CTA highlight**: added a large green `USE ⚡️ COMMAND PALETTE / CTRL+P` badge right after the command palette instruction.
229
-
230
- ### Fixed
231
- - **Double emoji display bug**: Fixed duplicate emoji icons in command palette entries (was showing `▶ 🔍 🔍 Filters` instead of `▶ 🔍 Filters`).
232
- - **Provider cycle command behavior**: `Cycle provider` in ⚡️ Command Palette now correctly cycles providers again instead of resetting to `All`.
233
-
234
- ## 0.3.21
235
-
236
- ### Changed
237
- - **Responsive table layout**: the TUI now adapts to narrow terminals by progressively shrinking columns and hiding least-useful ones. Compact mode shortens headers (`Lat. P`, `Avg. P`, `StaB.`, `PrOD…`) and tightens Provider (10 cols), Health (13 cols), Latest Ping (10 cols), and Avg Ping (8 cols). Below compact, Rank → Up% → Tier → Stability are hidden one by one. Minimum usable width: ~116 cols.
238
- - **SWE% column tightened**: reduced from 9 to 6 columns wide — trims excess right padding without losing data.
239
- - **Provider truncation in compact mode**: provider names longer than 5 chars are truncated to 4 chars + `…` (e.g. `Cere…`).
240
- - **Health truncation in compact mode**: status text longer than 6 chars is truncated with `…` (e.g. `🔥 429 TR…`).
241
- - **Removed "Used" column from TUI**: the token usage column has been removed from the main table as it was outdated.
242
- - **Width guardrail threshold tightened**: the narrow-terminal warning now triggers only below 80 columns (instead of broader widths) and keeps the same 2-second auto-hide behavior.
243
- - **Width warning is always enforced in narrow terminals**: removed the `Small Width Warnings` Settings toggle and the `--disable-widths-warning` runtime flag so the startup guardrail stays consistent.
244
-
245
- ### Fixed
246
- - **`--premium` filter lock-in**: premium now applies a resettable startup preset (S-tier + verdict sort) instead of hard-locking an extra hidden elite-only filter.
247
-
248
- ## 0.3.19
249
-
250
- ### Added
251
- - **Command palette overlay (`Ctrl+P`)**: Added a searchable floating palette with fuzzy matching so users can quickly run filters, sorts, overlays, and global actions.
252
-
253
- ### Changed
254
- - **Main footer and help discoverability**: surfaced `Ctrl+P` in table hints and Help overlay so the new command launcher is visible immediately.
255
- - **Command palette spacing polish**: added two-character inner padding around the floating palette so the overlay feels less cramped and visually cleaner.
256
-
257
- ### Fixed
258
- - **Command palette visual jitter**: background ping cycles now pause while the command palette is open so table rows stop reshuffling during command search.
259
- - **Command palette background freeze**: while the palette is open, the full table behind it is now frozen (spinner glyphs, ping countdown, and dynamic row updates) and resumes instantly on close.
260
-
261
- ## 0.3.18
262
-
263
- ### Added
264
- - **Missing tool bootstrap flow**: FCM now detects when a target CLI is absent, offers a minimal in-TUI install confirmation, runs the official global install command, then resumes the selected model launch automatically.
265
-
266
- ### Changed
267
- - **TUI readability overhaul across every screen**: the main table, Settings, Help, Smart Recommend, Feedback, and Changelog overlays now share a semantic high-contrast theme system instead of a patchwork of hardcoded colors.
268
- - **Global theme switching now works for real**: press `G` to cycle `auto → dark → light` live, and the Settings screen now exposes a visible `Global Theme` row for the same control.
269
- - **Launcher binary resolution**: direct tool launches now search PATH plus common user bin directories so a freshly installed CLI can be reused immediately in the same FCM session.
270
-
271
- ### Fixed
272
- - **Theme repaint bugs**: provider colors, tier colors, separators, badges, cursor highlights, and overlay backgrounds now update immediately when the theme changes instead of keeping stale import-time colors.
273
-
274
- ## 0.3.17
275
-
276
- ### Added
277
- - **Auto Light/Dark Theme**: Implemented automatic detection of the user's terminal theme (dark or light) so that the TUI is always readable. Added semantic color tokens, and users can override the theme as `dark`, `light`, or `auto` via the Settings interface.
278
-
279
- ## 0.3.16
280
-
281
- ### Added
282
- - **iFlow free coding models**: Added the iFlow provider to the README and TUI, supporting `deepseek-v3`, `mini-max-m2.5`, etc.
283
-
284
- ## 0.3.15
285
-
286
- ### Added
287
- - **GLM-4.7-Flash and GLM-4.5-Flash models**: Added ZAI's free coding models GLM-4.7-Flash and GLM-4.5-Flash to the ZAI provider. Both models are rated S tier with 59.2% SWE-bench scores and are completely free with unlimited API access.
288
-
289
- ### Changed
290
- - Added vertical column separators (gentle dark orange) for clearer column separation and removed the horizontal separator line in the main TUI.
291
-
292
- ## 0.3.14
293
-
294
- ### Changed
295
- - **Massive TUI Controller Extraction:** Extracted the main UI event loop and state machine out of `bin/free-coding-models.js` into a dedicated `src/app.js` controller. This cuts the main executable size drastically and makes the TUI architecture more modular and testable.
296
- - **Robust Error Boundaries:** Wrapped all critical asynchronous operations, keypress handlers, UI render timers, and polling cycles with comprehensive `try/catch` blocks. Instead of the TUI crashing and destroying the terminal scrollback on unexpected errors, it will now gracefully exit the alternate screen buffer, print a formatted stack trace, and point users to the GitHub issue tracker and feedback form.
297
- - **Global Crash Resiliency:** Added `uncaughtException` and `unhandledRejection` listeners at the entry point to guarantee terminal restoration even if a library fails catastrophically.
298
-
299
- ## 0.3.13
300
-
301
- ### Fixed
302
- - **Small Width Warnings toggle actually works again**: the Settings row now shows `Small Width Warnings` with clear enabled/disabled status, the startup overlay reacts immediately to the toggle, and the narrow-terminal warning now auto-hides after 2 seconds instead of 4.
303
-
304
- ## 0.3.12
305
-
306
- > **Proxy / bridge update:** the current legacy proxy stack is now officially discontinued while we rebuild that whole layer from zero. This cleanup is intentional: Claude Code support, a smarter router, and a much more reliable external-tools bridge are being reworked as a separate, cleaner system and will come back in a future release. In the meantime, FCM has been cleaned up and narrowed to the stable direct-launch surface so the app stays solid for day-to-day usage.
307
-
308
- ### Added
309
- - **Legacy proxy cleanup action**: Settings now includes a one-shot cleanup that removes discontinued proxy leftovers from older installs and explains that a more stable replacement is in progress.
310
-
311
- ### Changed
312
- - **Stable direct-launch surface**: The app now documents and exposes only the supported direct-provider launcher workflow while the old bridge is rebuilt.
313
- - **README reset**: Rewrote the documentation to match the real product surface, current tools, and current test commands.
314
- - **Footer transparency**: The main TUI now shows an explicit magenta notice that the old proxy is disabled while the replacement bridge is being rebuilt.
315
-
316
- ### Fixed
317
- - **Selected model now really becomes the launched tool default**: external tool launch prep now writes the chosen model into each tool config before spawn, and OpenClaw no longer hardcodes `nvidia/*` when another provider was selected.
318
-
319
- ### Removed
320
- - **Global proxy stack**: Deleted the old proxy runtime, daemon flow, request-log flow, and related orphaned helpers/tests.
321
- - **Hidden launcher bridges**: Claude Code, Codex, and Gemini are no longer exposed in the app while their integrations are being rewritten.
322
-
323
- ## 0.3.11
324
-
325
- ### Fixed
326
- - Added early 404 response when a requested model has no registered accounts, ensuring clear error handling.
327
-
328
- ### Removed
329
- - **Profile system**: Entire profile system removed to ensure API keys persist permanently across all sessions. No more profile switching causing API key loss.
330
-
331
- ### Added
332
- - **`--proxy` foreground mode**: New `--proxy` flag starts FCM Proxy V2 in the current terminal with a live dashboard showing status, accounts, provider breakdown, and real-time request log. No daemon install needed — works from dev checkout too.
333
-
334
- ### Fixed
335
- - **Claude Code proxy auth**: Proxy now accepts `x-api-key` header (used by Anthropic SDK / Claude Code) in addition to `Authorization: Bearer`
336
- - **Claude model fallback**: When `anthropicRouting` is all null, Claude model names now fall back to the first available account instead of returning "Model not found"
337
- - **Proxy sync for Claude Code**: Added `claude-code` to `PROXY_SYNCABLE_TOOLS` so the env file is properly written/updated by proxy sync
338
- - **Correct env var name**: Claude Code env file now exports `ANTHROPIC_API_KEY` (SDK standard) instead of `ANTHROPIC_AUTH_TOKEN`
339
- - **Auto-source shell profile**: Claude Code env file is now automatically sourced in `.zshrc` / `.bashrc` / `.bash_profile`
340
- - **Removed deleted profile functions from tests**: Cleaned up test imports after profile system removal from config.js
341
-
342
- ---
343
-
344
- ## 0.3.9
345
-
346
- ### Improved
347
- - **Enhanced `--premium` flag**: Now applies strict elite-only constraints. Shows only **S/S+** tier models with perfect health (**UP**) and a good verdict (**Perfect**, **Normal**, or **Slow**). Models with 429 errors, auth failures, or poor performance are automatically hidden.
348
- - **Accurate Token Usage Tracking**: The "Used" column now uses the persistent `token-stats.json` file as the source of truth, providing accurate historical totals instead of only the most recent logs.
349
- - **Enhanced Log Transparency**: The request log page now always shows the requested model and the actual upstream model (e.g., `llama-3.1-405b → meta/llama-3.1-405b-instruct`) whenever they differ.
350
- - **Pretty Provider Labels**: The request log page now uses human-readable provider labels (e.g., "NVIDIA NIM", "SambaNova") instead of raw internal keys.
351
- - **Fixed Tier Filtering Family Logic**: Updated `--tier S` behavior to correctly include both **S** and **S+** models (matching documentation).
352
-
353
- ---
354
-
355
- ## 0.3.6
356
-
357
- ### Added
358
- - **AI `/testfcm` workflow**: Added a repo-local PTY runner, workflow doc, slash-command prompts, and artifact/report directories so an agent can drive the real TUI, launch a tool, send `hi`, and write a Markdown bug report with evidence.
359
- - **Mock tool verification path**: Added a tiny fake `crush` binary plus `test:fcm:mock` so maintainers can validate the TUI → launcher → prompt plumbing even when a real coding tool is not installed locally.
360
-
361
- ### Fixed
362
- - **`--json` startup crash**: JSON mode now reuses the same provider-aware ping function as the TUI without crashing on `pingModel is not a function`.
363
- - **Managed endpoint installs no longer resurrect stale disk entries**: install/refresh saves now replace the tracked `endpointInstalls` snapshot so old provider-tool records from another config state do not leak back into the current catalog set.
364
- - **Favorites persistence is now much harder to break**: favorite toggles now reload the latest disk config before saving, keep the active profile snapshot in sync, and use atomic config writes so pinned rows no longer disappear after unrelated saves or updates.
365
- - **API key saves no longer clobber the rest of the config**: editing one provider now persists only that provider against the latest on-disk snapshot, preserves rotated extra keys, and stops stale config writes from wiping other saved keys.
366
- - **Configured Only no longer hides favorites**: starred rows now stay visible and pinned at the top even when the provider has no currently configured key.
367
-
368
- ## 0.3.5
369
-
370
- ### Fixed
371
- - **Claude Code beta-route compatibility**: FCM Proxy V2 now matches routes on the URL pathname, so Anthropic requests like `/v1/messages?beta=true` and `/v1/messages/count_tokens?beta=true` resolve correctly instead of failing with a fake “selected model may not exist” error.
372
- - **Claude proxy parity with `free-claude-code`**: The Claude integration was revalidated against the real `claude` binary, and the proxy-side Claude alias mapping now reaches the upstream provider again in the exact `free-claude-code` style flow.
373
-
374
- ## 0.3.4
375
-
376
- ### Added
377
- - **Proxy root landing JSON**: `GET /` on FCM Proxy V2 now returns a small unauthenticated status payload, so browser checks no longer fail with `{"error":"Unauthorized"}`.
378
- - **`daemon stop` CLI command**: The public CLI now supports `free-coding-models daemon stop`, matching the existing daemon manager capability and the documented workflow.
379
-
380
- ### Fixed
381
- - **README/UI parity restored**: The docs now match the current product surface, including `160` models, the `Used` token-history column, and the current launcher/proxy behavior.
382
- - **Malformed config sections are normalized on load**: Invalid `apiKeys`, `providers`, or `settings` values are now coerced back to safe empty objects instead of leaking broken runtime shapes into the app.
383
-
384
- ## 0.3.3
385
-
386
- ### Fixed
387
- - **Claude Code now uses the real `free-claude-code` proxy contract**: FCM stopped injecting proxy slugs into `claude --model` / `ANTHROPIC_MODEL` and now launches Claude Code with only `ANTHROPIC_BASE_URL` + `ANTHROPIC_AUTH_TOKEN`.
388
- - **Claude routing is now proxy-side `MODEL` / `MODEL_*` mapping**: The selected FCM model is persisted into the proxy's Anthropic routing config and hot-reloaded by the daemon, so fake Claude model ids resolve to the chosen free backend exactly like `free-claude-code`.
389
- - **Claude launch now forces a real Claude alias**: FCM starts Claude Code with `--model sonnet`, which overrides stale broken local selections like `gpt-oss-120b` that Claude rejects before the proxy is even contacted.
390
- - **Claude proxy sync leftovers were removed**: Claude Code is no longer treated as a persisted proxy-sync target, avoiding stale `ANTHROPIC_MODEL=<fcm-slug>` env files that broke the integration.
391
-
392
- ### Added
393
- - **Terminal width warning progress bar and toggle**: Added visual progress bar to the terminal width warning overlay and a Settings toggle “Disable Widths Warning” to permanently suppress it.
394
- - **Config setting `disableWidthsWarning`**: New boolean setting stored in profile and global config, default false.
395
-
396
- ## 0.3.2
397
-
398
- ### Fixed
399
- - **Claude Code model-family routing now mirrors `free-claude-code`**: The proxy remaps Claude's internal model ids like `claude-3-5-sonnet-*`, `claude-3-haiku-*`, `claude-3-opus-*`, `sonnet`, `haiku`, and `default` back to the selected FCM proxy model instead of rejecting them as missing.
400
- - **Claude Code helper/background requests stay on the selected model**: Launches now pin the Anthropic helper model env vars and encode the selected proxy model inside `ANTHROPIC_AUTH_TOKEN`, so Claude Code has a stable fallback even when it emits internal aliases.
401
-
402
- ## 0.3.1
403
-
404
- ### Added
405
- - **CLI `--help` output**: `free-coding-models --help` now prints the full launcher, analysis, config, and daemon command matrix in a non-interactive format.
406
-
407
- ### Fixed
408
- - **Outdated-version footer alert**: The main TUI now shows a full-width red footer line with manual `npm install -g free-coding-models@latest` recovery instructions, but only when a newer npm version is actually known.
409
- - **Claude Code proxy auth conflict**: Proxy launches now sanitize inherited env vars and use only `ANTHROPIC_AUTH_TOKEN` + `ANTHROPIC_BASE_URL`, matching the `free-claude-code` contract instead of mixing Anthropic auth modes.
410
- - **Codex CLI proxy routing**: Codex launches now force an explicit custom provider config and the proxy now supports `POST /v1/responses`, so `codex-cli 0.114.0` no longer depends on the broken built-in OAuth/base-url path.
411
- - **Anthropic token counting**: Added `POST /v1/messages/count_tokens` with a fast local estimate so Claude-compatible clients keep their budgeting flow through FCM Proxy V2.
412
- - **Gemini proxy failure mode**: Gemini launch now preflights the installed CLI/config, blocks incompatible builds like `0.33.0`, and surfaces `~/.gemini/settings.json` schema errors instead of pretending proxy mode works.
413
-
414
- ### Changed
415
- - **Proxy auto-sync now follows the current tool**: The proxy overlay no longer asks for a separate active tool; cleanup and auto-sync now target the current `Z` mode whenever that tool supports persisted proxy config.
416
- - **Install Endpoints (`Y`) is narrower on purpose**: `Claude Code`, `Codex`, and `Gemini` were removed from the install-target menu so the flow only lists tools with a stable persisted-config contract.
417
- - **Proxy model listing is more Codex-friendly**: `GET /v1/models` now returns both the usual OpenAI `data` array and a `models` array with `slug` fields for clients that expect a richer catalog shape.
418
- - **Launcher diagnostics now mention the beta state clearly**: Proxy-backed external tools now remind users that the integration is still stabilizing when a launch is blocked.
419
-
420
- ## 0.3.0
421
-
422
- ### Added
423
- - **Always-on background proxy service**: FCM Proxy V2 can run as a persistent background service via `launchd` (macOS) or `systemd` (Linux). All tools get free model access 24/7 — no need to keep the TUI open.
424
- - **Anthropic wire format translation**: Native bidirectional translation between Anthropic Messages API (`POST /v1/messages`) and OpenAI Chat Completions. Claude Code works natively through FCM Proxy V2.
425
- - **Dedicated FCM Proxy V2 overlay**: New full-page overlay (from Settings → "FCM Proxy V2 settings →" or `J` key) with proxy config, service status, restart, stop, force-kill, and log viewer.
426
- - **`J` key — FCM Proxy V2 shortcut**: Opens the proxy settings directly from the main view. Footer shows a green `📡 FCM Proxy V2 On` badge when active, red `📡 FCM Proxy V2 Off` when disabled.
427
- - **CLI daemon subcommand**: `free-coding-models daemon [status|install|uninstall|restart|stop|logs]` for headless service control.
428
- - **Stable proxy identity**: Persistent token and preferred port (`18045`) survive daemon restarts — env files and tool configs remain valid across reboots.
429
- - **Health endpoint**: `GET /v1/health` returns uptime, version, and account/model counts for liveness probes.
430
- - **`GET /v1/stats` endpoint**: Authenticated endpoint returning per-account health, token stats, totals, and proxy uptime for monitoring and debugging.
431
- - **Hot-reload**: FCM Proxy V2 watches `~/.free-coding-models.json` and reloads proxy topology automatically when config changes.
432
- - **Version mismatch detection**: The overlay warns when the running service version differs from the installed FCM version.
433
- - **Dev environment guard**: `installDaemon()` is blocked when running from a git checkout to prevent hardcoding local repo paths in OS service files.
434
- - **Generalized proxy sync module** (`src/proxy-sync.js`): Single-endpoint proxy config sync for 12 tools (OpenCode, OpenClaw, Crush, Goose, Pi, Aider, Amp, Qwen, Claude Code, Codex, OpenHands). Writes one `fcm-proxy` provider with all models, cleans up old per-provider `fcm-*` vestiges.
435
- - **Retry backoff with jitter**: Progressive delays between retries (0ms, 300ms, 800ms + random jitter) to avoid re-hitting the same rate-limit window on 429s.
436
- - **Automatic account cooldown on consecutive failures**: When an account accumulates 3+ consecutive non-429 failures, it enters graduated cooldown (30s → 60s → 120s). Proxy routes around failing accounts automatically. Resets on success.
437
-
438
- ### Changed
439
- - **Rebranded to FCM Proxy V2**: All user-facing references to "daemon", "FCM Proxy", and "Proxy & Daemon" renamed to "FCM Proxy V2" across CLI messages, TUI overlays, endpoint installer, and service descriptions.
440
- - **Proxy overlay generalized for all tools**: "Persist proxy in OpenCode" → "Auto-sync proxy to {tool}", "Clean OpenCode proxy config" → "Clean {tool} proxy config". New "Active tool" selector row cycles through all 12 proxy-syncable tools.
441
- - **Feedback overlay redesigned**: Renamed "Report bug" to "Feedback, bugs & requests", input is now left-aligned with a visible cursor, framed by horizontal separator lines. `I` key now covers all feedback types.
442
- - **Proxy settings moved to dedicated overlay**: The 5 proxy rows in Settings are replaced by a single entry that opens a full-page manager.
443
- - **Proxy topology extracted to shared module**: `src/proxy-topology.js` is now used by both TUI and daemon, eliminating code duplication.
444
- - **TUI delegates to background service**: `ensureProxyRunning()` checks for a running service first and reuses its port/token instead of starting an in-process proxy.
445
- - **Endpoint installer supports proxy mode**: When installing endpoints (Y key) with "FCM Proxy V2" connection mode, env files point to the service's stable token/port.
446
- - **Claude Code / Codex / Gemini require proxy**: These tools now refuse to launch without FCM Proxy V2 enabled, showing clear instructions to enable it. When proxy is on, they route through it automatically.
447
- - **Goose launcher rewritten**: Now writes proper custom provider JSON + updates `config.yaml` with `GOOSE_PROVIDER`/`GOOSE_MODEL` for guaranteed auto-selection (replaces obsolete `OPENAI_HOST`/`OPENAI_MODEL` env vars).
448
- - **Crush launcher improved**: Removed `disable_default_providers` flag, sets both `models.large` and `models.small` defaults for reliable auto-selection.
449
- - **Pi launcher improved**: Now passes `--provider` and `--model` CLI flags for guaranteed model pre-selection.
450
-
451
- ### Fixed
452
- - **Terminal width warning behavior**: Warning now shows max 2 times per session with emojis and double spacing.
453
- - **Body size limit** (security): `readBody()` now enforces a 10 MB limit. Oversized payloads receive 413.
454
- - **Stack trace leak prevention** (security): Error responses no longer include `err.message`.
455
- - **SSE buffer overflow guard** (security): Anthropic SSE transformer limits buffer to 1 MB.
456
- - **`new URL()` crash protection**: Malformed upstream URLs caught instead of crashing.
457
- - **`execSync` timeout safety**: All `execSync` calls in daemon-manager use a 15-second timeout via `execSyncSafe()`.
458
- - **Daemon startup crash protection**: `loadConfig()`, `buildMergedModelsForDaemon()`, and `buildProxyTopologyFromConfig()` wrapped in try/catch.
459
- - **`resolveCloudflareUrl()` null guard**: Empty provider URLs skipped instead of crashing.
460
- - **Health check buffer limit**: Responses capped at 64 KB.
461
- - **SSE line buffering**: SSE tap now correctly handles lines split across chunk boundaries.
462
- - **Empty choices fallback**: `translateOpenAIToAnthropic` returns fallback content block when OpenAI response has empty choices.
463
- - **Tool calls streaming index tracking**: Proper `nextBlockIndex`/`currentBlockIndex` counters for correct indexing across multiple tool calls.
464
- - **Pipe error propagation**: Error handlers on both sides of SSE pipes to prevent uncaught errors on mid-stream disconnects.
465
- - **Input validation**: `translateAnthropicToOpenAI` guards against null/undefined/non-object input.
466
- - **Hot-reload race condition**: Config watcher uses `reloadInProgress` flag to prevent concurrent reloads.
467
- - **Fake response stubs**: Added `destroy()`, `removeListener()`, and `socket: null` for better compatibility.
468
- - **API key trimming**: Whitespace-trimmed and empty keys filtered out in topology builder.
469
- - **`writeFileSync` error messages**: Plist and systemd service file write failures now throw clear error messages.
470
-
471
- ---
472
-
473
- ## 0.2.17
474
-
475
- ### Added
476
- - **All coding tools re-enabled in Z-cycle**: Aider, Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenHands, and Amp are now back in the public tool mode cycle alongside OpenCode, OpenClaw, Crush, Goose, and Pi — 13 tools total.
477
- - **All coding tools available in Install Endpoints (Y key)**: The endpoint installer now supports all 13 tools as install targets, not just the original 5. Each tool gets its proper config format (JSON, YAML, or env file).
478
- - **Connection mode choice in Install flow**: When installing endpoints (Y key), users now choose between **Direct Provider** (pure API connection) or **FCM Proxy** (local proxy with key rotation and usage tracking) — new Step 3 in the 5-step flow.
479
- - **Install support for new tools**: Pi (models.json + settings.json), Aider (.aider.conf.yml), Amp (settings.json), Gemini (settings.json), Qwen (modelProviders config), Claude Code/Codex/OpenHands (sourceable env files at ~/.fcm-*-env).
480
-
481
- ### Changed
482
- - **Install Endpoints flow is now 5 steps**: Provider → Tool → Connection Mode → Scope → Models (was 4 steps without connection mode choice).
483
- - **Tool labels in install overlay use metadata**: Tool names and emojis in the Y overlay now come from `tool-metadata.js` instead of hard-coded ternary chains — easier to maintain and always in sync.
484
- - **Help overlay updated**: Z-cycle hint and CLI flag examples now list all 13 tools.
485
-
486
- ---
487
-
488
- ## 0.2.16
489
-
490
- ### Fixed
491
- - **Changelog index viewport scrolling**: Cursor in changelog version list (N key) now scrolls the viewport to follow selection — previously scrolling past the last visible row would move the cursor off-screen into empty space.
492
-
493
- ### Added
494
- - **Changelog version summaries**: Each version in the changelog index now shows a short summary (first change title, ~15 words) after the change count, displayed in dim for readability.
495
-
496
- ---
497
-
498
- ## 0.2.15
499
-
500
- ### Changed
501
- - **Changelog scrolling experience**: Circular wrap-around scrolling in changelog details (N key) — up at the top now wraps to the bottom, down at the bottom wraps to the top. PageUp/PageDown also wrap for seamless infinite browsing, just like the main TUI list navigation. Home/End still jump to absolute first/last positions for quick access.
502
-
503
- ---
504
-
505
- ## 0.2.14
506
-
507
- ### Fixed
508
- - **Changelog scrolling viewport**: Scrolling in changelog details (N key) now respects viewport boundaries — content no longer scrolls beyond visible area. Down/PageDown/End keys now properly clamp to max scroll offset so you can view all content without it disappearing off screen.
509
-
510
- ---
511
-
512
- ## 0.2.13
513
-
514
- ### Added
515
- - **Persist UI view settings**: Tier filter (T key), provider filter (D key), and sort order now persist across session restarts — settings are saved to `~/.free-coding-models.json` under `config.settings` and automatically restored on next startup. Settings also mirror into active profiles so profile switching captures live view preferences.
516
- - When T cycles tier: S+ tier is now remembered for next session
517
- - When D cycles provider: Filtered provider is now remembered
518
- - When sort keys (R/O/M/L/A/S/C/H/V/B/U) change order: Sort column and direction are now remembered
519
- - Profile loading has priority over global `config.settings` so saved profiles override global defaults
520
- - **Reset view settings (Shift+R)**: New keyboard shortcut to instantly reset tier filter, provider filter, and sort order to defaults (All tier, no provider filter, avg sort ascending). Also clears persisted settings from `config.settings` so next restart returns to factory defaults.
521
- - Useful when you've customized your view but want a fresh start
522
- - Does not affect favorites, API keys, or other settings — only view state
523
-
524
- ### Changed
525
- - **Help overlay (K key)**: Updated to document new Shift+R keybinding for resetting view settings
526
-
527
- ---
528
-
529
- ## 0.2.12
530
-
531
- ### Added
532
- - **Auto-select models for all external tools**: All 10 supported tools (Aider, Crush, Goose, Claude Code, Codex, Gemini, Qwen, OpenHands, Amp, Pi) now automatically configure and pre-select the chosen model on launch — no manual model selection needed after pressing Enter.
533
- - **Changelog loader utility**: New `src/changelog-loader.js` module parses CHANGELOG.md for future TUI integration to display changes directly in the app instead of opening a browser.
534
-
535
- ### Fixed
536
- - **Infinite update loop on startup**: Disabled forced auto-update that caused the app to detect the same update repeatedly after restarting. The app now checks for updates in the background without forcing installation.
537
- - **Removed disruptive browser window**: The auto-update process no longer opens a browser window to show the changelog — it now shows update information in the terminal only.
538
- - **Update failure tracking**: If update checks fail 3+ times, the app displays a prominent red footer warning: `⚠ OUTDATED version, please update` with manual update instructions instead of crashing.
539
-
540
- ### Changed
541
- - **OpenHands integration improved**: Now sets `LLM_MODEL` and `LLM_API_KEY` environment variables for proper model pre-selection on launch.
542
- - **Amp integration improved**: Now writes `amp.model` to config file with the selected model ID.
543
-
544
- ---
545
-
546
- ## 0.2.11
547
-
548
- ### Added
549
- - **Pi Coding Agent support**: Enabled Pi (pi.dev) as a launchable mode in the Z key cycle. Select a model and press Enter to auto-configure Pi's model config and settings, then spawn the PI coding agent CLI with the chosen model pre-selected as the default.
550
-
551
- ---
552
-
553
- ## 0.2.10
554
-
555
- ### Changed
556
- - **Discord invite link**: Updated to permanent non-expiring link `https://discord.gg/ZTNFHvvCkU` in README and TUI footer
557
- - **NVIDIA NIM**: Added MiniMax M2.5 (S+ tier) to model list
558
-
559
- ---
560
-
561
- ## 0.2.9
562
-
563
- ### Fixed
564
- - **Discord link**: Updated expired invite URL to `https://discord.gg/f2AjwV2AN` in README and TUI footer
565
-
566
- ### Added
567
- - **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
568
- - **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
569
-
570
- ---
571
-
572
- ## 0.2.8
573
-
574
- ### Updated
575
-
576
- - 📊 **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.
577
- - 📖 **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.
578
- - 🛠️ **No functional code changes** – Metadata updates only; all tests continue to pass.
579
-
580
- ### Added
581
-
582
- - 📊 **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'`
583
-
584
- - 💾 **Added persistent ping cache** - Cache ping results for 5 minutes to speed up subsequent runs:
585
- - Cache stored in `~/.free-coding-models.cache.json`
586
- - Automatic cache refresh on startup if stale
587
- - Saves API rate limits and reduces wait time
588
- - Cache is saved on exit for next run
589
-
590
- - 🔐 **Added config file security check with auto-fix** - Warns if `~/.free-coding-models.json` has insecure permissions:
591
- - Checks file permissions on startup
592
- - Warns if file is readable by others (security risk)
593
- - Offers one-click auto-fix with `chmod 600`
594
- - Shows manual fix command if auto-fix fails or is declined
595
-
596
- - 🎨 **Added provider colors to logs and settings** - Provider names are now colored the same way as in the main table:
597
- - Settings overlay (P) shows colored provider names
598
- - Fiable mode output uses colored provider names
599
- - Tool launcher messages use colored provider names
600
- - Request log overlay (X) shows colored provider names
601
- - Consistent visual experience across all UI elements
602
-
603
- ### Changed
604
-
605
- - 📝 **Increased default log limit from 200 to 500 entries** - Request log overlay now shows up to 500 entries by default (previously 200)
606
- - 🔀 **Added toggle for unlimited logs** - Press `A` in request log overlay to toggle between showing 500 entries or ALL logs
607
- - ❌ **Enhanced visual failure indication in logs** - Failed requests with zero tokens now have:
608
- - Dark red background (`rgb(40, 0, 0)`) on the entire row
609
- - Model name in red
610
- - Token column shows red cross emoji (✗) instead of token count
611
- - Quick visual identification of errors vs successful requests
612
- - 📝 **Updated documentation** - Added `--json` flag to CLI flags table in README.md with usage examples
613
-
614
- - 🔌 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.
615
- - 🎨 **Added consistent branding header to all overlays** - Each overlay (Settings, Help, Log, Install Endpoints, Recommend, Feature Request, Bug Report) now displays:
616
- - Free-coding-models logo with rocket emoji (🚀)
617
- - Version number display
618
- - Clean title on a separate line
619
- - Consistent visual styling across all screens
620
- - **Main table title now uses rocket emoji (🚀) and cyanBright color** for consistency with overlays
621
-
622
- ### Changed
623
-
624
- - 📝 **Updated documentation** - Added `--json` flag to CLI flags table in README.md with usage examples
625
-
626
- - 📊 **Improved ping progress visibility** - Moved ping completion counter from the W badge to the main status bar:
627
- - Now shows as `📦 49/59` next to model status counts (up/timeout/down)
628
- - More prominent placement makes it easier to see ping progress at a glance
629
- - W badge still shows interval, mode, and countdown to next ping
630
-
631
- - 🧹 **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
632
-
633
- - 🔽 **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.
634
-
635
- - 🎨 **Enhanced Request Log (X) with colors and visual indicators**:
636
- - **Latency gradient**: Green (<500ms) → Orange (<1000ms) → Yellow (<1500ms) → Red (≥1500ms) for quick performance assessment
637
- - **Token opacity**: Light green (low usage) → Medium green → Bright green (high usage, >30k tokens)
638
- - **Model coloring**: Matches status color for visual consistency
639
- - **Status colors** - Distinct colors for each HTTP code:
640
- - `200` ✅ → Bright green
641
- - `400` → Dark magenta (#8B008B)
642
- - `401` → Dark orchid (#9932CC)
643
- - `403` → Medium orchid (#BA55D3)
644
- - `404` → Dark red (crimson)
645
- - `413` → Tomato red (#FF6347)
646
- - `429` → Dark orange (#FFB90F)
647
- - `500` → Crimson (#DC143C)
648
- - `502` → Medium violet red (#C71585)
649
- - `503` → Medium purple (#9370DB)
650
- - `5xx` → Magenta (other 5xx errors)
651
- - `0` → Dim gray (timeout/unknown)
652
- - **Fixed token display bug**: Corrected chalk function calls that were showing JavaScript code instead of token counts
653
-
654
- - 💖 **Added "Buy me a coffee" link to footer**:
655
- - Added in main TUI footer next to Contributors link (buymeacoffee.com/vavanessadev)
656
- - Added in Settings overlay (P) footer with credits "Made with 💖 & ☕ by vava-nessa"
657
- - Warm orange color for the coffee link to match the cozy theme
658
-
659
- ### Fixed
660
-
661
- - 🖥️ **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:
662
- - Rate limits text is no longer truncated (full descriptions visible)
663
- - Diagnostic messages wrap using available terminal width
664
- - Separator lines extend to full terminal width
665
- - Better readability on wider terminals
666
-
667
- - 🔒 **Fixed profile loading to preserve API keys** - Loading a profile now MERGES apiKeys instead of replacing them:
668
- - Keys in the profile override existing keys (allows profile-specific overrides)
669
- - Keys NOT in the profile are preserved (prevents key loss when switching profiles)
670
- - Fixes bug where switching profiles would cause API keys disappear
671
- - Added test to verify merge behavior
672
-
673
- - 📝 **Updated OpenRouter rate limits information**:
674
- - README now includes detailed explanation of free tier quotas (50/day <$10 credits, 1000/day ≥$10)
675
- - Settings overlay displays accurate rate limit text
676
- - Added note about failed requests counting toward daily quota
677
-
678
- ---
679
-
680
- ## 0.2.5
681
-
682
- ### Fixed
683
-
684
- - 🔒 **Improved config save reliability** - API keys are now much safer from corruption and loss:
685
- - Automatic backups before each save (keeps last 5 versions in `~/.free-coding-models.backups/`)
686
- - Post-write verification confirms file was written correctly and data wasn't lost
687
- - Explicit error handling instead of silent failures
688
- - Auto-repair on startup if config is corrupted (restores from latest backup)
689
- - Console notifications when backup is used or config is repaired
690
-
691
- ---
692
-
693
- ## 0.2.4
694
-
695
- ### Fixed
696
-
697
- - 🔧 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.
698
-
699
- ---
700
-
701
- ## 0.2.3
702
-
703
- ### Fixed
704
-
705
- - 🔧 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.
706
-
707
- ---
708
-
709
- ## 0.2.2
710
-
711
- ### Added
712
-
713
- - 🔌 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.
714
-
715
- ### Changed
716
-
717
- - 🔄 Tracked endpoint installs are now refreshed automatically on future launches so managed tool catalogs stay aligned when provider model lists evolve.
718
-
719
- ### Fixed
720
-
721
- - 🔐 Clarified provider auth failures in the main table so configured keys rejected by a provider no longer appear as `NO KEY`.
722
- - 🔁 Hardened Settings key tests with multi-model retries plus detailed diagnostics under Setup Instructions when a provider probe fails.
723
- - 🏷️ Fixed Settings provider badges so configured keys show `Test` before the first probe, while providers without a key now show `Missing Key`.
724
- - 🤗 Clarified the Hugging Face setup hint in Settings to require a fine-grained token with `Make calls to Inference Providers`.
725
-
726
- ## 0.2.1
727
-
728
- ### Added
729
-
730
- - 🚨 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.
731
-
732
- ### Changed
733
-
734
- - 💾 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.
735
- - 📋 The request log overlay now highlights proxy fallback reroutes with a dedicated `SWITCHED ↻` route badge and shows `requested → actual` model transitions inline.
736
-
737
- ### Fixed
738
-
739
- - 🔀 Fixed the footer proxy status so an active proxy now renders as running instead of incorrectly showing `Proxy not configured`.
740
- - ⚙️ Fixed the footer proxy status so a proxy enabled in Settings now shows as configured even before the local proxy process is started.
741
- - 🧭 Fixed the main TUI footer so the outdated-version warning appears directly under the proxy status line where users can see it immediately.
742
- - 🧠 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.
743
-
744
- ## 0.2.0
745
-
746
- ### Added
747
-
748
- - 🧰 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).
749
- - 🧹 Added OpenCode proxy cleanup in Settings plus a `--clean-proxy` CLI command to remove persisted `fcm-proxy` config safely.
750
- - 🎨 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.
751
- - 📖 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.
752
-
753
- ### Changed
754
-
755
- - 🧭 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.
756
- - 🔀 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.
757
- - 🎛 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.
758
- - 📚 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.
759
- - 🛡️ **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.
760
- - 🎯 **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.
761
- - 🔧 **Crush launcher robustness** — Spawn call simplified to not pass `--model` argument; model selection now driven entirely through `crush.json` to avoid CLI parsing conflicts.
762
- - 📚 **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.
763
- - ✅ **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.
764
-
765
- ### Fixed
766
-
767
- - 🪫 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.
768
- - 🧭 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.
769
- - 🪪 **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.
770
- - 📖 **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.
771
- - 🎛 **Filter state persistence** — Tier and Provider filter badges in the footer now correctly calculate and display their active state across all state transitions.
772
-
773
- ---
774
-
775
- ## 0.1.89 (merged into 0.2.0)
776
-
777
- ### Added
778
-
779
- - 🎨 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.
780
- - 📖 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.
781
-
782
- ### Changed
783
-
784
- - 🛡️ **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.
785
- - 🎯 **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.
786
- - 🔧 **Crush launcher robustness** — Spawn call simplified to not pass `--model` argument; model selection now driven entirely through `crush.json` to avoid CLI parsing conflicts.
787
- - 📚 **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.
788
- - ✅ **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.
789
-
790
- ### Fixed
791
-
792
- - 🪪 **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.
793
- - 📖 **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.
794
- - 🎛 **Filter state persistence** — Tier and Provider filter badges in the footer now correctly calculate and display their active state across all state transitions.
795
-
796
- ---
797
-
798
- ## 0.1.88
799
-
800
- ### Added
801
-
802
- - 🧰 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.
803
- - 🧹 Added OpenCode proxy cleanup in Settings plus a `--clean-proxy` CLI command to remove persisted `fcm-proxy` config safely.
804
-
805
- ### Changed
806
-
807
- - 🧭 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.
808
- - 🔀 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.
809
- - 🎛 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.
810
- - 📚 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.
811
-
812
- ### Fixed
813
-
814
- - 🪫 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.
815
- - 🧭 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.
816
-
817
- ---
818
-
819
- ## 0.1.87
820
-
821
- ### Fixed
822
-
823
- - 🎨 Rebalanced `Perplexity`, `Hyperbolic`, and `Together AI` provider colors so they are more visually distinct from `NIM` and from each other in the TUI.
824
-
825
- ---
826
-
827
- ## 0.1.86
828
-
829
- ### Fixed
830
-
831
- - 🔑 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.
832
- - 📚 Refreshed provider catalogs with confirmed public updates for OpenRouter, SambaNova, and Cerebras so outdated model IDs are less likely to appear in the TUI.
833
- - 🧭 Settings key tests now show distinct `Rate limit` and `No model` states instead of collapsing every non-success into a generic failure badge.
834
- - 🎨 Reworked provider colors into a soft pastel rainbow palette so each provider is easier to distinguish across the TUI without aggressive saturation.
835
- - 🧼 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.
836
- - 🙈 Added an `E` shortcut to hide models from providers without configured API keys, with persistence across sessions and inside saved profiles.
837
- - 🖌 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.
838
- - 🌑 Made favorite rows darker for better contrast and changed Scaleway to a cooler blue so it no longer blends with OpenRouter.
839
- - 🚪 `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.
840
- - 🪟 Added a centered terminal-width warning instead of rendering a broken table when the shell is too narrow.
841
- - 📝 Updated the README to match the current model count, default filters, and latest TUI behavior.
842
-
843
- ---
844
-
845
- ## 0.1.85
846
-
847
- ### Added
848
-
849
- - 🌀 Added an inline spinner beside `Latest Ping` so each row shows when a fresh ping is still in flight without hiding the previous latency.
850
- - 🏎 Added ping mode badges next to `FCM` so the active cadence is always visible in the header.
851
-
852
- ### Fixed
853
-
854
- - 🔑 `Avg Ping` and latency-derived metrics now also use `401` responses, so rows without an API key still accumulate real latency samples.
855
- - 🎨 Unified footer shortcut colors so every hotkey uses the same visual treatment.
856
-
857
- ### Changed
858
-
859
- - ⏱ 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.
860
- - 🎛 `W` now cycles ping modes (`FAST` / `NORMAL` / `SLOW` / `FORCED`) instead of tweaking raw intervals.
861
- - 🧾 Updated the main footer, in-app help, README, and profile defaults to match the new ping mode system and token log wording.
862
-
863
- ---
864
-
865
- ## 0.1.84
866
-
867
- ### Added
868
-
869
- - ✅ 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.
870
- - 🌀 Added an inline spinner beside `Latest Ping` so each row shows when a fresh ping is still in flight without hiding the previous latency.
871
- - 🏎 Added ping mode badges in the header plus adaptive ping cadence states: `FAST`, `NORMAL`, `SLOW`, and `FORCED`.
872
-
873
- ### Fixed
874
-
875
- - 🎯 Aligned TUI header shortcut highlights with live bindings: `Up%` uses the correct shortcut color, and `G` now sorts the `UsaGe` column directly.
876
- - 🧭 Renamed the `Origin` column to `Provider`, switched the provider filter key from `N` to `D`, and updated the highlighted header shortcuts to `PrOviDer`.
877
- - 🟢 Fixed provider usage contamination by scoping quota snapshots to exact `provider + model`, so shared model IDs no longer leak usage percentages across providers.
878
- - 🟢 Show a green dot in `Usage` when quota telemetry is not applicable or not reliable for a provider instead of displaying misleading percentages.
879
- - 🔤 Shortened Alibaba Cloud (DashScope) to `Alibaba` in the main TUI table to avoid layout drift while keeping the full name in Settings.
880
- - 🩺 Expanded `Health` labels for common errors: `429 TRY LATER`, `410 GONE`, `404 NOT FOUND`, `500 ERROR`.
881
- - 🔑 `Avg Ping` and latency-derived metrics now also use `401` responses, so rows without an API key still accumulate real latency samples.
882
-
883
- ### Changed
884
-
885
- - 🧱 Refactored TUI overlays and key handling into `src/overlays.js` and `src/key-handler.js` to keep `bin/free-coding-models.js` lean.
886
- - 🔌 Extracted OpenClaw integration into `src/openclaw.js` and aligned OpenCode flow with shared helpers.
887
- - 🗂️ Moved tier/provider filter modes into shared runtime state for clearer ownership.
888
- - ✅ 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.
889
- - 🧹 Cleaned the footer hints by removing the duplicate `Ctrl+C Exit` entry while keeping the proxy status directly under the shortcut line.
890
- - 📚 Updated README and in-app help to match the new `Provider`, `Used`, `Usage`, and current hotkey behaviors.
891
- - ⏱ 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.
892
-
893
- ---
894
-
895
- ## 0.1.83
896
-
897
- ### Added
898
-
899
- - **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.
900
- - **Transparent ZAI Proxy** -- bridges ZAI's non-standard API format to OpenAI-compatible `/v1/` for OpenCode CLI mode.
901
- - **Quota & Usage Tracking** -- new `Usage` column in TUI shows remaining quota percentage for each model; persists across sessions via `token-stats.json`.
902
- - **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.
903
- - **Usage Sort (`Shift+G`)** -- new hotkey to sort models by remaining quota percentage, helping you pick models with the most bandwidth left.
904
- - **Ping Interval Increase (`=`)** -- reassigned interval increase to the `=` key to free up `X` for logs; `W` still decreases the interval.
905
- - **Model Catalogue Merging** -- groups identical models across different providers into a single "merged" view while retaining the ability to probe specific endpoints.
906
- - **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.
907
- - **Sticky Health-break** -- UI improvement that prevents the TUI from jumping when a model's status changes from UP to TIMEOUT/DOWN.
908
- - **Telemetry Opt-out** -- users can now explicitly disable anonymous telemetry in their config file (opt-in by default for improved bug tracking).
909
-
910
- ### Changed
911
-
912
- - **Masked API Keys in Settings** -- hides middle parts of API keys in the `P` menu to prevent accidental exposure during screen sharing.
913
- - **Enhanced tmux support** -- auto-discovery of available ports for OpenCode sub-agent panes when running in a tmux session.
914
- - **Hardened Test Suite** -- expanded to 13 suites and 62+ verified test cases covering proxy logic, usage reading, and hotkey behavior.
915
-
916
- ## 0.1.82
917
-
918
- ### Fixed
919
-
920
- - **Alibaba Cloud URL** -- updated from deprecated `dashscope.console.alibabacloud.com` to active `modelstudio.console.alibabacloud.com` (rebranded to Model Studio).
921
- - **SambaNova URL** -- updated from broken `sambanova.ai/developers` to active `cloud.sambanova.ai/apis` (SambaCloud portal).
922
- - **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.
923
-
924
- ---
925
-
926
- ## 0.1.81
927
-
928
- ### Added
929
-
930
- - **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.
931
- - **`formatCtxWindow` and `labelFromId` utility functions** -- extracted to `lib/utils.js` for testability; used by dynamic OpenRouter discovery to convert API data to display format.
932
- - **16 new unit tests** -- covering `formatCtxWindow`, `labelFromId`, and MODELS array mutation logic (147 total tests across 23 suites).
933
- - **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.
934
-
935
- ### Fixed
936
-
937
- - **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.
938
- - **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.
939
-
940
- ### Removed
941
-
942
- - **`checkNvidiaNimConfig()` function** -- replaced by auto-create pattern; dead code removed.
943
-
944
- ---
945
-
946
- ## 0.1.80
947
-
948
- ### Fixed
949
-
950
- - **Settings menu crash** -- fixed `ReferenceError: telemetryRowIdx is not defined` error when opening Settings (P key). Removed lingering reference to the deleted telemetry row index.
951
-
952
- ---
953
-
954
- ## 0.1.79
955
-
956
- ### Added
957
-
958
- - **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).
959
- - **Model count increased** -- now supporting 158 models across 20 providers (up from 150 models / 19 providers).
960
-
961
- ---
962
-
963
- ## 0.1.78
964
-
965
- ### Added
966
-
967
- - **Auto-update system** — removed manual update popup; now automatically installs updates and opens changelog in browser. Update proceeds immediately after opening changelog.
968
-
969
- ---
970
-
971
- ## 0.1.77
972
-
973
- ### Added
974
-
975
- - **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.
976
- - **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.
977
- - **Help documentation** — added I key entry in help overlay (K) and navigation hints.
978
-
979
- ### Changed
980
-
981
- - **Footer hints** — added `I Report bug` to line 2 of navigation hints for discoverability.
982
-
983
- ---
984
-
985
- ## 0.1.76
986
-
987
- ### Added
988
-
989
- - **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.
990
- - **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.
991
- - **Help documentation** — added J key entry in help overlay (K) and navigation hints.
992
-
993
- ### Changed
994
-
995
- - **Footer hints** — added `J Request feature` to line 2 of navigation hints for discoverability.
996
-
997
- ---
998
-
999
- ## 0.1.75
1000
-
1001
- ### Fixed
1002
-
1003
- - **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.
1004
- - **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.
1005
- - **Stray debug line** — removed accidental `lines.push('____________________')` left in the Smart Recommend section.
1006
-
1007
- ---
1008
-
1009
- ## 0.1.74
1010
-
1011
- ### Changed
1012
-
1013
- - **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.
1014
-
1015
- ## 0.1.73
1016
-
1017
- ### Fixed
1018
-
1019
- - **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.
1020
-
1021
- ---
1022
-
1023
- ## 0.1.72
1024
-
1025
- ### Changed
1026
-
1027
- - **TUI footer spacing** — added extra empty line before contributors line for better readability in terminals.
1028
-
1029
- ---
1030
-
1031
- ## 0.1.71
1032
-
1033
- ### Changed
1034
-
1035
- - **TUI footer contributors** — moved contributor names to their own line at the bottom for cleaner layout.
1036
-
1037
- ---
1038
-
1039
- ## 0.1.70
1040
-
1041
- ### Changed
1042
-
1043
- - **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.
1044
-
1045
- ---
1046
-
1047
- ## 0.1.69
1048
-
1049
- ### Added
1050
-
1051
- - **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.
1052
- - **TUI footer contributors** — added contributor names directly in footer line (vava-nessa • erwinh22 • whit3rabbit • skylaweber).
1053
-
1054
- ### Changed
1055
-
1056
- - **README updates** — updated model/provider counts to 150 models across 19 providers; updated provider count references throughout.
1057
-
1058
- ### Fixed
1059
-
1060
- - **JSDoc in lib/config.js** — fixed broken JSON structure in config example (removed duplicate lines, fixed array/object brackets).
1061
- - **CHANGELOG cleanup** — removed `[fork]` prefixes from 0.1.68 entries for cleaner presentation.
1062
-
1063
- ---
1064
-
1065
- ## 0.1.68
1066
-
1067
- ### Added
1068
-
1069
- - **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).
1070
- - **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.
1071
- - **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.
1072
- - **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.
1073
- - **`--recommend` CLI flag** — auto-opens the Smart Recommend overlay on startup.
1074
- - **`--profile <name>` CLI flag** — loads a saved profile at startup; errors if profile doesn't exist.
1075
- - **Scoring engine** (`lib/utils.js`) — `TASK_TYPES`, `PRIORITY_TYPES`, `CONTEXT_BUDGETS`, `parseCtxToK()`, `parseSweToNum()`, `scoreModelForTask()`, `getTopRecommendations()` for the recommendation algorithm.
1076
- - **Profile management** (`lib/config.js`) — `saveAsProfile()`, `loadProfile()`, `listProfiles()`, `deleteProfile()`, `getActiveProfileName()`, `setActiveProfile()`.
1077
- - 43 new unit tests (131 total) covering scoring constants, `scoreModelForTask`, `getTopRecommendations`, `--profile`/`--recommend` arg parsing, and config profile CRUD.
1078
-
1079
- ### Fixed
1080
-
1081
- - **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.
1082
- - **`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.
1083
- - **`--profile` arg parsing** -- the profile value (e.g. `work` in `--profile work`) was incorrectly captured as `apiKey`; fixed with `skipIndices` Set in `parseArgs()`.
1084
- - **`recommendScore` undefined** -- `sortResultsWithPinnedFavorites()` referenced `recommendScore` but it was never set on result objects; now set during `startRecommendAnalysis()`.
1085
-
1086
- ### Changed
1087
-
1088
- - **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).
1089
- - **Suppress MaxListeners warning** -- Set `NODE_NO_WARNINGS=1` in the OpenCode child process environment to suppress Node.js EventEmitter warnings.
1090
- - **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%).
1091
- - **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.
1092
- - **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.
1093
- - **Sort/pin order** — `sortResultsWithPinnedFavorites()` now pins recommended+favorite models first, then recommended-only, then favorite-only, then normal sorted models.
1094
- - **Animation loop priority** — Settings > Recommend > Help > Table.
1095
-
1096
- ---
1097
-
1098
- ## 0.1.68
1099
-
1100
- ### Added
1101
-
1102
- - **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).
1103
- - **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.
1104
-
1105
- ### Fixed
1106
-
1107
- - **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.
1108
- - **`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.
1109
-
1110
- ### Changed
1111
-
1112
- - **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).
1113
- - **Suppress MaxListeners warning** -- Set `NODE_NO_WARNINGS=1` in the OpenCode child process environment to suppress Node.js EventEmitter warnings.
1114
- - **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%).
1115
- - **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.
1116
- - **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.
1117
- - **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.
1118
- - **`--recommend` CLI flag** — auto-opens the Smart Recommend overlay on startup.
1119
- - **`--profile <name>` CLI flag** — loads a saved profile at startup; errors if profile doesn't exist.
1120
- - **Scoring engine** (`lib/utils.js`) — `TASK_TYPES`, `PRIORITY_TYPES`, `CONTEXT_BUDGETS`, `parseCtxToK()`, `parseSweToNum()`, `scoreModelForTask()`, `getTopRecommendations()` for the recommendation algorithm.
1121
- - **Profile management** (`lib/config.js`) — `saveAsProfile()`, `loadProfile()`, `listProfiles()`, `deleteProfile()`, `getActiveProfileName()`, `setActiveProfile()`.
1122
- - 43 new unit tests (131 total) covering scoring constants, `scoreModelForTask`, `getTopRecommendations`, `--profile`/`--recommend` arg parsing, and config profile CRUD.
1123
- - **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.
1124
- - **TUI footer contributors** — added contributor names directly in footer line (vava-nessa • erwinh22 • whit3rabbit • skylaweber).
1125
-
1126
- ### Changed
1127
-
1128
- - **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.
1129
- - **Sort/pin order** — `sortResultsWithPinnedFavorites()` now pins recommended+favorite models first, then recommended-only, then favorite-only, then normal sorted models.
1130
- - **Animation loop priority** — Settings > Recommend > Help > Table.
1131
-
1132
- ### Fixed
1133
-
1134
- - **`--profile` arg parsing** — the profile value (e.g. `work` in `--profile work`) was incorrectly captured as `apiKey`; fixed with `skipIndices` Set in `parseArgs()`.
1135
- - **`recommendScore` undefined** — `sortResultsWithPinnedFavorites()` referenced `recommendScore` but it was never set on result objects; now set during `startRecommendAnalysis()`.
1136
- - **JSDoc in lib/config.js** — fixed broken JSON structure in config example (duplicate lines, incorrect brackets).
1137
- - **CHANGELOG cleanup** — removed `[fork]` prefixes from entries for cleaner presentation.
1138
- - **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.
1139
- - **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.
1140
- - **`--recommend` CLI flag** — auto-opens the Smart Recommend overlay on startup.
1141
- - **`--profile <name>` CLI flag** — loads a saved profile at startup; errors if profile doesn't exist.
1142
- - **Scoring engine** (`lib/utils.js`) — `TASK_TYPES`, `PRIORITY_TYPES`, `CONTEXT_BUDGETS`, `parseCtxToK()`, `parseSweToNum()`, `scoreModelForTask()`, `getTopRecommendations()` for the recommendation algorithm.
1143
- - **Profile management** (`lib/config.js`) — `saveAsProfile()`, `loadProfile()`, `listProfiles()`, `deleteProfile()`, `getActiveProfileName()`, `setActiveProfile()`.
1144
- - 43 new unit tests (131 total) covering scoring constants, `scoreModelForTask`, `getTopRecommendations`, `--profile`/`--recommend` arg parsing, and config profile CRUD.
1145
-
1146
- ### Changed
1147
-
1148
- - **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.
1149
- - **Sort/pin order** — `sortResultsWithPinnedFavorites()` now pins recommended+favorite models first, then recommended-only, then favorite-only, then normal sorted models.
1150
- - **Animation loop priority** — Settings > Recommend > Help > Table.
1151
-
1152
- ### Fixed
1153
-
1154
- - **`--profile` arg parsing** — the profile value (e.g. `work` in `--profile work`) was incorrectly captured as `apiKey`; fixed with `skipIndices` Set in `parseArgs()`.
1155
- - **`recommendScore` undefined** — `sortResultsWithPinnedFavorites()` referenced `recommendScore` but it was never set on result objects; now set during `startRecommendAnalysis()`.
1156
-
1157
- ---
1158
-
1159
- ## 0.1.67
1160
-
1161
- ### Added
1162
-
1163
- - **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.
1164
- - **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).
1165
- - **p95 latency** (`getP95`) — 95th percentile latency from successful pings. Answers "95% of requests are faster than X ms."
1166
- - **Jitter** (`getJitter`) — standard deviation of latency. Low jitter = predictable, high jitter = erratic/spiky.
1167
- - **"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 🚀".
1168
- - **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.
1169
- - 24 new unit tests covering p95, jitter, stability score, Spiky verdict, and stability sorting.
1170
- - **README: TUI Columns reference table** — full 12-column table documenting every column (Rank, Tier, SWE%, Model, Origin, Latest, Avg, Health, Verdict, Stability, Context, Up%).
1171
- - **README: Stability Score section** — documents the formula, weights, color thresholds, and an example calculation.
1172
- - **README: Verdict values table** — lists all 7 verdict categories with their emoji, meaning, and criteria.
1173
-
1174
- ### Changed
1175
-
1176
- - **"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.
1177
- - **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.
1178
- - `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).
1179
- - `findBestModel()` now uses a 4-key sort: status → avg latency → stability score → uptime (was 3-key: status → avg → uptime).
1180
- - `sortResults()` supports new `'stability'` column.
1181
- - `VERDICT_ORDER` updated to include "Spiky" between "Slow" and "Very Slow".
1182
- - **README: keyboard shortcuts** updated to include `B` for Stability sort; "How it works" diagram updated.
1183
- - **Default ping interval → 3 seconds** (was 2s) for a calmer default pace; still adjustable with W/X keys.
1184
- - **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.
1185
- - **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.
1186
- - **Footer link colors** — Star on GitHub: yellow, Contributors: orange, Discord: light purple. Ctrl+C Exit moved to end of "Made with love" line.
1187
- - **Discord plain URL** — Shows `Discord → https://discord.gg/5MbTnDC3Md` so terminals without OSC 8 link support can still see the URL.
1188
- - **K Help styling** — Changed from green background badge to neon green text (`rgb(0,255,80)`) with no background.
1189
- - **Z Mode styling** — Red-orange color (`rgb(255,100,50)`) matching OpenClaw branding.
1190
- - **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.
1191
- - **README** — Updated all ping interval references from 2s to 3s; removed BETA warning line.
1192
-
1193
- ### Fixed
1194
-
1195
- - **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.
1196
- - **Verdict emojis moved to end of text** — emojis now appear after the word (e.g., `Perfect 🚀` instead of `🚀 Perfect`) for cleaner left-alignment.
1197
- - **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.
1198
-
1199
- ---
1200
-
1201
- ## 0.1.66
1202
-
1203
- ### Added
1204
-
1205
- - Added 4 new providers: SiliconFlow, Together AI, Cloudflare Workers AI, and Perplexity API.
1206
- - Added 23 provider models across these new integrations (OpenAI-compatible endpoints + settings onboarding metadata).
1207
- - Added Cloudflare-specific setup guidance in Settings, including explicit `CLOUDFLARE_ACCOUNT_ID` requirement.
1208
-
1209
- ### Changed
1210
-
1211
- - 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`).
1212
- - Extended OpenCode Desktop provider auto-configuration for SiliconFlow, Together AI, Cloudflare Workers AI, and Perplexity API.
1213
- - Updated README to reflect current provider/model totals (17 providers / 134 models) and expanded key setup + env variable documentation.
1214
- - Updated `P` (Settings) and `K` (Help) overlays with dedicated dark background panels (distinct from the main table) for clearer visual separation.
1215
-
1216
- ### Fixed
1217
-
1218
- - Fixed model list scrolling and favorite toggle UX regression introduced after `0.1.65` (cursor/scroll stability when unpinning favorites, last rows reachable).
1219
- - Fixed overlay usability on small terminals: `K` (Help) and `P` (Settings) now use viewport scrolling so all content and top rows remain reachable.
1220
- - 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.
1221
-
1222
- ---
1223
-
1224
- ## 0.1.65
1225
-
1226
- ### Added
1227
-
1228
- - Added persistent model favorites with `F` key toggle, star marker in Model column, dark-orange favorite highlighting, and pinned-at-top behavior.
1229
- - Added manual update maintenance flow in Settings (`P`): check npm updates on demand and install directly from the settings screen.
1230
- - Expanded `K` help overlay with complete keybindings (main TUI + settings) and CLI flags usage examples.
1231
-
1232
- ### Changed
1233
-
1234
- - Favorites now remain visible and pinned regardless of active sort or tier/origin filters.
1235
- - Extended config schema (`~/.free-coding-models.json`) with a persisted `favorites` array (`providerKey/modelId` entries).
1236
- - Updated README documentation for favorites, manual updates, settings shortcuts, and config structure.
1237
-
1238
- ---
1239
-
1240
- ## 0.1.64
1241
-
1242
- ### Added
1243
-
1244
- - Added 4 new free providers: Hugging Face Inference, Replicate, DeepInfra, and Fireworks AI (models, key handling, healthchecks, Settings integration).
1245
- - Added richer Settings (`P`) provider rows with inline rate-limit summary and live API key test status.
1246
-
1247
- ### Changed
1248
-
1249
- - OpenCode launch now detects `tmux` and auto-injects `--port` (`OPENCODE_PORT` if free, otherwise first available `4096-5095`) so sub-agent panes work reliably.
1250
- - Updated OpenRouter free model set to include `qwen/qwen3-coder:480b-free`, `mistralai/devstral-2-free`, and `mimo-v2-flash-free`.
1251
- - Added SambaNova `Llama3-Groq` coding-tuned entry.
1252
- - Updated setup/config docs and env var support for new providers (`HUGGINGFACE_API_KEY`/`HF_TOKEN`, `REPLICATE_API_TOKEN`, `DEEPINFRA_API_KEY`/`DEEPINFRA_TOKEN`).
1253
- - Replicate pings now use `/v1/predictions` request format; OpenCode launch for Replicate is guarded with a clear monitor-only message.
1254
- - Settings bottom panel now shows provider onboarding steps (signup URL + key creation/test flow) instead of model list details.
1255
- - Documented in `AGENTS.md` that top changelog entries must stay clean for direct reuse in GitHub Release notes.
1256
-
1257
- ### Fixed
1258
-
1259
- - Settings/onboarding disabled state now uses an explicit red cross (`❌`) instead of a gray square glyph for better terminal font compatibility.
1260
-
1261
- ---
1262
-
1263
- ## 0.1.63
1264
-
1265
- ### Changed
1266
-
1267
- - Replaced webhook telemetry with PostHog capture API (`/i/v0/e/`) and kept explicit consent + `--no-telemetry` opt-out.
1268
- - Added persistent anonymous telemetry identity in config (`telemetry.anonymousId`) for stable anonymous usage counts.
1269
- - Added telemetry consent screen UX: custom ASCII onboarding, explicit privacy messaging, and “Accept & Continue” default action.
1270
- - Added telemetry toggle in Settings (`P`) and documented env controls: `FREE_CODING_MODELS_TELEMETRY`, `FREE_CODING_MODELS_POSTHOG_KEY`, `FREE_CODING_MODELS_POSTHOG_HOST`.
1271
- - Added telemetry metadata fields: `app_version`, `system` (`macOS`/`Windows`/`Linux`), and `terminal` (Terminal.app/iTerm2/kitty/etc. with fallback).
1272
- - Added telemetry debug mode with `FREE_CODING_MODELS_TELEMETRY_DEBUG=1` (stderr traces for sent/skip/error states).
1273
- - Hardened telemetry safety behavior: analytics failures stay non-blocking and non-TTY runs no longer overwrite stored consent.
1274
- - Fixed consent renderer to avoid full-screen clear side effects and preserve header visibility across terminals.
1275
- - Updated TUI footer contributors link to point to the repository contributors graph.
1276
-
1277
- ---
1278
-
1279
- ## 0.1.61
1280
-
1281
- ### Changed — TUI Footer & UX
1282
-
1283
- - **"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
1284
- - **`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
1285
- - **`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
1286
-
1287
- ---
1288
-
1289
- ## 0.1.60
1290
-
1291
- ### Changed — TUI Footer
1292
-
1293
- - **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.
1294
-
1295
- ---
1296
-
1297
- ## 0.1.59
1298
-
1299
- ### Changed — TUI Footer
1300
-
1301
- - **`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
1302
-
1303
- ---
1304
-
1305
- ## 0.1.58
1306
-
1307
- ### Changed — TUI
1308
-
1309
- - **Timeout emoji updated**: replaced `⏱` with `⏳` everywhere in the TUI (ping timeout display)
1310
-
1311
- ---
1312
-
1313
- ## 0.1.57
1314
-
1315
- ### Changed — TUI Footer
1316
-
1317
- - **Discord link text shortened**: "Join our Discord" replaces the longer previous label — cleaner footer, same clickable OSC 8 hyperlink
1318
-
1319
- ---
1320
-
1321
- ## 0.1.56
1322
-
1323
- ### Changed — TUI Footer
1324
-
1325
- - **Footer cleaned up and restructured**: removed duplicate/messy lines left by the 0.1.54 agent; consolidated into two clean footer lines:
1326
- - Line 1: `Made with 💖 & ☕ by vava-nessa • ⭐ Star on GitHub` (clickable links)
1327
- - Line 2: `💬 Join our Discord • ⚠ BETA TUI — might crash or have problems`
1328
- - **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
1329
- - **Discord invite in TUI footer**: clickable OSC 8 hyperlink added directly in the footer (was only in README before)
1330
-
1331
- ---
1332
-
1333
- ## 0.1.55
1334
-
1335
- ### Changed — README & Documentation
1336
-
1337
- - **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
1338
- - **Discord header block reformatted**: replaced the join banner with a plain `💬 Let's talk about the project on Discord` link
1339
- - **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
1340
-
1341
- ---
1342
-
1343
- ## 0.1.54
1344
-
1345
- ### Added — Providers & Models
1346
-
1347
- **5 new providers** (9 total, 101 models):
1348
-
1349
- - **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-`
1350
- - **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-`
1351
- - **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`
1352
- - **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-`
1353
- - **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`
1354
-
1355
- **New models in existing providers:**
1356
-
1357
- - **Groq**: GPT OSS 120B (`openai/gpt-oss-120b`), GPT OSS 20B (`openai/gpt-oss-20b`), Qwen3 32B (`qwen/qwen3-32b`)
1358
- - **Cerebras**: GLM 4.6 (`glm-4.6`) from Z.ai — 10 req/min, 100 req/day
1359
- - **SambaNova**: DeepSeek V3.1 Terminus (`deepseek-ai/DeepSeek-V3.1-Terminus`, S tier 68.4%)
1360
-
1361
- ### Added — TUI Features
1362
-
1363
- - **`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.
1364
- - **`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.
1365
- - **`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.
1366
- - **`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.
1367
-
1368
- ### Changed — README & UI
1369
-
1370
- - Provider count badge updated: **4 → 9 providers**
1371
- - Model count badge updated: **67 → 101 models**
1372
- - Requirements section lists all 9 providers with their signup URLs
1373
- - Discord header block replaced with a plain `💬 Let's talk about the project on Discord` link
1374
- - 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`)
1375
- - Footer hint line updated: `T Tier • N Origin • … C` replaces old `N` in sort hint; `K Help` added
1376
-
1377
- ### Technical
1378
-
1379
- - `sources.js`: 5 new named exports; `sources` object extended to 9 entries; `@exports` JSDoc updated
1380
- - `lib/config.js`: `ENV_VARS` extended with `openrouter`, `codestral`, `hyperbolic`, `scaleway`, `googleai`; JSDoc config structure comment updated
1381
- - `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
1382
-
1383
- ---
1384
-
1385
- ## 0.1.53
1386
-
1387
- ### Added
1388
-
1389
- - **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-`
1390
- - **Cerebras**: Qwen3 235B (`qwen-3-235b-a22b`), GPT OSS 120B (`gpt-oss-120b`), Llama 3.1 8B (`llama3.1-8b`)
1391
- - **Groq**: Llama 3.1 8B (`llama-3.1-8b-instant`, 14 400 req/day)
1392
- - Full OpenCode + OpenCode Desktop integration for SambaNova (`@ai-sdk/openai-compatible` provider block injected automatically on model select)
1393
- - SambaNova added to first-run API key wizard and Settings screen (`P` key)
1394
-
1395
- ---
1396
-
1397
- ## 0.1.52
1398
-
1399
- ### Fixed
1400
- - **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`
1401
- - **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
1402
-
1403
- ### Improved
1404
- - **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
1405
-
1406
- ---
1407
-
1408
- ## 0.1.51
1409
-
1410
- ### Fixed
1411
- - **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`
1412
-
1413
- ## 0.1.50
1414
-
1415
- ### Fixed
1416
- - **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`
1417
- - **`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
1418
-
1419
- ---
1420
-
1421
- ## 0.1.49
1422
-
1423
- ### Fixed
1424
- - **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)
1425
- - **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
1426
-
1427
- ### Changed
1428
- - 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
1429
-
1430
- ---
1431
-
1432
- ## 0.1.48
1433
-
1434
- ### Fixed
1435
- - **`--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)
1436
- - **`--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`
1437
- - **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)
1438
-
1439
- ### Added
1440
- - Test verifying `--tier` value does not leak into `apiKey` (63 tests total)
1441
-
1442
- ---
1443
-
1444
- ## 0.1.47
1445
-
1446
- ### Fixed
1447
- - **`--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)
1448
- - **`--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`
1449
- - **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)
1450
-
1451
- ### Added
1452
- - Test verifying `--tier` value does not leak into `apiKey` (63 tests total)
1453
-
1454
- ---
1455
-
1456
- ## 0.1.46
1457
-
1458
- ### Fixed
1459
- - **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
1460
-
1461
- ### Changed
1462
- - **Discord link**: Updated invite URL to `https://discord.gg/5MbTnDC3Md` everywhere (README, TUI footer)
1463
-
1464
- ---
1465
-
1466
- ## 0.1.45
1467
-
1468
- ### Fixed
1469
- - **Discord notification**: Fixed GitHub Actions workflow crash (secrets context not allowed in step `if` conditions — now handled in the Node script directly)
1470
-
1471
- ---
1472
-
1473
- ## 0.1.44
1474
-
1475
- ### Added
1476
- - **Multi-provider support** — Groq (6 models) and Cerebras (3 models) added alongside NVIDIA NIM, for 53 total models
1477
- - **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
1478
- - **Settings screen (`P` key)** — New TUI overlay to manage API keys per provider, toggle providers on/off, and test keys with a live ping
1479
- - **`lib/config.js`** — New JSON config system (`~/.free-coding-models.json`) replacing the old plain-text file
1480
- - Auto-migrates old `~/.free-coding-models` (plain nvidia key) on first run
1481
- - Stores keys per provider + per-provider enabled/disabled state
1482
- - `NVIDIA_API_KEY`, `GROQ_API_KEY`, `CEREBRAS_API_KEY` env vars override config
1483
- - **Per-provider ping URLs** — `ping()` now accepts explicit endpoint URL; each provider has its own API endpoint in `sources.js`
1484
- - **Provider name in Origin column** — Shows `NIM` / `Groq` / `Cerebras` instead of always `NIM`
1485
-
1486
- ### Changed
1487
- - `MODELS` flat array now includes `providerKey` as 6th element
1488
- - State init filters models from disabled providers; rebuilds on settings close
1489
- - Config file path changed from `~/.free-coding-models` to `~/.free-coding-models.json` (migration is automatic)
1490
-
1491
- ---
1492
-
1493
- ## 0.1.41 — 2026-02-22
1494
-
1495
- ### Changed
1496
- - **sources.js data audit** — verified and corrected SWE-bench scores, tiers, and context windows across all NIM models:
1497
- - Devstral 2 123B: `S, 62.0%, 128k` → `S+, 72.2%, 256k` (official Mistral announcement)
1498
- - Mistral Large 675B: ctx `128k` → `256k`
1499
- - QwQ 32B: ctx `32k` → `131k`
1500
- - Llama 4 Maverick: ctx `128k` → `1M` (NVIDIA NIM confirmed)
1501
- - Llama 4 Scout: ctx `128k` → `10M` (NVIDIA NIM confirmed)
1502
- - GPT OSS 20B: ctx `32k` → `128k`
1503
-
1504
- ---
1505
-
1506
- ## 0.1.38 — 2026-02-22
1507
-
1508
- ### Fixed
1509
- - **Cross-platform OpenCode integration**: Fixed OpenCode CLI and Desktop installation issues on Windows and Linux
1510
- - **Windows**: Fixed config path to use %APPDATA%\opencode\opencode.json with fallback to ~/.config
1511
- - **Linux**: Added support for snap, flatpak, and xdg-open to launch OpenCode Desktop
1512
- - **All platforms**: Properly detects OS and uses correct commands and paths
1513
- - **OpenCode Desktop**: Platform-specific launch commands (macOS: `open -a`, Windows: `start`, Linux: multiple methods)
1514
-
1515
- ---
1516
-
1517
- ## 0.1.37 — 2026-02-22
1518
-
1519
- ### Added
1520
- - **Auto-update with sudo fallback**: When npm update fails due to permissions, automatically retries with sudo to complete the update
1521
-
1522
- ---
1523
-
1524
- ## 0.1.36 — 2026-02-22
1525
-
1526
- ### Added
1527
- - **SWE-bench Verified column**: Shows real SWE-bench Verified scores for all 44 models from official benchmarks
1528
- - **Color-coded keyboard shortcuts**: First letter of each column header colored in yellow to indicate sorting key
1529
- - **Heart and Coffee in footer**: "Made with 💖 & ☕ by vava-nessa"
1530
-
1531
- ### Changed
1532
- - **Column organization**: Reordered columns for better logical flow: Rank / Tier / SWE% / Model / Origin / Latest Ping / Avg Ping / Health / Verdict / Up%
1533
- - **Health column**: Renamed from "Status" to "Health" with H key for sorting
1534
- - **SWE-bench sorting**: S key now sorts by SWE-bench score
1535
- - **Latest ping shortcut**: L key (instead of P) for sorting by latest ping
1536
- - **Source name**: Simplified "NVIDIA NIM" to "NIM"
1537
-
1538
- ### Fixed
1539
- - **Column header alignment**: Fixed misalignment caused by ANSI color codes in headers
1540
- - **Discord link**: Updated to permanent invite link https://discord.gg/WKA3TwYVuZ
1541
-
1542
- ---
1543
-
1544
- ## 0.1.35 — 2026-02-22
1545
-
1546
- ### Changed
1547
- - **Column reorganization**: Reordered columns for better logical flow: Rank / Tier / SWE% / Model / Origin / Latest Ping / Avg Ping / Health / Verdict / Up%
1548
-
1549
- ---
1550
-
1551
- ## 0.1.34 — 2026-02-22
1552
-
1553
- ### Changed
1554
- - **Condition renamed to Health**: Renamed "Condition" column to "Health" for better clarity
1555
- - **Keyboard shortcut update**: H key now sorts by Health (instead of C for Condition)
1556
-
1557
- ---
1558
-
1559
- ## 0.1.33 — 2026-02-22
1560
-
1561
- ### Fixed
1562
- - **Column header alignment**: Fixed column headers misalignment issue caused by ANSI color codes interfering with text padding
1563
-
1564
- ---
1565
-
1566
- ## 0.1.32 — 2026-02-22
1567
-
1568
- ### Changed
1569
- - **Column header improvements**: Fixed column alignment issues for better visual appearance
1570
- - **Status renamed to Condition**: "Status" column renamed to "Condition" for clarity
1571
- - **Keyboard shortcut updates**: S key now sorts by SWE-bench score, C key sorts by Condition
1572
- - **Footer Discord text update**: Changed "Join our Discord!" to "Join Free-Coding-Models Discord!"
1573
-
1574
- ---
1575
-
1576
- ## 0.1.31 — 2026-02-22
1577
-
1578
- ### Added
1579
- - **SWE-bench column**: Added new SWE-bench Verified score column showing coding performance for each model
1580
- - **Color-coded column headers**: First letter of each column header is now colored (yellow) to indicate keyboard shortcut for sorting
1581
- - **Keyboard shortcut improvements**: Changed P to L for latest ping sorting, added E for SWE-bench sorting
1582
-
1583
- ### Changed
1584
- - **Source name simplification**: Renamed "NVIDIA NIM" to "NIM" throughout the codebase
1585
- - **Enhanced footer Discord link**: Discord link now displays in bright cyan color with "(link fixed)" indicator
1586
-
1587
- ---
1588
-
1589
- ## 0.1.29 — 2026-02-22
1590
-
1591
- ### Fixed
1592
- - **Discord link correction**: Updated all Discord invite URLs to use permanent link https://discord.gg/WKA3TwYVuZ
1593
-
1594
- ---
1595
-
1596
- ## 0.1.28 — 2026-02-22
1597
-
1598
- ### Added
1599
- - **Footer emojis**: Added 💬 emoji before Discord link and ⭐ emoji before GitHub link for better visual appeal
1600
-
1601
- ---
1602
-
1603
- ## 0.1.27 — 2026-02-22
1604
-
1605
- ### Changed
1606
- - **Footer redesign**: All links now on one line with clickable text: "Join our Discord!" and "Read the docs on GitHub"
1607
- - **Improved UX**: Links use same clickable format as author name for consistent user experience
1608
-
1609
- ---
1610
-
1611
- ## 0.1.26 — 2026-02-22
1612
-
1613
- ### Changed
1614
- - **Footer improvements**: Replaced "Repository GitHub" with "GitHub", "love" with 💖 emoji, and simplified Discord text
1615
- - **README enhancement**: Added GitHub link section below Discord invite
1616
-
1617
- ---
1618
-
1619
- ## 0.1.25 — 2026-02-22
1620
-
1621
- ### Added
1622
- - **Discord community link**: Added Discord invite to README and TUI footer
1623
- - **Enhanced footer layout**: Improved footer with multi-line layout showing GitHub repo and Discord links
1624
- - **Clickable author name**: "vava-nessa" is now clickable in terminal (opens GitHub profile)
1625
- - **Release notes automation**: GitHub Actions now uses CHANGELOG.md content for release notes instead of auto-generated notes
1626
-
1627
- ### Changed
1628
- - **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
1629
- - **Footer text**: "Made with love by vava-nessa" with clickable links
1630
-
1631
- ### Fixed
1632
- - **Release workflow**: GitHub Releases now display proper changelog content instead of generic commit summaries
1633
-
1634
- ---
1635
-
1636
- ## 0.1.24 — 2026-02-22
4
+ ## [0.3.40] - 2026-04-09
1637
5
 
1638
6
  ### Fixed
1639
- - **Viewport scrolling for TUI overflow**: Fixed Ghostty and narrow terminal issues where content would scroll past alternate screen
1640
- - **Terminal wrapping**: Wide rows now clip at terminal edge instead of wrapping to next line
1641
- - **Scrollback pollution**: Replaced `\x1b[2J` with `\x1b[H` + per-line `\x1b[K` to avoid Ghostty scrollback issues
1642
- - **Viewport calculation**: Added smart scrolling with "N more above/below" indicators when models exceed screen height
1643
- - **Scroll offset adjustment**: Cursor stays within visible window during navigation and terminal resize
7
+ - **🔧 CI/CD** Added `packageManager` field to `package.json` so `pnpm/action-setup@v4` can resolve the pnpm version
1644
8
 
1645
- ### Changed
1646
- - **DECAWM off**: Disabled auto-wrap in alternate screen to prevent row height doubling
1647
- - **Terminal resize handling**: Viewport automatically adjusts when terminal size changes
1648
-
1649
- ---
1650
-
1651
- ## 0.1.23 — 2026-02-22
1652
-
1653
- ### Refactored
1654
- - **Removed startup menu**: No more blocking mode selection menu at startup
1655
- - **Default to OpenCode CLI**: App starts directly in CLI mode when no flags given
1656
- - **Mode toggle in TUI**: Added Z key to cycle between CLI → Desktop → OpenClaw → CLI
1657
- - **GitHub changelogs**: "Read Changelogs" option now opens GitHub URL instead of local file
1658
- - **Auto-update by default**: When new version available without flags, auto-updates and relaunches
1659
- - **Centered update menu**: Update notification appears only when needed, with clean centered layout
1660
-
1661
- ### Changed
1662
- - **Header display**: Shows `[💻 CLI] (Z to toggle)` with mode toggle hint
1663
- - **Footer instructions**: Added "M Mode" to key bindings
1664
- - **Update workflow**: Flags (`--opencode` etc.) still show update menu for compatibility
1665
-
1666
- ---
1667
-
1668
- ## 0.1.22 — 2026-02-22
1669
-
1670
- ### Changed
1671
- - **Local changelogs**: "Read Changelogs" menu option now opens local `CHANGELOG.md` file instead of GitHub releases
1672
-
1673
- ---
1674
-
1675
- ## 0.1.21 — 2026-02-22
1676
-
1677
- ### Refactored
1678
- - **Simplified tier filtering architecture**: Replaced complex object recreation with simple `hidden` flag system
1679
- - **Flags as shortcuts**: `--tier S` now just sets initial state instead of blocking dynamic filtering
1680
- - **Dynamic filtering preserved**: E/D keys work seamlessly even when starting with `--tier` flag
1681
-
1682
- ### Fixed
1683
- - **Ping loop bug**: Fixed issue where filtered models weren't pinged due to using wrong results array
1684
- - **Initial ping bug**: Fixed issue where initial ping used wrong results array
1685
-
1686
- ---
1687
-
1688
- ## 0.1.20 — 2026-02-22
1689
-
1690
- ### Added
1691
- - **Dynamic tier filtering**: Use E/D keys to filter models by tier during runtime
1692
- - Tier filter badge shown in header (e.g., `[Tier S]`)
1693
- - E key elevates filter (show fewer, higher-tier models)
1694
- - D key descends filter (show more, lower-tier models)
1695
- - Preserves ping history when changing filters
1696
-
1697
- ### Fixed
1698
- - **Error 401 with --tier flag**: Fixed issue where using `--tier` alone would show selection menu instead of proceeding directly to TUI
1699
- - Improved flag combination handling for better user experience
1700
-
1701
- ---
1702
-
1703
- ## 0.1.16
1704
-
1705
- ### Added
1706
- - OpenCode Desktop support: new `--opencode-desktop` flag and menu option to set model & open the Desktop app
1707
- - "Read Changelogs" menu option when an update is available (opens GitHub releases page)
1708
- - `startOpenCodeDesktop()` function — same config logic as CLI, launches via `open -a OpenCode`
1709
-
1710
- ### Changed
1711
- - Startup menu: "OpenCode" renamed to "OpenCode CLI", new "OpenCode Desktop" entry added
1712
- - TUI mode badge: shows `[💻 CLI]` or `[🖥 Desktop]` or `[🦞 OpenClaw]`
1713
- - Footer action hint adapts to desktop mode (`Enter→OpenDesktop`)
1714
-
1715
- ---
1716
-
1717
- ## 0.1.12 — 2026-02-22
1718
-
1719
- ### Added
1720
- - Unit test suite: 59 tests across 11 suites using `node:test` (zero dependencies)
1721
- - Tests cover: sources data integrity, core logic (getAvg, getVerdict, getUptime, filterByTier, sortResults, findBestModel), CLI arg parsing, package.json sanity
1722
- - `lib/utils.js`: extracted pure logic functions from the monolithic CLI for testability
1723
- - `pnpm test` script in package.json
1724
-
1725
- ### Fixed
1726
- - GitHub Actions release workflow: removed broken `npm version patch` loop, added version detection via git tags
1727
- - GitHub Actions now creates a GitHub Release with auto-generated notes for each new version
1728
-
1729
- ### Changed
1730
- - AGENTS.md updated with test-first workflow: agents must run `pnpm test` before `pnpm start`
1731
-
1732
- ---
1733
-
1734
- ## 0.1.9 — 2026-02-22
1735
-
1736
- ### Fixed
1737
- - **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.
1738
- ### Added
1739
- - Update available warning: red message shown above selection menu when a new npm version exists
1740
- - "Update now" menu choice in startup mode selection to install the latest version
1741
-
1742
- ---
1743
-
1744
- ## 0.1.4 — 2026-02-22
1745
-
1746
- ### Fixed
1747
- - **OpenClaw config structure**: `providers` was incorrectly written at the config root. Moved to `models.providers` per official OpenClaw docs (`docs.openclaw.ai/providers/nvidia`).
1748
- - **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.
1749
- - **OpenClaw models array**: Removed the `models: []` array from the provider block (OpenCode format, not valid in OpenClaw).
1750
- - **`openclaw restart` CLI command doesn't exist**: Replaced hint with correct commands — `openclaw models set` / `openclaw configure`. Gateway auto-reloads on config file changes.
1751
- - **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.
1752
- - **README**: Updated OpenClaw integration section with correct JSON structure and correct CLI commands.
1753
-
1754
- ---
1755
-
1756
- ## 0.1.3 — 2026-02-22
1757
-
1758
- ### Added
1759
- - OpenClaw integration: set selected NIM model as default provider in `~/.openclaw/openclaw.json`
1760
- - Startup mode menu (no flags needed): interactive choice between OpenCode and OpenClaw at launch
1761
- - `--openclaw` flag: skip menu, go straight to OpenClaw mode
1762
- - `--tier` flag: filter models by tier letter (S, A, B, C)
1763
- - Tier badges shown next to model names in the TUI
1764
- - 44 models listed, ranked by Aider Polyglot benchmark
9
+ ## [0.3.39] - 2026-04-09
1765
10
 
1766
11
  ### Fixed
1767
- - CI permissions for git push in release workflow
1768
-
1769
- ---
1770
-
1771
- ## 0.1.2 — 2026-02-22
1772
-
1773
- ### Added
1774
- - `--fiable` flag: analyze 10 seconds, output the single most reliable model as `provider/model_id`
1775
- - `--best` flag: show only top-tier models (A+, S, S+)
1776
- - `--opencode` flag: explicit OpenCode mode
1777
- - Refactored CLI entry point, cleaner flag handling
1778
- - Updated release workflow
1779
-
1780
- ---
1781
-
1782
- ## 0.1.1 — 2026-02-21
1783
-
1784
- ### Added
1785
- - Continuous monitoring mode: re-pings all models every 2 seconds forever
1786
- - Rolling averages calculated from all successful pings since start
1787
- - Uptime percentage tracking per model
1788
- - Dynamic ping interval: W key to speed up, X key to slow down
1789
- - Sortable columns: R/T/O/M/P/A/S/V/U keys
1790
- - Verdict column with quality rating per model
1791
- - Interactive model selection with arrow keys + Enter
1792
- - OpenCode integration: auto-detects NIM setup, sets model as default, launches OpenCode
1793
- - `sources.js`: extensible architecture for adding new providers
1794
- - Demo GIF added to README
1795
- - Renamed CLI to `free-coding-models`
1796
-
1797
- ---
12
+ - **🔧 CI/CD** Switched GitHub Actions from `npm ci` to `pnpm install --frozen-lockfile` (release + security-audit workflows)
13
+ - Removed obsolete `package-lock.json` that was causing `EUSAGE` sync errors in CI
1798
14
 
1799
- ## 0.1.0 2026-02-21
15
+ ## [0.3.38] - 2026-04-09
1800
16
 
1801
17
  ### Added
1802
- - Initial release as `nimping` then renamed to `free-coding-models`
1803
- - Parallel pings of NVIDIA NIM coding models via native `fetch`
1804
- - Real-time terminal table with latency display
1805
- - Alternate screen buffer (no scrollback pollution)
1806
- - Top 3 fastest models highlighted with medals 🥇🥈🥉
1807
- - ASCII banner and clean UI
1808
- - OpenCode installer and interactive model selector
1809
- - npm publish workflow via GitHub Actions
18
+ - **🔮 Hermes Agent** — Configures Hermes via `hermes config set`, restarts the gateway, and launches `hermes chat`. Supports all OpenAI-compatible providers.
19
+ - **▶️ Continue CLI** Writes `~/.continue/config.yaml` with `provider: openai` + `apiBase` and launches `cn`.
20
+ - **🧠 Cline CLI** — Writes `~/.cline/globalState.json` with OpenAI-compatible config and launches `cline`.
21
+ - `--hermes`, `--continue`, `--cline` CLI flags, `Z` cycle entries, command palette actions, and Install Endpoints support for all three tools.