agentgui 1.0.444 → 1.0.446

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.
@@ -114,9 +114,9 @@ export function register(router, deps) {
114
114
  const port = await ensureRunning(p.id);
115
115
  if (!port) return { subAgents: [] };
116
116
  try {
117
- const data = await acpFetch(port, '/agents/search', {});
117
+ const data = await acpFetch(port, '/agent');
118
118
  const list = Array.isArray(data) ? data : (data?.agents || []);
119
- return { subAgents: list.map(a => ({ id: a.agent_id || a.id, name: a.metadata?.ref?.name || a.name || a.agent_id || a.id })) };
119
+ return { subAgents: list.map(a => ({ id: a.name || a.agent_id || a.id, name: a.name || a.agent_id || a.id })) };
120
120
  } catch (_) { return { subAgents: [] }; }
121
121
  });
122
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.444",
3
+ "version": "1.0.446",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
@@ -372,7 +372,6 @@ class AgentGUIClient {
372
372
  if (this.ui.agentSelector) {
373
373
  this.ui.agentSelector.addEventListener('change', () => {
374
374
  if (!this._agentLocked) {
375
- this.loadModelsForAgent(this.getEffectiveAgentId());
376
375
  this.saveAgentAndModelToConversation();
377
376
  }
378
377
  });
@@ -1875,7 +1874,7 @@ class AgentGUIClient {
1875
1874
  .map(a => `<option value="${a.id}">${a.name}</option>`)
1876
1875
  .join('');
1877
1876
  this.ui.agentSelector.style.display = 'inline-block';
1878
- this.loadModelsForAgent(this.getEffectiveAgentId());
1877
+ this.loadModelsForAgent(cliAgentId);
1879
1878
  }
1880
1879
  } catch (_) {
1881
1880
  // No sub-agents available for this CLI tool — keep hidden