chore: removes the optional from projectRoot.

This commit is contained in:
Eyal Toledano
2025-03-31 15:58:52 -04:00
parent 3bfbe19fe3
commit 0e16d27294
15 changed files with 11 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ export function registerClearSubtasksTool(server) {
id: z.string().optional().describe("Task IDs (comma-separated) to clear subtasks from"),
all: z.boolean().optional().describe("Clear subtasks from all tasks"),
file: z.string().optional().describe("Path to the tasks file (default: tasks/tasks.json)"),
projectRoot: z.string().optional().describe("Root directory of the project (default: current working directory)")
projectRoot: z.string().describe("Root directory of the project (default: current working directory)")
}).refine(data => data.id || data.all, {
message: "Either 'id' or 'all' parameter must be provided",
path: ["id", "all"]