@doist/todoist-ai 4.16.0 → 4.17.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/filter-helpers.d.ts +1 -1
- package/dist/index.d.ts +1044 -196
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +61 -81
- package/dist/main.js +15 -23
- package/dist/mcp-helpers.d.ts +5 -5
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/mcp-server-BADReNAy.js +3092 -0
- package/dist/todoist-tool.d.ts +9 -3
- package/dist/todoist-tool.d.ts.map +1 -1
- package/dist/tool-helpers.d.ts +1 -1
- package/dist/tools/add-comments.d.ts +69 -3
- package/dist/tools/add-comments.d.ts.map +1 -1
- package/dist/tools/add-projects.d.ts +34 -3
- package/dist/tools/add-projects.d.ts.map +1 -1
- package/dist/tools/add-sections.d.ts +14 -1
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/add-tasks.d.ts +65 -10
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/complete-tasks.d.ts +20 -1
- package/dist/tools/complete-tasks.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +16 -3
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/fetch.d.ts +8 -1
- package/dist/tools/fetch.d.ts.map +1 -1
- package/dist/tools/find-activity.d.ts +44 -7
- package/dist/tools/find-activity.d.ts.map +1 -1
- package/dist/tools/find-comments.d.ts +69 -3
- package/dist/tools/find-comments.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.d.ts +63 -5
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-project-collaborators.d.ts +33 -2
- package/dist/tools/find-project-collaborators.d.ts.map +1 -1
- package/dist/tools/find-projects.d.ts +35 -1
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/find-sections.d.ts +15 -1
- package/dist/tools/find-sections.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.d.ts +61 -3
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/find-tasks.d.ts +63 -5
- package/dist/tools/find-tasks.d.ts.map +1 -1
- package/dist/tools/get-overview.d.ts +24 -1
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/manage-assignments.d.ts +39 -2
- package/dist/tools/manage-assignments.d.ts.map +1 -1
- package/dist/tools/search.d.ts +17 -1
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/update-comments.d.ts +76 -3
- package/dist/tools/update-comments.d.ts.map +1 -1
- package/dist/tools/update-projects.d.ts +43 -1
- package/dist/tools/update-projects.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +17 -3
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/tools/update-tasks.d.ts +79 -13
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/tools/user-info.d.ts +19 -1
- package/dist/tools/user-info.d.ts.map +1 -1
- package/dist/utils/assignment-validator.d.ts +2 -2
- package/dist/utils/output-schemas.d.ts +233 -0
- package/dist/utils/output-schemas.d.ts.map +1 -0
- package/dist/utils/response-builders.d.ts +1 -3
- package/dist/utils/response-builders.d.ts.map +1 -1
- package/dist/utils/test-helpers.d.ts +1 -1
- package/dist/utils/user-resolver.d.ts +1 -1
- package/package.json +10 -8
- package/dist/filter-helpers.js +0 -79
- package/dist/mcp-helpers.js +0 -71
- package/dist/mcp-server.js +0 -142
- package/dist/todoist-tool.js +0 -1
- package/dist/tool-helpers.js +0 -125
- package/dist/tool-helpers.test.d.ts +0 -2
- package/dist/tool-helpers.test.d.ts.map +0 -1
- package/dist/tool-helpers.test.js +0 -223
- package/dist/tools/__tests__/add-comments.test.d.ts +0 -2
- package/dist/tools/__tests__/add-comments.test.d.ts.map +0 -1
- package/dist/tools/__tests__/add-comments.test.js +0 -241
- package/dist/tools/__tests__/add-projects.test.d.ts +0 -2
- package/dist/tools/__tests__/add-projects.test.d.ts.map +0 -1
- package/dist/tools/__tests__/add-projects.test.js +0 -174
- package/dist/tools/__tests__/add-sections.test.d.ts +0 -2
- package/dist/tools/__tests__/add-sections.test.d.ts.map +0 -1
- package/dist/tools/__tests__/add-sections.test.js +0 -185
- package/dist/tools/__tests__/add-tasks.test.d.ts +0 -2
- package/dist/tools/__tests__/add-tasks.test.d.ts.map +0 -1
- package/dist/tools/__tests__/add-tasks.test.js +0 -606
- package/dist/tools/__tests__/assignment-integration.test.d.ts +0 -2
- package/dist/tools/__tests__/assignment-integration.test.d.ts.map +0 -1
- package/dist/tools/__tests__/assignment-integration.test.js +0 -428
- package/dist/tools/__tests__/complete-tasks.test.d.ts +0 -2
- package/dist/tools/__tests__/complete-tasks.test.d.ts.map +0 -1
- package/dist/tools/__tests__/complete-tasks.test.js +0 -206
- package/dist/tools/__tests__/delete-object.test.d.ts +0 -2
- package/dist/tools/__tests__/delete-object.test.d.ts.map +0 -1
- package/dist/tools/__tests__/delete-object.test.js +0 -110
- package/dist/tools/__tests__/fetch.test.d.ts +0 -2
- package/dist/tools/__tests__/fetch.test.d.ts.map +0 -1
- package/dist/tools/__tests__/fetch.test.js +0 -279
- package/dist/tools/__tests__/find-activity.test.d.ts +0 -2
- package/dist/tools/__tests__/find-activity.test.d.ts.map +0 -1
- package/dist/tools/__tests__/find-activity.test.js +0 -229
- package/dist/tools/__tests__/find-comments.test.d.ts +0 -2
- package/dist/tools/__tests__/find-comments.test.d.ts.map +0 -1
- package/dist/tools/__tests__/find-comments.test.js +0 -236
- package/dist/tools/__tests__/find-completed-tasks.test.d.ts +0 -2
- package/dist/tools/__tests__/find-completed-tasks.test.d.ts.map +0 -1
- package/dist/tools/__tests__/find-completed-tasks.test.js +0 -423
- package/dist/tools/__tests__/find-projects.test.d.ts +0 -2
- package/dist/tools/__tests__/find-projects.test.d.ts.map +0 -1
- package/dist/tools/__tests__/find-projects.test.js +0 -154
- package/dist/tools/__tests__/find-sections.test.d.ts +0 -2
- package/dist/tools/__tests__/find-sections.test.d.ts.map +0 -1
- package/dist/tools/__tests__/find-sections.test.js +0 -313
- package/dist/tools/__tests__/find-tasks-by-date.test.d.ts +0 -2
- package/dist/tools/__tests__/find-tasks-by-date.test.d.ts.map +0 -1
- package/dist/tools/__tests__/find-tasks-by-date.test.js +0 -528
- package/dist/tools/__tests__/find-tasks.test.d.ts +0 -2
- package/dist/tools/__tests__/find-tasks.test.d.ts.map +0 -1
- package/dist/tools/__tests__/find-tasks.test.js +0 -771
- package/dist/tools/__tests__/get-overview.test.d.ts +0 -2
- package/dist/tools/__tests__/get-overview.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-overview.test.js +0 -225
- package/dist/tools/__tests__/search.test.d.ts +0 -2
- package/dist/tools/__tests__/search.test.d.ts.map +0 -1
- package/dist/tools/__tests__/search.test.js +0 -206
- package/dist/tools/__tests__/update-comments.test.d.ts +0 -2
- package/dist/tools/__tests__/update-comments.test.d.ts.map +0 -1
- package/dist/tools/__tests__/update-comments.test.js +0 -294
- package/dist/tools/__tests__/update-projects.test.d.ts +0 -2
- package/dist/tools/__tests__/update-projects.test.d.ts.map +0 -1
- package/dist/tools/__tests__/update-projects.test.js +0 -217
- package/dist/tools/__tests__/update-sections.test.d.ts +0 -2
- package/dist/tools/__tests__/update-sections.test.d.ts.map +0 -1
- package/dist/tools/__tests__/update-sections.test.js +0 -169
- package/dist/tools/__tests__/update-tasks.test.d.ts +0 -2
- package/dist/tools/__tests__/update-tasks.test.d.ts.map +0 -1
- package/dist/tools/__tests__/update-tasks.test.js +0 -788
- package/dist/tools/__tests__/user-info.test.d.ts +0 -2
- package/dist/tools/__tests__/user-info.test.d.ts.map +0 -1
- package/dist/tools/__tests__/user-info.test.js +0 -139
- package/dist/tools/add-comments.js +0 -89
- package/dist/tools/add-projects.js +0 -63
- package/dist/tools/add-sections.js +0 -74
- package/dist/tools/add-tasks.js +0 -169
- package/dist/tools/complete-tasks.js +0 -68
- package/dist/tools/delete-object.js +0 -79
- package/dist/tools/fetch.js +0 -102
- package/dist/tools/find-activity.js +0 -221
- package/dist/tools/find-comments.js +0 -148
- package/dist/tools/find-completed-tasks.js +0 -168
- package/dist/tools/find-project-collaborators.js +0 -151
- package/dist/tools/find-projects.js +0 -101
- package/dist/tools/find-sections.js +0 -101
- package/dist/tools/find-tasks-by-date.js +0 -198
- package/dist/tools/find-tasks.js +0 -329
- package/dist/tools/get-overview.js +0 -249
- package/dist/tools/manage-assignments.js +0 -337
- package/dist/tools/search.js +0 -65
- package/dist/tools/update-comments.js +0 -82
- package/dist/tools/update-projects.js +0 -84
- package/dist/tools/update-sections.js +0 -70
- package/dist/tools/update-tasks.js +0 -179
- package/dist/tools/user-info.js +0 -142
- package/dist/utils/assignment-validator.js +0 -253
- package/dist/utils/constants.js +0 -45
- package/dist/utils/duration-parser.js +0 -96
- package/dist/utils/duration-parser.test.d.ts +0 -2
- package/dist/utils/duration-parser.test.d.ts.map +0 -1
- package/dist/utils/duration-parser.test.js +0 -147
- package/dist/utils/labels.js +0 -18
- package/dist/utils/priorities.js +0 -20
- package/dist/utils/response-builders.js +0 -210
- package/dist/utils/sanitize-data.js +0 -37
- package/dist/utils/sanitize-data.test.d.ts +0 -2
- package/dist/utils/sanitize-data.test.d.ts.map +0 -1
- package/dist/utils/sanitize-data.test.js +0 -93
- package/dist/utils/test-helpers.js +0 -237
- package/dist/utils/tool-names.js +0 -40
- package/dist/utils/user-resolver.js +0 -179
|
@@ -7,19 +7,92 @@ declare const updateComments: {
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
content: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
id: string;
|
|
11
10
|
content: string;
|
|
11
|
+
id: string;
|
|
12
12
|
}, {
|
|
13
|
+
content: string;
|
|
13
14
|
id: string;
|
|
15
|
+
}>, "many">;
|
|
16
|
+
};
|
|
17
|
+
outputSchema: {
|
|
18
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
content: z.ZodString;
|
|
23
|
+
postedAt: z.ZodString;
|
|
24
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
resourceType: z.ZodString;
|
|
26
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
27
|
+
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
fileType: z.ZodOptional<z.ZodString>;
|
|
29
|
+
fileUrl: z.ZodOptional<z.ZodString>;
|
|
30
|
+
fileDuration: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
resourceType: string;
|
|
34
|
+
fileName?: string | undefined;
|
|
35
|
+
fileSize?: number | undefined;
|
|
36
|
+
fileType?: string | undefined;
|
|
37
|
+
fileUrl?: string | undefined;
|
|
38
|
+
fileDuration?: number | undefined;
|
|
39
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
resourceType: string;
|
|
42
|
+
fileName?: string | undefined;
|
|
43
|
+
fileSize?: number | undefined;
|
|
44
|
+
fileType?: string | undefined;
|
|
45
|
+
fileUrl?: string | undefined;
|
|
46
|
+
fileDuration?: number | undefined;
|
|
47
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
48
|
+
}>>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
50
|
content: string;
|
|
51
|
+
id: string;
|
|
52
|
+
postedAt: string;
|
|
53
|
+
projectId?: string | undefined;
|
|
54
|
+
taskId?: string | undefined;
|
|
55
|
+
attachment?: {
|
|
56
|
+
resourceType: string;
|
|
57
|
+
fileName?: string | undefined;
|
|
58
|
+
fileSize?: number | undefined;
|
|
59
|
+
fileType?: string | undefined;
|
|
60
|
+
fileUrl?: string | undefined;
|
|
61
|
+
fileDuration?: number | undefined;
|
|
62
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
content: string;
|
|
66
|
+
id: string;
|
|
67
|
+
postedAt: string;
|
|
68
|
+
projectId?: string | undefined;
|
|
69
|
+
taskId?: string | undefined;
|
|
70
|
+
attachment?: {
|
|
71
|
+
resourceType: string;
|
|
72
|
+
fileName?: string | undefined;
|
|
73
|
+
fileSize?: number | undefined;
|
|
74
|
+
fileType?: string | undefined;
|
|
75
|
+
fileUrl?: string | undefined;
|
|
76
|
+
fileDuration?: number | undefined;
|
|
77
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
78
|
+
} | undefined;
|
|
15
79
|
}>, "many">;
|
|
80
|
+
totalCount: z.ZodNumber;
|
|
81
|
+
updatedCommentIds: z.ZodArray<z.ZodString, "many">;
|
|
82
|
+
appliedOperations: z.ZodObject<{
|
|
83
|
+
updateCount: z.ZodNumber;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
updateCount: number;
|
|
86
|
+
}, {
|
|
87
|
+
updateCount: number;
|
|
88
|
+
}>;
|
|
16
89
|
};
|
|
17
90
|
execute(args: {
|
|
18
91
|
comments: {
|
|
19
|
-
id: string;
|
|
20
92
|
content: string;
|
|
93
|
+
id: string;
|
|
21
94
|
}[];
|
|
22
|
-
}, client: import(
|
|
95
|
+
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
23
96
|
content: {
|
|
24
97
|
type: "text";
|
|
25
98
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-comments.d.ts","sourceRoot":"","sources":["../../src/tools/update-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"update-comments.d.ts","sourceRoot":"","sources":["../../src/tools/update-comments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA0BvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAoDkmX,CAAC;4BAA6C,CAAC;4BAA6C,CAAC;2BAA4C,CAAC;gCAAiD,CAAC;+BAAgD,CAAC;yBAA2D,CAAC;8BAA+C,CAAC;+BAAgD,CAAC;uBAAwC,CAAC;yBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CAtB1iY,CAAA;AAqB1C,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -20,6 +20,48 @@ declare const updateProjects: {
|
|
|
20
20
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
21
21
|
}>, "many">;
|
|
22
22
|
};
|
|
23
|
+
outputSchema: {
|
|
24
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
color: z.ZodString;
|
|
28
|
+
isFavorite: z.ZodBoolean;
|
|
29
|
+
isShared: z.ZodBoolean;
|
|
30
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
inboxProject: z.ZodBoolean;
|
|
32
|
+
viewStyle: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
name: string;
|
|
35
|
+
id: string;
|
|
36
|
+
color: string;
|
|
37
|
+
isFavorite: boolean;
|
|
38
|
+
isShared: boolean;
|
|
39
|
+
inboxProject: boolean;
|
|
40
|
+
viewStyle: string;
|
|
41
|
+
parentId?: string | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
name: string;
|
|
44
|
+
id: string;
|
|
45
|
+
color: string;
|
|
46
|
+
isFavorite: boolean;
|
|
47
|
+
isShared: boolean;
|
|
48
|
+
inboxProject: boolean;
|
|
49
|
+
viewStyle: string;
|
|
50
|
+
parentId?: string | undefined;
|
|
51
|
+
}>, "many">;
|
|
52
|
+
totalCount: z.ZodNumber;
|
|
53
|
+
updatedProjectIds: z.ZodArray<z.ZodString, "many">;
|
|
54
|
+
appliedOperations: z.ZodObject<{
|
|
55
|
+
updateCount: z.ZodNumber;
|
|
56
|
+
skippedCount: z.ZodNumber;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
updateCount: number;
|
|
59
|
+
skippedCount: number;
|
|
60
|
+
}, {
|
|
61
|
+
updateCount: number;
|
|
62
|
+
skippedCount: number;
|
|
63
|
+
}>;
|
|
64
|
+
};
|
|
23
65
|
execute(args: {
|
|
24
66
|
projects: {
|
|
25
67
|
id: string;
|
|
@@ -27,7 +69,7 @@ declare const updateProjects: {
|
|
|
27
69
|
isFavorite?: boolean | undefined;
|
|
28
70
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
29
71
|
}[];
|
|
30
|
-
}, client: import(
|
|
72
|
+
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
31
73
|
content: {
|
|
32
74
|
type: "text";
|
|
33
75
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-projects.d.ts","sourceRoot":"","sources":["../../src/tools/update-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"update-projects.d.ts","sourceRoot":"","sources":["../../src/tools/update-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA+BvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCsB,CAAA;AAgC1C,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -7,19 +7,33 @@ declare const updateSections: {
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
id: string;
|
|
11
10
|
name: string;
|
|
11
|
+
id: string;
|
|
12
12
|
}, {
|
|
13
|
+
name: string;
|
|
13
14
|
id: string;
|
|
15
|
+
}>, "many">;
|
|
16
|
+
};
|
|
17
|
+
outputSchema: {
|
|
18
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
name: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}, {
|
|
14
25
|
name: string;
|
|
26
|
+
id: string;
|
|
15
27
|
}>, "many">;
|
|
28
|
+
totalCount: z.ZodNumber;
|
|
29
|
+
updatedSectionIds: z.ZodArray<z.ZodString, "many">;
|
|
16
30
|
};
|
|
17
31
|
execute({ sections }: {
|
|
18
32
|
sections: {
|
|
19
|
-
id: string;
|
|
20
33
|
name: string;
|
|
34
|
+
id: string;
|
|
21
35
|
}[];
|
|
22
|
-
}, client: import(
|
|
36
|
+
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
23
37
|
content: {
|
|
24
38
|
type: "text";
|
|
25
39
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-sections.d.ts","sourceRoot":"","sources":["../../src/tools/update-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"update-sections.d.ts","sourceRoot":"","sources":["../../src/tools/update-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqBvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBsB,CAAA;AAa1C,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -19,51 +19,117 @@ declare const updateTasks: {
|
|
|
19
19
|
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
id: string;
|
|
22
|
-
description?: string | undefined;
|
|
23
|
-
parentId?: string | undefined;
|
|
24
22
|
content?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
deadlineDate?: string | undefined;
|
|
25
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
25
26
|
projectId?: string | undefined;
|
|
26
27
|
sectionId?: string | undefined;
|
|
28
|
+
parentId?: string | undefined;
|
|
27
29
|
labels?: string[] | undefined;
|
|
28
30
|
duration?: string | undefined;
|
|
29
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
30
31
|
dueString?: string | undefined;
|
|
31
|
-
deadlineDate?: string | undefined;
|
|
32
32
|
responsibleUser?: string | undefined;
|
|
33
33
|
order?: number | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
id: string;
|
|
36
|
-
description?: string | undefined;
|
|
37
|
-
parentId?: string | undefined;
|
|
38
36
|
content?: string | undefined;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
deadlineDate?: string | undefined;
|
|
39
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
39
40
|
projectId?: string | undefined;
|
|
40
41
|
sectionId?: string | undefined;
|
|
42
|
+
parentId?: string | undefined;
|
|
41
43
|
labels?: string[] | undefined;
|
|
42
44
|
duration?: string | undefined;
|
|
43
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
44
45
|
dueString?: string | undefined;
|
|
45
|
-
deadlineDate?: string | undefined;
|
|
46
46
|
responsibleUser?: string | undefined;
|
|
47
47
|
order?: number | undefined;
|
|
48
48
|
}>, "many">;
|
|
49
49
|
};
|
|
50
|
+
outputSchema: {
|
|
51
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
content: z.ZodString;
|
|
54
|
+
description: z.ZodString;
|
|
55
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
56
|
+
recurring: z.ZodUnion<[z.ZodBoolean, z.ZodString]>;
|
|
57
|
+
deadlineDate: z.ZodOptional<z.ZodString>;
|
|
58
|
+
priority: z.ZodNumber;
|
|
59
|
+
projectId: z.ZodString;
|
|
60
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
61
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
63
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
64
|
+
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
65
|
+
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
66
|
+
checked: z.ZodBoolean;
|
|
67
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
content: string;
|
|
70
|
+
description: string;
|
|
71
|
+
id: string;
|
|
72
|
+
recurring: string | boolean;
|
|
73
|
+
priority: number;
|
|
74
|
+
projectId: string;
|
|
75
|
+
labels: string[];
|
|
76
|
+
checked: boolean;
|
|
77
|
+
dueDate?: string | undefined;
|
|
78
|
+
deadlineDate?: string | undefined;
|
|
79
|
+
sectionId?: string | undefined;
|
|
80
|
+
parentId?: string | undefined;
|
|
81
|
+
duration?: string | undefined;
|
|
82
|
+
responsibleUid?: string | undefined;
|
|
83
|
+
assignedByUid?: string | undefined;
|
|
84
|
+
completedAt?: string | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
content: string;
|
|
87
|
+
description: string;
|
|
88
|
+
id: string;
|
|
89
|
+
recurring: string | boolean;
|
|
90
|
+
priority: number;
|
|
91
|
+
projectId: string;
|
|
92
|
+
labels: string[];
|
|
93
|
+
checked: boolean;
|
|
94
|
+
dueDate?: string | undefined;
|
|
95
|
+
deadlineDate?: string | undefined;
|
|
96
|
+
sectionId?: string | undefined;
|
|
97
|
+
parentId?: string | undefined;
|
|
98
|
+
duration?: string | undefined;
|
|
99
|
+
responsibleUid?: string | undefined;
|
|
100
|
+
assignedByUid?: string | undefined;
|
|
101
|
+
completedAt?: string | undefined;
|
|
102
|
+
}>, "many">;
|
|
103
|
+
totalCount: z.ZodNumber;
|
|
104
|
+
updatedTaskIds: z.ZodArray<z.ZodString, "many">;
|
|
105
|
+
appliedOperations: z.ZodObject<{
|
|
106
|
+
updateCount: z.ZodNumber;
|
|
107
|
+
skippedCount: z.ZodNumber;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
updateCount: number;
|
|
110
|
+
skippedCount: number;
|
|
111
|
+
}, {
|
|
112
|
+
updateCount: number;
|
|
113
|
+
skippedCount: number;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
50
116
|
execute(args: {
|
|
51
117
|
tasks: {
|
|
52
118
|
id: string;
|
|
53
|
-
description?: string | undefined;
|
|
54
|
-
parentId?: string | undefined;
|
|
55
119
|
content?: string | undefined;
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
deadlineDate?: string | undefined;
|
|
122
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
56
123
|
projectId?: string | undefined;
|
|
57
124
|
sectionId?: string | undefined;
|
|
125
|
+
parentId?: string | undefined;
|
|
58
126
|
labels?: string[] | undefined;
|
|
59
127
|
duration?: string | undefined;
|
|
60
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
61
128
|
dueString?: string | undefined;
|
|
62
|
-
deadlineDate?: string | undefined;
|
|
63
129
|
responsibleUser?: string | undefined;
|
|
64
130
|
order?: number | undefined;
|
|
65
131
|
}[];
|
|
66
|
-
}, client: import(
|
|
132
|
+
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
67
133
|
content: {
|
|
68
134
|
type: "text";
|
|
69
135
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/update-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/update-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmFvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsIyB,CAAA;AA4B1C,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TodoistApi } from '@doist/todoist-api-typescript';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
type UserPlan = 'Todoist Free' | 'Todoist Pro' | 'Todoist Business';
|
|
3
4
|
type UserInfoStructured = Record<string, unknown> & {
|
|
4
5
|
type: 'user_info';
|
|
@@ -21,6 +22,23 @@ declare const userInfo: {
|
|
|
21
22
|
name: "user-info";
|
|
22
23
|
description: string;
|
|
23
24
|
parameters: {};
|
|
25
|
+
outputSchema: {
|
|
26
|
+
type: z.ZodLiteral<"user_info">;
|
|
27
|
+
userId: z.ZodString;
|
|
28
|
+
fullName: z.ZodString;
|
|
29
|
+
timezone: z.ZodString;
|
|
30
|
+
currentLocalTime: z.ZodString;
|
|
31
|
+
startDay: z.ZodNumber;
|
|
32
|
+
startDayName: z.ZodString;
|
|
33
|
+
weekStartDate: z.ZodString;
|
|
34
|
+
weekEndDate: z.ZodString;
|
|
35
|
+
currentWeekNumber: z.ZodNumber;
|
|
36
|
+
completedToday: z.ZodNumber;
|
|
37
|
+
dailyGoal: z.ZodNumber;
|
|
38
|
+
weeklyGoal: z.ZodNumber;
|
|
39
|
+
email: z.ZodString;
|
|
40
|
+
plan: z.ZodEnum<["Todoist Free", "Todoist Pro", "Todoist Business"]>;
|
|
41
|
+
};
|
|
24
42
|
execute(_args: {}, client: TodoistApi): Promise<{
|
|
25
43
|
content: {
|
|
26
44
|
type: "text";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-info.d.ts","sourceRoot":"","sources":["../../src/tools/user-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"user-info.d.ts","sourceRoot":"","sources":["../../src/tools/user-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyBvB,KAAK,QAAQ,GAAG,cAAc,GAAG,aAAa,GAAG,kBAAkB,CAAA;AAEnE,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAChD,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,QAAQ,CAAA;CACjB,CAAA;AAoJD,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc4B,CAAA;AAE1C,OAAO,EAAE,QAAQ,EAAE,KAAK,kBAAkB,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { TodoistApi } from '@doist/todoist-api-typescript';
|
|
2
|
+
import { ResolvedUser } from './user-resolver.js';
|
|
3
3
|
export declare const AssignmentErrorType: {
|
|
4
4
|
readonly USER_NOT_FOUND: "USER_NOT_FOUND";
|
|
5
5
|
readonly USER_NOT_COLLABORATOR: "USER_NOT_COLLABORATOR";
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for a mapped task object returned by tools
|
|
4
|
+
*/
|
|
5
|
+
declare const TaskSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
10
|
+
recurring: z.ZodUnion<[z.ZodBoolean, z.ZodString]>;
|
|
11
|
+
deadlineDate: z.ZodOptional<z.ZodString>;
|
|
12
|
+
priority: z.ZodNumber;
|
|
13
|
+
projectId: z.ZodString;
|
|
14
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
17
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
18
|
+
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
19
|
+
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
20
|
+
checked: z.ZodBoolean;
|
|
21
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
content: string;
|
|
24
|
+
description: string;
|
|
25
|
+
id: string;
|
|
26
|
+
recurring: string | boolean;
|
|
27
|
+
priority: number;
|
|
28
|
+
projectId: string;
|
|
29
|
+
labels: string[];
|
|
30
|
+
checked: boolean;
|
|
31
|
+
dueDate?: string | undefined;
|
|
32
|
+
deadlineDate?: string | undefined;
|
|
33
|
+
sectionId?: string | undefined;
|
|
34
|
+
parentId?: string | undefined;
|
|
35
|
+
duration?: string | undefined;
|
|
36
|
+
responsibleUid?: string | undefined;
|
|
37
|
+
assignedByUid?: string | undefined;
|
|
38
|
+
completedAt?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
content: string;
|
|
41
|
+
description: string;
|
|
42
|
+
id: string;
|
|
43
|
+
recurring: string | boolean;
|
|
44
|
+
priority: number;
|
|
45
|
+
projectId: string;
|
|
46
|
+
labels: string[];
|
|
47
|
+
checked: boolean;
|
|
48
|
+
dueDate?: string | undefined;
|
|
49
|
+
deadlineDate?: string | undefined;
|
|
50
|
+
sectionId?: string | undefined;
|
|
51
|
+
parentId?: string | undefined;
|
|
52
|
+
duration?: string | undefined;
|
|
53
|
+
responsibleUid?: string | undefined;
|
|
54
|
+
assignedByUid?: string | undefined;
|
|
55
|
+
completedAt?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Schema for a mapped project object returned by tools
|
|
59
|
+
*/
|
|
60
|
+
declare const ProjectSchema: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
color: z.ZodString;
|
|
64
|
+
isFavorite: z.ZodBoolean;
|
|
65
|
+
isShared: z.ZodBoolean;
|
|
66
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
67
|
+
inboxProject: z.ZodBoolean;
|
|
68
|
+
viewStyle: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
name: string;
|
|
71
|
+
id: string;
|
|
72
|
+
color: string;
|
|
73
|
+
isFavorite: boolean;
|
|
74
|
+
isShared: boolean;
|
|
75
|
+
inboxProject: boolean;
|
|
76
|
+
viewStyle: string;
|
|
77
|
+
parentId?: string | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
name: string;
|
|
80
|
+
id: string;
|
|
81
|
+
color: string;
|
|
82
|
+
isFavorite: boolean;
|
|
83
|
+
isShared: boolean;
|
|
84
|
+
inboxProject: boolean;
|
|
85
|
+
viewStyle: string;
|
|
86
|
+
parentId?: string | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* Schema for a section object returned by tools
|
|
90
|
+
*/
|
|
91
|
+
declare const SectionSchema: z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
name: string;
|
|
96
|
+
id: string;
|
|
97
|
+
}, {
|
|
98
|
+
name: string;
|
|
99
|
+
id: string;
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* Schema for a comment object returned by tools
|
|
103
|
+
*/
|
|
104
|
+
declare const CommentSchema: z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
content: z.ZodString;
|
|
109
|
+
postedAt: z.ZodString;
|
|
110
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
resourceType: z.ZodString;
|
|
112
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
113
|
+
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
fileType: z.ZodOptional<z.ZodString>;
|
|
115
|
+
fileUrl: z.ZodOptional<z.ZodString>;
|
|
116
|
+
fileDuration: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
resourceType: string;
|
|
120
|
+
fileName?: string | undefined;
|
|
121
|
+
fileSize?: number | undefined;
|
|
122
|
+
fileType?: string | undefined;
|
|
123
|
+
fileUrl?: string | undefined;
|
|
124
|
+
fileDuration?: number | undefined;
|
|
125
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
resourceType: string;
|
|
128
|
+
fileName?: string | undefined;
|
|
129
|
+
fileSize?: number | undefined;
|
|
130
|
+
fileType?: string | undefined;
|
|
131
|
+
fileUrl?: string | undefined;
|
|
132
|
+
fileDuration?: number | undefined;
|
|
133
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
134
|
+
}>>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
content: string;
|
|
137
|
+
id: string;
|
|
138
|
+
postedAt: string;
|
|
139
|
+
projectId?: string | undefined;
|
|
140
|
+
taskId?: string | undefined;
|
|
141
|
+
attachment?: {
|
|
142
|
+
resourceType: string;
|
|
143
|
+
fileName?: string | undefined;
|
|
144
|
+
fileSize?: number | undefined;
|
|
145
|
+
fileType?: string | undefined;
|
|
146
|
+
fileUrl?: string | undefined;
|
|
147
|
+
fileDuration?: number | undefined;
|
|
148
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
content: string;
|
|
152
|
+
id: string;
|
|
153
|
+
postedAt: string;
|
|
154
|
+
projectId?: string | undefined;
|
|
155
|
+
taskId?: string | undefined;
|
|
156
|
+
attachment?: {
|
|
157
|
+
resourceType: string;
|
|
158
|
+
fileName?: string | undefined;
|
|
159
|
+
fileSize?: number | undefined;
|
|
160
|
+
fileType?: string | undefined;
|
|
161
|
+
fileUrl?: string | undefined;
|
|
162
|
+
fileDuration?: number | undefined;
|
|
163
|
+
uploadState?: "pending" | "completed" | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* Schema for an activity event object returned by tools
|
|
168
|
+
*/
|
|
169
|
+
declare const ActivityEventSchema: z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
objectType: z.ZodString;
|
|
172
|
+
objectId: z.ZodString;
|
|
173
|
+
eventType: z.ZodString;
|
|
174
|
+
eventDate: z.ZodString;
|
|
175
|
+
parentProjectId: z.ZodOptional<z.ZodString>;
|
|
176
|
+
parentItemId: z.ZodOptional<z.ZodString>;
|
|
177
|
+
initiatorId: z.ZodOptional<z.ZodString>;
|
|
178
|
+
extraData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
id: string;
|
|
181
|
+
objectType: string;
|
|
182
|
+
objectId: string;
|
|
183
|
+
eventType: string;
|
|
184
|
+
eventDate: string;
|
|
185
|
+
extraData: Record<string, unknown>;
|
|
186
|
+
parentProjectId?: string | undefined;
|
|
187
|
+
parentItemId?: string | undefined;
|
|
188
|
+
initiatorId?: string | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
id: string;
|
|
191
|
+
objectType: string;
|
|
192
|
+
objectId: string;
|
|
193
|
+
eventType: string;
|
|
194
|
+
eventDate: string;
|
|
195
|
+
extraData: Record<string, unknown>;
|
|
196
|
+
parentProjectId?: string | undefined;
|
|
197
|
+
parentItemId?: string | undefined;
|
|
198
|
+
initiatorId?: string | undefined;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* Schema for a user/collaborator object returned by tools
|
|
202
|
+
*/
|
|
203
|
+
declare const CollaboratorSchema: z.ZodObject<{
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
name: z.ZodString;
|
|
206
|
+
email: z.ZodString;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
name: string;
|
|
209
|
+
id: string;
|
|
210
|
+
email: string;
|
|
211
|
+
}, {
|
|
212
|
+
name: string;
|
|
213
|
+
id: string;
|
|
214
|
+
email: string;
|
|
215
|
+
}>;
|
|
216
|
+
/**
|
|
217
|
+
* Schema for batch operation failure
|
|
218
|
+
*/
|
|
219
|
+
declare const FailureSchema: z.ZodObject<{
|
|
220
|
+
item: z.ZodString;
|
|
221
|
+
error: z.ZodString;
|
|
222
|
+
code: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
item: string;
|
|
225
|
+
error: string;
|
|
226
|
+
code?: string | undefined;
|
|
227
|
+
}, {
|
|
228
|
+
item: string;
|
|
229
|
+
error: string;
|
|
230
|
+
code?: string | undefined;
|
|
231
|
+
}>;
|
|
232
|
+
export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, ProjectSchema, SectionSchema, TaskSchema, };
|
|
233
|
+
//# sourceMappingURL=output-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/utils/output-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;GAEG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBd,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;EASjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;EAGjB,CAAA;AAqBF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYvB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;EAItB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;EAIjB,CAAA;AAEF,OAAO,EACH,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,GACb,CAAA"}
|
|
@@ -21,7 +21,6 @@ type ProjectLike = {
|
|
|
21
21
|
viewStyle?: string;
|
|
22
22
|
};
|
|
23
23
|
type TaskOperationOptions = {
|
|
24
|
-
nextSteps?: string[];
|
|
25
24
|
context?: string;
|
|
26
25
|
showDetails?: boolean;
|
|
27
26
|
};
|
|
@@ -35,7 +34,6 @@ type BatchOperationParams = {
|
|
|
35
34
|
error: string;
|
|
36
35
|
code?: string;
|
|
37
36
|
}>;
|
|
38
|
-
nextSteps?: string[];
|
|
39
37
|
};
|
|
40
38
|
/**
|
|
41
39
|
* Creates concise, actionable summaries for task operations instead of raw JSON
|
|
@@ -68,7 +66,7 @@ type SummarizeListParams = {
|
|
|
68
66
|
*/
|
|
69
67
|
export declare function summarizeList({ subject, count, limit, nextCursor, filterHints, previewLines, zeroReasonHints, nextSteps, }: SummarizeListParams): string;
|
|
70
68
|
/**
|
|
71
|
-
* Formats next steps array into a consistent "
|
|
69
|
+
* Formats next steps array into a consistent "Possible suggested next step(s):" section
|
|
72
70
|
* If nextCursor is provided, adds cursor instruction to the steps
|
|
73
71
|
*/
|
|
74
72
|
export declare function formatNextSteps(nextSteps: string[], nextCursor?: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-builders.d.ts","sourceRoot":"","sources":["../../src/utils/response-builders.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,GAAE,IAAiB,GAAG,MAAM,CAG7D;AAID,KAAK,QAAQ,GAAG;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,KAAK,WAAW,GAAG;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,KAAK,oBAAoB,GAAG;IACxB,
|
|
1
|
+
{"version":3,"file":"response-builders.d.ts","sourceRoot":"","sources":["../../src/utils/response-builders.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CurrentUser, PersonalProject, Section, Task } from '@doist/todoist-api-typescript';
|
|
2
2
|
import { getToolOutput } from '../mcp-helpers';
|
|
3
3
|
/**
|
|
4
4
|
* Mapped task type matching the output of mapTask function.
|