groove-dev 0.26.2 → 0.26.4
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 +2 -2
- package/node_modules/@groove-dev/daemon/src/providers/index.js +19 -13
- package/node_modules/@groove-dev/daemon/src/providers/local.js +24 -2
- package/node_modules/@groove-dev/daemon/src/providers/ollama.js +1 -1
- package/node_modules/@groove-dev/gui/dist/assets/{index-BC2Bhfv0.js → index-CXBK_GNM.js} +41 -41
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/src/views/settings.jsx +39 -16
- package/package.json +1 -1
- package/packages/daemon/src/process.js +2 -2
- package/packages/daemon/src/providers/index.js +19 -13
- package/packages/daemon/src/providers/local.js +24 -2
- package/packages/daemon/src/providers/ollama.js +1 -1
- package/packages/gui/dist/assets/{index-BC2Bhfv0.js → index-CXBK_GNM.js} +41 -41
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/src/views/settings.jsx +39 -16
|
@@ -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-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CXBK_GNM.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">
|
|
@@ -102,37 +102,60 @@ function ProviderCard({ provider, onKeyChange }) {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
//
|
|
105
|
+
// Local models card
|
|
106
106
|
if (isLocal) {
|
|
107
|
+
const installedCount = provider.models?.filter(m => !m.disabled)?.length || 0;
|
|
108
|
+
const goToModels = () => useGrooveStore.getState().setActiveView('models');
|
|
107
109
|
return (
|
|
108
110
|
<div className="flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]">
|
|
109
111
|
<div className="flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle">
|
|
110
|
-
<StatusDot status={isReady ? 'running' : 'crashed'} size="sm" />
|
|
112
|
+
<StatusDot status={isReady && installedCount > 0 ? 'running' : 'crashed'} size="sm" />
|
|
111
113
|
<span className="text-[13px] font-semibold text-text-0 font-sans">{provider.name}</span>
|
|
112
114
|
<div className="flex-1" />
|
|
113
|
-
{isReady ? (
|
|
114
|
-
<Badge variant="success" className="text-2xs gap-1"><Check size={8} />
|
|
115
|
+
{isReady && installedCount > 0 ? (
|
|
116
|
+
<Badge variant="success" className="text-2xs gap-1"><Check size={8} /> {installedCount} models</Badge>
|
|
117
|
+
) : isReady ? (
|
|
118
|
+
<Badge variant="warning" className="text-2xs">No models pulled</Badge>
|
|
115
119
|
) : (
|
|
116
|
-
<Badge variant="default" className="text-2xs">Not
|
|
120
|
+
<Badge variant="default" className="text-2xs">Not set up</Badge>
|
|
117
121
|
)}
|
|
118
122
|
</div>
|
|
119
123
|
<div className="flex-1">
|
|
120
124
|
{ollamaOpen ? (
|
|
121
|
-
|
|
125
|
+
<>
|
|
126
|
+
<OllamaSetup isInstalled={isReady} onModelChange={onKeyChange} />
|
|
127
|
+
<div className="px-4 py-2 border-t border-border-subtle flex gap-2">
|
|
128
|
+
<Button variant="ghost" size="sm" onClick={() => setOllamaOpen(false)} className="flex-1 h-7 text-2xs">
|
|
129
|
+
Back
|
|
130
|
+
</Button>
|
|
131
|
+
<Button variant="secondary" size="sm" onClick={() => { setOllamaOpen(false); goToModels(); }} className="flex-1 h-7 text-2xs gap-1">
|
|
132
|
+
Models Tab
|
|
133
|
+
</Button>
|
|
134
|
+
</div>
|
|
135
|
+
</>
|
|
122
136
|
) : (
|
|
123
137
|
<div className="px-4 py-3 flex flex-col h-full">
|
|
124
138
|
<div className="text-xs text-text-3 font-sans flex-1">
|
|
125
|
-
{isReady
|
|
139
|
+
{isReady && installedCount > 0
|
|
140
|
+
? 'Full agentic runtime — tool calling, context rotation, zero cloud cost'
|
|
141
|
+
: isReady
|
|
142
|
+
? 'Ollama is running. Pull a model to start using local agents.'
|
|
143
|
+
: 'Run any open-source model locally — free, private, fully offline. Requires Ollama.'}
|
|
144
|
+
</div>
|
|
145
|
+
<div className="flex gap-2 mt-3">
|
|
146
|
+
{!isReady ? (
|
|
147
|
+
<Button variant="primary" size="sm" onClick={() => setOllamaOpen(true)} className="flex-1 h-7 text-2xs gap-1.5">
|
|
148
|
+
<Cpu size={11} /> Set Up Ollama
|
|
149
|
+
</Button>
|
|
150
|
+
) : (
|
|
151
|
+
<Button variant="primary" size="sm" onClick={() => setOllamaOpen(true)} className="flex-1 h-7 text-2xs gap-1.5">
|
|
152
|
+
<Cpu size={11} /> {installedCount > 0 ? 'Manage' : 'Pull Models'}
|
|
153
|
+
</Button>
|
|
154
|
+
)}
|
|
155
|
+
<Button variant="secondary" size="sm" onClick={goToModels} className="flex-1 h-7 text-2xs gap-1.5">
|
|
156
|
+
Models Tab
|
|
157
|
+
</Button>
|
|
126
158
|
</div>
|
|
127
|
-
<Button
|
|
128
|
-
variant={isReady ? 'secondary' : 'primary'}
|
|
129
|
-
size="sm"
|
|
130
|
-
onClick={() => setOllamaOpen(true)}
|
|
131
|
-
className="w-full h-7 text-2xs gap-1.5 mt-3"
|
|
132
|
-
>
|
|
133
|
-
<Cpu size={11} />
|
|
134
|
-
{isReady ? 'Manage Models' : 'Set Up Ollama'}
|
|
135
|
-
</Button>
|
|
136
159
|
</div>
|
|
137
160
|
)}
|
|
138
161
|
</div>
|