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
|
@@ -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
|
|
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
|
-
|
|
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
|
-
//
|
|
4752
|
+
// If directory exists from a previous failed install, clean it up automatically.
|
|
4750
4753
|
if (existsSync(installPath)) {
|
|
4751
|
-
|
|
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() };
|