groove-dev 0.27.61 → 0.27.63
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/CLAUDE.md +7 -0
- package/node_modules/@groove-dev/cli/package.json +1 -1
- package/node_modules/@groove-dev/daemon/package.json +1 -1
- package/node_modules/@groove-dev/daemon/src/api.js +117 -16
- package/node_modules/@groove-dev/gui/dist/assets/{index-DWao9glo.js → index-Zb6PcuaY.js} +12 -12
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/package.json +1 -1
- package/node_modules/@groove-dev/gui/src/components/network/compute-header.jsx +98 -13
- package/node_modules/@groove-dev/gui/src/stores/groove.js +25 -6
- package/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/daemon/package.json +1 -1
- package/packages/daemon/src/api.js +117 -16
- package/packages/gui/dist/assets/{index-DWao9glo.js → index-Zb6PcuaY.js} +12 -12
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/package.json +1 -1
- package/packages/gui/src/components/network/compute-header.jsx +98 -13
- package/packages/gui/src/stores/groove.js +25 -6
|
@@ -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-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-Zb6PcuaY.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">
|
|
@@ -107,6 +107,103 @@ 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-0.5 min-w-0">
|
|
122
|
+
<div className="text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.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">
|
|
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-0.5 min-w-0">
|
|
147
|
+
<div className="text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.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-wider mb-0.5">Your Node</div>
|
|
172
|
+
{metrics.map((m) => (
|
|
173
|
+
<div key={m.label} className="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-2.5" style={{ display: 'grid', gridTemplateColumns: '1fr 1.4fr 1fr', gap: '1.5rem' }}>
|
|
188
|
+
<div className="flex flex-col gap-0.5 min-w-0">
|
|
189
|
+
{allZero ? (
|
|
190
|
+
<div className="text-2xs font-mono text-text-4">Waiting for network data...</div>
|
|
191
|
+
) : (
|
|
192
|
+
<>
|
|
193
|
+
<AsciiBar label="RAM" value={compute.totalRamMb} max={MAX_RAM_MB} unit="GB" nodeCount={compute.totalNodes} />
|
|
194
|
+
<AsciiBar label="VRAM" value={compute.totalVramMb} max={MAX_VRAM_MB} unit="GB" nodeCount={compute.totalNodes} />
|
|
195
|
+
<AsciiBar label="CPU" value={compute.totalCpuCores} max={MAX_CPU} unit="cores" />
|
|
196
|
+
<AsciiBar label="GPU%" value={avgGpuUtil} max={100} unit="%" />
|
|
197
|
+
<AsciiBar label="LOAD" value={compute.avgLoad} max={MAX_LOAD} unit="" />
|
|
198
|
+
</>
|
|
199
|
+
)}
|
|
200
|
+
</div>
|
|
201
|
+
<TrendsColumn snapshots={snapshots} />
|
|
202
|
+
<YourNodeColumn node={node} compute={compute} />
|
|
203
|
+
</div>
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
110
207
|
export const ComputeHeader = memo(function ComputeHeader() {
|
|
111
208
|
const compute = useGrooveStore((s) => s.networkCompute);
|
|
112
209
|
const nodes = useGrooveStore((s) => s.networkStatus.nodes || []);
|
|
@@ -148,19 +245,7 @@ export const ComputeHeader = memo(function ComputeHeader() {
|
|
|
148
245
|
))}
|
|
149
246
|
</div>
|
|
150
247
|
|
|
151
|
-
<
|
|
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>
|
|
248
|
+
<BarsTrendsNode compute={compute} allZero={allZero} avgGpuUtil={avgGpuUtil} />
|
|
164
249
|
</div>
|
|
165
250
|
);
|
|
166
251
|
});
|
|
@@ -1305,8 +1305,17 @@ export const useGrooveStore = create((set, get) => ({
|
|
|
1305
1305
|
try {
|
|
1306
1306
|
const result = await api.post('/recommended-team/launch', { teamId });
|
|
1307
1307
|
const agents = result.agents || [];
|
|
1308
|
+
const failures = result.failed || [];
|
|
1308
1309
|
const names = agents.map((a) => a.name).join(', ') || '';
|
|
1309
|
-
|
|
1310
|
+
|
|
1311
|
+
if (agents.length === 0 && failures.length > 0) {
|
|
1312
|
+
get().addToast('error', 'Delegation failed', failures.map(f => f.role + ': ' + f.error).join(', '));
|
|
1313
|
+
} else {
|
|
1314
|
+
get().addToast('success', 'Planner delegated work', names ? `→ ${names}` : undefined);
|
|
1315
|
+
if (failures.length > 0) {
|
|
1316
|
+
get().addToast('warning', `${failures.length} agent(s) failed to spawn`, failures.map(f => f.role + ': ' + f.error).join(', '));
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1310
1319
|
if (agents.length > 0) {
|
|
1311
1320
|
set((s) => ({
|
|
1312
1321
|
thinkingAgents: new Set([...s.thinkingAgents, ...agents.map((a) => a.id)]),
|
|
@@ -1337,11 +1346,21 @@ export const useGrooveStore = create((set, get) => ({
|
|
|
1337
1346
|
get().addToast('info', 'Launching team...');
|
|
1338
1347
|
const body = { ...(modifiedAgents && { agents: modifiedAgents }), ...(teamId && { teamId }) };
|
|
1339
1348
|
const result = await api.post('/recommended-team/launch', body);
|
|
1340
|
-
const
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1349
|
+
const totalOk = (result.launched || 0) + (result.reused || 0);
|
|
1350
|
+
const failures = result.failed || [];
|
|
1351
|
+
|
|
1352
|
+
if (totalOk === 0 && failures.length > 0) {
|
|
1353
|
+
get().addToast('error', 'Team launch failed', failures.map(f => f.role + ': ' + f.error).join(', '));
|
|
1354
|
+
} else {
|
|
1355
|
+
const sub = [
|
|
1356
|
+
result.phase2Pending ? `${result.phase2Pending} QC queued` : '',
|
|
1357
|
+
result.projectDir ? `→ ${result.projectDir}/` : '',
|
|
1358
|
+
].filter(Boolean).join(' · ');
|
|
1359
|
+
get().addToast('success', `Launched ${totalOk} agents`, sub || undefined);
|
|
1360
|
+
if (failures.length > 0) {
|
|
1361
|
+
get().addToast('warning', `${failures.length} agent(s) failed to spawn`, failures.map(f => f.role + ': ' + f.error).join(', '));
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1345
1364
|
// Set thinking indicator for all launched/reused agents
|
|
1346
1365
|
const launchedAgents = result.agents || [];
|
|
1347
1366
|
if (launchedAgents.length > 0) {
|