feat(FN-2052): merge fusion/fn-2052

This commit is contained in:
gsxdsm
2026-04-18 10:43:23 -07:00
parent fad2c68ba2
commit 89b5a722dc
6 changed files with 441 additions and 4 deletions

View File

@@ -32,6 +32,8 @@ import type { StuckTaskDetector } from "./stuck-task-detector.js";
import { readFile } from "node:fs/promises";
import { join } from "node:path";
import {
createDelegateTaskTool,
createListAgentsTool,
createMemoryTools,
createTaskDocumentReadTool,
createTaskDocumentWriteTool,
@@ -653,6 +655,11 @@ export class TriageProcessor {
createTaskDocumentWriteTool(this.store, task.id),
createTaskDocumentReadTool(this.store, task.id),
...createMemoryTools(this.rootDir, settings),
// Agent delegation tools — discover and delegate work to other agents.
...(this.options.agentStore ? [
createListAgentsTool(this.options.agentStore),
createDelegateTaskTool(this.options.agentStore, this.store),
] : []),
this.createReviewSpecTool(
task.id,
promptPath,