mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-28 10:41:50 +08:00
feat(agent): support reopening and steering tasks via resume_task, set_task_goals, and add_task_intent
- Add resume_task, set_task_goals, and add_task_intent orchestration tools bound to auto (and resume_task also bound to mainagent with task-context scoping) plus one-shot DB binding/prompt migrations.
- Wire task ID, NotifyGoal, and reviveTask into delegateToTask so set_task_goals and add_task_intent revive done/paused tasks in place while preserving graph/findings.
- Add shared resumeOrReopenTask and POST /api/tasks/{id}/resume (also wired into MCP resume_task) to reopen terminal tasks with open goals/intents and refuse closed tasks with no remaining work.
- Update auto and mainagent default prompts to prefer in-place resume/steering over spawning duplicate tasks.
Fixes #196
This commit is contained in:
1 parent
253a8eeac3
commit
f7bf75f535
9 files changed
+726
-17
No files matched your search
@@ -221,6 +221,8 @@ func (t *ToolSet) ListWorkerTracesTool() actool.CoreTool { return t.listWorker
|
||||
func (t *ToolSet) SearchWorkerTracesTool() actool.CoreTool { return t.searchAllWorkerTraces() }
|
||||
func (t *ToolSet) NodeDetailTool() actool.CoreTool { return t.nodeDetail() }
|
||||
func (t *ToolSet) AddHintTool() actool.CoreTool { return t.addHint() }
|
||||
func (t *ToolSet) AddIntentTool() actool.CoreTool { return t.addIntent() }
|
||||
func (t *ToolSet) SetGoalsTool() actool.CoreTool { return t.setGoals() }
|
||||
|
||||
// SetEnrich wires the async enrichment engine (DNS/HTTP auto-completion).
|
||||
func (t *ToolSet) SetEnrich(e EnrichTrigger) { t.enrich = e }
|
||||
|
||||
Reference in new issue
Block a user