@doist/todoist-ai 4.17.0 → 4.17.2
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/filter-helpers.d.ts.map +1 -1
- package/dist/index.d.ts +390 -584
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-helpers.d.ts +1 -37
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/{mcp-server-BADReNAy.js → mcp-server-BSQxi0xQ.js} +1067 -1070
- package/dist/todoist-tool.d.ts +6 -2
- package/dist/todoist-tool.d.ts.map +1 -1
- package/dist/tool-helpers.d.ts +49 -20
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tools/add-comments.d.ts +49 -38
- package/dist/tools/add-comments.d.ts.map +1 -1
- package/dist/tools/add-projects.d.ts +10 -22
- package/dist/tools/add-projects.d.ts.map +1 -1
- package/dist/tools/add-sections.d.ts +1 -15
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/add-tasks.d.ts +33 -47
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/complete-tasks.d.ts +3 -17
- package/dist/tools/complete-tasks.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +2 -16
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/fetch.d.ts +3 -8
- package/dist/tools/fetch.d.ts.map +1 -1
- package/dist/tools/find-activity.d.ts +15 -29
- package/dist/tools/find-activity.d.ts.map +1 -1
- package/dist/tools/find-comments.d.ts +51 -40
- package/dist/tools/find-comments.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.d.ts +29 -43
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-project-collaborators.d.ts +20 -20
- package/dist/tools/find-project-collaborators.d.ts.map +1 -1
- package/dist/tools/find-projects.d.ts +7 -21
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/find-sections.d.ts +1 -15
- package/dist/tools/find-sections.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.d.ts +27 -41
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/find-tasks.d.ts +29 -43
- package/dist/tools/find-tasks.d.ts.map +1 -1
- package/dist/tools/get-overview.d.ts +9 -16
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/manage-assignments.d.ts +5 -19
- package/dist/tools/manage-assignments.d.ts.map +1 -1
- package/dist/tools/search.d.ts +11 -7
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/update-comments.d.ts +49 -38
- package/dist/tools/update-comments.d.ts.map +1 -1
- package/dist/tools/update-projects.d.ts +7 -19
- package/dist/tools/update-projects.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +1 -15
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/tools/update-tasks.d.ts +33 -47
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/tools/user-info.d.ts +1 -15
- package/dist/tools/user-info.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +60 -32
- package/dist/utils/output-schemas.d.ts.map +1 -1
- package/dist/utils/sanitize-data.d.ts +3 -2
- package/dist/utils/sanitize-data.d.ts.map +1 -1
- package/dist/utils/test-helpers.d.ts +1 -33
- package/dist/utils/test-helpers.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -35,18 +35,18 @@ declare const updateProjects: {
|
|
|
35
35
|
id: string;
|
|
36
36
|
color: string;
|
|
37
37
|
isFavorite: boolean;
|
|
38
|
+
viewStyle: string;
|
|
38
39
|
isShared: boolean;
|
|
39
40
|
inboxProject: boolean;
|
|
40
|
-
viewStyle: string;
|
|
41
41
|
parentId?: string | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
name: string;
|
|
44
44
|
id: string;
|
|
45
45
|
color: string;
|
|
46
46
|
isFavorite: boolean;
|
|
47
|
+
viewStyle: string;
|
|
47
48
|
isShared: boolean;
|
|
48
49
|
inboxProject: boolean;
|
|
49
|
-
viewStyle: string;
|
|
50
50
|
parentId?: string | undefined;
|
|
51
51
|
}>, "many">;
|
|
52
52
|
totalCount: z.ZodNumber;
|
|
@@ -70,12 +70,11 @@ declare const updateProjects: {
|
|
|
70
70
|
viewStyle?: "list" | "board" | "calendar" | undefined;
|
|
71
71
|
}[];
|
|
72
72
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
73
|
-
|
|
74
|
-
type: "text";
|
|
75
|
-
text: string;
|
|
76
|
-
}[];
|
|
73
|
+
textContent: string;
|
|
77
74
|
structuredContent: {
|
|
78
75
|
projects: ({
|
|
76
|
+
parentId: string | undefined;
|
|
77
|
+
inboxProject: boolean;
|
|
79
78
|
url: string;
|
|
80
79
|
id: string;
|
|
81
80
|
canAssignTasks: boolean;
|
|
@@ -93,9 +92,9 @@ declare const updateProjects: {
|
|
|
93
92
|
description: string;
|
|
94
93
|
isCollapsed: boolean;
|
|
95
94
|
isShared: boolean;
|
|
96
|
-
parentId: string | null;
|
|
97
|
-
inboxProject: boolean;
|
|
98
95
|
} | {
|
|
96
|
+
parentId: string | undefined;
|
|
97
|
+
inboxProject: boolean;
|
|
99
98
|
url: string;
|
|
100
99
|
id: string;
|
|
101
100
|
canAssignTasks: boolean;
|
|
@@ -128,17 +127,6 @@ declare const updateProjects: {
|
|
|
128
127
|
skippedCount: number;
|
|
129
128
|
};
|
|
130
129
|
};
|
|
131
|
-
} | {
|
|
132
|
-
content: ({
|
|
133
|
-
type: "text";
|
|
134
|
-
text: string;
|
|
135
|
-
mimeType?: undefined;
|
|
136
|
-
} | {
|
|
137
|
-
type: "text";
|
|
138
|
-
mimeType: string;
|
|
139
|
-
text: string;
|
|
140
|
-
})[];
|
|
141
|
-
structuredContent?: undefined;
|
|
142
130
|
}>;
|
|
143
131
|
};
|
|
144
132
|
export { updateProjects };
|
|
@@ -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;AA8BvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4C2C,CAAA;AAgC/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -34,10 +34,7 @@ declare const updateSections: {
|
|
|
34
34
|
id: string;
|
|
35
35
|
}[];
|
|
36
36
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
37
|
-
|
|
38
|
-
type: "text";
|
|
39
|
-
text: string;
|
|
40
|
-
}[];
|
|
37
|
+
textContent: string;
|
|
41
38
|
structuredContent: {
|
|
42
39
|
sections: {
|
|
43
40
|
url: string;
|
|
@@ -56,17 +53,6 @@ declare const updateSections: {
|
|
|
56
53
|
totalCount: number;
|
|
57
54
|
updatedSectionIds: string[];
|
|
58
55
|
};
|
|
59
|
-
} | {
|
|
60
|
-
content: ({
|
|
61
|
-
type: "text";
|
|
62
|
-
text: string;
|
|
63
|
-
mimeType?: undefined;
|
|
64
|
-
} | {
|
|
65
|
-
type: "text";
|
|
66
|
-
mimeType: string;
|
|
67
|
-
text: string;
|
|
68
|
-
})[];
|
|
69
|
-
structuredContent?: undefined;
|
|
70
56
|
}>;
|
|
71
57
|
};
|
|
72
58
|
export { updateSections };
|
|
@@ -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;AAoBvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB2C,CAAA;AAa/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -21,13 +21,13 @@ declare const updateTasks: {
|
|
|
21
21
|
id: string;
|
|
22
22
|
content?: string | undefined;
|
|
23
23
|
description?: string | undefined;
|
|
24
|
-
|
|
25
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
24
|
+
parentId?: string | undefined;
|
|
26
25
|
projectId?: string | undefined;
|
|
27
26
|
sectionId?: string | undefined;
|
|
28
|
-
parentId?: string | undefined;
|
|
29
27
|
labels?: string[] | undefined;
|
|
30
28
|
duration?: string | undefined;
|
|
29
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
30
|
+
deadlineDate?: string | undefined;
|
|
31
31
|
dueString?: string | undefined;
|
|
32
32
|
responsibleUser?: string | undefined;
|
|
33
33
|
order?: number | undefined;
|
|
@@ -35,13 +35,13 @@ declare const updateTasks: {
|
|
|
35
35
|
id: string;
|
|
36
36
|
content?: string | undefined;
|
|
37
37
|
description?: string | undefined;
|
|
38
|
-
|
|
39
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
38
|
+
parentId?: string | undefined;
|
|
40
39
|
projectId?: string | undefined;
|
|
41
40
|
sectionId?: string | undefined;
|
|
42
|
-
parentId?: string | undefined;
|
|
43
41
|
labels?: string[] | undefined;
|
|
44
42
|
duration?: string | undefined;
|
|
43
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
44
|
+
deadlineDate?: string | undefined;
|
|
45
45
|
dueString?: string | undefined;
|
|
46
46
|
responsibleUser?: string | undefined;
|
|
47
47
|
order?: number | undefined;
|
|
@@ -59,7 +59,7 @@ declare const updateTasks: {
|
|
|
59
59
|
projectId: z.ZodString;
|
|
60
60
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
61
61
|
parentId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
labels: z.ZodArray<z.ZodString, "many"
|
|
62
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
63
63
|
duration: z.ZodOptional<z.ZodString>;
|
|
64
64
|
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
65
65
|
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
@@ -69,36 +69,36 @@ declare const updateTasks: {
|
|
|
69
69
|
content: string;
|
|
70
70
|
description: string;
|
|
71
71
|
id: string;
|
|
72
|
-
recurring: string | boolean;
|
|
73
|
-
priority: number;
|
|
74
72
|
projectId: string;
|
|
75
|
-
labels: string[];
|
|
76
73
|
checked: boolean;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
sectionId?: string | undefined;
|
|
74
|
+
priority: number;
|
|
75
|
+
recurring: string | boolean;
|
|
80
76
|
parentId?: string | undefined;
|
|
81
|
-
|
|
82
|
-
responsibleUid?: string | undefined;
|
|
77
|
+
sectionId?: string | undefined;
|
|
83
78
|
assignedByUid?: string | undefined;
|
|
79
|
+
responsibleUid?: string | undefined;
|
|
80
|
+
labels?: string[] | undefined;
|
|
81
|
+
duration?: string | undefined;
|
|
84
82
|
completedAt?: string | undefined;
|
|
83
|
+
dueDate?: string | undefined;
|
|
84
|
+
deadlineDate?: string | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
content: string;
|
|
87
87
|
description: string;
|
|
88
88
|
id: string;
|
|
89
|
-
recurring: string | boolean;
|
|
90
|
-
priority: number;
|
|
91
89
|
projectId: string;
|
|
92
|
-
labels: string[];
|
|
93
90
|
checked: boolean;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
sectionId?: string | undefined;
|
|
91
|
+
priority: number;
|
|
92
|
+
recurring: string | boolean;
|
|
97
93
|
parentId?: string | undefined;
|
|
98
|
-
|
|
99
|
-
responsibleUid?: string | undefined;
|
|
94
|
+
sectionId?: string | undefined;
|
|
100
95
|
assignedByUid?: string | undefined;
|
|
96
|
+
responsibleUid?: string | undefined;
|
|
97
|
+
labels?: string[] | undefined;
|
|
98
|
+
duration?: string | undefined;
|
|
101
99
|
completedAt?: string | undefined;
|
|
100
|
+
dueDate?: string | undefined;
|
|
101
|
+
deadlineDate?: string | undefined;
|
|
102
102
|
}>, "many">;
|
|
103
103
|
totalCount: z.ZodNumber;
|
|
104
104
|
updatedTaskIds: z.ZodArray<z.ZodString, "many">;
|
|
@@ -118,22 +118,19 @@ declare const updateTasks: {
|
|
|
118
118
|
id: string;
|
|
119
119
|
content?: string | undefined;
|
|
120
120
|
description?: string | undefined;
|
|
121
|
-
|
|
122
|
-
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
121
|
+
parentId?: string | undefined;
|
|
123
122
|
projectId?: string | undefined;
|
|
124
123
|
sectionId?: string | undefined;
|
|
125
|
-
parentId?: string | undefined;
|
|
126
124
|
labels?: string[] | undefined;
|
|
127
125
|
duration?: string | undefined;
|
|
126
|
+
priority?: "p1" | "p2" | "p3" | "p4" | undefined;
|
|
127
|
+
deadlineDate?: string | undefined;
|
|
128
128
|
dueString?: string | undefined;
|
|
129
129
|
responsibleUser?: string | undefined;
|
|
130
130
|
order?: number | undefined;
|
|
131
131
|
}[];
|
|
132
132
|
}, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
|
|
133
|
-
|
|
134
|
-
type: "text";
|
|
135
|
-
text: string;
|
|
136
|
-
}[];
|
|
133
|
+
textContent: string;
|
|
137
134
|
structuredContent: {
|
|
138
135
|
tasks: {
|
|
139
136
|
id: string;
|
|
@@ -144,14 +141,14 @@ declare const updateTasks: {
|
|
|
144
141
|
deadlineDate: string | undefined;
|
|
145
142
|
priority: number;
|
|
146
143
|
projectId: string;
|
|
147
|
-
sectionId: string |
|
|
148
|
-
parentId: string |
|
|
144
|
+
sectionId: string | undefined;
|
|
145
|
+
parentId: string | undefined;
|
|
149
146
|
labels: string[];
|
|
150
|
-
duration: string |
|
|
151
|
-
responsibleUid: string |
|
|
152
|
-
assignedByUid: string |
|
|
147
|
+
duration: string | undefined;
|
|
148
|
+
responsibleUid: string | undefined;
|
|
149
|
+
assignedByUid: string | undefined;
|
|
153
150
|
checked: boolean;
|
|
154
|
-
completedAt: string |
|
|
151
|
+
completedAt: string | undefined;
|
|
155
152
|
}[];
|
|
156
153
|
totalCount: number;
|
|
157
154
|
updatedTaskIds: string[];
|
|
@@ -160,17 +157,6 @@ declare const updateTasks: {
|
|
|
160
157
|
skippedCount: number;
|
|
161
158
|
};
|
|
162
159
|
};
|
|
163
|
-
} | {
|
|
164
|
-
content: ({
|
|
165
|
-
type: "text";
|
|
166
|
-
text: string;
|
|
167
|
-
mimeType?: undefined;
|
|
168
|
-
} | {
|
|
169
|
-
type: "text";
|
|
170
|
-
mimeType: string;
|
|
171
|
-
text: string;
|
|
172
|
-
})[];
|
|
173
|
-
structuredContent?: undefined;
|
|
174
160
|
}>;
|
|
175
161
|
};
|
|
176
162
|
export { updateTasks };
|
|
@@ -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;AAkFvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsI8C,CAAA;AA4B/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -40,22 +40,8 @@ declare const userInfo: {
|
|
|
40
40
|
plan: z.ZodEnum<["Todoist Free", "Todoist Pro", "Todoist Business"]>;
|
|
41
41
|
};
|
|
42
42
|
execute(_args: {}, client: TodoistApi): Promise<{
|
|
43
|
-
|
|
44
|
-
type: "text";
|
|
45
|
-
text: string;
|
|
46
|
-
}[];
|
|
43
|
+
textContent: string;
|
|
47
44
|
structuredContent: UserInfoStructured;
|
|
48
|
-
} | {
|
|
49
|
-
content: ({
|
|
50
|
-
type: "text";
|
|
51
|
-
text: string;
|
|
52
|
-
mimeType?: undefined;
|
|
53
|
-
} | {
|
|
54
|
-
type: "text";
|
|
55
|
-
mimeType: string;
|
|
56
|
-
text: string;
|
|
57
|
-
})[];
|
|
58
|
-
structuredContent?: undefined;
|
|
59
45
|
}>;
|
|
60
46
|
};
|
|
61
47
|
export { userInfo, type UserInfoStructured };
|
|
@@ -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;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,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;AAwBvB,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;;;;;;;;;;;;;;;;;;;;;;;;;CAciD,CAAA;AAE/D,OAAO,EAAE,QAAQ,EAAE,KAAK,kBAAkB,EAAE,CAAA"}
|
|
@@ -13,7 +13,7 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
13
13
|
projectId: z.ZodString;
|
|
14
14
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
15
15
|
parentId: z.ZodOptional<z.ZodString>;
|
|
16
|
-
labels: z.ZodArray<z.ZodString, "many"
|
|
16
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
17
|
duration: z.ZodOptional<z.ZodString>;
|
|
18
18
|
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
19
19
|
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
@@ -23,36 +23,36 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
23
23
|
content: string;
|
|
24
24
|
description: string;
|
|
25
25
|
id: string;
|
|
26
|
-
recurring: string | boolean;
|
|
27
|
-
priority: number;
|
|
28
26
|
projectId: string;
|
|
29
|
-
labels: string[];
|
|
30
27
|
checked: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
sectionId?: string | undefined;
|
|
28
|
+
priority: number;
|
|
29
|
+
recurring: string | boolean;
|
|
34
30
|
parentId?: string | undefined;
|
|
35
|
-
|
|
36
|
-
responsibleUid?: string | undefined;
|
|
31
|
+
sectionId?: string | undefined;
|
|
37
32
|
assignedByUid?: string | undefined;
|
|
33
|
+
responsibleUid?: string | undefined;
|
|
34
|
+
labels?: string[] | undefined;
|
|
35
|
+
duration?: string | undefined;
|
|
38
36
|
completedAt?: string | undefined;
|
|
37
|
+
dueDate?: string | undefined;
|
|
38
|
+
deadlineDate?: string | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
content: string;
|
|
41
41
|
description: string;
|
|
42
42
|
id: string;
|
|
43
|
-
recurring: string | boolean;
|
|
44
|
-
priority: number;
|
|
45
43
|
projectId: string;
|
|
46
|
-
labels: string[];
|
|
47
44
|
checked: boolean;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
sectionId?: string | undefined;
|
|
45
|
+
priority: number;
|
|
46
|
+
recurring: string | boolean;
|
|
51
47
|
parentId?: string | undefined;
|
|
52
|
-
|
|
53
|
-
responsibleUid?: string | undefined;
|
|
48
|
+
sectionId?: string | undefined;
|
|
54
49
|
assignedByUid?: string | undefined;
|
|
50
|
+
responsibleUid?: string | undefined;
|
|
51
|
+
labels?: string[] | undefined;
|
|
52
|
+
duration?: string | undefined;
|
|
55
53
|
completedAt?: string | undefined;
|
|
54
|
+
dueDate?: string | undefined;
|
|
55
|
+
deadlineDate?: string | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
/**
|
|
58
58
|
* Schema for a mapped project object returned by tools
|
|
@@ -71,18 +71,18 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
71
71
|
id: string;
|
|
72
72
|
color: string;
|
|
73
73
|
isFavorite: boolean;
|
|
74
|
+
viewStyle: string;
|
|
74
75
|
isShared: boolean;
|
|
75
76
|
inboxProject: boolean;
|
|
76
|
-
viewStyle: string;
|
|
77
77
|
parentId?: string | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
name: string;
|
|
80
80
|
id: string;
|
|
81
81
|
color: string;
|
|
82
82
|
isFavorite: boolean;
|
|
83
|
+
viewStyle: string;
|
|
83
84
|
isShared: boolean;
|
|
84
85
|
inboxProject: boolean;
|
|
85
|
-
viewStyle: string;
|
|
86
86
|
parentId?: string | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
/**
|
|
@@ -107,7 +107,8 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
107
107
|
projectId: z.ZodOptional<z.ZodString>;
|
|
108
108
|
content: z.ZodString;
|
|
109
109
|
postedAt: z.ZodString;
|
|
110
|
-
|
|
110
|
+
postedUid: z.ZodOptional<z.ZodString>;
|
|
111
|
+
fileAttachment: z.ZodOptional<z.ZodObject<{
|
|
111
112
|
resourceType: z.ZodString;
|
|
112
113
|
fileName: z.ZodOptional<z.ZodString>;
|
|
113
114
|
fileSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -115,59 +116,86 @@ declare const CommentSchema: z.ZodObject<{
|
|
|
115
116
|
fileUrl: z.ZodOptional<z.ZodString>;
|
|
116
117
|
fileDuration: z.ZodOptional<z.ZodNumber>;
|
|
117
118
|
uploadState: z.ZodOptional<z.ZodEnum<["pending", "completed"]>>;
|
|
119
|
+
url: z.ZodOptional<z.ZodString>;
|
|
120
|
+
title: z.ZodOptional<z.ZodString>;
|
|
121
|
+
image: z.ZodOptional<z.ZodString>;
|
|
122
|
+
imageWidth: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
imageHeight: z.ZodOptional<z.ZodNumber>;
|
|
118
124
|
}, "strip", z.ZodTypeAny, {
|
|
119
125
|
resourceType: string;
|
|
126
|
+
image?: string | undefined;
|
|
127
|
+
title?: string | undefined;
|
|
120
128
|
fileName?: string | undefined;
|
|
121
129
|
fileSize?: number | undefined;
|
|
122
130
|
fileType?: string | undefined;
|
|
123
131
|
fileUrl?: string | undefined;
|
|
124
132
|
fileDuration?: number | undefined;
|
|
125
133
|
uploadState?: "pending" | "completed" | undefined;
|
|
134
|
+
imageWidth?: number | undefined;
|
|
135
|
+
imageHeight?: number | undefined;
|
|
136
|
+
url?: string | undefined;
|
|
126
137
|
}, {
|
|
127
138
|
resourceType: string;
|
|
139
|
+
image?: string | undefined;
|
|
140
|
+
title?: string | undefined;
|
|
128
141
|
fileName?: string | undefined;
|
|
129
142
|
fileSize?: number | undefined;
|
|
130
143
|
fileType?: string | undefined;
|
|
131
144
|
fileUrl?: string | undefined;
|
|
132
145
|
fileDuration?: number | undefined;
|
|
133
146
|
uploadState?: "pending" | "completed" | undefined;
|
|
147
|
+
imageWidth?: number | undefined;
|
|
148
|
+
imageHeight?: number | undefined;
|
|
149
|
+
url?: string | undefined;
|
|
134
150
|
}>>;
|
|
135
151
|
}, "strip", z.ZodTypeAny, {
|
|
136
152
|
content: string;
|
|
137
153
|
id: string;
|
|
138
154
|
postedAt: string;
|
|
139
155
|
projectId?: string | undefined;
|
|
140
|
-
|
|
141
|
-
attachment?: {
|
|
156
|
+
fileAttachment?: {
|
|
142
157
|
resourceType: string;
|
|
158
|
+
image?: string | undefined;
|
|
159
|
+
title?: string | undefined;
|
|
143
160
|
fileName?: string | undefined;
|
|
144
161
|
fileSize?: number | undefined;
|
|
145
162
|
fileType?: string | undefined;
|
|
146
163
|
fileUrl?: string | undefined;
|
|
147
164
|
fileDuration?: number | undefined;
|
|
148
165
|
uploadState?: "pending" | "completed" | undefined;
|
|
166
|
+
imageWidth?: number | undefined;
|
|
167
|
+
imageHeight?: number | undefined;
|
|
168
|
+
url?: string | undefined;
|
|
149
169
|
} | undefined;
|
|
170
|
+
postedUid?: string | undefined;
|
|
171
|
+
taskId?: string | undefined;
|
|
150
172
|
}, {
|
|
151
173
|
content: string;
|
|
152
174
|
id: string;
|
|
153
175
|
postedAt: string;
|
|
154
176
|
projectId?: string | undefined;
|
|
155
|
-
|
|
156
|
-
attachment?: {
|
|
177
|
+
fileAttachment?: {
|
|
157
178
|
resourceType: string;
|
|
179
|
+
image?: string | undefined;
|
|
180
|
+
title?: string | undefined;
|
|
158
181
|
fileName?: string | undefined;
|
|
159
182
|
fileSize?: number | undefined;
|
|
160
183
|
fileType?: string | undefined;
|
|
161
184
|
fileUrl?: string | undefined;
|
|
162
185
|
fileDuration?: number | undefined;
|
|
163
186
|
uploadState?: "pending" | "completed" | undefined;
|
|
187
|
+
imageWidth?: number | undefined;
|
|
188
|
+
imageHeight?: number | undefined;
|
|
189
|
+
url?: string | undefined;
|
|
164
190
|
} | undefined;
|
|
191
|
+
postedUid?: string | undefined;
|
|
192
|
+
taskId?: string | undefined;
|
|
165
193
|
}>;
|
|
166
194
|
/**
|
|
167
195
|
* Schema for an activity event object returned by tools
|
|
168
196
|
*/
|
|
169
197
|
declare const ActivityEventSchema: z.ZodObject<{
|
|
170
|
-
id: z.ZodString
|
|
198
|
+
id: z.ZodOptional<z.ZodString>;
|
|
171
199
|
objectType: z.ZodString;
|
|
172
200
|
objectId: z.ZodString;
|
|
173
201
|
eventType: z.ZodString;
|
|
@@ -175,27 +203,27 @@ declare const ActivityEventSchema: z.ZodObject<{
|
|
|
175
203
|
parentProjectId: z.ZodOptional<z.ZodString>;
|
|
176
204
|
parentItemId: z.ZodOptional<z.ZodString>;
|
|
177
205
|
initiatorId: z.ZodOptional<z.ZodString>;
|
|
178
|
-
extraData: z.ZodRecord<z.ZodString, z.ZodUnknown
|
|
206
|
+
extraData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
179
207
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
id: string;
|
|
181
208
|
objectType: string;
|
|
182
209
|
objectId: string;
|
|
183
210
|
eventType: string;
|
|
184
211
|
eventDate: string;
|
|
185
|
-
|
|
212
|
+
id?: string | undefined;
|
|
186
213
|
parentProjectId?: string | undefined;
|
|
187
214
|
parentItemId?: string | undefined;
|
|
188
215
|
initiatorId?: string | undefined;
|
|
216
|
+
extraData?: Record<string, unknown> | undefined;
|
|
189
217
|
}, {
|
|
190
|
-
id: string;
|
|
191
218
|
objectType: string;
|
|
192
219
|
objectId: string;
|
|
193
220
|
eventType: string;
|
|
194
221
|
eventDate: string;
|
|
195
|
-
|
|
222
|
+
id?: string | undefined;
|
|
196
223
|
parentProjectId?: string | undefined;
|
|
197
224
|
parentItemId?: string | undefined;
|
|
198
225
|
initiatorId?: string | undefined;
|
|
226
|
+
extraData?: Record<string, unknown> | undefined;
|
|
199
227
|
}>;
|
|
200
228
|
/**
|
|
201
229
|
* Schema for a user/collaborator object returned by tools
|
|
@@ -221,12 +249,12 @@ declare const FailureSchema: z.ZodObject<{
|
|
|
221
249
|
error: z.ZodString;
|
|
222
250
|
code: z.ZodOptional<z.ZodString>;
|
|
223
251
|
}, "strip", z.ZodTypeAny, {
|
|
224
|
-
item: string;
|
|
225
252
|
error: string;
|
|
253
|
+
item: string;
|
|
226
254
|
code?: string | undefined;
|
|
227
255
|
}, {
|
|
228
|
-
item: string;
|
|
229
256
|
error: string;
|
|
257
|
+
item: string;
|
|
230
258
|
code?: string | undefined;
|
|
231
259
|
}>;
|
|
232
260
|
export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, ProjectSchema, SectionSchema, TaskSchema, };
|
|
@@ -1 +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;
|
|
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;AA0BF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjB,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"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Removes all null fields
|
|
2
|
+
* Removes all null fields and empty objects from an object recursively.
|
|
3
|
+
* Empty arrays are preserved as they carry semantic meaning (e.g., "no results found").
|
|
3
4
|
* This ensures that data sent to agents doesn't include unnecessary empty values.
|
|
4
5
|
*
|
|
5
6
|
* @param obj - The object to sanitize
|
|
6
|
-
* @returns A new object with all null fields
|
|
7
|
+
* @returns A new object with all null fields and empty objects removed
|
|
7
8
|
*/
|
|
8
9
|
export declare function removeNullFields<T>(obj: T): T;
|
|
9
10
|
//# sourceMappingURL=sanitize-data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize-data.d.ts","sourceRoot":"","sources":["../../src/utils/sanitize-data.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"sanitize-data.d.ts","sourceRoot":"","sources":["../../src/utils/sanitize-data.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAiC7C"}
|
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import { CurrentUser, PersonalProject, Section, Task } from '@doist/todoist-api-typescript';
|
|
2
|
-
import {
|
|
3
|
-
/**
|
|
4
|
-
* Mapped task type matching the output of mapTask function.
|
|
5
|
-
* Used for filter-based query test mocks.
|
|
6
|
-
*/
|
|
7
|
-
export type MappedTask = {
|
|
8
|
-
id: string;
|
|
9
|
-
content: string;
|
|
10
|
-
description: string;
|
|
11
|
-
dueDate: string | undefined;
|
|
12
|
-
recurring: string | boolean;
|
|
13
|
-
deadlineDate: string | undefined;
|
|
14
|
-
priority: number;
|
|
15
|
-
projectId: string;
|
|
16
|
-
sectionId: string | null;
|
|
17
|
-
parentId: string | null;
|
|
18
|
-
labels: string[];
|
|
19
|
-
duration: string | null;
|
|
20
|
-
responsibleUid: string | null;
|
|
21
|
-
assignedByUid: string | null;
|
|
22
|
-
checked: boolean;
|
|
23
|
-
completedAt: string | null;
|
|
24
|
-
};
|
|
2
|
+
import { MappedTask } from '../tool-helpers';
|
|
25
3
|
/**
|
|
26
4
|
* Creates a mock Task with all required properties and sensible defaults.
|
|
27
5
|
* Pass only the properties you want to override for your specific test.
|
|
@@ -69,16 +47,6 @@ export declare function createTestCases<T, E = unknown>(cases: Array<{
|
|
|
69
47
|
input: T;
|
|
70
48
|
expected?: E;
|
|
71
49
|
}[];
|
|
72
|
-
/**
|
|
73
|
-
* Extracts the text content from a tool output for snapshot testing.
|
|
74
|
-
* This allows tests to match against just the text content while tools return structured output.
|
|
75
|
-
*/
|
|
76
|
-
export declare function extractTextContent(toolOutput: unknown): string;
|
|
77
|
-
/**
|
|
78
|
-
* Extracts the structured content from a tool output for testing.
|
|
79
|
-
* This handles both the new `structuredContent` field and legacy JSON-encoded content.
|
|
80
|
-
*/
|
|
81
|
-
export declare function extractStructuredContent(output: ReturnType<typeof getToolOutput>): Record<string, unknown>;
|
|
82
50
|
/**
|
|
83
51
|
* Common mock IDs used across tests for consistency.
|
|
84
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAChG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,GAAE,OAAO,CAAC,IAAI,CAAM,GAAG,IAAI,CA8BlE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,GAAE,OAAO,CAAC,OAAO,CAAM,GAAG,OAAO,CAgB3E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,GAAE,OAAO,CAAC,eAAe,CAAM,GAAG,eAAe,CAuB3F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACnC,OAAO,EAAE,CAAC,EAAE,EACZ,UAAU,GAAE,MAAM,GAAG,IAAW,GACjC;IACC,OAAO,EAAE,CAAC,EAAE,CAAA;IACZ,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B,CAKA;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,GAAE,OAAO,CAAC,UAAU,CAAM,GAAG,UAAU,CAoBhF;AAED;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;CAKd,CAAA;AAEV;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,EAC1C,KAAK,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC;UAAjC,MAAM;WAAS,CAAC;eAAa,CAAC;IAGtD;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;CAUX,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAG,YAAqB,CAAA;AAE1C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,CAmChF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doist/todoist-ai",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -56,18 +56,18 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@biomejs/biome": "2.3.2",
|
|
59
|
-
"@types/express": "
|
|
60
|
-
"@types/morgan": "
|
|
61
|
-
"@types/node": "
|
|
62
|
-
"concurrently": "
|
|
63
|
-
"express": "
|
|
64
|
-
"husky": "
|
|
65
|
-
"lint-staged": "
|
|
66
|
-
"morgan": "
|
|
67
|
-
"nodemon": "
|
|
68
|
-
"rimraf": "
|
|
69
|
-
"typescript": "
|
|
70
|
-
"vite": "7.1.
|
|
59
|
+
"@types/express": "5.0.5",
|
|
60
|
+
"@types/morgan": "1.9.10",
|
|
61
|
+
"@types/node": "22.19.0",
|
|
62
|
+
"concurrently": "9.2.1",
|
|
63
|
+
"express": "5.1.0",
|
|
64
|
+
"husky": "9.1.7",
|
|
65
|
+
"lint-staged": "16.2.6",
|
|
66
|
+
"morgan": "1.10.1",
|
|
67
|
+
"nodemon": "3.1.10",
|
|
68
|
+
"rimraf": "6.1.0",
|
|
69
|
+
"typescript": "5.9.3",
|
|
70
|
+
"vite": "7.1.12",
|
|
71
71
|
"vite-plugin-dts": "4.5.4",
|
|
72
72
|
"vitest": "3.2.4"
|
|
73
73
|
},
|