free-coding-models 0.1.77 → 0.1.78

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.
@@ -2797,31 +2797,35 @@ async function main() {
2797
2797
  // Silently fail - don't block the app if npm registry is unreachable
2798
2798
  }
2799
2799
 
2800
- // 📖 Show update notification menu if a new version is available
2800
+ // 📖 Auto-update system: force updates and handle changelog automatically
2801
2801
  if (latestVersion) {
2802
- const action = await promptUpdateNotification(latestVersion)
2803
- if (action === 'update') {
2804
- runUpdate(latestVersion)
2805
- return // runUpdate will restart the process
2806
- } else if (action === 'changelogs') {
2807
- console.log()
2808
- console.log(chalk.cyan(' Opening changelog in browser...'))
2809
- console.log()
2810
- const { execSync } = require('child_process')
2811
- const changelogUrl = 'https://github.com/vava-nessa/free-coding-models/releases'
2812
- try {
2813
- if (isMac) {
2814
- execSync(`open "${changelogUrl}"`, { stdio: 'ignore' })
2815
- } else if (isWindows) {
2816
- execSync(`start "" "${changelogUrl}"`, { stdio: 'ignore' })
2817
- } else {
2818
- execSync(`xdg-open "${changelogUrl}"`, { stdio: 'ignore' })
2819
- }
2820
- } catch {
2821
- console.log(chalk.dim(` Could not open browser. Visit: ${changelogUrl}`))
2802
+ console.log()
2803
+ console.log(chalk.bold.red(' ⚠ AUTO-UPDATE AVAILABLE'))
2804
+ console.log(chalk.red(` Version ${latestVersion} will be installed automatically`))
2805
+ console.log(chalk.dim(' Opening changelog in browser...'))
2806
+ console.log()
2807
+
2808
+ // 📖 Open changelog automatically
2809
+ const { execSync } = require('child_process')
2810
+ const changelogUrl = 'https://github.com/vava-nessa/free-coding-models/releases'
2811
+ try {
2812
+ if (isMac) {
2813
+ execSync(`open "${changelogUrl}"`, { stdio: 'ignore' })
2814
+ } else if (isWindows) {
2815
+ execSync(`start "" "${changelogUrl}"`, { stdio: 'ignore' })
2816
+ } else {
2817
+ execSync(`xdg-open "${changelogUrl}"`, { stdio: 'ignore' })
2822
2818
  }
2819
+ console.log(chalk.green(' ✅ Changelog opened in browser'))
2820
+ } catch {
2821
+ console.log(chalk.yellow(' ⚠ Could not open browser automatically'))
2822
+ console.log(chalk.dim(` Visit manually: ${changelogUrl}`))
2823
2823
  }
2824
- // If action is null (Continue without update) or changelogs, proceed to main app
2824
+
2825
+ // 📖 Force update immediately
2826
+ console.log(chalk.cyan(' 🚀 Starting auto-update...'))
2827
+ runUpdate(latestVersion)
2828
+ return // runUpdate will restart the process
2825
2829
  }
2826
2830
 
2827
2831
  // 📖 Build results from MODELS — only include enabled providers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-coding-models",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
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",