@geonheeye/dooray-mcp 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +149 -0
- package/dist/api/client.d.ts +85 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +272 -0
- package/dist/api/client.js.map +1 -0
- package/dist/api/common.d.ts +14 -0
- package/dist/api/common.d.ts.map +1 -0
- package/dist/api/common.js +25 -0
- package/dist/api/common.js.map +1 -0
- package/dist/api/drive.d.ts +22 -0
- package/dist/api/drive.d.ts.map +1 -0
- package/dist/api/drive.js +86 -0
- package/dist/api/drive.js.map +1 -0
- package/dist/api/messenger.d.ts +56 -0
- package/dist/api/messenger.d.ts.map +1 -0
- package/dist/api/messenger.js +49 -0
- package/dist/api/messenger.js.map +1 -0
- package/dist/api/projects.d.ts +147 -0
- package/dist/api/projects.d.ts.map +1 -0
- package/dist/api/projects.js +485 -0
- package/dist/api/projects.js.map +1 -0
- package/dist/api/wiki.d.ts +38 -0
- package/dist/api/wiki.d.ts.map +1 -0
- package/dist/api/wiki.js +139 -0
- package/dist/api/wiki.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +736 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/common/get-my-member-info.d.ts +29 -0
- package/dist/tools/common/get-my-member-info.d.ts.map +1 -0
- package/dist/tools/common/get-my-member-info.js +95 -0
- package/dist/tools/common/get-my-member-info.js.map +1 -0
- package/dist/tools/drive/copy-drive-file.d.ts +62 -0
- package/dist/tools/drive/copy-drive-file.d.ts.map +1 -0
- package/dist/tools/drive/copy-drive-file.js +91 -0
- package/dist/tools/drive/copy-drive-file.js.map +1 -0
- package/dist/tools/drive/create-drive-folder.d.ts +55 -0
- package/dist/tools/drive/create-drive-folder.d.ts.map +1 -0
- package/dist/tools/drive/create-drive-folder.js +91 -0
- package/dist/tools/drive/create-drive-folder.js.map +1 -0
- package/dist/tools/drive/delete-drive-file.d.ts +48 -0
- package/dist/tools/drive/delete-drive-file.d.ts.map +1 -0
- package/dist/tools/drive/delete-drive-file.js +87 -0
- package/dist/tools/drive/delete-drive-file.js.map +1 -0
- package/dist/tools/drive/download-drive-file.d.ts +55 -0
- package/dist/tools/drive/download-drive-file.d.ts.map +1 -0
- package/dist/tools/drive/download-drive-file.js +160 -0
- package/dist/tools/drive/download-drive-file.js.map +1 -0
- package/dist/tools/drive/get-drive-file-list.d.ts +77 -0
- package/dist/tools/drive/get-drive-file-list.d.ts.map +1 -0
- package/dist/tools/drive/get-drive-file-list.js +89 -0
- package/dist/tools/drive/get-drive-file-list.js.map +1 -0
- package/dist/tools/drive/get-drive-file-meta.d.ts +41 -0
- package/dist/tools/drive/get-drive-file-meta.d.ts.map +1 -0
- package/dist/tools/drive/get-drive-file-meta.js +74 -0
- package/dist/tools/drive/get-drive-file-meta.js.map +1 -0
- package/dist/tools/drive/get-drive-list.d.ts +63 -0
- package/dist/tools/drive/get-drive-list.d.ts.map +1 -0
- package/dist/tools/drive/get-drive-list.js +84 -0
- package/dist/tools/drive/get-drive-list.js.map +1 -0
- package/dist/tools/drive/move-drive-file.d.ts +55 -0
- package/dist/tools/drive/move-drive-file.d.ts.map +1 -0
- package/dist/tools/drive/move-drive-file.js +92 -0
- package/dist/tools/drive/move-drive-file.js.map +1 -0
- package/dist/tools/drive/rename-drive-file.d.ts +55 -0
- package/dist/tools/drive/rename-drive-file.d.ts.map +1 -0
- package/dist/tools/drive/rename-drive-file.js +88 -0
- package/dist/tools/drive/rename-drive-file.js.map +1 -0
- package/dist/tools/drive/update-drive-file.d.ts +55 -0
- package/dist/tools/drive/update-drive-file.d.ts.map +1 -0
- package/dist/tools/drive/update-drive-file.js +119 -0
- package/dist/tools/drive/update-drive-file.js.map +1 -0
- package/dist/tools/drive/upload-drive-file.d.ts +55 -0
- package/dist/tools/drive/upload-drive-file.d.ts.map +1 -0
- package/dist/tools/drive/upload-drive-file.js +118 -0
- package/dist/tools/drive/upload-drive-file.js.map +1 -0
- package/dist/tools/messenger/get-channel-messages.d.ts +55 -0
- package/dist/tools/messenger/get-channel-messages.d.ts.map +1 -0
- package/dist/tools/messenger/get-channel-messages.js +115 -0
- package/dist/tools/messenger/get-channel-messages.js.map +1 -0
- package/dist/tools/messenger/get-channels.d.ts +30 -0
- package/dist/tools/messenger/get-channels.d.ts.map +1 -0
- package/dist/tools/messenger/get-channels.js +87 -0
- package/dist/tools/messenger/get-channels.js.map +1 -0
- package/dist/tools/messenger/send-channel-message.d.ts +48 -0
- package/dist/tools/messenger/send-channel-message.d.ts.map +1 -0
- package/dist/tools/messenger/send-channel-message.js +108 -0
- package/dist/tools/messenger/send-channel-message.js.map +1 -0
- package/dist/tools/messenger/send-direct-message.d.ts +48 -0
- package/dist/tools/messenger/send-direct-message.d.ts.map +1 -0
- package/dist/tools/messenger/send-direct-message.js +112 -0
- package/dist/tools/messenger/send-direct-message.js.map +1 -0
- package/dist/tools/projects/create-project-template.d.ts +305 -0
- package/dist/tools/projects/create-project-template.d.ts.map +1 -0
- package/dist/tools/projects/create-project-template.js +262 -0
- package/dist/tools/projects/create-project-template.js.map +1 -0
- package/dist/tools/projects/create-tag.d.ts +55 -0
- package/dist/tools/projects/create-tag.d.ts.map +1 -0
- package/dist/tools/projects/create-tag.js +134 -0
- package/dist/tools/projects/create-tag.js.map +1 -0
- package/dist/tools/projects/create-task-comment.d.ts +92 -0
- package/dist/tools/projects/create-task-comment.d.ts.map +1 -0
- package/dist/tools/projects/create-task-comment.js +171 -0
- package/dist/tools/projects/create-task-comment.js.map +1 -0
- package/dist/tools/projects/create-task.d.ts +198 -0
- package/dist/tools/projects/create-task.d.ts.map +1 -0
- package/dist/tools/projects/create-task.js +230 -0
- package/dist/tools/projects/create-task.js.map +1 -0
- package/dist/tools/projects/delete-attachment.d.ts +55 -0
- package/dist/tools/projects/delete-attachment.d.ts.map +1 -0
- package/dist/tools/projects/delete-attachment.js +115 -0
- package/dist/tools/projects/delete-attachment.js.map +1 -0
- package/dist/tools/projects/delete-project-template.d.ts +48 -0
- package/dist/tools/projects/delete-project-template.d.ts.map +1 -0
- package/dist/tools/projects/delete-project-template.js +108 -0
- package/dist/tools/projects/delete-project-template.js.map +1 -0
- package/dist/tools/projects/download-attachment.d.ts +62 -0
- package/dist/tools/projects/download-attachment.d.ts.map +1 -0
- package/dist/tools/projects/download-attachment.js +195 -0
- package/dist/tools/projects/download-attachment.js.map +1 -0
- package/dist/tools/projects/get-attachment-list.d.ts +48 -0
- package/dist/tools/projects/get-attachment-list.d.ts.map +1 -0
- package/dist/tools/projects/get-attachment-list.js +118 -0
- package/dist/tools/projects/get-attachment-list.js.map +1 -0
- package/dist/tools/projects/get-attachment-metadata.d.ts +55 -0
- package/dist/tools/projects/get-attachment-metadata.d.ts.map +1 -0
- package/dist/tools/projects/get-attachment-metadata.js +120 -0
- package/dist/tools/projects/get-attachment-metadata.js.map +1 -0
- package/dist/tools/projects/get-milestone-list.d.ts +49 -0
- package/dist/tools/projects/get-milestone-list.d.ts.map +1 -0
- package/dist/tools/projects/get-milestone-list.js +112 -0
- package/dist/tools/projects/get-milestone-list.js.map +1 -0
- package/dist/tools/projects/get-project-list.d.ts +50 -0
- package/dist/tools/projects/get-project-list.d.ts.map +1 -0
- package/dist/tools/projects/get-project-list.js +113 -0
- package/dist/tools/projects/get-project-list.js.map +1 -0
- package/dist/tools/projects/get-project-member-group-list.d.ts +55 -0
- package/dist/tools/projects/get-project-member-group-list.d.ts.map +1 -0
- package/dist/tools/projects/get-project-member-group-list.js +127 -0
- package/dist/tools/projects/get-project-member-group-list.js.map +1 -0
- package/dist/tools/projects/get-project-member-list.d.ts +66 -0
- package/dist/tools/projects/get-project-member-list.d.ts.map +1 -0
- package/dist/tools/projects/get-project-member-list.js +159 -0
- package/dist/tools/projects/get-project-member-list.js.map +1 -0
- package/dist/tools/projects/get-project-template-list.d.ts +55 -0
- package/dist/tools/projects/get-project-template-list.d.ts.map +1 -0
- package/dist/tools/projects/get-project-template-list.js +127 -0
- package/dist/tools/projects/get-project-template-list.js.map +1 -0
- package/dist/tools/projects/get-project-template.d.ts +48 -0
- package/dist/tools/projects/get-project-template.d.ts.map +1 -0
- package/dist/tools/projects/get-project-template.js +132 -0
- package/dist/tools/projects/get-project-template.js.map +1 -0
- package/dist/tools/projects/get-project-workflow-list.d.ts +41 -0
- package/dist/tools/projects/get-project-workflow-list.d.ts.map +1 -0
- package/dist/tools/projects/get-project-workflow-list.js +107 -0
- package/dist/tools/projects/get-project-workflow-list.js.map +1 -0
- package/dist/tools/projects/get-project.d.ts +41 -0
- package/dist/tools/projects/get-project.d.ts.map +1 -0
- package/dist/tools/projects/get-project.js +110 -0
- package/dist/tools/projects/get-project.js.map +1 -0
- package/dist/tools/projects/get-tag-list.d.ts +55 -0
- package/dist/tools/projects/get-tag-list.d.ts.map +1 -0
- package/dist/tools/projects/get-tag-list.js +145 -0
- package/dist/tools/projects/get-tag-list.js.map +1 -0
- package/dist/tools/projects/get-tag.d.ts +48 -0
- package/dist/tools/projects/get-tag.d.ts.map +1 -0
- package/dist/tools/projects/get-tag.js +124 -0
- package/dist/tools/projects/get-tag.js.map +1 -0
- package/dist/tools/projects/get-task-comment-list.d.ts +63 -0
- package/dist/tools/projects/get-task-comment-list.d.ts.map +1 -0
- package/dist/tools/projects/get-task-comment-list.js +136 -0
- package/dist/tools/projects/get-task-comment-list.js.map +1 -0
- package/dist/tools/projects/get-task-list.d.ts +184 -0
- package/dist/tools/projects/get-task-list.d.ts.map +1 -0
- package/dist/tools/projects/get-task-list.js +257 -0
- package/dist/tools/projects/get-task-list.js.map +1 -0
- package/dist/tools/projects/get-task.d.ts +48 -0
- package/dist/tools/projects/get-task.d.ts.map +1 -0
- package/dist/tools/projects/get-task.js +130 -0
- package/dist/tools/projects/get-task.js.map +1 -0
- package/dist/tools/projects/update-project-template.d.ts +312 -0
- package/dist/tools/projects/update-project-template.d.ts.map +1 -0
- package/dist/tools/projects/update-project-template.js +266 -0
- package/dist/tools/projects/update-project-template.js.map +1 -0
- package/dist/tools/projects/update-tag-group.d.ts +62 -0
- package/dist/tools/projects/update-tag-group.d.ts.map +1 -0
- package/dist/tools/projects/update-tag-group.js +162 -0
- package/dist/tools/projects/update-tag-group.js.map +1 -0
- package/dist/tools/projects/update-task-comment.d.ts +92 -0
- package/dist/tools/projects/update-task-comment.d.ts.map +1 -0
- package/dist/tools/projects/update-task-comment.js +176 -0
- package/dist/tools/projects/update-task-comment.js.map +1 -0
- package/dist/tools/projects/update-task.d.ts +203 -0
- package/dist/tools/projects/update-task.d.ts.map +1 -0
- package/dist/tools/projects/update-task.js +261 -0
- package/dist/tools/projects/update-task.js.map +1 -0
- package/dist/tools/projects/upload-attachment.d.ts +55 -0
- package/dist/tools/projects/upload-attachment.d.ts.map +1 -0
- package/dist/tools/projects/upload-attachment.js +143 -0
- package/dist/tools/projects/upload-attachment.js.map +1 -0
- package/dist/tools/wiki/create-wiki-comment.d.ts +55 -0
- package/dist/tools/wiki/create-wiki-comment.d.ts.map +1 -0
- package/dist/tools/wiki/create-wiki-comment.js +72 -0
- package/dist/tools/wiki/create-wiki-comment.js.map +1 -0
- package/dist/tools/wiki/create-wiki-page.d.ts +127 -0
- package/dist/tools/wiki/create-wiki-page.d.ts.map +1 -0
- package/dist/tools/wiki/create-wiki-page.js +116 -0
- package/dist/tools/wiki/create-wiki-page.js.map +1 -0
- package/dist/tools/wiki/delete-wiki-comment.d.ts +55 -0
- package/dist/tools/wiki/delete-wiki-comment.d.ts.map +1 -0
- package/dist/tools/wiki/delete-wiki-comment.js +72 -0
- package/dist/tools/wiki/delete-wiki-comment.js.map +1 -0
- package/dist/tools/wiki/delete-wiki-page-file.d.ts +55 -0
- package/dist/tools/wiki/delete-wiki-page-file.d.ts.map +1 -0
- package/dist/tools/wiki/delete-wiki-page-file.js +115 -0
- package/dist/tools/wiki/delete-wiki-page-file.js.map +1 -0
- package/dist/tools/wiki/download-wiki-attach-file.d.ts +55 -0
- package/dist/tools/wiki/download-wiki-attach-file.d.ts.map +1 -0
- package/dist/tools/wiki/download-wiki-attach-file.js +176 -0
- package/dist/tools/wiki/download-wiki-attach-file.js.map +1 -0
- package/dist/tools/wiki/download-wiki-page-file.d.ts +62 -0
- package/dist/tools/wiki/download-wiki-page-file.d.ts.map +1 -0
- package/dist/tools/wiki/download-wiki-page-file.js +189 -0
- package/dist/tools/wiki/download-wiki-page-file.js.map +1 -0
- package/dist/tools/wiki/get-wiki-comment-list.d.ts +62 -0
- package/dist/tools/wiki/get-wiki-comment-list.d.ts.map +1 -0
- package/dist/tools/wiki/get-wiki-comment-list.js +74 -0
- package/dist/tools/wiki/get-wiki-comment-list.js.map +1 -0
- package/dist/tools/wiki/get-wiki-comment.d.ts +55 -0
- package/dist/tools/wiki/get-wiki-comment.d.ts.map +1 -0
- package/dist/tools/wiki/get-wiki-comment.js +72 -0
- package/dist/tools/wiki/get-wiki-comment.js.map +1 -0
- package/dist/tools/wiki/get-wiki-list.d.ts +47 -0
- package/dist/tools/wiki/get-wiki-list.d.ts.map +1 -0
- package/dist/tools/wiki/get-wiki-list.js +76 -0
- package/dist/tools/wiki/get-wiki-list.js.map +1 -0
- package/dist/tools/wiki/get-wiki-page-list.d.ts +48 -0
- package/dist/tools/wiki/get-wiki-page-list.d.ts.map +1 -0
- package/dist/tools/wiki/get-wiki-page-list.js +70 -0
- package/dist/tools/wiki/get-wiki-page-list.js.map +1 -0
- package/dist/tools/wiki/get-wiki-page.d.ts +48 -0
- package/dist/tools/wiki/get-wiki-page.d.ts.map +1 -0
- package/dist/tools/wiki/get-wiki-page.js +78 -0
- package/dist/tools/wiki/get-wiki-page.js.map +1 -0
- package/dist/tools/wiki/update-wiki-comment.d.ts +62 -0
- package/dist/tools/wiki/update-wiki-comment.d.ts.map +1 -0
- package/dist/tools/wiki/update-wiki-comment.js +74 -0
- package/dist/tools/wiki/update-wiki-comment.js.map +1 -0
- package/dist/tools/wiki/update-wiki-page.d.ts +117 -0
- package/dist/tools/wiki/update-wiki-page.d.ts.map +1 -0
- package/dist/tools/wiki/update-wiki-page.js +111 -0
- package/dist/tools/wiki/update-wiki-page.js.map +1 -0
- package/dist/tools/wiki/upload-wiki-file.d.ts +49 -0
- package/dist/tools/wiki/upload-wiki-file.d.ts.map +1 -0
- package/dist/tools/wiki/upload-wiki-file.js +145 -0
- package/dist/tools/wiki/upload-wiki-file.js.map +1 -0
- package/dist/tools/wiki/upload-wiki-page-file.d.ts +55 -0
- package/dist/tools/wiki/upload-wiki-page-file.d.ts.map +1 -0
- package/dist/tools/wiki/upload-wiki-page-file.js +147 -0
- package/dist/tools/wiki/upload-wiki-page-file.js.map +1 -0
- package/dist/types/config.d.ts +18 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +6 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/dooray-api.d.ts +717 -0
- package/dist/types/dooray-api.d.ts.map +1 -0
- package/dist/types/dooray-api.js +7 -0
- package/dist/types/dooray-api.js.map +1 -0
- package/dist/utils/errors.d.ts +28 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +60 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/logger.d.ts +22 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +50 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/member-transform.d.ts +20 -0
- package/dist/utils/member-transform.d.ts.map +1 -0
- package/dist/utils/member-transform.js +48 -0
- package/dist/utils/member-transform.js.map +1 -0
- package/dist/utils/response-filters.d.ts +105 -0
- package/dist/utils/response-filters.d.ts.map +1 -0
- package/dist/utils/response-filters.js +152 -0
- package/dist/utils/response-filters.js.map +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Task Comment List Tool
|
|
3
|
+
* Get list of comments on a specific task
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
export declare const getTaskCommentListSchema: z.ZodObject<{
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
taskId: z.ZodString;
|
|
9
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
order: z.ZodOptional<z.ZodEnum<["createdAt", "-createdAt"]>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
projectId: string;
|
|
14
|
+
taskId: string;
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
size?: number | undefined;
|
|
17
|
+
order?: "createdAt" | "-createdAt" | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
projectId: string;
|
|
20
|
+
taskId: string;
|
|
21
|
+
page?: number | undefined;
|
|
22
|
+
size?: number | undefined;
|
|
23
|
+
order?: "createdAt" | "-createdAt" | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export type GetTaskCommentListInput = z.infer<typeof getTaskCommentListSchema>;
|
|
26
|
+
export declare function getTaskCommentListHandler(args: GetTaskCommentListInput): Promise<string | {
|
|
27
|
+
content: {
|
|
28
|
+
type: string;
|
|
29
|
+
text: string;
|
|
30
|
+
}[];
|
|
31
|
+
}>;
|
|
32
|
+
export declare const getTaskCommentListTool: {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
inputSchema: {
|
|
36
|
+
type: string;
|
|
37
|
+
properties: {
|
|
38
|
+
projectId: {
|
|
39
|
+
type: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
taskId: {
|
|
43
|
+
type: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
page: {
|
|
47
|
+
type: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
type: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
order: {
|
|
55
|
+
type: string;
|
|
56
|
+
enum: string[];
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
required: string[];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=get-task-comment-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-comment-list.d.ts","sourceRoot":"","sources":["../../../src/tools/projects/get-task-comment-list.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;EAMnC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE/E,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,uBAAuB;;;;;GAmB5E;AAED,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DlC,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Get Task Comment List Tool
|
|
4
|
+
* Get list of comments on a specific task
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.getTaskCommentListTool = exports.getTaskCommentListSchema = void 0;
|
|
41
|
+
exports.getTaskCommentListHandler = getTaskCommentListHandler;
|
|
42
|
+
const zod_1 = require("zod");
|
|
43
|
+
const projectsApi = __importStar(require("../../api/projects.js"));
|
|
44
|
+
const errors_js_1 = require("../../utils/errors.js");
|
|
45
|
+
const response_filters_js_1 = require("../../utils/response-filters.js");
|
|
46
|
+
exports.getTaskCommentListSchema = zod_1.z.object({
|
|
47
|
+
projectId: zod_1.z.string().describe('Project ID where the task belongs'),
|
|
48
|
+
taskId: zod_1.z.string().describe('Task ID to get comments from'),
|
|
49
|
+
page: zod_1.z.number().min(0).optional().describe('Page number (default: 0)'),
|
|
50
|
+
size: zod_1.z.number().min(1).max(100).optional().describe('Items per page (default: 20, max: 100)'),
|
|
51
|
+
order: zod_1.z.enum(['createdAt', '-createdAt']).optional().describe('Sort order: createdAt (oldest first, default), -createdAt (newest first)'),
|
|
52
|
+
});
|
|
53
|
+
async function getTaskCommentListHandler(args) {
|
|
54
|
+
try {
|
|
55
|
+
const result = await projectsApi.getTaskComments({
|
|
56
|
+
projectId: args.projectId,
|
|
57
|
+
taskId: args.taskId,
|
|
58
|
+
page: args.page,
|
|
59
|
+
size: args.size,
|
|
60
|
+
order: args.order,
|
|
61
|
+
});
|
|
62
|
+
// Filter response to reduce token usage
|
|
63
|
+
const filtered = (0, response_filters_js_1.filterPaginatedResponse)(result, response_filters_js_1.filterTaskCommentForList);
|
|
64
|
+
return {
|
|
65
|
+
content: [{ type: 'text', text: JSON.stringify(filtered, null, 2) }],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
return (0, errors_js_1.formatError)(error);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.getTaskCommentListTool = {
|
|
73
|
+
name: 'get-task-comment-list',
|
|
74
|
+
description: `Get list of comments (댓글) on a specific Dooray task.
|
|
75
|
+
|
|
76
|
+
This tool fetches all comments that have been added to a task. Comments are discussions, updates, or notes added by team members.
|
|
77
|
+
|
|
78
|
+
**URL Pattern Recognition**:
|
|
79
|
+
When given a Dooray task URL like "https://nhnent.dooray.com/task/PROJECT_ID/TASK_ID" or "https://nhnent.dooray.com/project/tasks/TASK_ID":
|
|
80
|
+
- Extract the first numeric ID after "/task/" as projectId (if present)
|
|
81
|
+
- Extract the second numeric ID (or the ID after "/tasks/") as taskId
|
|
82
|
+
|
|
83
|
+
**IMPORTANT**: Both projectId and taskId are REQUIRED.
|
|
84
|
+
|
|
85
|
+
**Pagination**:
|
|
86
|
+
- Default page size is 20 (maximum: 100)
|
|
87
|
+
- Use page parameter to get additional pages if totalCount > size
|
|
88
|
+
|
|
89
|
+
**Sorting**:
|
|
90
|
+
- Default: createdAt (oldest comments first)
|
|
91
|
+
- Use "-createdAt" to get newest comments first
|
|
92
|
+
|
|
93
|
+
**Note**: Returns filtered response with essential fields only (id, creator, body).
|
|
94
|
+
|
|
95
|
+
Examples:
|
|
96
|
+
- Get all comments (first page): {"projectId": "123456", "taskId": "789012"}
|
|
97
|
+
- Get newest comments first: {"projectId": "123456", "taskId": "789012", "order": "-createdAt"}
|
|
98
|
+
- Get second page: {"projectId": "123456", "taskId": "789012", "page": 1, "size": 20}
|
|
99
|
+
|
|
100
|
+
Returns a paginated response with totalCount and array of comments containing:
|
|
101
|
+
- **id**: Comment ID
|
|
102
|
+
- **creator**: Who wrote the comment (member or emailUser)
|
|
103
|
+
- For members: {"type": "member", "member": {"organizationMemberId": "..."}}
|
|
104
|
+
- For email users: {"type": "emailUser", "emailUser": {"emailAddress": "...", "name": "..."}}
|
|
105
|
+
- **body**: Comment content with mimeType and content
|
|
106
|
+
|
|
107
|
+
Use this tool to view discussion history, progress updates, or notes on a task.`,
|
|
108
|
+
inputSchema: {
|
|
109
|
+
type: 'object',
|
|
110
|
+
properties: {
|
|
111
|
+
projectId: {
|
|
112
|
+
type: 'string',
|
|
113
|
+
description: 'Project ID where the task belongs',
|
|
114
|
+
},
|
|
115
|
+
taskId: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
description: 'Task ID to get comments from',
|
|
118
|
+
},
|
|
119
|
+
page: {
|
|
120
|
+
type: 'number',
|
|
121
|
+
description: 'Page number (default: 0)',
|
|
122
|
+
},
|
|
123
|
+
size: {
|
|
124
|
+
type: 'number',
|
|
125
|
+
description: 'Items per page (default: 20, max: 100)',
|
|
126
|
+
},
|
|
127
|
+
order: {
|
|
128
|
+
type: 'string',
|
|
129
|
+
enum: ['createdAt', '-createdAt'],
|
|
130
|
+
description: 'Sort order: createdAt (oldest first, default), -createdAt (newest first)',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
required: ['projectId', 'taskId'],
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=get-task-comment-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-comment-list.js","sourceRoot":"","sources":["../../../src/tools/projects/get-task-comment-list.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;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AAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;SACrE,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAA,uBAAW,EAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;AACH,CAAC;AAEY,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gFAiCiE;IAC9E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mCAAmC;aACjD;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,8BAA8B;aAC5C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;aACtD;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;gBACjC,WAAW,EAAE,0EAA0E;aACxF;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;KAClC;CACF,CAAC"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Task List Tool
|
|
3
|
+
* Get list of tasks with filters
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
export declare const getTaskListSchema: z.ZodObject<{
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
fromEmailAddress: z.ZodOptional<z.ZodString>;
|
|
9
|
+
fromMemberIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
+
toMemberIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
ccMemberIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
tagIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
+
parentPostId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
postNumber: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
postWorkflowClasses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
+
postWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
+
milestoneIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
+
subjects: z.ZodOptional<z.ZodString>;
|
|
19
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
20
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dueAt: z.ZodOptional<z.ZodString>;
|
|
22
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
order: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
createdAt?: string | undefined;
|
|
29
|
+
page?: number | undefined;
|
|
30
|
+
size?: number | undefined;
|
|
31
|
+
fromEmailAddress?: string | undefined;
|
|
32
|
+
fromMemberIds?: string[] | undefined;
|
|
33
|
+
toMemberIds?: string[] | undefined;
|
|
34
|
+
ccMemberIds?: string[] | undefined;
|
|
35
|
+
tagIds?: string[] | undefined;
|
|
36
|
+
parentPostId?: string | undefined;
|
|
37
|
+
postNumber?: number | undefined;
|
|
38
|
+
postWorkflowClasses?: string[] | undefined;
|
|
39
|
+
postWorkflowIds?: string[] | undefined;
|
|
40
|
+
milestoneIds?: string[] | undefined;
|
|
41
|
+
subjects?: string | undefined;
|
|
42
|
+
updatedAt?: string | undefined;
|
|
43
|
+
dueAt?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
projectId: string;
|
|
46
|
+
createdAt?: string | undefined;
|
|
47
|
+
page?: number | undefined;
|
|
48
|
+
size?: number | undefined;
|
|
49
|
+
fromEmailAddress?: string | undefined;
|
|
50
|
+
fromMemberIds?: string[] | undefined;
|
|
51
|
+
toMemberIds?: string[] | undefined;
|
|
52
|
+
ccMemberIds?: string[] | undefined;
|
|
53
|
+
tagIds?: string[] | undefined;
|
|
54
|
+
parentPostId?: string | undefined;
|
|
55
|
+
postNumber?: number | undefined;
|
|
56
|
+
postWorkflowClasses?: string[] | undefined;
|
|
57
|
+
postWorkflowIds?: string[] | undefined;
|
|
58
|
+
milestoneIds?: string[] | undefined;
|
|
59
|
+
subjects?: string | undefined;
|
|
60
|
+
updatedAt?: string | undefined;
|
|
61
|
+
dueAt?: string | undefined;
|
|
62
|
+
order?: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
export type GetTaskListInput = z.infer<typeof getTaskListSchema>;
|
|
65
|
+
export declare function getTaskListHandler(args: GetTaskListInput): Promise<{
|
|
66
|
+
content: {
|
|
67
|
+
type: string;
|
|
68
|
+
text: string;
|
|
69
|
+
}[];
|
|
70
|
+
isError?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
content: {
|
|
73
|
+
type: string;
|
|
74
|
+
text: string;
|
|
75
|
+
}[];
|
|
76
|
+
isError: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
export declare const getTaskListTool: {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
inputSchema: {
|
|
82
|
+
type: string;
|
|
83
|
+
properties: {
|
|
84
|
+
projectId: {
|
|
85
|
+
type: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
fromEmailAddress: {
|
|
89
|
+
type: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
fromMemberIds: {
|
|
93
|
+
type: string;
|
|
94
|
+
items: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
toMemberIds: {
|
|
100
|
+
type: string;
|
|
101
|
+
items: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
description: string;
|
|
105
|
+
};
|
|
106
|
+
ccMemberIds: {
|
|
107
|
+
type: string;
|
|
108
|
+
items: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
description: string;
|
|
112
|
+
};
|
|
113
|
+
tagIds: {
|
|
114
|
+
type: string;
|
|
115
|
+
items: {
|
|
116
|
+
type: string;
|
|
117
|
+
};
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
parentPostId: {
|
|
121
|
+
type: string;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
postNumber: {
|
|
125
|
+
type: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
postWorkflowClasses: {
|
|
129
|
+
type: string;
|
|
130
|
+
items: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
description: string;
|
|
134
|
+
};
|
|
135
|
+
postWorkflowIds: {
|
|
136
|
+
type: string;
|
|
137
|
+
items: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
milestoneIds: {
|
|
143
|
+
type: string;
|
|
144
|
+
items: {
|
|
145
|
+
type: string;
|
|
146
|
+
};
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
subjects: {
|
|
150
|
+
type: string;
|
|
151
|
+
description: string;
|
|
152
|
+
};
|
|
153
|
+
createdAt: {
|
|
154
|
+
type: string;
|
|
155
|
+
description: string;
|
|
156
|
+
};
|
|
157
|
+
updatedAt: {
|
|
158
|
+
type: string;
|
|
159
|
+
description: string;
|
|
160
|
+
};
|
|
161
|
+
dueAt: {
|
|
162
|
+
type: string;
|
|
163
|
+
description: string;
|
|
164
|
+
};
|
|
165
|
+
order: {
|
|
166
|
+
type: string;
|
|
167
|
+
description: string;
|
|
168
|
+
};
|
|
169
|
+
page: {
|
|
170
|
+
type: string;
|
|
171
|
+
description: string;
|
|
172
|
+
minimum: number;
|
|
173
|
+
};
|
|
174
|
+
size: {
|
|
175
|
+
type: string;
|
|
176
|
+
description: string;
|
|
177
|
+
minimum: number;
|
|
178
|
+
maximum: number;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
required: string[];
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
//# sourceMappingURL=get-task-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-list.d.ts","sourceRoot":"","sources":["../../../src/tools/projects/get-task-list.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB5B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEjE,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB;;;;;;;;;;;;GA6C9D;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4I3B,CAAC"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Get Task List Tool
|
|
4
|
+
* Get list of tasks with filters
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.getTaskListTool = exports.getTaskListSchema = void 0;
|
|
41
|
+
exports.getTaskListHandler = getTaskListHandler;
|
|
42
|
+
const zod_1 = require("zod");
|
|
43
|
+
const projectsApi = __importStar(require("../../api/projects.js"));
|
|
44
|
+
const errors_js_1 = require("../../utils/errors.js");
|
|
45
|
+
const response_filters_js_1 = require("../../utils/response-filters.js");
|
|
46
|
+
exports.getTaskListSchema = zod_1.z.object({
|
|
47
|
+
projectId: zod_1.z.string().describe('Project ID (required)'),
|
|
48
|
+
// Member filters
|
|
49
|
+
fromEmailAddress: zod_1.z.string().optional().describe('Filter by creator email address'),
|
|
50
|
+
fromMemberIds: zod_1.z.array(zod_1.z.string()).optional().describe('Filter by creator member IDs (organizationMemberId)'),
|
|
51
|
+
toMemberIds: zod_1.z.array(zod_1.z.string()).optional().describe('Filter by assignee member IDs (organizationMemberId)'),
|
|
52
|
+
ccMemberIds: zod_1.z.array(zod_1.z.string()).optional().describe('Filter by CC member IDs (organizationMemberId)'),
|
|
53
|
+
// Task filters
|
|
54
|
+
tagIds: zod_1.z.array(zod_1.z.string()).optional().describe('Filter by tag IDs'),
|
|
55
|
+
parentPostId: zod_1.z.string().optional().describe('Filter by parent post ID (get subtasks)'),
|
|
56
|
+
postNumber: zod_1.z.number().optional().describe('Filter by specific task number'),
|
|
57
|
+
postWorkflowClasses: zod_1.z.array(zod_1.z.string()).optional().describe('Filter by workflow classes: backlog, registered, working, closed'),
|
|
58
|
+
postWorkflowIds: zod_1.z.array(zod_1.z.string()).optional().describe('Filter by workflow IDs defined in the project'),
|
|
59
|
+
milestoneIds: zod_1.z.array(zod_1.z.string()).optional().describe('Filter by milestone IDs'),
|
|
60
|
+
subjects: zod_1.z.string().optional().describe('Filter by task subject (title)'),
|
|
61
|
+
// Date filters (supports: today, thisweek, prev-Nd, next-Nd, or ISO8601 range like "2021-01-01T00:00:00+09:00~2021-01-10T00:00:00+09:00")
|
|
62
|
+
createdAt: zod_1.z.string().optional().describe('Filter by creation date (today, thisweek, prev-7d, next-7d, or ISO8601 range)'),
|
|
63
|
+
updatedAt: zod_1.z.string().optional().describe('Filter by update date (today, thisweek, prev-7d, next-7d, or ISO8601 range)'),
|
|
64
|
+
dueAt: zod_1.z.string().optional().describe('Filter by due date (today, thisweek, prev-7d, next-7d, or ISO8601 range)'),
|
|
65
|
+
// Sorting
|
|
66
|
+
order: zod_1.z.string().optional().default('-postUpdatedAt').describe('Sort order: postDueAt, postUpdatedAt, createdAt (prefix with - for descending, e.g., -createdAt). Default: -postUpdatedAt (most recently updated first)'),
|
|
67
|
+
// Pagination
|
|
68
|
+
page: zod_1.z.number().min(0).optional().describe('Page number (default: 0)'),
|
|
69
|
+
size: zod_1.z.number().min(1).max(100).optional().describe('Items per page (default: 20, max: 100)'),
|
|
70
|
+
});
|
|
71
|
+
async function getTaskListHandler(args) {
|
|
72
|
+
try {
|
|
73
|
+
const result = await projectsApi.getTasks({
|
|
74
|
+
projectId: args.projectId,
|
|
75
|
+
fromEmailAddress: args.fromEmailAddress,
|
|
76
|
+
fromMemberIds: args.fromMemberIds,
|
|
77
|
+
toMemberIds: args.toMemberIds,
|
|
78
|
+
ccMemberIds: args.ccMemberIds,
|
|
79
|
+
tagIds: args.tagIds,
|
|
80
|
+
parentPostId: args.parentPostId,
|
|
81
|
+
postNumber: args.postNumber,
|
|
82
|
+
postWorkflowClasses: args.postWorkflowClasses,
|
|
83
|
+
postWorkflowIds: args.postWorkflowIds,
|
|
84
|
+
milestoneIds: args.milestoneIds,
|
|
85
|
+
subjects: args.subjects,
|
|
86
|
+
createdAt: args.createdAt,
|
|
87
|
+
updatedAt: args.updatedAt,
|
|
88
|
+
dueAt: args.dueAt,
|
|
89
|
+
order: args.order,
|
|
90
|
+
page: args.page,
|
|
91
|
+
size: args.size,
|
|
92
|
+
});
|
|
93
|
+
// Filter to compact response to reduce token usage
|
|
94
|
+
const compactResult = (0, response_filters_js_1.filterPaginatedResponse)(result, response_filters_js_1.filterTaskForList);
|
|
95
|
+
return {
|
|
96
|
+
content: [
|
|
97
|
+
{
|
|
98
|
+
type: 'text',
|
|
99
|
+
text: JSON.stringify(compactResult, null, 2),
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
return {
|
|
106
|
+
content: [
|
|
107
|
+
{
|
|
108
|
+
type: 'text',
|
|
109
|
+
text: `Error: ${(0, errors_js_1.formatError)(error)}`,
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
isError: true,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.getTaskListTool = {
|
|
117
|
+
name: 'get-task-list',
|
|
118
|
+
description: `Get list of tasks in a Dooray project with powerful filtering and sorting.
|
|
119
|
+
|
|
120
|
+
**IMPORTANT**: projectId is REQUIRED. This tool fetches tasks from a specific project.
|
|
121
|
+
|
|
122
|
+
**Note**: Returns compact response with essential fields only. For complete task details, use get-task.
|
|
123
|
+
|
|
124
|
+
**URL Pattern Recognition**:
|
|
125
|
+
When given a Dooray URL like "https://nhnent.dooray.com/task/PROJECT_ID" or "https://nhnent.dooray.com/task/PROJECT_ID/TASK_ID", extract the PROJECT_ID (the first numeric ID after "/task/") and use it as the projectId parameter. When a URL is provided, use get-project for project info instead of get-project-list.
|
|
126
|
+
|
|
127
|
+
**Member ID Filters** (use organizationMemberId from get-my-member-info):
|
|
128
|
+
- toMemberIds: Tasks assigned to specific members
|
|
129
|
+
- ccMemberIds: Tasks where members are in CC
|
|
130
|
+
- fromMemberIds: Tasks created by specific members
|
|
131
|
+
|
|
132
|
+
**Workflow Filters**:
|
|
133
|
+
- postWorkflowClasses: ["backlog", "registered", "working", "closed"]
|
|
134
|
+
- postWorkflowIds: Project-specific workflow IDs
|
|
135
|
+
|
|
136
|
+
**Date Filters** (flexible patterns):
|
|
137
|
+
- "today" - Today's tasks
|
|
138
|
+
- "thisweek" - This week's tasks
|
|
139
|
+
- "prev-7d" - Last 7 days
|
|
140
|
+
- "next-7d" - Next 7 days
|
|
141
|
+
- ISO8601 range: "2021-01-01T00:00:00+09:00~2021-01-10T00:00:00+09:00"
|
|
142
|
+
|
|
143
|
+
**Examples**:
|
|
144
|
+
1. All tasks in project:
|
|
145
|
+
{"projectId": "123456"}
|
|
146
|
+
|
|
147
|
+
2. Tasks assigned to me:
|
|
148
|
+
{"projectId": "123456", "toMemberIds": ["my-org-member-id"]}
|
|
149
|
+
|
|
150
|
+
3. Tasks in "working" status:
|
|
151
|
+
{"projectId": "123456", "postWorkflowClasses": ["working"]}
|
|
152
|
+
|
|
153
|
+
4. Tasks due today:
|
|
154
|
+
{"projectId": "123456", "dueAt": "today"}
|
|
155
|
+
|
|
156
|
+
5. Recent tasks (sorted by update time):
|
|
157
|
+
{"projectId": "123456", "updatedAt": "prev-7d", "order": "-postUpdatedAt"}
|
|
158
|
+
|
|
159
|
+
6. Tasks with specific milestone and tags:
|
|
160
|
+
{"projectId": "123456", "milestoneIds": ["milestone123"], "tagIds": ["tag456"]}
|
|
161
|
+
|
|
162
|
+
**Sorting**:
|
|
163
|
+
- Default: Tasks are sorted by most recently updated first (-postUpdatedAt)
|
|
164
|
+
- Custom: Use order parameter with: postDueAt, postUpdatedAt, createdAt
|
|
165
|
+
- Prefix with - for descending (e.g., "-createdAt")
|
|
166
|
+
|
|
167
|
+
Returns paginated task list with id, number, subject, status, priority, dueDate, assignees, tags, and milestone.`,
|
|
168
|
+
inputSchema: {
|
|
169
|
+
type: 'object',
|
|
170
|
+
properties: {
|
|
171
|
+
projectId: {
|
|
172
|
+
type: 'string',
|
|
173
|
+
description: 'Project ID (REQUIRED)',
|
|
174
|
+
},
|
|
175
|
+
fromEmailAddress: {
|
|
176
|
+
type: 'string',
|
|
177
|
+
description: 'Filter by creator email address',
|
|
178
|
+
},
|
|
179
|
+
fromMemberIds: {
|
|
180
|
+
type: 'array',
|
|
181
|
+
items: { type: 'string' },
|
|
182
|
+
description: 'Filter by creator member IDs',
|
|
183
|
+
},
|
|
184
|
+
toMemberIds: {
|
|
185
|
+
type: 'array',
|
|
186
|
+
items: { type: 'string' },
|
|
187
|
+
description: 'Filter by assignee member IDs (organizationMemberId)',
|
|
188
|
+
},
|
|
189
|
+
ccMemberIds: {
|
|
190
|
+
type: 'array',
|
|
191
|
+
items: { type: 'string' },
|
|
192
|
+
description: 'Filter by CC member IDs',
|
|
193
|
+
},
|
|
194
|
+
tagIds: {
|
|
195
|
+
type: 'array',
|
|
196
|
+
items: { type: 'string' },
|
|
197
|
+
description: 'Filter by tag IDs',
|
|
198
|
+
},
|
|
199
|
+
parentPostId: {
|
|
200
|
+
type: 'string',
|
|
201
|
+
description: 'Filter by parent post ID (get subtasks)',
|
|
202
|
+
},
|
|
203
|
+
postNumber: {
|
|
204
|
+
type: 'number',
|
|
205
|
+
description: 'Filter by specific task number',
|
|
206
|
+
},
|
|
207
|
+
postWorkflowClasses: {
|
|
208
|
+
type: 'array',
|
|
209
|
+
items: { type: 'string' },
|
|
210
|
+
description: 'Filter by workflow classes: backlog, registered, working, closed',
|
|
211
|
+
},
|
|
212
|
+
postWorkflowIds: {
|
|
213
|
+
type: 'array',
|
|
214
|
+
items: { type: 'string' },
|
|
215
|
+
description: 'Filter by workflow IDs',
|
|
216
|
+
},
|
|
217
|
+
milestoneIds: {
|
|
218
|
+
type: 'array',
|
|
219
|
+
items: { type: 'string' },
|
|
220
|
+
description: 'Filter by milestone IDs',
|
|
221
|
+
},
|
|
222
|
+
subjects: {
|
|
223
|
+
type: 'string',
|
|
224
|
+
description: 'Filter by task subject',
|
|
225
|
+
},
|
|
226
|
+
createdAt: {
|
|
227
|
+
type: 'string',
|
|
228
|
+
description: 'Filter by creation date (today, thisweek, prev-7d, next-7d, or ISO8601 range)',
|
|
229
|
+
},
|
|
230
|
+
updatedAt: {
|
|
231
|
+
type: 'string',
|
|
232
|
+
description: 'Filter by update date (today, thisweek, prev-7d, next-7d, or ISO8601 range)',
|
|
233
|
+
},
|
|
234
|
+
dueAt: {
|
|
235
|
+
type: 'string',
|
|
236
|
+
description: 'Filter by due date (today, thisweek, prev-7d, next-7d, or ISO8601 range)',
|
|
237
|
+
},
|
|
238
|
+
order: {
|
|
239
|
+
type: 'string',
|
|
240
|
+
description: 'Sort order: postDueAt, postUpdatedAt, createdAt (prefix with - for descending)',
|
|
241
|
+
},
|
|
242
|
+
page: {
|
|
243
|
+
type: 'number',
|
|
244
|
+
description: 'Page number (default: 0)',
|
|
245
|
+
minimum: 0,
|
|
246
|
+
},
|
|
247
|
+
size: {
|
|
248
|
+
type: 'number',
|
|
249
|
+
description: 'Items per page (default: 20, max: 100)',
|
|
250
|
+
minimum: 1,
|
|
251
|
+
maximum: 100,
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
required: ['projectId'],
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
//# sourceMappingURL=get-task-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-task-list.js","sourceRoot":"","sources":["../../../src/tools/projects/get-task-list.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,gDA6CC;AA9ED,6BAAwB;AACxB,mEAAqD;AACrD,qDAAoD;AACpD,yEAA6F;AAEhF,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACvD,iBAAiB;IACjB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACnF,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qDAAqD,CAAC;IAC7G,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC;IAC5G,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;IACtG,eAAe;IACf,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ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