free-coding-models 0.1.14 → 0.1.16

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.
@@ -196,7 +196,9 @@ async function promptModeSelection(latestVersion) {
196
196
  console.log(chalk.red(` ⚠ New version available (v${latestVersion}), please run npm i -g free-coding-models to install`))
197
197
  console.log()
198
198
  }
199
- console.log(chalk.bold(' ⚡ Free Coding Models') + chalk.dim(' — Choose your tool'))
199
+ console.log(chalk.bold(' ⚡ Free Coding Models') + chalk.dim(` v${LOCAL_VERSION} — Choose your tool`))
200
+ console.log()
201
+ console.log(chalk.yellow.bold(' ⚠️ Warning: ') + chalk.yellow('Small terminals may break the layout — maximize your window for best results!'))
200
202
  console.log()
201
203
  for (let i = 0; i < options.length; i++) {
202
204
  const isSelected = i === selected
@@ -342,7 +344,7 @@ function renderTable(results, pendingPings, frame, cursor = null, sortColumn = '
342
344
 
343
345
  const lines = [
344
346
  '',
345
- ` ${chalk.bold('⚡ Free Coding Models')}${modeBadge} ` +
347
+ ` ${chalk.bold('⚡ Free Coding Models')} ${chalk.dim('v' + LOCAL_VERSION)}${modeBadge} ` +
346
348
  chalk.greenBright(`✅ ${up}`) + chalk.dim(' up ') +
347
349
  chalk.yellow(`⏱ ${timeout}`) + chalk.dim(' timeout ') +
348
350
  chalk.red(`❌ ${down}`) + chalk.dim(' down ') +
@@ -528,6 +530,8 @@ function renderTable(results, pendingPings, frame, cursor = null, sortColumn = '
528
530
  : chalk.rgb(0, 200, 255)('Enter→OpenCode')
529
531
  lines.push(chalk.dim(` ↑↓ Navigate • `) + actionHint + chalk.dim(` • R/T/O/M/P/A/S/V/U Sort • W↓/X↑ Interval (${intervalSec}s) • Ctrl+C Exit`))
530
532
  lines.push('')
533
+ lines.push(chalk.dim(' made with ') + '🩷' + chalk.dim(' by vava-nessa • ') + chalk.dim.underline('https://github.com/vava-nessa/free-coding-models'))
534
+ lines.push('')
531
535
  return lines.join('\n')
532
536
  }
533
537
 
@@ -615,6 +619,17 @@ async function startOpenCode(model) {
615
619
 
616
620
  // 📖 Update default model to nvidia/model_id
617
621
  config.model = `nvidia/${model.modelId}`
622
+
623
+ // 📖 Register the model in the nvidia provider's models section
624
+ // 📖 OpenCode requires models to be explicitly listed in provider.models
625
+ // 📖 to recognize them — without this, it falls back to the previous default
626
+ if (config.provider?.nvidia) {
627
+ if (!config.provider.nvidia.models) config.provider.nvidia.models = {}
628
+ config.provider.nvidia.models[model.modelId] = {
629
+ name: model.label,
630
+ }
631
+ }
632
+
618
633
  saveOpenCodeConfig(config)
619
634
 
620
635
  console.log(chalk.green(` ✓ Default model set to: nvidia/${model.modelId}`))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-coding-models",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Find the fastest coding LLM models in seconds — ping free models from multiple providers, pick the best one for OpenCode, Cursor, or any AI coding assistant.",
5
5
  "keywords": [
6
6
  "nvidia",