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.
- 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 +15 -4
- package/node_modules/@groove-dev/gui/dist/assets/{index-Dvum7uoe.js → index-DiiEKVEo.js} +11 -11
- 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 +105 -13
- 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 +15 -4
- package/packages/gui/dist/assets/{index-Dvum7uoe.js → index-DiiEKVEo.js} +11 -11
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/package.json +1 -1
- package/packages/gui/src/components/network/compute-header.jsx +105 -13
- package/ui.png +0 -0
|
@@ -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-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">
|
|
@@ -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
|
-
<
|
|
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/ui.png
ADDED
|
Binary file
|