@doist/todoist-ai 0.1.0 → 0.1.1
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/README.md +1 -1
- package/dist/cjs/index.d.ts +477 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +49 -0
- package/dist/cjs/main.d.ts.map +1 -0
- package/dist/cjs/mcp-helpers.d.ts.map +1 -0
- package/dist/cjs/mcp-server.d.ts.map +1 -0
- package/dist/cjs/todoist-tool.d.ts.map +1 -0
- package/dist/cjs/tools/account-overview.d.ts.map +1 -0
- package/dist/cjs/tools/project-overview.d.ts.map +1 -0
- package/dist/cjs/tools/projects-add-one.d.ts.map +1 -0
- package/dist/cjs/tools/projects-delete-one.d.ts.map +1 -0
- package/dist/cjs/tools/projects-list.d.ts.map +1 -0
- package/dist/cjs/tools/projects-search.d.ts.map +1 -0
- package/dist/cjs/tools/projects-update-one.d.ts.map +1 -0
- package/dist/cjs/tools/sections-add-one.d.ts.map +1 -0
- package/dist/cjs/tools/sections-delete-one.d.ts.map +1 -0
- package/dist/cjs/tools/sections-search.d.ts.map +1 -0
- package/dist/cjs/tools/sections-update-one.d.ts.map +1 -0
- package/dist/cjs/tools/shared.d.ts.map +1 -0
- package/dist/cjs/tools/subtasks-list-for-parent-task.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-add-multiple.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-by-date-range.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-by-project.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-complete-multiple.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-delete-one.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-list-for-section.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-list-overdue.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-organize-multiple.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-search.d.ts.map +1 -0
- package/dist/cjs/tools/tasks-update-one.d.ts.map +1 -0
- package/dist/esm/index.d.ts +477 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +49 -0
- package/dist/esm/main.d.ts +2 -0
- package/dist/esm/main.d.ts.map +1 -0
- package/dist/esm/main.js +23 -0
- package/dist/esm/mcp-helpers.d.ts +13 -0
- package/dist/esm/mcp-helpers.d.ts.map +1 -0
- package/dist/esm/mcp-helpers.js +52 -0
- package/dist/esm/mcp-server.d.ts +11 -0
- package/dist/esm/mcp-server.d.ts.map +1 -0
- package/{src/mcp-server.ts → dist/esm/mcp-server.js} +31 -44
- package/dist/esm/todoist-tool.d.ts +35 -0
- package/dist/esm/todoist-tool.d.ts.map +1 -0
- package/dist/esm/todoist-tool.js +1 -0
- package/dist/esm/tools/account-overview.d.ts +9 -0
- package/dist/esm/tools/account-overview.d.ts.map +1 -0
- package/dist/esm/tools/account-overview.js +94 -0
- package/dist/esm/tools/project-overview.d.ts +14 -0
- package/dist/esm/tools/project-overview.d.ts.map +1 -0
- package/dist/esm/tools/project-overview.js +107 -0
- package/dist/esm/tools/projects-add-one.d.ts +22 -0
- package/dist/esm/tools/projects-add-one.d.ts.map +1 -0
- package/dist/esm/tools/projects-add-one.js +15 -0
- package/dist/esm/tools/projects-delete-one.d.ts +15 -0
- package/dist/esm/tools/projects-delete-one.d.ts.map +1 -0
- package/dist/esm/tools/projects-delete-one.js +14 -0
- package/dist/esm/tools/projects-list.d.ts +18 -0
- package/dist/esm/tools/projects-list.d.ts.map +1 -0
- package/dist/esm/tools/projects-list.js +30 -0
- package/dist/esm/tools/projects-search.d.ts +29 -0
- package/dist/esm/tools/projects-search.d.ts.map +1 -0
- package/dist/esm/tools/projects-search.js +39 -0
- package/dist/esm/tools/projects-update-one.d.ts +15 -0
- package/dist/esm/tools/projects-update-one.d.ts.map +1 -0
- package/dist/esm/tools/projects-update-one.js +16 -0
- package/dist/esm/tools/sections-add-one.d.ts +15 -0
- package/dist/esm/tools/sections-add-one.d.ts.map +1 -0
- package/dist/esm/tools/sections-add-one.js +21 -0
- package/dist/esm/tools/sections-delete-one.d.ts +15 -0
- package/dist/esm/tools/sections-delete-one.d.ts.map +1 -0
- package/dist/esm/tools/sections-delete-one.js +14 -0
- package/dist/esm/tools/sections-search.d.ts +18 -0
- package/dist/esm/tools/sections-search.d.ts.map +1 -0
- package/dist/esm/tools/sections-search.js +30 -0
- package/dist/esm/tools/sections-update-one.d.ts +15 -0
- package/dist/esm/tools/sections-update-one.d.ts.map +1 -0
- package/dist/esm/tools/sections-update-one.js +16 -0
- package/dist/esm/tools/shared.d.ts +55 -0
- package/dist/esm/tools/shared.d.ts.map +1 -0
- package/dist/esm/tools/shared.js +71 -0
- package/dist/esm/tools/subtasks-list-for-parent-task.d.ts +31 -0
- package/dist/esm/tools/subtasks-list-for-parent-task.d.ts.map +1 -0
- package/dist/esm/tools/subtasks-list-for-parent-task.js +37 -0
- package/dist/esm/tools/tasks-add-multiple.d.ts +50 -0
- package/dist/esm/tools/tasks-add-multiple.d.ts.map +1 -0
- package/dist/esm/tools/tasks-add-multiple.js +47 -0
- package/dist/esm/tools/tasks-by-date-range.d.ts +33 -0
- package/dist/esm/tools/tasks-by-date-range.d.ts.map +1 -0
- package/dist/esm/tools/tasks-by-date-range.js +47 -0
- package/dist/esm/tools/tasks-by-project.d.ts +31 -0
- package/dist/esm/tools/tasks-by-project.d.ts.map +1 -0
- package/dist/esm/tools/tasks-by-project.js +37 -0
- package/dist/esm/tools/tasks-complete-multiple.d.ts +16 -0
- package/dist/esm/tools/tasks-complete-multiple.d.ts.map +1 -0
- package/dist/esm/tools/tasks-complete-multiple.js +26 -0
- package/dist/esm/tools/tasks-delete-one.d.ts +15 -0
- package/dist/esm/tools/tasks-delete-one.d.ts.map +1 -0
- package/dist/esm/tools/tasks-delete-one.js +14 -0
- package/dist/esm/tools/tasks-list-for-section.d.ts +31 -0
- package/dist/esm/tools/tasks-list-for-section.d.ts.map +1 -0
- package/dist/esm/tools/tasks-list-for-section.js +37 -0
- package/dist/esm/tools/tasks-list-overdue.d.ts +29 -0
- package/dist/esm/tools/tasks-list-overdue.d.ts.map +1 -0
- package/dist/esm/tools/tasks-list-overdue.js +29 -0
- package/dist/esm/tools/tasks-organize-multiple.d.ts +37 -0
- package/dist/esm/tools/tasks-organize-multiple.d.ts.map +1 -0
- package/dist/esm/tools/tasks-organize-multiple.js +40 -0
- package/dist/esm/tools/tasks-search.d.ts +31 -0
- package/dist/esm/tools/tasks-search.d.ts.map +1 -0
- package/dist/esm/tools/tasks-search.js +30 -0
- package/dist/esm/tools/tasks-update-one.d.ts +27 -0
- package/dist/esm/tools/tasks-update-one.d.ts.map +1 -0
- package/dist/esm/tools/tasks-update-one.js +42 -0
- package/dist/types/index.d.ts +476 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/mcp-helpers.d.ts +12 -0
- package/dist/types/mcp-server.d.ts +10 -0
- package/dist/types/todoist-tool.d.ts +34 -0
- package/dist/types/tools/account-overview.d.ts +8 -0
- package/dist/types/tools/project-overview.d.ts +13 -0
- package/dist/types/tools/projects-add-one.d.ts +21 -0
- package/dist/types/tools/projects-delete-one.d.ts +14 -0
- package/dist/types/tools/projects-list.d.ts +17 -0
- package/dist/types/tools/projects-search.d.ts +28 -0
- package/dist/types/tools/projects-update-one.d.ts +14 -0
- package/dist/types/tools/sections-add-one.d.ts +14 -0
- package/dist/types/tools/sections-delete-one.d.ts +14 -0
- package/dist/types/tools/sections-search.d.ts +17 -0
- package/dist/types/tools/sections-update-one.d.ts +14 -0
- package/dist/types/tools/shared.d.ts +54 -0
- package/dist/types/tools/subtasks-list-for-parent-task.d.ts +30 -0
- package/dist/types/tools/tasks-add-multiple.d.ts +49 -0
- package/dist/types/tools/tasks-by-date-range.d.ts +32 -0
- package/dist/types/tools/tasks-by-project.d.ts +30 -0
- package/dist/types/tools/tasks-complete-multiple.d.ts +15 -0
- package/dist/types/tools/tasks-delete-one.d.ts +14 -0
- package/dist/types/tools/tasks-list-for-section.d.ts +30 -0
- package/dist/types/tools/tasks-list-overdue.d.ts +28 -0
- package/dist/types/tools/tasks-organize-multiple.d.ts +36 -0
- package/dist/types/tools/tasks-search.d.ts +30 -0
- package/dist/types/tools/tasks-update-one.d.ts +26 -0
- package/package.json +20 -7
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1
- package/dist/main.d.ts.map +0 -1
- package/dist/mcp-helpers.d.ts.map +0 -1
- package/dist/mcp-server.d.ts.map +0 -1
- package/dist/todoist-tool.d.ts.map +0 -1
- package/dist/tools/account-overview.d.ts.map +0 -1
- package/dist/tools/index.d.ts +0 -23
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -22
- package/dist/tools/project-overview.d.ts.map +0 -1
- package/dist/tools/projects-add-one.d.ts.map +0 -1
- package/dist/tools/projects-delete-one.d.ts.map +0 -1
- package/dist/tools/projects-list.d.ts.map +0 -1
- package/dist/tools/projects-search.d.ts.map +0 -1
- package/dist/tools/projects-update-one.d.ts.map +0 -1
- package/dist/tools/sections-add-one.d.ts.map +0 -1
- package/dist/tools/sections-delete-one.d.ts.map +0 -1
- package/dist/tools/sections-search.d.ts.map +0 -1
- package/dist/tools/sections-update-one.d.ts.map +0 -1
- package/dist/tools/shared.d.ts.map +0 -1
- package/dist/tools/subtasks-list-for-parent-task.d.ts.map +0 -1
- package/dist/tools/tasks-add-multiple.d.ts.map +0 -1
- package/dist/tools/tasks-by-date-range.d.ts.map +0 -1
- package/dist/tools/tasks-by-project.d.ts.map +0 -1
- package/dist/tools/tasks-complete-multiple.d.ts.map +0 -1
- package/dist/tools/tasks-delete-one.d.ts.map +0 -1
- package/dist/tools/tasks-list-for-section.d.ts.map +0 -1
- package/dist/tools/tasks-list-overdue.d.ts.map +0 -1
- package/dist/tools/tasks-organize-multiple.d.ts.map +0 -1
- package/dist/tools/tasks-search.d.ts.map +0 -1
- package/dist/tools/tasks-update-one.d.ts.map +0 -1
- package/src/index.ts +0 -1
- package/src/main.ts +0 -26
- package/src/mcp-helpers.ts +0 -76
- package/src/todoist-tool.ts +0 -42
- package/src/tools/account-overview.ts +0 -130
- package/src/tools/index.ts +0 -26
- package/src/tools/project-overview.ts +0 -130
- package/src/tools/projects-add-one.ts +0 -19
- package/src/tools/projects-delete-one.ts +0 -18
- package/src/tools/projects-list.ts +0 -36
- package/src/tools/projects-search.ts +0 -49
- package/src/tools/projects-update-one.ts +0 -20
- package/src/tools/sections-add-one.ts +0 -25
- package/src/tools/sections-delete-one.ts +0 -18
- package/src/tools/sections-search.ts +0 -39
- package/src/tools/sections-update-one.ts +0 -20
- package/src/tools/shared.ts +0 -94
- package/src/tools/subtasks-list-for-parent-task.ts +0 -43
- package/src/tools/tasks-add-multiple.ts +0 -53
- package/src/tools/tasks-by-date-range.ts +0 -58
- package/src/tools/tasks-by-project.ts +0 -43
- package/src/tools/tasks-complete-multiple.ts +0 -29
- package/src/tools/tasks-delete-one.ts +0 -18
- package/src/tools/tasks-list-for-section.ts +0 -43
- package/src/tools/tasks-list-overdue.ts +0 -35
- package/src/tools/tasks-organize-multiple.ts +0 -45
- package/src/tools/tasks-search.ts +0 -36
- package/src/tools/tasks-update-one.ts +0 -48
- /package/dist/{main.d.ts → cjs/main.d.ts} +0 -0
- /package/dist/{main.js → cjs/main.js} +0 -0
- /package/dist/{mcp-helpers.d.ts → cjs/mcp-helpers.d.ts} +0 -0
- /package/dist/{mcp-helpers.js → cjs/mcp-helpers.js} +0 -0
- /package/dist/{mcp-server.d.ts → cjs/mcp-server.d.ts} +0 -0
- /package/dist/{mcp-server.js → cjs/mcp-server.js} +0 -0
- /package/dist/{todoist-tool.d.ts → cjs/todoist-tool.d.ts} +0 -0
- /package/dist/{todoist-tool.js → cjs/todoist-tool.js} +0 -0
- /package/dist/{tools → cjs/tools}/account-overview.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/account-overview.js +0 -0
- /package/dist/{tools → cjs/tools}/project-overview.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/project-overview.js +0 -0
- /package/dist/{tools → cjs/tools}/projects-add-one.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/projects-add-one.js +0 -0
- /package/dist/{tools → cjs/tools}/projects-delete-one.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/projects-delete-one.js +0 -0
- /package/dist/{tools → cjs/tools}/projects-list.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/projects-list.js +0 -0
- /package/dist/{tools → cjs/tools}/projects-search.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/projects-search.js +0 -0
- /package/dist/{tools → cjs/tools}/projects-update-one.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/projects-update-one.js +0 -0
- /package/dist/{tools → cjs/tools}/sections-add-one.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/sections-add-one.js +0 -0
- /package/dist/{tools → cjs/tools}/sections-delete-one.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/sections-delete-one.js +0 -0
- /package/dist/{tools → cjs/tools}/sections-search.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/sections-search.js +0 -0
- /package/dist/{tools → cjs/tools}/sections-update-one.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/sections-update-one.js +0 -0
- /package/dist/{tools → cjs/tools}/shared.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/shared.js +0 -0
- /package/dist/{tools → cjs/tools}/subtasks-list-for-parent-task.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/subtasks-list-for-parent-task.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-add-multiple.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-add-multiple.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-by-date-range.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-by-date-range.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-by-project.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-by-project.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-complete-multiple.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-complete-multiple.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-delete-one.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-delete-one.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-list-for-section.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-list-for-section.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-list-overdue.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-list-overdue.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-organize-multiple.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-organize-multiple.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-search.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-search.js +0 -0
- /package/dist/{tools → cjs/tools}/tasks-update-one.d.ts +0 -0
- /package/dist/{tools → cjs/tools}/tasks-update-one.js +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const tasksDeleteOne: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
execute(args: {
|
|
9
|
+
id: string;
|
|
10
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
11
|
+
success: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
export { tasksDeleteOne };
|
|
15
|
+
//# sourceMappingURL=tasks-delete-one.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks-delete-one.d.ts","sourceRoot":"","sources":["../../../src/tools/tasks-delete-one.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,cAAc;;;;;;;;;;;CAQsB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const ArgsSchema = {
|
|
3
|
+
id: z.string().min(1).describe("The ID of the task to delete."),
|
|
4
|
+
};
|
|
5
|
+
const tasksDeleteOne = {
|
|
6
|
+
name: "tasks-delete-one",
|
|
7
|
+
description: "Delete a task by its ID.",
|
|
8
|
+
parameters: ArgsSchema,
|
|
9
|
+
async execute(args, client) {
|
|
10
|
+
await client.deleteTask(args.id);
|
|
11
|
+
return { success: true };
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
export { tasksDeleteOne };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const tasksListForSection: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
sectionId: z.ZodString;
|
|
7
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
execute(args: {
|
|
11
|
+
limit: number;
|
|
12
|
+
sectionId: string;
|
|
13
|
+
cursor?: string | undefined;
|
|
14
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
15
|
+
tasks: {
|
|
16
|
+
id: string;
|
|
17
|
+
content: string;
|
|
18
|
+
description: string;
|
|
19
|
+
dueDate: string | undefined;
|
|
20
|
+
recurring: string | boolean;
|
|
21
|
+
priority: number;
|
|
22
|
+
projectId: string;
|
|
23
|
+
sectionId: string | null;
|
|
24
|
+
parentId: string | null;
|
|
25
|
+
labels: string[];
|
|
26
|
+
}[];
|
|
27
|
+
nextCursor: string | null;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export { tasksListForSection };
|
|
31
|
+
//# sourceMappingURL=tasks-list-for-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks-list-for-section.d.ts","sourceRoot":"","sources":["../../../src/tools/tasks-list-for-section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBiB,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { mapTask } from "./shared.js";
|
|
3
|
+
const ArgsSchema = {
|
|
4
|
+
sectionId: z
|
|
5
|
+
.string()
|
|
6
|
+
.min(1)
|
|
7
|
+
.describe("The ID of the section to get tasks for."),
|
|
8
|
+
limit: z
|
|
9
|
+
.number()
|
|
10
|
+
.int()
|
|
11
|
+
.min(1)
|
|
12
|
+
.max(50)
|
|
13
|
+
.default(10)
|
|
14
|
+
.describe("The maximum number of tasks to return."),
|
|
15
|
+
cursor: z
|
|
16
|
+
.string()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe("The cursor to get the next page of tasks (from previous call)."),
|
|
19
|
+
};
|
|
20
|
+
const tasksListForSection = {
|
|
21
|
+
name: "tasks-list-for-section",
|
|
22
|
+
description: "List tasks for a given section.",
|
|
23
|
+
parameters: ArgsSchema,
|
|
24
|
+
async execute(args, client) {
|
|
25
|
+
const { sectionId, limit, cursor } = args;
|
|
26
|
+
const { results, nextCursor } = await client.getTasks({
|
|
27
|
+
sectionId,
|
|
28
|
+
limit,
|
|
29
|
+
cursor: cursor ?? null,
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
tasks: results.map(mapTask),
|
|
33
|
+
nextCursor,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export { tasksListForSection };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const tasksListOverdue: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8
|
+
};
|
|
9
|
+
execute(args: {
|
|
10
|
+
limit: number;
|
|
11
|
+
cursor?: string | undefined;
|
|
12
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
13
|
+
tasks: {
|
|
14
|
+
id: string;
|
|
15
|
+
content: string;
|
|
16
|
+
description: string;
|
|
17
|
+
dueDate: string | undefined;
|
|
18
|
+
recurring: string | boolean;
|
|
19
|
+
priority: number;
|
|
20
|
+
projectId: string;
|
|
21
|
+
sectionId: string | null;
|
|
22
|
+
parentId: string | null;
|
|
23
|
+
labels: string[];
|
|
24
|
+
}[];
|
|
25
|
+
nextCursor: string | null;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
export { tasksListOverdue };
|
|
29
|
+
//# sourceMappingURL=tasks-list-overdue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks-list-overdue.d.ts","sourceRoot":"","sources":["../../../src/tools/tasks-list-overdue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;CAYoB,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { getTasksByFilter } from "./shared.js";
|
|
3
|
+
const ArgsSchema = {
|
|
4
|
+
limit: z
|
|
5
|
+
.number()
|
|
6
|
+
.int()
|
|
7
|
+
.min(1)
|
|
8
|
+
.max(50)
|
|
9
|
+
.default(10)
|
|
10
|
+
.describe("The maximum number of overdue tasks to return."),
|
|
11
|
+
cursor: z
|
|
12
|
+
.string()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe("The cursor to get the next page of overdue tasks (cursor is obtained from the previous call to this tool, with the same parameters)."),
|
|
15
|
+
};
|
|
16
|
+
const tasksListOverdue = {
|
|
17
|
+
name: "tasks-list-overdue",
|
|
18
|
+
description: "Get overdue tasks.",
|
|
19
|
+
parameters: ArgsSchema,
|
|
20
|
+
async execute(args, client) {
|
|
21
|
+
return await getTasksByFilter({
|
|
22
|
+
client,
|
|
23
|
+
query: "overdue",
|
|
24
|
+
cursor: args.cursor,
|
|
25
|
+
limit: args.limit,
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
export { tasksListOverdue };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const tasksOrganizeMultiple: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
projectId?: string | undefined;
|
|
15
|
+
parentId?: string | undefined;
|
|
16
|
+
sectionId?: string | undefined;
|
|
17
|
+
order?: number | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
id: string;
|
|
20
|
+
projectId?: string | undefined;
|
|
21
|
+
parentId?: string | undefined;
|
|
22
|
+
sectionId?: string | undefined;
|
|
23
|
+
order?: number | undefined;
|
|
24
|
+
}>, "many">;
|
|
25
|
+
};
|
|
26
|
+
execute(args: {
|
|
27
|
+
tasks: {
|
|
28
|
+
id: string;
|
|
29
|
+
projectId?: string | undefined;
|
|
30
|
+
parentId?: string | undefined;
|
|
31
|
+
sectionId?: string | undefined;
|
|
32
|
+
order?: number | undefined;
|
|
33
|
+
}[];
|
|
34
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Task[]>;
|
|
35
|
+
};
|
|
36
|
+
export { tasksOrganizeMultiple };
|
|
37
|
+
//# sourceMappingURL=tasks-organize-multiple.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks-organize-multiple.d.ts","sourceRoot":"","sources":["../../../src/tools/tasks-organize-multiple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8BxB,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYe,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const TaskUpdateSchema = z.object({
|
|
3
|
+
id: z.string().min(1).describe("The ID of the task to update."),
|
|
4
|
+
projectId: z
|
|
5
|
+
.string()
|
|
6
|
+
.optional()
|
|
7
|
+
.describe("The new project ID for the task."),
|
|
8
|
+
sectionId: z
|
|
9
|
+
.string()
|
|
10
|
+
.optional()
|
|
11
|
+
.describe("The new section ID for the task."),
|
|
12
|
+
parentId: z
|
|
13
|
+
.string()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe("The new parent task ID (for subtasks)."),
|
|
16
|
+
order: z
|
|
17
|
+
.number()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe("The new order of the task within its parent/section."),
|
|
20
|
+
});
|
|
21
|
+
const ArgsSchema = {
|
|
22
|
+
tasks: z
|
|
23
|
+
.array(TaskUpdateSchema)
|
|
24
|
+
.min(1)
|
|
25
|
+
.describe("Array of task updates to apply."),
|
|
26
|
+
};
|
|
27
|
+
const tasksOrganizeMultiple = {
|
|
28
|
+
name: "tasks-organize-multiple",
|
|
29
|
+
description: "Organize multiple tasks (move, reorder, etc.) in bulk.",
|
|
30
|
+
parameters: ArgsSchema,
|
|
31
|
+
async execute(args, client) {
|
|
32
|
+
const results = [];
|
|
33
|
+
for (const update of args.tasks) {
|
|
34
|
+
const { id, ...updateArgs } = update;
|
|
35
|
+
results.push(await client.updateTask(id, updateArgs));
|
|
36
|
+
}
|
|
37
|
+
return results;
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
export { tasksOrganizeMultiple };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const tasksSearch: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
searchText: z.ZodString;
|
|
7
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
execute(args: {
|
|
11
|
+
limit: number;
|
|
12
|
+
searchText: string;
|
|
13
|
+
cursor?: string | undefined;
|
|
14
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
15
|
+
tasks: {
|
|
16
|
+
id: string;
|
|
17
|
+
content: string;
|
|
18
|
+
description: string;
|
|
19
|
+
dueDate: string | undefined;
|
|
20
|
+
recurring: string | boolean;
|
|
21
|
+
priority: number;
|
|
22
|
+
projectId: string;
|
|
23
|
+
sectionId: string | null;
|
|
24
|
+
parentId: string | null;
|
|
25
|
+
labels: string[];
|
|
26
|
+
}[];
|
|
27
|
+
nextCursor: string | null;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export { tasksSearch };
|
|
31
|
+
//# sourceMappingURL=tasks-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks-search.d.ts","sourceRoot":"","sources":["../../../src/tools/tasks-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYyB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { getTasksByFilter } from "./shared.js";
|
|
3
|
+
const ArgsSchema = {
|
|
4
|
+
searchText: z.string().min(1).describe("The text to search for in tasks."),
|
|
5
|
+
limit: z
|
|
6
|
+
.number()
|
|
7
|
+
.int()
|
|
8
|
+
.min(1)
|
|
9
|
+
.max(50)
|
|
10
|
+
.default(10)
|
|
11
|
+
.describe("The maximum number of tasks to return."),
|
|
12
|
+
cursor: z
|
|
13
|
+
.string()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe("The cursor to get the next page of tasks (cursor is obtained from the previous call to this tool, with the same parameters)."),
|
|
16
|
+
};
|
|
17
|
+
const tasksSearch = {
|
|
18
|
+
name: "tasks-search",
|
|
19
|
+
description: "Search tasks by text using Todoist's filter query.",
|
|
20
|
+
parameters: ArgsSchema,
|
|
21
|
+
async execute(args, client) {
|
|
22
|
+
return await getTasksByFilter({
|
|
23
|
+
client,
|
|
24
|
+
query: `search: ${args.searchText}`,
|
|
25
|
+
cursor: args.cursor,
|
|
26
|
+
limit: args.limit,
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
export { tasksSearch };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const tasksUpdateOne: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
content: z.ZodOptional<z.ZodString>;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
dueString: z.ZodOptional<z.ZodString>;
|
|
14
|
+
};
|
|
15
|
+
execute(args: {
|
|
16
|
+
id: string;
|
|
17
|
+
content?: string | undefined;
|
|
18
|
+
projectId?: string | undefined;
|
|
19
|
+
parentId?: string | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
priority?: number | undefined;
|
|
22
|
+
dueString?: string | undefined;
|
|
23
|
+
sectionId?: string | undefined;
|
|
24
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Task>;
|
|
25
|
+
};
|
|
26
|
+
export { tasksUpdateOne };
|
|
27
|
+
//# sourceMappingURL=tasks-update-one.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks-update-one.d.ts","sourceRoot":"","sources":["../../../src/tools/tasks-update-one.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqCxB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;CAQsB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const ArgsSchema = {
|
|
3
|
+
id: z.string().min(1).describe("The ID of the task to update."),
|
|
4
|
+
content: z.string().optional().describe("The new content of the task."),
|
|
5
|
+
description: z
|
|
6
|
+
.string()
|
|
7
|
+
.optional()
|
|
8
|
+
.describe("The new description of the task."),
|
|
9
|
+
projectId: z
|
|
10
|
+
.string()
|
|
11
|
+
.optional()
|
|
12
|
+
.describe("The new project ID for the task."),
|
|
13
|
+
sectionId: z
|
|
14
|
+
.string()
|
|
15
|
+
.optional()
|
|
16
|
+
.describe("The new section ID for the task."),
|
|
17
|
+
parentId: z
|
|
18
|
+
.string()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe("The new parent task ID (for subtasks)."),
|
|
21
|
+
priority: z
|
|
22
|
+
.number()
|
|
23
|
+
.int()
|
|
24
|
+
.min(1)
|
|
25
|
+
.max(4)
|
|
26
|
+
.optional()
|
|
27
|
+
.describe("The new priority of the task (1-4)."),
|
|
28
|
+
dueString: z
|
|
29
|
+
.string()
|
|
30
|
+
.optional()
|
|
31
|
+
.describe("The new due date for the task, in natural language (e.g., 'tomorrow at 5pm')."),
|
|
32
|
+
};
|
|
33
|
+
const tasksUpdateOne = {
|
|
34
|
+
name: "tasks-update-one",
|
|
35
|
+
description: "Update an existing task with new values.",
|
|
36
|
+
parameters: ArgsSchema,
|
|
37
|
+
async execute(args, client) {
|
|
38
|
+
const { id, ...updateArgs } = args;
|
|
39
|
+
return await client.updateTask(id, updateArgs);
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
export { tasksUpdateOne };
|