@doist/todoist-ai 8.0.2 → 8.1.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;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"}
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;AA0HzB;;;;;;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,aA4FA;AAED,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,94 @@
1
+ import { z } from 'zod';
2
+ declare const addFilters: {
3
+ name: "add-filters";
4
+ description: string;
5
+ parameters: {
6
+ filters: z.ZodArray<z.ZodObject<{
7
+ name: z.ZodString;
8
+ query: z.ZodString;
9
+ color: z.ZodPipe<z.ZodTransform<string | undefined, unknown>, z.ZodOptional<z.ZodEnum<{
10
+ berry_red: "berry_red";
11
+ red: "red";
12
+ orange: "orange";
13
+ yellow: "yellow";
14
+ olive_green: "olive_green";
15
+ lime_green: "lime_green";
16
+ green: "green";
17
+ mint_green: "mint_green";
18
+ teal: "teal";
19
+ sky_blue: "sky_blue";
20
+ light_blue: "light_blue";
21
+ blue: "blue";
22
+ grape: "grape";
23
+ violet: "violet";
24
+ lavender: "lavender";
25
+ magenta: "magenta";
26
+ salmon: "salmon";
27
+ charcoal: "charcoal";
28
+ grey: "grey";
29
+ taupe: "taupe";
30
+ }>>>;
31
+ isFavorite: z.ZodOptional<z.ZodBoolean>;
32
+ }, z.core.$strip>>;
33
+ };
34
+ outputSchema: {
35
+ filters: z.ZodArray<z.ZodObject<{
36
+ id: z.ZodString;
37
+ name: z.ZodString;
38
+ query: z.ZodString;
39
+ color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
40
+ berry_red: "berry_red";
41
+ red: "red";
42
+ orange: "orange";
43
+ yellow: "yellow";
44
+ olive_green: "olive_green";
45
+ lime_green: "lime_green";
46
+ green: "green";
47
+ mint_green: "mint_green";
48
+ teal: "teal";
49
+ sky_blue: "sky_blue";
50
+ light_blue: "light_blue";
51
+ blue: "blue";
52
+ grape: "grape";
53
+ violet: "violet";
54
+ lavender: "lavender";
55
+ magenta: "magenta";
56
+ salmon: "salmon";
57
+ charcoal: "charcoal";
58
+ grey: "grey";
59
+ taupe: "taupe";
60
+ }>>>;
61
+ isFavorite: z.ZodBoolean;
62
+ itemOrder: z.ZodNumber;
63
+ }, z.core.$strip>>;
64
+ totalCount: z.ZodNumber;
65
+ };
66
+ annotations: {
67
+ readOnlyHint: false;
68
+ destructiveHint: false;
69
+ idempotentHint: false;
70
+ };
71
+ execute({ filters }: {
72
+ filters: {
73
+ name: string;
74
+ query: string;
75
+ color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
76
+ isFavorite?: boolean | undefined;
77
+ }[];
78
+ }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
79
+ textContent: string;
80
+ structuredContent: {
81
+ filters: {
82
+ id: string;
83
+ name: string;
84
+ query: string;
85
+ color: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
86
+ isFavorite: boolean;
87
+ itemOrder: number;
88
+ }[];
89
+ totalCount: number;
90
+ };
91
+ }>;
92
+ };
93
+ export { addFilters };
94
+ //# sourceMappingURL=add-filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-filters.d.ts","sourceRoot":"","sources":["../../src/tools/add-filters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA+BvB,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D+C,CAAA;AAE/D,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -4,6 +4,7 @@ declare const deleteObject: {
4
4
  description: string;
