neohive 6.1.3 → 6.2.0
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/cli.js +16 -1
- package/dashboard.html +300 -842
- package/dashboard.js +13 -4
- package/lib/resolve-server-data-dir.js +28 -8
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -291,6 +291,13 @@ function setupAntigravity(cwd) {
|
|
|
291
291
|
|
|
292
292
|
const abDataDir = path.join(path.resolve(cwd), '.neohive').replace(/\\/g, '/');
|
|
293
293
|
|
|
294
|
+
// Antigravity uses a single global config. Warn if overwriting a different project.
|
|
295
|
+
const existing = config.mcpServers['neohive'];
|
|
296
|
+
if (existing && existing.env && existing.env.NEOHIVE_DATA_DIR && existing.env.NEOHIVE_DATA_DIR !== abDataDir) {
|
|
297
|
+
console.log(' [warn] Antigravity: overwriting previous project → ' + existing.env.NEOHIVE_DATA_DIR);
|
|
298
|
+
console.log(' Antigravity uses a single global config — only one project at a time.');
|
|
299
|
+
}
|
|
300
|
+
|
|
294
301
|
config.mcpServers['neohive'] = {
|
|
295
302
|
command: 'npx',
|
|
296
303
|
args: ['-y', 'neohive', 'mcp'],
|
|
@@ -602,6 +609,14 @@ function init() {
|
|
|
602
609
|
|
|
603
610
|
console.log('');
|
|
604
611
|
|
|
612
|
+
// Create .neohive/ data directory up front so the dashboard and file
|
|
613
|
+
// watcher work immediately, even before the first MCP server starts.
|
|
614
|
+
const neohiveDir = dataDir(cwd);
|
|
615
|
+
if (!fs.existsSync(neohiveDir)) {
|
|
616
|
+
fs.mkdirSync(neohiveDir, { recursive: true, mode: 0o700 });
|
|
617
|
+
console.log(' [ok] Created ' + path.basename(neohiveDir) + '/');
|
|
618
|
+
}
|
|
619
|
+
|
|
605
620
|
for (const target of targets) {
|
|
606
621
|
switch (target) {
|
|
607
622
|
case 'claude': setupClaude(serverPath, cwd); break;
|
|
@@ -634,7 +649,7 @@ function init() {
|
|
|
634
649
|
console.log('');
|
|
635
650
|
console.log(
|
|
636
651
|
configuredCursor
|
|
637
|
-
? ' Neohive is ready!
|
|
652
|
+
? ' Neohive is ready! Reload Cursor (Cmd+Shift+P → Reload Window), then enable "neohive" in Settings > Tools & MCP.'
|
|
638
653
|
: ' Neohive is ready! Restart your CLI to pick up the MCP tools.'
|
|
639
654
|
);
|
|
640
655
|
console.log(' MCP server command is your current Node binary (works when the IDE has no Volta/nvm in PATH):');
|