diff --git a/package.json b/package.json index 1cf4a532..cd459a7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hermes-web-ui", - "version": "0.5.7", + "version": "0.5.8", "description": "Self-hosted AI chat dashboard for Hermes Agent — multi-model (Claude, GPT, Gemini, DeepSeek) web UI with Telegram, Discord, Slack, WhatsApp integration", "repository": { "type": "git", diff --git a/packages/server/src/services/hermes/gateway-manager.ts b/packages/server/src/services/hermes/gateway-manager.ts index 92416f97..f282e8e9 100644 --- a/packages/server/src/services/hermes/gateway-manager.ts +++ b/packages/server/src/services/hermes/gateway-manager.ts @@ -346,7 +346,7 @@ export class GatewayManager { const profiles: string[] = [] for (const line of stdout.trim().split('\n')) { if (line.startsWith(' Profile') || line.match(/^ ─/)) continue - const match = line.match(/^\s+(?:◆)?(\S+)\s{2,}/) + const match = line.match(/^\s+(?:◆)?(.+?)\s+/) if (match) profiles.push(match[1]) } return profiles diff --git a/packages/server/src/services/hermes/hermes-cli.ts b/packages/server/src/services/hermes/hermes-cli.ts index 166d362e..319047bb 100644 --- a/packages/server/src/services/hermes/hermes-cli.ts +++ b/packages/server/src/services/hermes/hermes-cli.ts @@ -394,7 +394,7 @@ export async function listProfiles(): Promise { for (const line of lines) { if (line.startsWith(' Profile') || line.match(/^ ─/)) continue - const match = line.match(/^\s+(◆)?(\S+)\s{2,}(\S+)\s{2,}(\S+)\s{2,}(.*)$/) + const match = line.match(/^\s+(◆)?(.+?)\s+(\S+)\s{2,}(\S+)\s{2,}(.*)$/) if (match) { profiles.push({ name: match[2],