5
5
  parameters: {
6
6
  type: z.ZodEnum<{
7
+ filter: "filter";
7
8
  comment: "comment";
8
9
  task: "task";
9
10
  project: "project";
@@ -15,6 +16,7 @@ declare const deleteObject: {
15
16
  outputSchema: {
16
17
  deletedEntity: z.ZodObject<{
17
18
  type: z.ZodEnum<{
19
+ filter: "filter";
18
20
  comment: "comment";
19
21
  task: "task";
20
22
  project: "project";
@@ -31,13 +33,13 @@ declare const deleteObject: {
31
33
  idempotentHint: true;
32
34
  };
33
35
  execute(args: {
34
- type: "comment" | "task" | "project" | "section" | "label";
36
+ type: "filter" | "comment" | "task" | "project" | "section" | "label";
35
37
  id: string;
36
38
  }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
37
39
  textContent: string;
38
40
  structuredContent: {
39
41
  deletedEntity: {
40
- type: "comment" | "task" | "project" | "section" | "label";
42
+ type: "filter" | "comment" | "task" | "project" | "section" | "label";
41
43
  id: string;
42
44
  };
43
45
  success: true;
@@ -1 +1 @@
1
- {"version":3,"file":"delete-object.d.ts","sourceRoot":"","sources":["../../src/tools/delete-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuBvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC6C,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"delete-object.d.ts","sourceRoot":"","sources":["../../src/tools/delete-object.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqBvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsC6C,CAAA;AAE/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,92 @@
1
+ import { z } from 'zod';
2
+ declare const FilterOutputSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ query: z.ZodString;
6
+ color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
7
+ berry_red: "berry_red";
8
+ red: "red";
9
+ orange: "orange";
10
+ yellow: "yellow";
11
+ olive_green: "olive_green";
12
+ lime_green: "lime_green";
13
+ green: "green";
14
+ mint_green: "mint_green";
15
+ teal: "teal";
16
+ sky_blue: "sky_blue";
17
+ light_blue: "light_blue";
18
+ blue: "blue";
19
+ grape: "grape";
20
+ violet: "violet";
21
+ lavender: "lavender";
22
+ magenta: "magenta";
23
+ salmon: "salmon";
24
+ charcoal: "charcoal";
25
+ grey: "grey";
26
+ taupe: "taupe";
27
+ }>>>;
28
+ isFavorite: z.ZodBoolean;
29
+ itemOrder: z.ZodNumber;
30
+ }, z.core.$strip>;
31
+ declare const findFilters: {
32
+ name: "find-filters";
33
+ description: string;
34
+ parameters: {
35
+ search: z.ZodOptional<z.ZodString>;
36
+ };
37
+ outputSchema: {
38
+ filters: z.ZodArray<z.ZodObject<{
39
+ id: z.ZodString;
40
+ name: z.ZodString;
41
+ query: z.ZodString;
42
+ color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
43
+ berry_red: "berry_red";
44
+ red: "red";
45
+ orange: "orange";
46
+ yellow: "yellow";
47
+ olive_green: "olive_green";
48
+ lime_green: "lime_green";
49
+ green: "green";
50
+ mint_green: "mint_green";
51
+ teal: "teal";
52
+ sky_blue: "sky_blue";
53
+ light_blue: "light_blue";
54
+ blue: "blue";
55
+ grape: "grape";
56
+ violet: "violet";
57
+ lavender: "lavender";
58
+ magenta: "magenta";
59
+ salmon: "salmon";
60
+ charcoal: "charcoal";
61
+ grey: "grey";
62
+ taupe: "taupe";
63
+ }>>>;
64
+ isFavorite: z.ZodBoolean;
65
+ itemOrder: z.ZodNumber;
66
+ }, z.core.$strip>>;
67
+ totalCount: z.ZodNumber;
68
+ };
69
+ annotations: {
70
+ readOnlyHint: true;
71
+ destructiveHint: false;
72
+ idempotentHint: true;
73
+ };
74
+ execute(args: {
75
+ search?: string | undefined;
76
+ }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
77
+ textContent: string;
78
+ structuredContent: {
79
+ filters: {
80
+ id: string;
81
+ name: string;
82
+ query: string;
83
+ color: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
84
+ isFavorite: boolean;
85
+ itemOrder: number;
86
+ }[];
87
+ totalCount: number;
88
+ };
89
+ }>;
90
+ };
91
+ export { findFilters, FilterOutputSchema };
92
+ //# sourceMappingURL=find-filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-filters.d.ts","sourceRoot":"","sources":["../../src/tools/find-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOtB,CAAA;AAOF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC8C,CAAA;AA2B/D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAA"}
@@ -0,0 +1,106 @@
1
+ import { z } from 'zod';
2
+ declare const updateFilters: {
3
+ name: "update-filters";
4
+ description: string;
5
+ parameters: {
6
+ filters: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodOptional<z.ZodString>;
9
+ query: z.ZodOptional<z.ZodString>;
10
+ color: z.ZodPipe<z.ZodTransform<string | undefined, unknown>, z.ZodOptional<z.ZodEnum<{
11
+ berry_red: "berry_red";
12
+ red: "red";
13
+ orange: "orange";
14
+ yellow: "yellow";
15
+ olive_green: "olive_green";
16
+ lime_green: "lime_green";
17
+ green: "green";
18
+ mint_green: "mint_green";
19
+ teal: "teal";
20
+ sky_blue: "sky_blue";
21
+ light_blue: "light_blue";
22
+ blue: "blue";
23
+ grape: "grape";
24
+ violet: "violet";
25
+ lavender: "lavender";
26
+ magenta: "magenta";
27
+ salmon: "salmon";
28
+ charcoal: "charcoal";
29
+ grey: "grey";
30
+ taupe: "taupe";
31
+ }>>>;
32
+ isFavorite: z.ZodOptional<z.ZodBoolean>;
33
+ }, z.core.$strip>>;
34
+ };
35
+ outputSchema: {
36
+ filters: z.ZodArray<z.ZodObject<{
37
+ id: z.ZodString;
38
+ name: z.ZodString;
39
+ query: z.ZodString;
40
+ color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
41
+ berry_red: "berry_red";
42
+ red: "red";
43
+ orange: "orange";
44
+ yellow: "yellow";
45
+ olive_green: "olive_green";
46
+ lime_green: "lime_green";
47
+ green: "green";
48
+ mint_green: "mint_green";
49
+ teal: "teal";
50
+ sky_blue: "sky_blue";
51
+ light_blue: "light_blue";
52
+ blue: "blue";
53
+ grape: "grape";
54
+ violet: "violet";
55
+ lavender: "lavender";
56
+ magenta: "magenta";
57
+ salmon: "salmon";
58
+ charcoal: "charcoal";
59
+ grey: "grey";
60
+ taupe: "taupe";
61
+ }>>>;
62
+ isFavorite: z.ZodBoolean;
63
+ itemOrder: z.ZodNumber;
64
+ }, z.core.$strip>>;
65
+ totalCount: z.ZodNumber;
66
+ updatedFilterIds: z.ZodArray<z.ZodString>;
67
+ appliedOperations: z.ZodObject<{
68
+ updateCount: z.ZodNumber;
69
+ skippedCount: z.ZodNumber;
70
+ }, z.core.$strip>;
71
+ };
72
+ annotations: {
73
+ readOnlyHint: false;
74
+ destructiveHint: true;
75
+ idempotentHint: false;
76
+ };
77
+ execute(args: {
78
+ filters: {
79
+ id: string;
80
+ name?: string | undefined;
81
+ query?: string | undefined;
82
+ color?: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
83
+ isFavorite?: boolean | undefined;
84
+ }[];
85
+ }, client: import('@doist/todoist-api-typescript').TodoistApi): Promise<{
86
+ textContent: string;
87
+ structuredContent: {
88
+ filters: {
89
+ id: string;
90
+ name: string;
91
+ query: string;
92
+ color: "berry_red" | "red" | "orange" | "yellow" | "olive_green" | "lime_green" | "green" | "mint_green" | "teal" | "sky_blue" | "light_blue" | "blue" | "grape" | "violet" | "lavender" | "magenta" | "salmon" | "charcoal" | "grey" | "taupe" | undefined;
93
+ isFavorite: boolean;
94
+ itemOrder: number;
95
+ }[];
96
+ totalCount: number;
97
+ updatedFilterIds: string[];
98
+ appliedOperations: {
99
+ updateCount: number;
100
+ skippedCount: number;
101
+ };
102
+ };
103
+ }>;
104
+ };
105
+ export { updateFilters };
106
+ //# sourceMappingURL=update-filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-filters.d.ts","sourceRoot":"","sources":["../../src/tools/update-filters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuCvB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4E4C,CAAA;AA8B/D,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -34,6 +34,9 @@ export declare const ToolNames: {
34
34
  readonly USER_INFO: "user-info";
35
35
  readonly ADD_LABELS: "add-labels";
36
36
  readonly FIND_LABELS: "find-labels";
37
+ readonly FIND_FILTERS: "find-filters";
38
+ readonly ADD_FILTERS: "add-filters";
39
+ readonly UPDATE_FILTERS: "update-filters";
37
40
  readonly LIST_WORKSPACES: "list-workspaces";
38
41
  readonly SEARCH: "search";
39
42
  readonly FETCH: "fetch";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDZ,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDZ,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": "8.0.2",
3
+ "version": "8.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,6 +18,7 @@ import { readFileSync } from 'node:fs'
18
18
  import { TodoistApi } from '@doist/todoist-api-typescript'
19
19
  import { config } from 'dotenv'
20
20
  import { addComments } from '../src/tools/add-comments.js'
21
+ import { addFilters } from '../src/tools/add-filters.js'
21
22
  import { addLabels } from '../src/tools/add-labels.js'
22
23
  import { addProjects } from '../src/tools/add-projects.js'
23
24
  import { addSections } from '../src/tools/add-sections.js'
@@ -29,6 +30,7 @@ import { fetchObject } from '../src/tools/fetch-object.js'
29
30
  import { findActivity } from '../src/tools/find-activity.js'
30
31
  import { findComments } from '../src/tools/find-comments.js'
31
32
  import { findCompletedTasks } from '../src/tools/find-completed-tasks.js'
33
+ import { findFilters } from '../src/tools/find-filters.js'
32
34
  import { findLabels } from '../src/tools/find-labels.js'
33
35
  import { findProjectCollaborators } from '../src/tools/find-project-collaborators.js'
34
36
  import { findProjects } from '../src/tools/find-projects.js'
@@ -44,6 +46,7 @@ import { rescheduleTasks } from '../src/tools/reschedule-tasks.js'
44
46
  import { search } from '../src/tools/search.js'
45
47
  import { uncompleteTasks } from '../src/tools/uncomplete-tasks.js'
46
48
  import { updateComments } from '../src/tools/update-comments.js'
49
+ import { updateFilters } from '../src/tools/update-filters.js'
47
50
  import { updateProjects } from '../src/tools/update-projects.js'
48
51
  import { updateSections } from '../src/tools/update-sections.js'
49
52
  import { updateTasks } from '../src/tools/update-tasks.js'
@@ -65,6 +68,7 @@ type ExecutableTool = {
65
68
  const tools: Record<string, ExecutableTool> = {
66
69
  'add-tasks': addTasks,
67
70
  'add-projects': addProjects,
71
+ 'add-filters': addFilters,
68
72
  'add-sections': addSections,
69
73
  'add-comments': addComments,
70
74
  'add-labels': addLabels,
@@ -75,6 +79,7 @@ const tools: Record<string, ExecutableTool> = {
75
79
  'fetch-object': fetchObject,
76
80
  'find-activity': findActivity,
77
81
  'find-comments': findComments,
82
+ 'find-filters': findFilters,
78
83
  'find-completed-tasks': findCompletedTasks,
79
84
  'find-labels': findLabels,
80
85
  'find-project-collaborators': findProjectCollaborators,
@@ -90,6 +95,7 @@ const tools: Record<string, ExecutableTool> = {
90
95
  'reschedule-tasks': rescheduleTasks,
91
96
  search: search,
92
97
  'update-comments': updateComments,
98
+ 'update-filters': updateFilters,
93
99
  'update-projects': updateProjects,
94
100
  'update-sections': updateSections,
95
101
  'update-tasks': updateTasks,