agentgui 1.0.416 → 1.0.417
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/package.json +1 -1
- package/static/js/client.js +3 -20
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -1823,27 +1823,10 @@ class AgentGUIClient {
|
|
|
1823
1823
|
const { agents } = await window.wsClient.rpc('agent.ls');
|
|
1824
1824
|
this.state.agents = agents;
|
|
1825
1825
|
|
|
1826
|
-
//
|
|
1827
|
-
const cliAgents = agents.filter(agent => agent.protocol === 'cli');
|
|
1828
|
-
const acpAgents = agents.filter(agent => agent.protocol === 'acp');
|
|
1829
|
-
|
|
1830
|
-
// Populate CLI agent selector
|
|
1831
|
-
if (this.ui.agentSelector) {
|
|
1832
|
-
if (cliAgents.length > 0) {
|
|
1833
|
-
this.ui.agentSelector.innerHTML = cliAgents
|
|
1834
|
-
.map(agent => `<option value="${agent.id}">${agent.name}</option>`)
|
|
1835
|
-
.join('');
|
|
1836
|
-
this.ui.agentSelector.style.display = 'inline-block';
|
|
1837
|
-
} else {
|
|
1838
|
-
this.ui.agentSelector.innerHTML = '';
|
|
1839
|
-
this.ui.agentSelector.style.display = 'none';
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
// Populate ACP agent selector
|
|
1826
|
+
// Populate unified agent selector with all agents (both CLI and ACP)
|
|
1844
1827
|
if (this.ui.agentSelector) {
|
|
1845
|
-
if (
|
|
1846
|
-
this.ui.agentSelector.innerHTML =
|
|
1828
|
+
if (agents.length > 0) {
|
|
1829
|
+
this.ui.agentSelector.innerHTML = agents
|
|
1847
1830
|
.map(agent => `<option value="${agent.id}">${agent.name}</option>`)
|
|
1848
1831
|
.join('');
|
|
1849
1832
|
this.ui.agentSelector.style.display = 'inline-block';
|