next.js
fdf41d6f - [ai-upgrade] discover upgrade models and reasoning efforts from agent CLIs (#99736)

Commit
3 days ago
[ai-upgrade] discover upgrade models and reasoning efforts from agent CLIs (#99736) The world of AI is moving fast. Instead of hardcoding the available models, discover them from the CLIs. This is a bit hacky, but probably more reliable than hardcoding a list that will become outdated fast. The available models might be different for different accounts. This involved a bit of code moving as I wanted to have the model discovery run in parallel to displaying the user the harness selection to reduce delay in selecting the model. ## Test Plan: In addition to new tests, also tested interactively with: ``` DEBUG=next:upgrade node -e \ "require('./packages/next/dist/lib/upgrade/harness').handoffUpgrade('This is a harness test. Do not modify files.', process.cwd(), null).catch(console.error)" ```
Author
Parents
Loading