agentgui 1.0.490 → 1.0.491

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.
@@ -123,8 +123,16 @@ export function register(router, deps) {
123
123
  } catch {
124
124
  agents = output.split('\n')
125
125
  .map(line => line.trim())
126
- .filter(line => line && !line.startsWith('-') && !line.startsWith('#'))
127
- .map(line => ({ id: line.toLowerCase().replace(/\s+/g, '-'), name: line }));
126
+ .filter(line => {
127
+ if (!line || line.startsWith('-') || line.startsWith('#')) return false;
128
+ if (/active agents?$/.test(line)) return false;
129
+ if (line.endsWith(':') && (line.includes('agents') || line.includes('agent'))) return false;
130
+ return true;
131
+ })
132
+ .map(line => {
133
+ let name = line.replace(/\s*-\s*inherit\s*$/, '').trim();
134
+ return { id: name.toLowerCase().replace(/\s+/g, '-'), name };
135
+ });
128
136
  }
129
137
  if (Array.isArray(agents) && agents.length > 0) {
130
138
  return { subAgents: agents };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.490",
3
+ "version": "1.0.491",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -1581,7 +1581,7 @@ class AgentGUIClient {
1581
1581
  let finalPrompt = prompt;
1582
1582
  if (subAgent && agentId === 'claude-code') {
1583
1583
  const displaySubAgent = subAgent.split('-·-')[0];
1584
- finalPrompt = `use ${displaySubAgent} subagent to ${prompt} optimize for speech keep it short optimize for clarity`;
1584
+ finalPrompt = `use ${displaySubAgent} subagent to ${prompt}`;
1585
1585
  }
1586
1586
  const streamBody = { id: conversationId, content: finalPrompt, agentId };
1587
1587
  if (model) streamBody.model = model;