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.
- package/lib/ws-handlers-session.js +10 -2
- package/package.json +1 -1
- package/static/js/client.js +1 -1
|
@@ -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 =>
|
|
127
|
-
|
|
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
package/static/js/client.js
CHANGED
|
@@ -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}
|
|
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;
|