groove-dev 0.8.1 → 0.8.2

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.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>GROOVE</title>
7
- <script type="module" crossorigin src="/assets/index-BO95Rm1F.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-B5E3l1CX.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-CPzm9ZE9.css">
9
9
  </head>
10
10
  <body>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groove-dev/gui",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "GROOVE GUI — visual agent control plane",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "type": "module",
@@ -176,7 +176,9 @@ export default function AgentActions({ agent }) {
176
176
  </div>
177
177
 
178
178
  {/* Model selector */}
179
- <div style={{ ...styles.sectionLabel, marginTop: 20 }}>MODEL</div>
179
+ <div style={{ ...styles.sectionLabel, marginTop: 20 }}>
180
+ MODEL {agent.routingMode === 'auto' && <span style={{ color: 'var(--accent)', fontWeight: 400, textTransform: 'none' }}> — auto-routed</span>}
181
+ </div>
180
182
  <select
181
183
  style={styles.select}
182
184
  value={selectedModel}
@@ -235,7 +237,7 @@ export default function AgentActions({ agent }) {
235
237
  <ConfigRow label="ID" value={agent.id} />
236
238
  <ConfigRow label="Role" value={agent.role} />
237
239
  <ConfigRow label="Provider" value={agent.provider} />
238
- <ConfigRow label="Model" value={agent.model || 'default'} />
240
+ <ConfigRow label="Model" value={agent.routingMode === 'auto' ? `auto (${agent.model || 'pending'})` : agent.model || 'default'} />
239
241
  <ConfigRow label="Scope" value={(agent.scope || []).join(', ') || 'unrestricted'} />
240
242
  <ConfigRow label="Status" value={agent.status} />
241
243
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groove-dev",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
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, Aider, Ollama.",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "author": "Groove Dev <hello@groovedev.ai> (https://groovedev.ai)",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groove-dev/cli",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "GROOVE CLI — manage AI coding agents from your terminal",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groove-dev/daemon",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "GROOVE daemon — agent orchestration engine",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "type": "module",
@@ -1,7 +1,8 @@
1
1
  // GROOVE Daemon — Entry Point
2
2
  // FSL-1.1-Apache-2.0 — see LICENSE
3
3
 
4
- import { createServer } from 'http';
4
+ import { createServer as createHttpServer } from 'http';
5
+ import { createServer as createNetServer } from 'net';
5
6
  import { resolve } from 'path';
6
7
  import { readFileSync, writeFileSync, unlinkSync, existsSync, mkdirSync } from 'fs';
7
8
  import express from 'express';
@@ -71,7 +72,7 @@ export class Daemon {
71
72
 
72
73
  // HTTP + WebSocket server
73
74
  this.app = express();
74
- this.server = createServer(this.app);
75
+ this.server = createHttpServer(this.app);
75
76
  this.wss = new WebSocketServer({
76
77
  server: this.server,
77
78
  maxPayload: 1024 * 1024, // 1MB max message
@@ -123,17 +124,35 @@ export class Daemon {
123
124
  }
124
125
 
125
126
  async start() {
126
- // Check for existing daemon
127
+ // Kill any existing daemon on our port
127
128
  if (existsSync(this.pidFile)) {
128
129
  const existingPid = parseInt(readFileSync(this.pidFile, 'utf8'), 10);
129
130
  try {
130
131
  process.kill(existingPid, 0); // Signal 0 = check if alive
131
- console.error(`GROOVE daemon already running (PID ${existingPid})`);
132
- process.exit(1);
132
+ console.log(` Stopping previous daemon (PID ${existingPid})...`);
133
+ process.kill(existingPid, 'SIGTERM');
134
+ // Wait briefly for clean shutdown
135
+ await new Promise((r) => setTimeout(r, 1000));
136
+ try { process.kill(existingPid, 'SIGKILL'); } catch { /* already dead */ }
133
137
  } catch {
134
- // PID file is stale — previous daemon crashed
135
- unlinkSync(this.pidFile);
138
+ // PID file is stale
136
139
  }
140
+ try { unlinkSync(this.pidFile); } catch { /* ignore */ }
141
+ }
142
+
143
+ // Check if port is in use by something else
144
+ const portFree = await new Promise((res) => {
145
+ const tester = createNetServer();
146
+ tester.once('error', () => res(false));
147
+ tester.once('listening', () => { tester.close(); res(true); });
148
+ tester.listen(this.port, '127.0.0.1');
149
+ }).catch(() => false);
150
+
151
+ if (!portFree) {
152
+ console.error(`\n Port ${this.port} is in use by another application.`);
153
+ console.error(` Try a different port: groove start --port 31416`);
154
+ console.error(` Or stop whatever is using port ${this.port}\n`);
155
+ process.exit(1);
137
156
  }
138
157
 
139
158
  // Restore persisted state