groove-dev 0.26.2 → 0.26.3

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.
@@ -173,8 +173,8 @@ export class ProcessManager {
173
173
  if (installed.length === 0) {
174
174
  throw new Error('No AI providers installed. Install Claude Code, Gemini CLI, Codex, or Ollama first.');
175
175
  }
176
- // Priority: claude-code > gemini > codex > ollama
177
- const priority = ['claude-code', 'gemini', 'codex', 'ollama'];
176
+ // Priority: claude-code > gemini > codex > local (local replaces ollama in UI)
177
+ const priority = ['claude-code', 'gemini', 'codex', 'local', 'ollama'];
178
178
  const best = priority.find((p) => installed.some((i) => i.id === p)) || installed[0].id;
179
179
  providerName = best;
180
180
  }
@@ -19,20 +19,26 @@ export function getProvider(name) {
19
19
  return providers[name] || null;
20
20
  }
21
21
 
22
+ // Providers hidden from UI but kept for backward compatibility
23
+ // (existing agents with provider='ollama' still resolve via getProvider)
24
+ const HIDDEN_PROVIDERS = new Set(['ollama']);
25
+
22
26
  export function listProviders() {
23
- return Object.entries(providers).map(([key, p]) => ({
24
- id: key,
25
- name: p.constructor.displayName,
26
- installed: p.constructor.isInstalled(),
27
- authType: p.constructor.authType,
28
- envKey: p.constructor.envKey || null,
29
- authHint: p.constructor.authHint || null,
30
- authStatus: p.constructor.isAuthenticated?.() || null,
31
- models: p.constructor.models,
32
- installCommand: p.constructor.installCommand(),
33
- canHotSwap: p.switchModel ? p.switchModel() : false,
34
- hardwareRequirements: p.constructor.hardwareRequirements?.() || null,
35
- }));
27
+ return Object.entries(providers)
28
+ .filter(([key]) => !HIDDEN_PROVIDERS.has(key))
29
+ .map(([key, p]) => ({
30
+ id: key,
31
+ name: p.constructor.displayName,
32
+ installed: p.constructor.isInstalled(),
33
+ authType: p.constructor.authType,
34
+ envKey: p.constructor.envKey || null,
35
+ authHint: p.constructor.authHint || null,
36
+ authStatus: p.constructor.isAuthenticated?.() || null,
37
+ models: p.constructor.models,
38
+ installCommand: p.constructor.installCommand(),
39
+ canHotSwap: p.switchModel ? p.switchModel() : false,
40
+ hardwareRequirements: p.constructor.hardwareRequirements?.() || null,
41
+ }));
36
42
  }
37
43
 
38
44
  export function getInstalledProviders() {
@@ -52,15 +52,37 @@ const TOOL_CALLING_MODELS = new Set([
52
52
 
53
53
  export class LocalProvider extends Provider {
54
54
  static name = 'local';
55
- static displayName = 'Local Models (Agent Loop)';
55
+ static displayName = 'Local Models';
56
56
  static command = 'ollama';
57
57
  static authType = 'local';
58
58
  static useAgentLoop = true;
59
59
 
60
+ // Only return models that are actually installed and ready to use
60
61
  static get models() {
61
- return OllamaProvider.models;
62
+ const installed = [];
63
+
64
+ // Ollama installed models
65
+ if (LocalProvider._hasOllama()) {
66
+ try {
67
+ const ollamaModels = OllamaProvider.getInstalledModels();
68
+ for (const m of ollamaModels) {
69
+ installed.push({
70
+ id: m.id, name: m.name || m.id,
71
+ tier: m.tier || 'medium', category: m.category || 'general',
72
+ });
73
+ }
74
+ } catch { /* Ollama not running */ }
75
+ }
76
+
77
+ // If nothing installed, show a hint instead of a blank list
78
+ if (installed.length === 0) {
79
+ return [{ id: '_none', name: 'No models installed — pull one with: ollama pull qwen2.5-coder:7b', tier: 'medium', disabled: true }];
80
+ }
81
+
82
+ return installed;
62
83
  }
63
84
 
85
+ // Full catalog for the Models browser (includes uninstalled)
64
86
  static get catalog() {
65
87
  return OllamaProvider.catalog;
66
88
  }