@doist/todoist-ai 7.16.0 → 7.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.
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AAEnE,OAAO,EAEH,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EAGhB,MAAM,kBAAkB,CAAA;AAgHzB;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,EAClB,aAAa,EACb,OAAO,EACP,QAAa,GAChB,EAAE;IACC,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACtB,aAsFA;AAED,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AAEnE,OAAO,EAEH,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EAGhB,MAAM,kBAAkB,CAAA;AAkHzB;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,EAClB,aAAa,EACb,OAAO,EACP,QAAa,GAChB,EAAE;IACC,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACtB,aAuFA;AAED,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,78 @@
1
+ import { Task } from '@doist/todoist-api-typescript';
2
+ import { z } from 'zod';
3
+ declare const rescheduleTasks: {
4
+ name: "reschedule-tasks";
5
+ description: string;
6
+ parameters: {
7
+ tasks: z.ZodArray<z.ZodObject<{
8
+ id: z.ZodString;
9
+ date: z.ZodString;
10
+ }, z.core.$strip>>;
11
+ };
12
+ outputSchema: {
13
+ tasks: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodString;
15
+ content: z.ZodString;
16
+ description: z.ZodString;
17
+ dueDate: z.ZodOptional<z.ZodString>;
18
+ recurring: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
19
+ deadlineDate: z.ZodOptional<z.ZodString>;
20
+ priority: z.ZodEnum<{
21
+ p1: "p1";
22
+ p2: "p2";
23
+ p3: "p3";
24
+ p4: "p4";
25
+ }>;
26
+ projectId: z.ZodString;
27
+ sectionId: z.ZodOptional<z.ZodString>;
28
+ parentId: z.ZodOptional<z.ZodString>;
29
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ duration: z.ZodOptional<z.ZodString>;
31
+ responsibleUid: z.ZodOptional<z.ZodString>;
32
+ isUncompletable: z.ZodOptional<z.ZodBoolean>;
33
+ assignedByUid: z.ZodOptional<z.ZodString>;
34
+ checked: z.ZodBoolean;
35
+ completedAt: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ totalCount: z.ZodNumber;
38
+ rescheduledTaskIds: z.ZodArray<z.ZodString>;
39
+ };
40
+ annotations: {
41
+ readOnlyHint: false;
42
+ destructiveHint: true;
43
+ idempotentHint: false;
44
+ };
45
+ execute(args: {
46
+ tasks: {
47
+ id: string;
48
+ date: string;
49
+ }[];
50
+ }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
51
+ textContent: string;
52
+ structuredContent: {
53
+ tasks: {
54
+ id: string;
55
+ content: string;
56
+ description: string;
57
+ dueDate: string | undefined;
58
+ recurring: string | boolean;
59
+ deadlineDate: string | undefined;
60
+ priority: "p1" | "p2" | "p3" | "p4";
61
+ projectId: string;
62
+ sectionId: string | undefined;
63
+ parentId: string | undefined;
64
+ labels: string[];
65
+ duration: string | undefined;
66
+ responsibleUid: string | undefined;
67
+ assignedByUid: string | undefined;
68
+ checked: boolean;
69
+ completedAt: string | undefined;
70
+ }[];
71
+ totalCount: number;
72
+ rescheduledTaskIds: string[];
73
+ };
74
+ }>;
75
+ };
76
+ declare function buildRescheduleDate(inputDate: string, existingDue: NonNullable<Task['due']>): string;
77
+ export { buildRescheduleDate, rescheduleTasks };
78
+ //# sourceMappingURL=reschedule-tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reschedule-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/reschedule-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA+BvB,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE0C,CAAA;AAE/D,iBAAS,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,MAAM,CAU7F;AAED,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAA"}
@@ -13,6 +13,7 @@ export declare const ToolNames: {
13
13
  readonly FIND_TASKS: "find-tasks";
14
14
  readonly FIND_TASKS_BY_DATE: "find-tasks-by-date";
15
15
  readonly FIND_COMPLETED_TASKS: "find-completed-tasks";
16
+ readonly RESCHEDULE_TASKS: "reschedule-tasks";
16
17
  readonly ADD_PROJECTS: "add-projects";
17
18
  readonly UPDATE_PROJECTS: "update-projects";
18
19
  readonly FIND_PROJECTS: "find-projects";
@@ -1 +1 @@
1
- {"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../../src/utils/tool-names.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDZ,CAAA;AAGV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA"}
1
+ {"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../../src/utils/tool-names.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDZ,CAAA;AAGV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-ai",
3
- "version": "7.16.0",
3
+ "version": "7.17.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -40,6 +40,7 @@ import { listWorkspaces } from '../src/tools/list-workspaces.js'
40
40
  import { manageAssignments } from '../src/tools/manage-assignments.js'
41
41
  import { projectManagement } from '../src/tools/project-management.js'
42
42
  import { projectMove } from '../src/tools/project-move.js'
43
+ import { rescheduleTasks } from '../src/tools/reschedule-tasks.js'
43
44
  import { search } from '../src/tools/search.js'
44
45
  import { uncompleteTasks } from '../src/tools/uncomplete-tasks.js'
45
46
  import { updateComments } from '../src/tools/update-comments.js'
@@ -86,6 +87,7 @@ const tools: Record<string, ExecutableTool> = {
86
87
  'manage-assignments': manageAssignments,
87
88
  'project-management': projectManagement,
88
89
  'project-move': projectMove,
90
+ 'reschedule-tasks': rescheduleTasks,
89
91
  search: search,
90
92
  'update-comments': updateComments,
91
93
  'update-projects': updateProjects,