diff --git a/package.json b/package.json index afb6565..fa1e9df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "agenthub", - "version": "0.1.2", + "version": "0.2.0", "description": "Local coordination layer for AI coding agents", "type": "module", "main": "./dist/index.js", diff --git a/src/cli/commands/watch.ts b/src/cli/commands/watch.ts index 7c89bd8..5ed1433 100644 --- a/src/cli/commands/watch.ts +++ b/src/cli/commands/watch.ts @@ -79,6 +79,10 @@ function describeEvent(event: AgentHubEvent): { label: string; detail: string } return { label: 'Decision', detail: event.title ?? '' }; case 'memory': return { label: 'Memory', detail: event.title ?? '' }; + default: + // 'agent' presence events are formatted in formatEvent() before reaching + // here; this fallback only satisfies exhaustiveness. + return { label: 'Event', detail: event.title ?? '' }; } } @@ -92,6 +96,13 @@ function describeEvent(event: AgentHubEvent): { label: string; detail: string } * agent's console (Claude / Codex / Kimi) regardless of surrounding output. */ export function formatEvent(event: AgentHubEvent): string { + // Presence events read more naturally as " joined ()" than the + // padded "