agentgui 1.0.482 → 1.0.483

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.
@@ -111,6 +111,25 @@ export function register(router, deps) {
111
111
  router.handle('agent.subagents', async (p) => {
112
112
  const agent = discoveredAgents.find(x => x.id === p.id);
113
113
  if (p.id === 'claude-code') {
114
+ try {
115
+ const output = execSync('claude agents list', {
116
+ encoding: 'utf-8',
117
+ timeout: 2000,
118
+ stdio: ['pipe', 'pipe', 'pipe']
119
+ });
120
+ let agents = [];
121
+ try {
122
+ agents = JSON.parse(output);
123
+ } catch {
124
+ agents = output.split('\n')
125
+ .map(line => line.trim())
126
+ .filter(line => line && !line.startsWith('-') && !line.startsWith('#'))
127
+ .map(line => ({ id: line.toLowerCase().replace(/\s+/g, '-'), name: line }));
128
+ }
129
+ if (Array.isArray(agents) && agents.length > 0) {
130
+ return { subAgents: agents };
131
+ }
132
+ } catch (_) {}
114
133
  const skillsDir = path.join(os.homedir(), '.claude', 'skills');
115
134
  try {
116
135
  const entries = fs.readdirSync(skillsDir, { withFileTypes: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.482",
3
+ "version": "1.0.483",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",