feat(FN-2246): add executionMode support to task APIs and storage
- Add ExecutionMode type contracts and executionMode field to core task interfaces - Persist executionMode through SQLite schema mappings and TaskStore read/write paths - Validate executionMode in dashboard route handlers and API request handling - Expand core and dashboard test coverage for executionMode persistence and route behavior
This commit is contained in:
@@ -185,6 +185,7 @@ export function createTask(input: TaskCreateInput, projectId?: string): Promise<
|
||||
thinkingLevel,
|
||||
summarize,
|
||||
reviewLevel,
|
||||
executionMode,
|
||||
} = input;
|
||||
|
||||
return api<Task>(withProjectId("/tasks", projectId), {
|
||||
@@ -207,11 +208,12 @@ export function createTask(input: TaskCreateInput, projectId?: string): Promise<
|
||||
thinkingLevel,
|
||||
summarize,
|
||||
reviewLevel,
|
||||
executionMode,
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
export function updateTask(id: string, updates: { title?: string; description?: string; prompt?: string; dependencies?: string[]; enabledWorkflowSteps?: string[]; modelProvider?: string | null; modelId?: string | null; validatorModelProvider?: string | null; validatorModelId?: string | null; planningModelProvider?: string | null; planningModelId?: string | null; thinkingLevel?: string | null; reviewLevel?: number | null }, projectId?: string): Promise<Task> {
|
||||
export function updateTask(id: string, updates: { title?: string; description?: string; prompt?: string; dependencies?: string[]; enabledWorkflowSteps?: string[]; modelProvider?: string | null; modelId?: string | null; validatorModelProvider?: string | null; validatorModelId?: string | null; planningModelProvider?: string | null; planningModelId?: string | null; thinkingLevel?: string | null; reviewLevel?: number | null; executionMode?: "standard" | "fast" | null }, projectId?: string): Promise<Task> {
|
||||
return api<Task>(withProjectId(`/tasks/${id}`, projectId), {
|
||||
method: "PATCH",
|
||||
body: JSON.stringify(updates),
|
||||
|
||||
Reference in New Issue
Block a user