groove-dev 0.27.62 → 0.27.64

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.
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <link rel="icon" type="image/png" href="/favicon.png" />
8
8
  <title>Groove GUI</title>
9
- <script type="module" crossorigin src="/assets/index-Dvum7uoe.js"></script>
9
+ <script type="module" crossorigin src="/assets/index-DiiEKVEo.js"></script>
10
10
  <link rel="modulepreload" crossorigin href="/assets/vendor-C0HXlhrU.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/reactflow-BQPfi37R.js">
12
12
  <link rel="modulepreload" crossorigin href="/assets/codemirror-BBL3i_JW.js">
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groove-dev/gui",
3
- "version": "0.27.62",
3
+ "version": "0.27.64",
4
4
  "description": "GROOVE GUI — visual agent control plane",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "type": "module",
@@ -107,6 +107,110 @@ const MAX_VRAM_MB = 128 * 1024;
107
107
  const MAX_CPU = 128;
108
108
  const MAX_LOAD = 4.0;
109
109
 
110
+ const SPARKLINE_ROWS = [
111
+ { key: 'globalSessions', label: 'Sessions', color: HEX.accent },
112
+ { key: 'mySessions', label: 'My Sessions', color: HEX.info },
113
+ { key: 'nodeCount', label: 'Nodes', color: HEX.purple },
114
+ { key: 'avgLoad', label: 'Load', color: HEX.warning },
115
+ { key: 'myLoad', label: 'My Load', color: HEX.success },
116
+ ];
117
+
118
+ function TrendsColumn({ snapshots }) {
119
+ const hasData = snapshots && snapshots.length >= 2;
120
+ return (
121
+ <div className="flex flex-col gap-1.5 min-w-0">
122
+ <div className="text-2xs font-mono text-text-3 uppercase tracking-widest mb-1.5">Trends</div>
123
+ {!hasData ? (
124
+ <div className="text-2xs font-mono text-text-4">Collecting data…</div>
125
+ ) : (
126
+ SPARKLINE_ROWS.map((row) => {
127
+ const data = snapshots.map((s) => ({ v: s[row.key] ?? 0 }));
128
+ const current = data[data.length - 1].v;
129
+ const display = Number.isInteger(current) ? current : current.toFixed(2);
130
+ return (
131
+ <div key={row.key} className="flex items-center gap-2 bg-surface-1 rounded px-2 py-1">
132
+ <span className="w-[72px] text-2xs font-mono text-text-3 uppercase truncate flex-shrink-0">{row.label}</span>
133
+ <MiniSparkline data={data} color={row.color} width={140} height={24} />
134
+ <span className="text-2xs font-mono text-text-1 tabular-nums flex-shrink-0">{display}</span>
135
+ </div>
136
+ );
137
+ })
138
+ )}
139
+ </div>
140
+ );
141
+ }
142
+
143
+ function YourNodeColumn({ node, compute }) {
144
+ if (!node || !node.active) {
145
+ return (
146
+ <div className="flex flex-col gap-1.5 min-w-0">
147
+ <div className="text-2xs font-mono text-text-3 uppercase tracking-widest mb-1.5">Your Node</div>
148
+ <div className="text-2xs font-mono text-text-4">Node idle</div>
149
+ </div>
150
+ );
151
+ }
152
+
153
+ const layersLabel = node.layers ? `Layers ${node.layers} / 36` : 'Unassigned';
154
+ const modelLabel = node.model || 'Qwen/Qwen3-4B';
155
+ const bw = compute.totalBandwidthMbps ? `${Math.round(compute.totalBandwidthMbps)} Mbps` : '— Mbps';
156
+ const nodeRam = node.hardware?.memory;
157
+ const ramPct = nodeRam && compute.totalRamMb > 0
158
+ ? `${((nodeRam / compute.totalRamMb) * 100).toFixed(1)}%`
159
+ : '—';
160
+
161
+ const metrics = [
162
+ { label: 'Layers', value: layersLabel },
163
+ { label: 'Model', value: modelLabel },
164
+ { label: 'Sessions', value: node.sessions ?? 0 },
165
+ { label: 'Bandwidth', value: bw },
166
+ { label: 'RAM Share', value: ramPct },
167
+ ];
168
+
169
+ return (
170
+ <div className="flex flex-col gap-1.5 min-w-0">
171
+ <div className="text-2xs font-mono text-text-3 uppercase tracking-widest mb-1.5">Your Node</div>
172
+ {metrics.map((m) => (
173
+ <div key={m.label} className="bg-surface-1 rounded px-2.5 py-1.5 min-w-0">
174
+ <div className="text-2xs font-mono text-text-4 uppercase tracking-wider leading-none">{m.label}</div>
175
+ <div className="text-xs font-mono text-text-1 truncate leading-tight">{m.value}</div>
176
+ </div>
177
+ ))}
178
+ </div>
179
+ );
180
+ }
181
+
182
+ function BarsTrendsNode({ compute, allZero, avgGpuUtil }) {
183
+ const snapshots = useGrooveStore((s) => s.networkSnapshots);
184
+ const node = useGrooveStore((s) => s.networkNode);
185
+
186
+ return (
187
+ <div className="bg-surface-1 border-b border-border px-4 py-3" style={{ display: 'grid', gridTemplateColumns: '1fr 1.4fr 1fr', gap: '1.5rem' }}>
188
+ <div className="bg-surface-0 rounded border border-border-subtle px-3 py-2.5">
189
+ <div className="flex flex-col gap-0.5 min-w-0">
190
+ <div className="text-2xs font-mono text-text-3 uppercase tracking-widest mb-1.5">Resources</div>
191
+ {allZero ? (
192
+ <div className="text-2xs font-mono text-text-4">Waiting for network data...</div>
193
+ ) : (
194
+ <>
195
+ <AsciiBar label="RAM" value={compute.totalRamMb} max={MAX_RAM_MB} unit="GB" nodeCount={compute.totalNodes} />
196
+ <AsciiBar label="VRAM" value={compute.totalVramMb} max={MAX_VRAM_MB} unit="GB" nodeCount={compute.totalNodes} />
197
+ <AsciiBar label="CPU" value={compute.totalCpuCores} max={MAX_CPU} unit="cores" />
198
+ <AsciiBar label="GPU%" value={avgGpuUtil} max={100} unit="%" />
199
+ <AsciiBar label="LOAD" value={compute.avgLoad} max={MAX_LOAD} unit="" />
200
+ </>
201
+ )}
202
+ </div>
203
+ </div>
204
+ <div className="bg-surface-0 rounded border border-border-subtle px-3 py-2.5">
205
+ <TrendsColumn snapshots={snapshots} />
206
+ </div>
207
+ <div className="bg-surface-0 rounded border border-border-subtle px-3 py-2.5">
208
+ <YourNodeColumn node={node} compute={compute} />
209
+ </div>
210
+ </div>
211
+ );
212
+ }
213
+
110
214
  export const ComputeHeader = memo(function ComputeHeader() {
111
215
  const compute = useGrooveStore((s) => s.networkCompute);
112
216
  const nodes = useGrooveStore((s) => s.networkStatus.nodes || []);
@@ -148,19 +252,7 @@ export const ComputeHeader = memo(function ComputeHeader() {
148
252
  ))}
149
253
  </div>
150
254
 
151
- <div className="bg-surface-1 border-b border-border px-4 py-2.5">
152
- {allZero ? (
153
- <div className="text-2xs font-mono text-text-4">Waiting for network data...</div>
154
- ) : (
155
- <div className="flex flex-col gap-0.5">
156
- <AsciiBar label="RAM" value={compute.totalRamMb} max={MAX_RAM_MB} unit="GB" nodeCount={compute.totalNodes} />
157
- <AsciiBar label="VRAM" value={compute.totalVramMb} max={MAX_VRAM_MB} unit="GB" nodeCount={compute.totalNodes} />
158
- <AsciiBar label="CPU" value={compute.totalCpuCores} max={MAX_CPU} unit="cores" />
159
- <AsciiBar label="GPU%" value={avgGpuUtil} max={100} unit="%" />
160
- <AsciiBar label="LOAD" value={compute.avgLoad} max={MAX_LOAD} unit="" />
161
- </div>
162
- )}
163
- </div>
255
+ <BarsTrendsNode compute={compute} allZero={allZero} avgGpuUtil={avgGpuUtil} />
164
256
  </div>
165
257
  );
