feat(FN-4074): add priority option to task creation in engine and extension
Adds task priority support to the task creation flow, spanning the engine runtime (`agent-tools.ts`, `triage.ts`), the CLI extension interface (`extension.ts`), and corresponding documentation and tests. The changeset bumps `@runfusion/fusion` as a minor version. Fusion-Task-Id: FN-4074 Fusion-Task-Lineage: 726c0ae6-90fb-4c13-ace1-215a2becb2a9
This commit is contained in:
@@ -1574,12 +1574,18 @@ export class TriageProcessor {
|
||||
const taskGetParams = Type.Object({
|
||||
id: Type.String({ description: "Task ID (e.g. KB-001)" }),
|
||||
});
|
||||
const taskCreatePriorityValues = ["low", "normal", "high", "urgent"] as const;
|
||||
const taskCreateParams = Type.Object({
|
||||
title: Type.Optional(Type.String({ description: "Short child task title" })),
|
||||
description: Type.String({ description: "Child task description/mission" }),
|
||||
dependencies: Type.Optional(
|
||||
Type.Array(Type.String({ description: "Task ID dependency (e.g. KB-001)" })),
|
||||
),
|
||||
priority: Type.Optional(
|
||||
Type.Union(taskCreatePriorityValues.map((priority) => Type.Literal(priority)), {
|
||||
description: "Task priority (low, normal, high, urgent)",
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
const taskList: ToolDefinition = {
|
||||
@@ -1740,6 +1746,7 @@ export class TriageProcessor {
|
||||
description: params.description,
|
||||
dependencies: validDeps,
|
||||
column: "triage",
|
||||
priority: params.priority,
|
||||
// Inherit parent's model settings if available
|
||||
modelProvider: parentTask?.modelProvider,
|
||||
modelId: parentTask?.modelId,
|
||||
|
||||
Reference in New Issue
Block a user