Files
multica/server/pkg/protocol
Jiayuan Zhang 90fb549b4b feat(agentflow): add daemon support for agentflow tasks
Extend the daemon and server to handle agentflow-triggered tasks that
have no associated issue. Agentflow tasks are enqueued into the existing
agent_task_queue with issue_id = NULL and agentflow_run_id set.

Changes:
- Migration 033: create agentflow/trigger/run tables, extend task queue
- Daemon types: add AgentflowRunID and AgentflowData to Task struct
- Daemon prompt: add BuildAgentflowPrompt for agentflow executions
- Execution env: add AgentflowPrompt field and workflow section
- Daemon runTask: select prompt based on task type, inject agentflow context
- Handler ClaimTaskByRuntime: populate agentflow data, handle NULL issue_id
- Handler ReportTaskProgress/Messages: resolve workspace from agentflow
- TaskService CompleteTask/FailTask: update agentflow run status
- Agentflow CRUD handlers, scheduler, and API routes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 22:37:05 +08:00
..