166
258
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groove-dev",
3
- "version": "0.27.62",
3
+ "version": "0.27.64",
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)",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groove-dev/cli",
3
- "version": "0.27.62",
3
+ "version": "0.27.64",
4
4
  "description": "GROOVE CLI — manage AI coding agents from your terminal",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groove-dev/daemon",
3
- "version": "0.27.62",
3
+ "version": "0.27.64",
4
4
  "description": "GROOVE daemon — agent orchestration engine",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "type": "module",
@@ -4725,10 +4725,13 @@ Keep responses concise. Help them think, don't lecture them about the system the
4725
4725
 
4726
4726
  app.get('/api/network/install/status', networkGate, (req, res) => {
4727
4727
  const installPath = networkRoot();
4728
- const installed = existsSync(resolve(installPath, 'setup.sh'));
4728
+ const dirExists = existsSync(installPath);
4729
+ const installed = dirExists && existsSync(resolve(installPath, 'setup.sh'));
4730
+ const stale = dirExists && !installed;
4729
4731
  res.json({
4730
4732
  installed,
4731
- path: installed ? installPath : null,
4733
+ stale,
4734
+ path: dirExists ? installPath : null,
4732
4735
  version: installed ? getInstalledNetworkVersion() : null,
4733
4736
  });
4734
4737
  });
@@ -4746,9 +4749,17 @@ Keep responses concise. Help them think, don't lecture them about the system the
4746
4749
  return res.status(500).json({ error: 'Invalid install path' });
4747
4750
  }
4748
4751
 
4749
- // Refuse to clone over an existing directory avoids surprising merges.
4752
+ // If directory exists from a previous failed install, clean it up automatically.
4750
4753
  if (existsSync(installPath)) {
4751
- return res.status(400).json({ error: 'Install path already exists; uninstall first' });
4754
+ if (daemon.config?.networkBeta?.installed) {
4755
+ return res.status(400).json({ error: 'Install path already exists; uninstall first' });
4756
+ }
4757
+ try {
4758
+ rmSync(installPath, { recursive: true, force: true });
4759
+ daemon.audit?.log?.('network.install.stale-cleanup', { path: installPath });
4760
+ } catch (cleanupErr) {
4761
+ return res.status(500).json({ error: `Failed to clean stale install directory: ${cleanupErr.message}` });
4762
+ }
4752
4763
  }
4753
4764
 
4754
4765
  daemon.networkInstall = { running: true, startedAt: Date.now() };