lobehub/apps/cli/src
Arvin Xu 34b60e1842
🔨 chore: return full brief data in task activities (#13914)
*  feat: return full brief data in task activities (LOBE-7266)

The activity feed for tasks previously emitted a stripped `brief` row that
concatenated `resolvedAction` and `resolvedComment` and omitted everything
BriefCard needs (taskId, topicId, agentId, cronJobId, agents, actions,
artifacts, readAt, resolvedAt, etc.). Map the full `BriefItem` into each
activity row and reuse `BriefService.enrichBriefsWithAgents` to populate
the participant avatars. The CLI and prompt formatter now compose the
action + comment display string themselves.

* 🐛 fix: degrade gracefully when brief agent enrichment fails

getTaskDetail was calling BriefService.enrichBriefsWithAgents inside
Promise.all without a fallback, so a failure in the agent-tree lookup
would reject the whole request — a regression vs. the existing
.catch(() => []) pattern used by other activity reads in this method.
Fall back to agentless briefs on error so the task detail keeps
rendering.
2026-04-17 19:10:48 +08:00
..
api 🔨 chore: add headless approval and apiKey WS auth to lh agent run (#13819) 2026-04-14 23:28:01 +08:00
auth feat(cli): support api key auth in cli (#13190) 2026-03-26 10:11:38 +08:00
commands 🔨 chore: return full brief data in task activities (#13914) 2026-04-17 19:10:48 +08:00
constants ♻️ refactor: add WebSocket gateway support to CLI agent run (#13608) 2026-04-07 16:49:25 +08:00
daemon feat(desktop): embed CLI in app and PATH install (#13669) 2026-04-09 00:53:49 +08:00
man feat(cli): add generated man pages (#13200) 2026-03-24 14:46:56 +08:00
settings ♻️ refactor: add WebSocket gateway support to CLI agent run (#13608) 2026-04-07 16:49:25 +08:00
tools ♻️ refactor(cli): extract shared @lobechat/local-file-shell package (#12865) 2026-03-11 00:04:22 +08:00
utils ♻️ refactor: extract agent-stream into @lobechat/agent-gateway-client package (#13866) 2026-04-16 11:25:32 +08:00
index.ts feat(desktop): embed CLI in app and PATH install (#13669) 2026-04-09 00:53:49 +08:00
program.ts feat(cli): add lh notify command for external agent callbacks (#13664) 2026-04-08 18:03:55 +08:00