groove-dev 0.26.36 → 0.26.38

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.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/png" href="/favicon.png" />
7
7
  <title>Groove GUI</title>
8
- <script type="module" crossorigin src="/assets/index-VrNtEof4.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CaKBNWcK.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/vendor-C0HXlhrU.js">
10
10
  <link rel="modulepreload" crossorigin href="/assets/reactflow-BQPfi37R.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/codemirror-BBL3i_JW.js">
@@ -233,11 +233,90 @@ function OverviewStep({ item, status, installing, onInstall, onUninstall, onNext
233
233
  );
234
234
  }
235
235
 
236
+ // ── Google OAuth Setup (shared by google-autoauth + oauth-google) ──
237
+ function GoogleOAuthSetup({ onConfigured }) {
238
+ const toast = useToast();
239
+ const [clientId, setClientId] = useState('');
240
+ const [clientSecret, setClientSecret] = useState('');
241
+ const [saving, setSaving] = useState(false);
242
+
243
+ async function handleSave() {
244
+ if (!clientId.trim() || !clientSecret.trim()) return;
245
+ setSaving(true);
246
+ try {
247
+ await api.post('/integrations/google-oauth/setup', {
248
+ clientId: clientId.trim(),
249
+ clientSecret: clientSecret.trim(),
250
+ });
251
+ toast.success('Google OAuth credentials saved');
252
+ onConfigured();
253
+ } catch (err) {
254
+ toast.error('Failed to save', err.message);
255
+ }
256
+ setSaving(false);
257
+ }
258
+
259
+ return (
260
+ <div className="space-y-4">
261
+ <div className="bg-warning/8 border border-warning/15 rounded-md px-4 py-3">
262
+ <p className="text-xs font-semibold text-warning font-sans">Google Cloud credentials required</p>
263
+ <p className="text-2xs text-text-3 font-sans mt-1">
264
+ Create an OAuth 2.0 Client ID in the Google Cloud Console, then paste the credentials below.
265
+ </p>
266
+ <a
267
+ href="https://console.cloud.google.com/apis/credentials"
268
+ target="_blank"
269
+ rel="noopener noreferrer"
270
+ className="inline-flex items-center gap-1 text-2xs text-accent font-sans hover:underline mt-1.5"
271
+ >
272
+ <ExternalLink size={10} />
273
+ console.cloud.google.com
274
+ </a>
275
+ </div>
276
+ <div className="space-y-3">
277
+ <div className="space-y-1.5">
278
+ <label className="text-xs font-medium text-text-2 font-sans flex items-center gap-1.5">
279
+ <Key size={11} className="text-text-4" />
280
+ Client ID <span className="text-danger">*</span>
281
+ </label>
282
+ <SecretInput value={clientId} onChange={setClientId} placeholder="123456789.apps.googleusercontent.com" disabled={saving} />
283
+ </div>
284
+ <div className="space-y-1.5">
285
+ <label className="text-xs font-medium text-text-2 font-sans flex items-center gap-1.5">
286
+ <Key size={11} className="text-text-4" />
287
+ Client Secret <span className="text-danger">*</span>
288
+ </label>
289
+ <SecretInput value={clientSecret} onChange={setClientSecret} placeholder="GOCSPX-..." disabled={saving} />
290
+ </div>
291
+ </div>
292
+ <Button
293
+ variant="primary"
294
+ size="lg"
295
+ onClick={handleSave}
296
+ disabled={saving || !clientId.trim() || !clientSecret.trim()}
297
+ className="w-full gap-2"
298
+ >
299
+ {saving ? <><Loader2 size={14} className="animate-spin" /> Saving...</> : 'Save Credentials'}
300
+ </Button>
301
+ </div>
302
+ );
303
+ }
304
+
236
305
  // ── Step: Configure ─────────────────────────────────────
237
306
  function ConfigureStep({ item, status, onDone, onRefreshStatus }) {
238
307
  const toast = useToast();
239
308
  const [authenticating, setAuthenticating] = useState(false);
309
+ const [googleOAuthReady, setGoogleOAuthReady] = useState(null);
240
310
  const authType = item.authType;
311
+ const needsGoogleOAuth = authType === 'google-autoauth' || authType === 'oauth-google';
312
+
313
+ useEffect(() => {
314
+ if (needsGoogleOAuth) {
315
+ api.get('/integrations/google-oauth/status')
316
+ .then((d) => setGoogleOAuthReady(d.configured))
317
+ .catch(() => setGoogleOAuthReady(false));
318
+ }
319
+ }, [needsGoogleOAuth]);
241
320
 
242
321
  async function handleGoogleAutoAuth() {
243
322
  setAuthenticating(true);
@@ -322,7 +401,11 @@ function ConfigureStep({ item, status, onDone, onRefreshStatus }) {
322
401
  </div>
323
402
  )}
324
403
 
325
- {authType === 'google-autoauth' && (
404
+ {needsGoogleOAuth && googleOAuthReady === false && (
405
+ <GoogleOAuthSetup onConfigured={() => setGoogleOAuthReady(true)} />
406
+ )}
407
+
408
+ {authType === 'google-autoauth' && googleOAuthReady && (
326
409
  <div className="space-y-3">
327
410
  <Button
328
411
  variant="primary"
@@ -349,7 +432,7 @@ function ConfigureStep({ item, status, onDone, onRefreshStatus }) {
349
432
  </div>
350
433
  )}
351
434
 
352
- {authType === 'oauth-google' && (
435
+ {authType === 'oauth-google' && googleOAuthReady && (
353
436
  <div className="space-y-3">
354
437
  <Button
355
438
  variant="primary"
@@ -376,6 +459,12 @@ function ConfigureStep({ item, status, onDone, onRefreshStatus }) {
376
459
  </div>
377
460
  )}
378
461
 
462
+ {needsGoogleOAuth && googleOAuthReady === null && (
463
+ <div className="flex justify-center py-3">
464
+ <Loader2 size={16} className="animate-spin text-text-4" />
465
+ </div>
466
+ )}
467
+
379
468
  {/* Done button */}
380
469
  <Button
381
470
  variant={allSet ? 'primary' : 'secondary'}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groove-dev",
3
- "version": "0.26.36",
3
+ "version": "0.26.38",
4
4
  "description": "Open-source agent orchestration layer — the AI company OS. Local model agent engine (GGUF/Ollama/llama-server), HuggingFace model browser, MCP integrations (Slack, Gmail, Stripe, 15+), agent scheduling (cron), business roles (CMO, CFO, EA). GUI dashboard, multi-agent coordination, zero cold-start, infinite sessions. Works with Claude Code, Codex, Gemini CLI, Ollama, any local model.",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "author": "Groove Dev <hello@groovedev.ai> (https://groovedev.ai)",