Skip to content

Commit 47882af

Browse files
authored
Polish index.ts
1 parent 721fc4f commit 47882af

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

index.ts

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,28 @@ const DELETE_TASK_TOOL: Tool = {
419419
},
420420
};
421421

422+
const ADD_TASK_COMMENT_TOOL: Tool = {
423+
name: "add_task_comment",
424+
description:
425+
"Add a comment to an existing task without modifying the task description. Comments support markdown formatting.",
426+
inputSchema: {
427+
type: "object",
428+
properties: {
429+
taskId: {
430+
type: "string",
431+
description: "The 12-character alphanumeric ID of the task",
432+
pattern: "^[a-zA-Z0-9]{12}$",
433+
},
434+
text: {
435+
type: "string",
436+
description:
437+
"The full content of the comment, which can include markdown formatting.",
438+
},
439+
},
440+
required: ["taskId", "text"],
441+
},
442+
};
443+
422444
const LIST_DOCS_TOOL: Tool = {
423445
name: "list_docs",
424446
description:
@@ -560,27 +582,6 @@ const DELETE_DOC_TOOL: Tool = {
560582
},
561583
};
562584

563-
const ADD_TASK_COMMENT_TOOL: Tool = {
564-
name: "add_task_comment",
565-
description:
566-
"Add a comment to an existing task without modifying the task description. Comments support markdown formatting.",
567-
inputSchema: {
568-
type: "object",
569-
properties: {
570-
taskId: {
571-
type: "string",
572-
description: "The 12-character alphanumeric ID of the task",
573-
pattern: "^[a-zA-Z0-9]{12}$",
574-
},
575-
text: {
576-
type: "string",
577-
description: "The full content of the comment, which can include markdown formatting",
578-
},
579-
},
580-
required: ["taskId", "text"],
581-
},
582-
};
583-
584585
// Server
585586
const server = new Server(
586587
{

0 commit comments

Comments
 (0)