@doist/todoist-ai 8.9.2 → 8.10.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;AAGnE,OAAO,EACH,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEhB,MAAM,kBAAkB,CAAA;AAkJzB;;;;;;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,aAuHA;AAED,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,YAAY,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;AAGnE,OAAO,EACH,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEhB,MAAM,kBAAkB,CAAA;AAmJzB;;;;;;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,aAwHA;AAED,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { TodoistApi as h } from "@doist/todoist-sdk";
2
- import { O as T } from "./mcp-server-BxCkcyeL.js";
2
+ import { P as T } from "./mcp-server-DcDkgkMt.js";
3
3
  const p = /* @__PURE__ */ new Set([401, 403]);
4
4
  function w(e) {
5
5
  const t = T(e);
@@ -0,0 +1,122 @@
1
+ import { z } from 'zod';
2
+ declare const updateLabels: {
3
+ name: "update-labels";
4
+ description: string;
5
+ parameters: {
6
+ labels: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ labelType: z.ZodLiteral<"personal">;
8
+ id: z.ZodString;
9
+ name: 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
+ order: z.ZodOptional<z.ZodNumber>;
33
+ isFavorite: z.ZodOptional<z.ZodBoolean>;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ labelType: z.ZodLiteral<"shared">;
36
+ name: z.ZodString;
37
+ newName: z.ZodString;
38
+ }, z.core.$strip>], "labelType">>;
39
+ };
40
+ outputSchema: {
41
+ updatedLabels: z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ name: z.ZodString;
44
+ color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
45
+ berry_red: "berry_red";
46
+ red: "red";
47
+ orange: "orange";
48
+ yellow: "yellow";
49
+ olive_green: "olive_green";
50
+ lime_green: "lime_green";
51
+ green: "green";
52
+ mint_green: "mint_green";
53
+ teal: "teal";
54
+ sky_blue: "sky_blue";
55
+ light_blue: "light_blue";
56
+ blue: "blue";
57
+ grape: "grape";
58
+ violet: "violet";
59
+ lavender: "lavender";
60
+ magenta: "magenta";
61
+ salmon: "salmon";
62
+ charcoal: "charcoal";
63
+ grey: "grey";
64
+ taupe: "taupe";
65
+ }>>>;
66
+ order: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
67
+ isFavorite: z.ZodBoolean;
68
+ }, z.core.$strip>>;
69
+ renamedSharedLabels: z.ZodArray<z.ZodObject<{
70
+ name: z.ZodString;
71
+ newName: z.ZodString;
72
+ }, z.core.$strip>>;
73
+ totalCount: z.ZodNumber;
74
+ appliedOperations: z.ZodObject<{
75
+ updateCount: z.ZodNumber;
76
+ renameCount: z.ZodNumber;
77
+ skippedCount: z.ZodNumber;
78
+ }, z.core.$strip>;
79
+ };
80
+ annotations: {
81
+ readOnlyHint: false;
82
+ destructiveHint: true;
83
+ idempotentHint: false;
84
+ };
85
+ execute(args: {
86
+ labels: ({
87
+ labelType: "personal";
88
+ id: string;
89
+ name?: string | undefined;
90
+ 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;
91
+ order?: number | undefined;
92
+ isFavorite?: boolean | undefined;
93
+ } | {
94
+ labelType: "shared";
95
+ name: string;
96
+ newName: string;
97
+ })[];
98
+ }, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
99
+ textContent: string;
100
+ structuredContent: {
101
+ updatedLabels: {
102
+ id: string;
103
+ name: string;
104
+ isFavorite: boolean;
105
+ 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;
106
+ order?: number | undefined;
107
+ }[];
108
+ renamedSharedLabels: {
109
+ name: string;
110
+ newName: string;
111
+ }[];
112
+ totalCount: number;
113
+ appliedOperations: {
114
+ updateCount: number;
115
+ renameCount: number;
116
+ skippedCount: number;
117
+ };
118
+ };
119
+ }>;
120
+ };
121
+ export { updateLabels };
122
+ //# sourceMappingURL=update-labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-labels.d.ts","sourceRoot":"","sources":["../../src/tools/update-labels.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkEvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2E6C,CAAA;AAiD/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -43,6 +43,7 @@ export declare const ToolNames: {
43
43
  readonly REORDER_OBJECTS: "reorder-objects";
44
44
  readonly USER_INFO: "user-info";
45
45
  readonly ADD_LABELS: "add-labels";
46
+ readonly UPDATE_LABELS: "update-labels";
46
47
  readonly FIND_LABELS: "find-labels";
47
48
  readonly FIND_FILTERS: "find-filters";
48
49
  readonly ADD_FILTERS: "add-filters";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEZ,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEZ,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.9.2",
3
+ "version": "8.10.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -95,11 +95,11 @@
95
95
  "semantic-release": "25.0.3",
96
96
  "snarkdown": "2.0.0",
97
97
  "tsx": "4.21.0",
98
- "typescript": "6.0.2",
98
+ "typescript": "6.0.3",
99
99
  "vite": "7.3.2",
100
100
  "vite-plugin-dts": "4.5.4",
101
- "vite-plugin-singlefile": "2.3.2",
102
- "vitest": "4.1.1"
101
+ "vite-plugin-singlefile": "2.3.3",
102
+ "vitest": "4.1.5"
103
103
  },
104
104
  "lint-staged": {
105
105
  "*.{ts,tsx,js,jsx}": [
@@ -52,6 +52,7 @@ import { search } from '../src/tools/search.js'
52
52
  import { uncompleteTasks } from '../src/tools/uncomplete-tasks.js'
53
53
  import { updateComments } from '../src/tools/update-comments.js'
54
54
  import { updateFilters } from '../src/tools/update-filters.js'
55
+ import { updateLabels } from '../src/tools/update-labels.js'
55
56
  import { updateProjects } from '../src/tools/update-projects.js'
56
57
  import { updateSections } from '../src/tools/update-sections.js'
57
58
  import { updateTasks } from '../src/tools/update-tasks.js'
@@ -107,6 +108,7 @@ const tools: Record<string, ExecutableTool> = {
107
108
  search: search,
108
109
  'update-comments': updateComments,
109
110
  'update-filters': updateFilters,
111
+ 'update-labels': updateLabels,
110
112
  'update-projects': updateProjects,
111
113
  'update-sections': updateSections,
112
114
  'update-tasks': updateTasks,