agentgui 1.0.433 → 1.0.435

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.
@@ -108,9 +108,9 @@ export function register(router, deps) {
108
108
 
109
109
  router.handle('agent.subagents', async (p) => {
110
110
  const agent = discoveredAgents.find(x => x.id === p.id);
111
- if (!agent || agent.protocol !== 'acp') return { subAgents: [] };
111
+ if (!agent || agent.protocol !== 'acp' || !agent.acpPort) return { subAgents: [] };
112
112
  try {
113
- const data = await acpFetch(agent.acpPort || 8080, '/agents/search', {});
113
+ const data = await acpFetch(agent.acpPort, '/agents/search', {});
114
114
  const list = Array.isArray(data) ? data : (data?.agents || []);
115
115
  return { subAgents: list.map(a => ({ id: a.agent_id || a.id, name: a.metadata?.ref?.name || a.name || a.agent_id || a.id })) };
116
116
  } catch (_) { return { subAgents: [] }; }
@@ -132,8 +132,8 @@ export function register(router, deps) {
132
132
  const cached = modelCache.get(p.id);
133
133
  if (cached && (Date.now() - cached.ts) < 300000) return { models: cached.models };
134
134
  const agent = discoveredAgents.find(x => x.id === p.id);
135
- if (agent?.protocol === 'acp') {
136
- const port = agent.acpPort || 8080;
135
+ if (agent?.protocol === 'acp' && agent.acpPort) {
136
+ const port = agent.acpPort;
137
137
  try {
138
138
  const data = await acpFetch(port, '/v1/models');
139
139
  const models = (data?.data || data?.models || []).map(m => ({
@@ -167,9 +167,9 @@ export function register(router, deps) {
167
167
  }
168
168
  } catch (_) {}
169
169
  }
170
- const acpAgents = discoveredAgents.filter(x => x.protocol === 'acp');
170
+ const acpAgents = discoveredAgents.filter(x => x.protocol === 'acp' && x.acpPort);
171
171
  for (const acpAgent of acpAgents) {
172
- const port = acpAgent.acpPort || 8080;
172
+ const port = acpAgent.acpPort;
173
173
  try {
174
174
  const desc = await acpFetch(port, `/agents/${p.id}/descriptor`);
175
175
  if (desc) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.433",
3
+ "version": "1.0.435",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",