mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-15 14:19:13 +02:00
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>