groove-dev 0.12.1 → 0.12.3
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.
|
@@ -26,9 +26,7 @@ export async function start(options) {
|
|
|
26
26
|
process.on('SIGTERM', shutdown);
|
|
27
27
|
|
|
28
28
|
await daemon.start();
|
|
29
|
-
|
|
30
|
-
const guiUrl = `http://${isRemote ? daemon.host : 'localhost'}:${daemon.port}`;
|
|
31
|
-
console.log(chalk.green('Ready.') + ` Open ${guiUrl} for the GUI.`);
|
|
29
|
+
console.log(chalk.green('Ready.'));
|
|
32
30
|
} catch (err) {
|
|
33
31
|
console.error(chalk.red('Failed to start:'), err.message);
|
|
34
32
|
process.exit(1);
|
|
@@ -55,29 +55,31 @@ export function printWelcome(port, host = '127.0.0.1') {
|
|
|
55
55
|
console.log('');
|
|
56
56
|
const isRemote = host !== '127.0.0.1';
|
|
57
57
|
|
|
58
|
-
// Detect
|
|
59
|
-
|
|
60
|
-
const hasDisplay = !!(process.env.DISPLAY || process.env.WAYLAND_DISPLAY);
|
|
58
|
+
// Detect environment
|
|
59
|
+
const isVSCode = !!(process.env.VSCODE_GIT_IPC_HANDLE || process.env.VSCODE_IPC_HOOK_CLI || process.env.TERM_PROGRAM === 'vscode');
|
|
61
60
|
const isSSH = !!(process.env.SSH_CONNECTION || process.env.SSH_CLIENT || process.env.SSH_TTY);
|
|
62
|
-
const
|
|
63
|
-
const
|
|
61
|
+
const hasDisplay = !!(process.env.DISPLAY || process.env.WAYLAND_DISPLAY);
|
|
62
|
+
const isHeadless = !hasDisplay && !process.env.TERM_PROGRAM;
|
|
63
|
+
const isServer = !isVSCode && (isSSH || isHeadless);
|
|
64
64
|
|
|
65
65
|
if (isRemote) {
|
|
66
66
|
// Bound to network interface (Tailscale/LAN)
|
|
67
67
|
console.log(` GUI: http://${host}:${port}`);
|
|
68
68
|
console.log(` Host: ${host} (network-accessible)`);
|
|
69
|
+
} else if (isVSCode) {
|
|
70
|
+
// VS Code Remote — port forwarding happens automatically
|
|
71
|
+
console.log(` GUI: http://localhost:${port}`);
|
|
72
|
+
console.log(` VS Code forwards this port automatically.`);
|
|
69
73
|
} else if (isServer) {
|
|
70
|
-
//
|
|
74
|
+
// Plain SSH / headless — need groove connect
|
|
71
75
|
const sshUser = process.env.SUDO_USER || process.env.USER || 'user';
|
|
72
76
|
|
|
73
|
-
// Get server IP: try SSH_CONNECTION first, fall back to first public network interface
|
|
74
77
|
let serverIp = '';
|
|
75
78
|
const sshConn = process.env.SSH_CONNECTION || '';
|
|
76
79
|
if (sshConn) {
|
|
77
80
|
serverIp = sshConn.split(' ')[2] || '';
|
|
78
81
|
}
|
|
79
82
|
if (!serverIp) {
|
|
80
|
-
// Find first non-internal IPv4 address
|
|
81
83
|
const nets = networkInterfaces();
|
|
82
84
|
for (const addrs of Object.values(nets)) {
|
|
83
85
|
for (const addr of addrs) {
|
|
@@ -89,22 +91,20 @@ export function printWelcome(port, host = '127.0.0.1') {
|
|
|
89
91
|
if (serverIp) break;
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
|
-
serverIp = serverIp || '<
|
|
94
|
+
serverIp = serverIp || '<your-server-ip>';
|
|
93
95
|
|
|
94
|
-
console.log(`
|
|
96
|
+
console.log(` Daemon running on port ${port}`);
|
|
95
97
|
console.log('');
|
|
96
|
-
console.log('
|
|
97
|
-
console.log(` groove connect ${sshUser}@${serverIp}`);
|
|
98
|
+
console.log(' To open the GUI, open a terminal on your Mac/PC and run:');
|
|
98
99
|
console.log('');
|
|
99
|
-
console.log(
|
|
100
|
-
console.log(` ssh -L ${port + 1}:localhost:${port} ${sshUser}@${serverIp}`);
|
|
101
|
-
console.log(` Then open http://localhost:${port + 1}`);
|
|
100
|
+
console.log(` npx groove-dev connect ${sshUser}@${serverIp}`);
|
|
102
101
|
} else {
|
|
103
102
|
// Local machine with display
|
|
104
103
|
console.log(` GUI: http://localhost:${port}`);
|
|
105
104
|
}
|
|
106
105
|
|
|
107
|
-
console.log('
|
|
106
|
+
console.log('');
|
|
107
|
+
console.log(' Docs: https://docs.groovedev.ai');
|
|
108
108
|
console.log(' GitHub: https://github.com/grooveai-dev/groove');
|
|
109
109
|
console.log('');
|
|
110
110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groove-dev",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Open-source agent orchestration layer for AI coding tools. GUI dashboard, multi-agent coordination, zero cold-start (Journalist), infinite sessions (adaptive context rotation), AI Project Manager, Quick Launch. Works with Claude Code, Codex, Gemini CLI, Ollama.",
|
|
5
5
|
"license": "FSL-1.1-Apache-2.0",
|
|
6
6
|
"author": "Groove Dev <hello@groovedev.ai> (https://groovedev.ai)",
|
|
@@ -26,9 +26,7 @@ export async function start(options) {
|
|
|
26
26
|
process.on('SIGTERM', shutdown);
|
|
27
27
|
|
|
28
28
|
await daemon.start();
|
|
29
|
-
|
|
30
|
-
const guiUrl = `http://${isRemote ? daemon.host : 'localhost'}:${daemon.port}`;
|
|
31
|
-
console.log(chalk.green('Ready.') + ` Open ${guiUrl} for the GUI.`);
|
|
29
|
+
console.log(chalk.green('Ready.'));
|
|
32
30
|
} catch (err) {
|
|
33
31
|
console.error(chalk.red('Failed to start:'), err.message);
|
|
34
32
|
process.exit(1);
|
|
@@ -55,29 +55,31 @@ export function printWelcome(port, host = '127.0.0.1') {
|
|
|
55
55
|
console.log('');
|
|
56
56
|
const isRemote = host !== '127.0.0.1';
|
|
57
57
|
|
|
58
|
-
// Detect
|
|
59
|
-
|
|
60
|
-
const hasDisplay = !!(process.env.DISPLAY || process.env.WAYLAND_DISPLAY);
|
|
58
|
+
// Detect environment
|
|
59
|
+
const isVSCode = !!(process.env.VSCODE_GIT_IPC_HANDLE || process.env.VSCODE_IPC_HOOK_CLI || process.env.TERM_PROGRAM === 'vscode');
|
|
61
60
|
const isSSH = !!(process.env.SSH_CONNECTION || process.env.SSH_CLIENT || process.env.SSH_TTY);
|
|
62
|
-
const
|
|
63
|
-
const
|
|
61
|
+
const hasDisplay = !!(process.env.DISPLAY || process.env.WAYLAND_DISPLAY);
|
|
62
|
+
const isHeadless = !hasDisplay && !process.env.TERM_PROGRAM;
|
|
63
|
+
const isServer = !isVSCode && (isSSH || isHeadless);
|
|
64
64
|
|
|
65
65
|
if (isRemote) {
|
|
66
66
|
// Bound to network interface (Tailscale/LAN)
|
|
67
67
|
console.log(` GUI: http://${host}:${port}`);
|
|
68
68
|
console.log(` Host: ${host} (network-accessible)`);
|
|
69
|
+
} else if (isVSCode) {
|
|
70
|
+
// VS Code Remote — port forwarding happens automatically
|
|
71
|
+
console.log(` GUI: http://localhost:${port}`);
|
|
72
|
+
console.log(` VS Code forwards this port automatically.`);
|
|
69
73
|
} else if (isServer) {
|
|
70
|
-
//
|
|
74
|
+
// Plain SSH / headless — need groove connect
|
|
71
75
|
const sshUser = process.env.SUDO_USER || process.env.USER || 'user';
|
|
72
76
|
|
|
73
|
-
// Get server IP: try SSH_CONNECTION first, fall back to first public network interface
|
|
74
77
|
let serverIp = '';
|
|
75
78
|
const sshConn = process.env.SSH_CONNECTION || '';
|
|
76
79
|
if (sshConn) {
|
|
77
80
|
serverIp = sshConn.split(' ')[2] || '';
|
|
78
81
|
}
|
|
79
82
|
if (!serverIp) {
|
|
80
|
-
// Find first non-internal IPv4 address
|
|
81
83
|
const nets = networkInterfaces();
|
|
82
84
|
for (const addrs of Object.values(nets)) {
|
|
83
85
|
for (const addr of addrs) {
|
|
@@ -89,22 +91,20 @@ export function printWelcome(port, host = '127.0.0.1') {
|
|
|
89
91
|
if (serverIp) break;
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
|
-
serverIp = serverIp || '<
|
|
94
|
+
serverIp = serverIp || '<your-server-ip>';
|
|
93
95
|
|
|
94
|
-
console.log(`
|
|
96
|
+
console.log(` Daemon running on port ${port}`);
|
|
95
97
|
console.log('');
|
|
96
|
-
console.log('
|
|
97
|
-
console.log(` groove connect ${sshUser}@${serverIp}`);
|
|
98
|
+
console.log(' To open the GUI, open a terminal on your Mac/PC and run:');
|
|
98
99
|
console.log('');
|
|
99
|
-
console.log(
|
|
100
|
-
console.log(` ssh -L ${port + 1}:localhost:${port} ${sshUser}@${serverIp}`);
|
|
101
|
-
console.log(` Then open http://localhost:${port + 1}`);
|
|
100
|
+
console.log(` npx groove-dev connect ${sshUser}@${serverIp}`);
|
|
102
101
|
} else {
|
|
103
102
|
// Local machine with display
|
|
104
103
|
console.log(` GUI: http://localhost:${port}`);
|
|
105
104
|
}
|
|
106
105
|
|
|
107
|
-
console.log('
|
|
106
|
+
console.log('');
|
|
107
|
+
console.log(' Docs: https://docs.groovedev.ai');
|
|
108
108
|
console.log(' GitHub: https://github.com/grooveai-dev/groove');
|
|
109
109
|
console.log('');
|
|
110
110
|
}
|