feat: rewrite agent wizard — 2-step flow with smart defaults

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jon Saad-Falcon
2026-03-27 12:36:07 -07:00
co-authored by Claude Opus 4.6
parent e4466146ce
commit cbabcd4a8f
2 changed files with 280 additions and 667 deletions
+6
View File
@@ -100,6 +100,12 @@ export async function fetchModels(): Promise<ModelInfo[]> {
return data.data || [];
}
export async function fetchRecommendedModel(): Promise<{ model: string; reason: string }> {
const res = await fetch(`${getBase()}/v1/recommended-model`);
if (!res.ok) return { model: '', reason: 'Failed to fetch' };
return res.json();
}
export async function pullModel(modelName: string): Promise<void> {
// In Tauri, go through the Rust backend directly (avoids CORS / timeout
// issues with long model downloads via fetch).
File diff suppressed because it is too large Load Diff