groove-dev 0.26.0 → 0.26.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.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/png" href="/favicon.png" />
7
7
  <title>Groove GUI</title>
8
- <script type="module" crossorigin src="/assets/index-BqL4GcgZ.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-BC2Bhfv0.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/vendor-C0HXlhrU.js">
10
10
  <link rel="modulepreload" crossorigin href="/assets/reactflow-BQPfi37R.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/codemirror-BBL3i_JW.js">
@@ -158,7 +158,13 @@ export const useGrooveStore = create((set, get) => ({
158
158
  }
159
159
 
160
160
  // Text responses → chat bubbles (stream: append to recent agent message)
161
- if ((data.subtype === 'assistant' || data.type === 'result') && chatText && chatText.trim()) {
161
+ // Claude Code: subtype='assistant' or type='result' with structured data
162
+ // Gemini/Codex/Ollama/Local: type='activity' with plain string data (no subtype)
163
+ const showAsChat = chatText && chatText.trim() && (
164
+ data.subtype === 'assistant' || data.type === 'result' ||
165
+ (data.type === 'activity' && typeof data.data === 'string')
166
+ );
167
+ if (showAsChat) {
162
168
  const history = { ...get().chatHistory };
163
169
  if (!history[agentId]) history[agentId] = [];
164
170
  const arr = [...history[agentId]];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groove-dev",
3
- "version": "0.26.0",
3
+ "version": "0.26.2",
4
4
  "description": "Open-source agent orchestration layer — the AI company OS. Local model agent engine (GGUF/Ollama/llama-server), HuggingFace model browser, MCP integrations (Slack, Gmail, Stripe, 15+), agent scheduling (cron), business roles (CMO, CFO, EA). GUI dashboard, multi-agent coordination, zero cold-start, infinite sessions. Works with Claude Code, Codex, Gemini CLI, Ollama, any local model.",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "author": "Groove Dev <hello@groovedev.ai> (https://groovedev.ai)",
@@ -28,7 +28,6 @@ export class AgentLoop extends EventEmitter {
28
28
  this.turns = 0;
29
29
  this.toolCallCount = 0;
30
30
  this.startedAt = Date.now();
31
- this.lastContextUsage = 0;
32
31
 
33
32
  // Tool executor — sandboxed to agent's working directory
34
33
  this.executor = new ToolExecutor(
@@ -190,8 +189,9 @@ export class AgentLoop extends EventEmitter {
190
189
  });
191
190
  }
192
191
 
193
- // Context window management
194
- this._checkContext();
192
+ // Context rotation is handled by the Rotator's 15s polling loop
193
+ // which checks registry.contextUsage against the adaptive threshold.
194
+ // The journalist has full logs — no need for in-loop compaction.
195
195
  }
196
196
  }
197
197
 
@@ -356,7 +356,6 @@ export class AgentLoop extends EventEmitter {
356
356
  // Context usage = how full the context window is
357
357
  const contextWindow = this.config.contextWindow || 32768;
358
358
  const contextUsage = contextWindow > 0 ? Math.min(inputTokens / contextWindow, 1) : 0;
359
- this.lastContextUsage = contextUsage;
360
359
 
361
360
  // Emit token event — ProcessManager handles registry updates + subsystem feeding
362
361
  this.emit('output', {
@@ -369,40 +368,6 @@ export class AgentLoop extends EventEmitter {
369
368
  });
370
369
  }
371
370
 
372
- // --- Context Management ---
373
-
374
- _checkContext() {
375
- // Compact old messages to buy time before rotation kicks in
376
- // (Uses internal tracker — registry.contextUsage is set by PM handler)
377
- if (this.lastContextUsage > 0.7 && this.messages.length > 20) {
378
- this._compactHistory();
379
- }
380
- // Rotation itself is handled by the Rotator's 15s polling loop
381
- // which checks registry.contextUsage against adaptive threshold
382
- }
383
-
384
- _compactHistory() {
385
- const systemPrompt = this.messages[0];
386
- const keepRecent = 14;
387
-
388
- if (this.messages.length <= keepRecent + 2) return;
389
-
390
- // Truncate tool results in old messages to save tokens
391
- const old = this.messages.slice(1, -(keepRecent));
392
- const compacted = old.map((msg) => {
393
- if (msg.role === 'tool' && msg.content && msg.content.length > 200) {
394
- return { ...msg, content: msg.content.slice(0, 150) + '\n[... truncated to save context]' };
395
- }
396
- if (msg.role === 'assistant' && msg.content && msg.content.length > 500) {
397
- return { ...msg, content: msg.content.slice(0, 400) + '\n[... truncated]' };
398
- }
399
- return msg;
400
- });
401
-
402
- const recent = this.messages.slice(-(keepRecent));
403
- this.messages = [systemPrompt, ...compacted, ...recent];
404
- }
405
-
406
371
  // --- System Prompt ---
407
372
 
408
373
  _buildSystemPrompt() {