multica/server/pkg/db/generated
Jiayuan 37881adbed feat(server): trigger agents via @mention in comments
When a user @mentions an agent in any issue's comment, the system now
enqueues a task for that agent. The agent reads the issue context and
replies to the triggering comment thread.

Changes:
- Add shared util.ParseMentions for mention parsing (used by both
  comment handler and notification listeners)
- Add EnqueueTaskForMention to TaskService for explicit agent targeting
- Add on_mention trigger type support in agent trigger config
- Add HasPendingTaskForIssueAndAgent SQL query for per-agent dedup
- Add enqueueMentionedAgentTasks in CreateComment handler

Safety: prevents self-trigger (agent mentioning itself), dedup with
assignee on_comment trigger, terminal issue status check, and per-agent
pending task dedup.
2026-03-31 15:30:24 +08:00
..
activity.sql.go fix(activity): address code review feedback and improve timeline UX 2026-03-29 00:21:46 +08:00
agent.sql.go feat(server): trigger agents via @mention in comments 2026-03-31 15:30:24 +08:00
comment.sql.go feat(api): strict workspace isolation + agent parity fixes 2026-03-30 16:49:13 +08:00
db.go feat(server): implement full REST API with JWT auth and real-time WebSocket 2026-03-22 11:50:03 +08:00
inbox.sql.go feat(api): strict workspace isolation + agent parity fixes 2026-03-30 16:49:13 +08:00
issue.sql.go feat(api): strict workspace isolation + agent parity fixes 2026-03-30 16:49:13 +08:00
issue_reaction.sql.go feat(reactions): add emoji reactions for comments and issue descriptions 2026-03-30 22:37:59 +08:00
member.sql.go feat(server): implement full REST API with JWT auth and real-time WebSocket 2026-03-22 11:50:03 +08:00
models.go feat(agents): reply as thread instead of top-level comment (#205) 2026-03-31 13:48:39 +08:00
personal_access_token.sql.go feat(auth): email verification login and personal access tokens 2026-03-26 14:32:30 +08:00
reaction.sql.go feat(reactions): add emoji reactions for comments and issue descriptions 2026-03-30 22:37:59 +08:00
runtime.sql.go feat(tasks): add coalescing queue and task lifecycle guards 2026-03-29 17:52:35 +08:00
runtime_usage.sql.go feat(runtimes): add usage charts, activity heatmap, and hourly distribution 2026-03-29 15:44:10 +08:00
skill.sql.go feat(api): strict workspace isolation + agent parity fixes 2026-03-30 16:49:13 +08:00
subscriber.sql.go feat(notifications): replace hardcoded inbox notifications with subscriber-driven model 2026-03-28 19:33:20 +08:00
task_message.sql.go feat(agent): stream live agent output to issue detail page 2026-03-30 22:53:28 +08:00
user.sql.go feat(server): implement full REST API with JWT auth and real-time WebSocket 2026-03-22 11:50:03 +08:00
verification_code.sql.go feat(auth): email verification login and personal access tokens 2026-03-26 14:32:30 +08:00
workspace.sql.go feat(issues): add human-readable issue identifiers (e.g. JIA-1) 2026-03-29 16:49:55 +08:00