@doist/todoist-ai 4.13.3 → 4.14.0
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/dist/index.d.ts +109 -42
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +8 -1
- package/dist/tool-helpers.d.ts +18 -2
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tool-helpers.js +19 -1
- package/dist/tools/__tests__/find-activity.test.d.ts +2 -0
- package/dist/tools/__tests__/find-activity.test.d.ts.map +1 -0
- package/dist/tools/__tests__/find-activity.test.js +229 -0
- package/dist/tools/add-comments.d.ts +3 -3
- package/dist/tools/add-projects.d.ts +3 -3
- package/dist/tools/add-sections.d.ts +3 -3
- package/dist/tools/add-tasks.d.ts +6 -6
- package/dist/tools/delete-object.d.ts +2 -2
- package/dist/tools/find-activity.d.ts +69 -0
- package/dist/tools/find-activity.d.ts.map +1 -0
- package/dist/tools/find-activity.js +221 -0
- package/dist/tools/find-comments.d.ts +2 -2
- package/dist/tools/find-completed-tasks.d.ts +4 -4
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.js +2 -2
- package/dist/tools/find-tasks-by-date.d.ts +2 -2
- package/dist/tools/find-tasks.d.ts +4 -4
- package/dist/tools/update-projects.d.ts +3 -3
- package/dist/tools/update-tasks.d.ts +9 -9
- package/dist/utils/constants.d.ts +4 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +4 -0
- package/dist/utils/tool-names.d.ts +1 -0
- package/dist/utils/tool-names.d.ts.map +1 -1
- package/dist/utils/tool-names.js +2 -0
- package/package.json +2 -2
|
@@ -21,11 +21,11 @@ declare const findCompletedTasks: {
|
|
|
21
21
|
getBy: "due" | "completion";
|
|
22
22
|
since: string;
|
|
23
23
|
until: string;
|
|
24
|
-
parentId?: string | undefined;
|
|
25
|
-
workspaceId?: string | undefined;
|
|
26
24
|
projectId?: string | undefined;
|
|
27
25
|
sectionId?: string | undefined;
|
|
26
|
+
parentId?: string | undefined;
|
|
28
27
|
labels?: string[] | undefined;
|
|
28
|
+
workspaceId?: string | undefined;
|
|
29
29
|
cursor?: string | undefined;
|
|
30
30
|
responsibleUser?: string | undefined;
|
|
31
31
|
labelsOperator?: "and" | "or" | undefined;
|
|
@@ -60,11 +60,11 @@ declare const findCompletedTasks: {
|
|
|
60
60
|
getBy: "due" | "completion";
|
|
61
61
|
since: string;
|
|
62
62
|
until: string;
|
|
63
|
-
parentId?: string | undefined;
|
|
64
|
-
workspaceId?: string | undefined;
|
|
65
63
|
projectId?: string | undefined;
|
|
66
64
|
sectionId?: string | undefined;
|
|
65
|
+
parentId?: string | undefined;
|
|
67
66
|
labels?: string[] | undefined;
|
|
67
|
+
workspaceId?: string | undefined;
|
|
68
68
|
cursor?: string | undefined;
|
|
69
69
|
responsibleUser?: string | undefined;
|
|
70
70
|
labelsOperator?: "and" | "or" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-completed-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/find-completed-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"find-completed-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/find-completed-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwDvB,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEkB,CAAA;AA2E1C,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -29,7 +29,7 @@ const ArgsSchema = {
|
|
|
29
29
|
responsibleUser: z
|
|
30
30
|
.string()
|
|
31
31
|
.optional()
|
|
32
|
-
.describe('Find tasks assigned to this user. Can be a user ID, name, or email address.'),
|
|
32
|
+
.describe('Find tasks assigned to this user. Can be a user ID, name, or email address. Defaults to all collaborators when omitted.'),
|
|
33
33
|
limit: z
|
|
34
34
|
.number()
|
|
35
35
|
.int()
|
|
@@ -45,7 +45,7 @@ const ArgsSchema = {
|
|
|
45
45
|
};
|
|
46
46
|
const findCompletedTasks = {
|
|
47
47
|
name: ToolNames.FIND_COMPLETED_TASKS,
|
|
48
|
-
description: 'Get completed tasks.',
|
|
48
|
+
description: 'Get completed tasks (includes all collaborators by default—use responsibleUser to narrow).',
|
|
49
49
|
parameters: ArgsSchema,
|
|
50
50
|
async execute(args, client) {
|
|
51
51
|
const { getBy, labels, labelsOperator, since, until, responsibleUser, ...rest } = args;
|
|
@@ -16,11 +16,11 @@ declare const findTasksByDate: {
|
|
|
16
16
|
execute(args: {
|
|
17
17
|
limit: number;
|
|
18
18
|
daysCount: number;
|
|
19
|
-
responsibleUserFiltering?: "assigned" | "unassignedOrMe" | "all" | undefined;
|
|
20
19
|
labels?: string[] | undefined;
|
|
21
20
|
cursor?: string | undefined;
|
|
22
21
|
responsibleUser?: string | undefined;
|
|
23
22
|
labelsOperator?: "and" | "or" | undefined;
|
|
23
|
+
responsibleUserFiltering?: "assigned" | "unassignedOrMe" | "all" | undefined;
|
|
24
24
|
startDate?: string | undefined;
|
|
25
25
|
overdueOption?: "overdue-only" | "include-overdue" | "exclude-overdue" | undefined;
|
|
26
26
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
@@ -52,11 +52,11 @@ declare const findTasksByDate: {
|
|
|
52
52
|
appliedFilters: {
|
|
53
53
|
limit: number;
|
|
54
54
|
daysCount: number;
|
|
55
|
-
responsibleUserFiltering?: "assigned" | "unassignedOrMe" | "all" | undefined;
|
|
56
55
|
labels?: string[] | undefined;
|
|
57
56
|
cursor?: string | undefined;
|
|
58
57
|
responsibleUser?: string | undefined;
|
|
59
58
|
labelsOperator?: "and" | "or" | undefined;
|
|
59
|
+
responsibleUserFiltering?: "assigned" | "unassignedOrMe" | "all" | undefined;
|
|
60
60
|
startDate?: string | undefined;
|
|
61
61
|
overdueOption?: "overdue-only" | "include-overdue" | "exclude-overdue" | undefined;
|
|
62
62
|
};
|
|
@@ -16,15 +16,15 @@ declare const findTasks: {
|
|
|
16
16
|
};
|
|
17
17
|
execute(args: {
|
|
18
18
|
limit: number;
|
|
19
|
-
parentId?: string | undefined;
|
|
20
|
-
responsibleUserFiltering?: "assigned" | "unassignedOrMe" | "all" | undefined;
|
|
21
19
|
projectId?: string | undefined;
|
|
22
20
|
sectionId?: string | undefined;
|
|
21
|
+
parentId?: string | undefined;
|
|
23
22
|
labels?: string[] | undefined;
|
|
24
23
|
cursor?: string | undefined;
|
|
25
24
|
responsibleUser?: string | undefined;
|
|
26
25
|
labelsOperator?: "and" | "or" | undefined;
|
|
27
26
|
searchText?: string | undefined;
|
|
27
|
+
responsibleUserFiltering?: "assigned" | "unassignedOrMe" | "all" | undefined;
|
|
28
28
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
29
29
|
content: {
|
|
30
30
|
type: "text";
|
|
@@ -53,15 +53,15 @@ declare const findTasks: {
|
|
|
53
53
|
hasMore: boolean;
|
|
54
54
|
appliedFilters: {
|
|
55
55
|
limit: number;
|
|
56
|
-
parentId?: string | undefined;
|
|
57
|
-
responsibleUserFiltering?: "assigned" | "unassignedOrMe" | "all" | undefined;
|
|
58
56
|
projectId?: string | undefined;
|
|
59
57
|
sectionId?: string | undefined;
|
|
58
|
+
parentId?: string | undefined;
|
|
60
59
|
labels?: string[] | undefined;
|
|
61
60
|
cursor?: string | undefined;
|
|
62
61
|
responsibleUser?: string | undefined;
|
|
63
62
|
labelsOperator?: "and" | "or" | undefined;
|
|
64
63
|
searchText?: string | undefined;
|
|
64
|
+
responsibleUserFiltering?: "assigned" | "unassignedOrMe" | "all" | undefined;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
} | {
|
|
@@ -10,21 +10,21 @@ declare const updateProjects: {
|
|
|
10
10
|
viewStyle: z.ZodOptional<z.ZodEnum<["list", "board", "calendar"]>>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
|
-
name?: string | undefined;
|
|
14
13
|
isFavorite?: boolean | undefined;
|
|
14
|
+
name?: string | undefined;
|
|
15
15
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
id: string;
|
|
18
|
-
name?: string | undefined;
|
|
19
18
|
isFavorite?: boolean | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
20
20
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
21
21
|
}>, "many">;
|
|
22
22
|
};
|
|
23
23
|
execute(args: {
|
|
24
24
|
projects: {
|
|
25
25
|
id: string;
|
|
26
|
-
name?: string | undefined;
|
|
27
26
|
isFavorite?: boolean | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
28
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
29
29
|
}[];
|
|
30
30
|
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
@@ -18,27 +18,27 @@ declare const updateTasks: {
|
|
|
18
18
|
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
id: string;
|
|
21
|
-
description?: string | undefined;
|
|
22
|
-
parentId?: string | undefined;
|
|
23
|
-
content?: string | undefined;
|
|
24
21
|
projectId?: string | undefined;
|
|
25
22
|
sectionId?: string | undefined;
|
|
23
|
+
parentId?: string | undefined;
|
|
26
24
|
labels?: string[] | undefined;
|
|
27
25
|
duration?: string | undefined;
|
|
28
26
|
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
27
|
+
content?: string | undefined;
|
|
28
|
+
description?: string | undefined;
|
|
29
29
|
dueString?: string | undefined;
|
|
30
30
|
responsibleUser?: string | null | undefined;
|
|
31
31
|
order?: number | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
id: string;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
parentId?: string | undefined;
|
|
36
|
-
content?: string | undefined;
|
|
37
34
|
projectId?: string | undefined;
|
|
38
35
|
sectionId?: string | undefined;
|
|
36
|
+
parentId?: string | undefined;
|
|
39
37
|
labels?: string[] | undefined;
|
|
40
38
|
duration?: string | undefined;
|
|
41
39
|
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
40
|
+
content?: string | undefined;
|
|
41
|
+
description?: string | undefined;
|
|
42
42
|
dueString?: string | undefined;
|
|
43
43
|
responsibleUser?: string | null | undefined;
|
|
44
44
|
order?: number | undefined;
|
|
@@ -47,14 +47,14 @@ declare const updateTasks: {
|
|
|
47
47
|
execute(args: {
|
|
48
48
|
tasks: {
|
|
49
49
|
id: string;
|
|
50
|
-
description?: string | undefined;
|
|
51
|
-
parentId?: string | undefined;
|
|
52
|
-
content?: string | undefined;
|
|
53
50
|
projectId?: string | undefined;
|
|
54
51
|
sectionId?: string | undefined;
|
|
52
|
+
parentId?: string | undefined;
|
|
55
53
|
labels?: string[] | undefined;
|
|
56
54
|
duration?: string | undefined;
|
|
57
55
|
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
56
|
+
content?: string | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
58
|
dueString?: string | undefined;
|
|
59
59
|
responsibleUser?: string | null | undefined;
|
|
60
60
|
order?: number | undefined;
|
|
@@ -23,6 +23,10 @@ export declare const ApiLimits: {
|
|
|
23
23
|
readonly COMMENTS_DEFAULT: 10;
|
|
24
24
|
/** Maximum limit for comment search and list operations */
|
|
25
25
|
readonly COMMENTS_MAX: 10;
|
|
26
|
+
/** Default limit for activity log listings */
|
|
27
|
+
readonly ACTIVITY_DEFAULT: 20;
|
|
28
|
+
/** Maximum limit for activity log search and list operations */
|
|
29
|
+
readonly ACTIVITY_MAX: 100;
|
|
26
30
|
};
|
|
27
31
|
export declare const DisplayLimits: {
|
|
28
32
|
/** Maximum number of failures to show in detailed error messages */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,eAAO,MAAM,SAAS;IAClB,sCAAsC;;IAEtC,wDAAwD;;IAExD,wCAAwC;;IAExC,wCAAwC;;IAExC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,qDAAqD;;IAErD,yCAAyC;;IAEzC,2DAA2D;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,eAAO,MAAM,SAAS;IAClB,sCAAsC;;IAEtC,wDAAwD;;IAExD,wCAAwC;;IAExC,wCAAwC;;IAExC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,qDAAqD;;IAErD,yCAAyC;;IAEzC,2DAA2D;;IAE3D,8CAA8C;;IAE9C,gEAAgE;;CAE1D,CAAA;AAGV,eAAO,MAAM,aAAa;IACtB,oEAAoE;;IAEpE,gDAAgD;;CAE1C,CAAA;AAGV,eAAO,MAAM,cAAc;IACvB,oDAAoD;;IAEpD,mCAAmC;;CAE7B,CAAA"}
|
package/dist/utils/constants.js
CHANGED
|
@@ -24,6 +24,10 @@ export const ApiLimits = {
|
|
|
24
24
|
COMMENTS_DEFAULT: 10,
|
|
25
25
|
/** Maximum limit for comment search and list operations */
|
|
26
26
|
COMMENTS_MAX: 10,
|
|
27
|
+
/** Default limit for activity log listings */
|
|
28
|
+
ACTIVITY_DEFAULT: 20,
|
|
29
|
+
/** Maximum limit for activity log search and list operations */
|
|
30
|
+
ACTIVITY_MAX: 100,
|
|
27
31
|
};
|
|
28
32
|
// UI Display Limits
|
|
29
33
|
export const DisplayLimits = {
|
|
@@ -23,6 +23,7 @@ export declare const ToolNames: {
|
|
|
23
23
|
readonly FIND_COMMENTS: "find-comments";
|
|
24
24
|
readonly FIND_PROJECT_COLLABORATORS: "find-project-collaborators";
|
|
25
25
|
readonly MANAGE_ASSIGNMENTS: "manage-assignments";
|
|
26
|
+
readonly FIND_ACTIVITY: "find-activity";
|
|
26
27
|
readonly GET_OVERVIEW: "get-overview";
|
|
27
28
|
readonly DELETE_OBJECT: "delete-object";
|
|
28
29
|
readonly USER_INFO: "user-info";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../../src/utils/tool-names.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../../src/utils/tool-names.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;CAuCZ,CAAA;AAGV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA"}
|
package/dist/utils/tool-names.js
CHANGED
|
@@ -28,6 +28,8 @@ export const ToolNames = {
|
|
|
28
28
|
// Assignment and collaboration tools
|
|
29
29
|
FIND_PROJECT_COLLABORATORS: 'find-project-collaborators',
|
|
30
30
|
MANAGE_ASSIGNMENTS: 'manage-assignments',
|
|
31
|
+
// Activity and audit tools
|
|
32
|
+
FIND_ACTIVITY: 'find-activity',
|
|
31
33
|
// General tools
|
|
32
34
|
GET_OVERVIEW: 'get-overview',
|
|
33
35
|
DELETE_OBJECT: 'delete-object',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doist/todoist-ai",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@doist/todoist-api-typescript": "5.7.0",
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.11.1",
|
|
50
50
|
"date-fns": "^4.1.0",
|
|
51
|
-
"dotenv": "^
|
|
51
|
+
"dotenv": "^17.0.0",
|
|
52
52
|
"zod": "^3.25.7"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|