groove-dev 0.25.7 → 0.25.9
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.
- package/node_modules/@groove-dev/daemon/src/process.js +25 -4
- package/node_modules/@groove-dev/gui/dist/assets/{index-DlWsuLvF.js → index-D67eFTek.js} +132 -132
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/src/components/agents/spawn-wizard.jsx +18 -4
- package/node_modules/@groove-dev/gui/src/components/dashboard/fleet-panel.jsx +1 -1
- package/node_modules/@groove-dev/gui/src/components/dashboard/intel-panel.jsx +1 -1
- package/node_modules/@groove-dev/gui/src/components/dashboard/routing-chart.jsx +2 -2
- package/package.json +1 -1
- package/packages/daemon/src/process.js +25 -4
- package/packages/gui/dist/assets/{index-DlWsuLvF.js → index-D67eFTek.js} +132 -132
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/src/components/agents/spawn-wizard.jsx +18 -4
- package/packages/gui/src/components/dashboard/fleet-panel.jsx +1 -1
- package/packages/gui/src/components/dashboard/intel-panel.jsx +1 -1
- package/packages/gui/src/components/dashboard/routing-chart.jsx +2 -2
|
@@ -165,12 +165,33 @@ export class ProcessManager {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
//
|
|
169
|
-
|
|
168
|
+
// Resolve provider — auto-detect best installed if not specified
|
|
169
|
+
let providerName = config.provider;
|
|
170
|
+
if (!providerName) {
|
|
171
|
+
const { getInstalledProviders } = await import('./providers/index.js');
|
|
172
|
+
const installed = getInstalledProviders();
|
|
173
|
+
if (installed.length === 0) {
|
|
174
|
+
throw new Error('No AI providers installed. Install Claude Code, Gemini CLI, Codex, or Ollama first.');
|
|
175
|
+
}
|
|
176
|
+
// Priority: claude-code > gemini > codex > ollama
|
|
177
|
+
const priority = ['claude-code', 'gemini', 'codex', 'ollama'];
|
|
178
|
+
const best = priority.find((p) => installed.some((i) => i.id === p)) || installed[0].id;
|
|
179
|
+
providerName = best;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const provider = getProvider(providerName);
|
|
170
183
|
if (!provider) {
|
|
171
|
-
throw new Error(`Unknown provider: ${
|
|
184
|
+
throw new Error(`Unknown provider: ${providerName}`);
|
|
172
185
|
}
|
|
173
186
|
if (!provider.constructor.isInstalled()) {
|
|
187
|
+
// Try to find any installed provider as fallback
|
|
188
|
+
const { getInstalledProviders } = await import('./providers/index.js');
|
|
189
|
+
const installed = getInstalledProviders();
|
|
190
|
+
if (installed.length > 0) {
|
|
191
|
+
throw new Error(
|
|
192
|
+
`${provider.constructor.displayName} is not installed. Available providers: ${installed.map((p) => p.name).join(', ')}`
|
|
193
|
+
);
|
|
194
|
+
}
|
|
174
195
|
throw new Error(
|
|
175
196
|
`${provider.constructor.displayName} is not installed. Run: ${provider.constructor.installCommand()}`
|
|
176
197
|
);
|
|
@@ -183,7 +204,7 @@ export class ProcessManager {
|
|
|
183
204
|
// Register the agent in the registry
|
|
184
205
|
const agent = registry.add({
|
|
185
206
|
...config,
|
|
186
|
-
provider:
|
|
207
|
+
provider: providerName,
|
|
187
208
|
model: isAutoRouted ? null : config.model, // Set after routing
|
|
188
209
|
});
|
|
189
210
|
|