@doist/todoist-ai 8.12.0 → 8.12.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/README.md +11 -4
- package/dist/index.d.ts +0 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/{mcp-server-xPpLc1fl.js → mcp-server-DO3M1GWl.js} +914 -920
- package/dist/{require-valid-todoist-token-BEclFTYu.js → require-valid-todoist-token-CpbXZfcm.js} +1 -1
- package/dist/tools/add-sections.d.ts +0 -10
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/get-overview.d.ts +5 -4
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +0 -10
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +8 -1
- package/dist/utils/output-schemas.d.ts.map +1 -1
- package/package.json +4 -3
- package/scripts/bump-plugin-version.mjs +14 -0
|
@@ -29,18 +29,8 @@ declare const addSections: {
|
|
|
29
29
|
textContent: string;
|
|
30
30
|
structuredContent: {
|
|
31
31
|
sections: {
|
|
32
|
-
url: string;
|
|
33
32
|
id: string;
|
|
34
|
-
userId: string;
|
|
35
|
-
projectId: string;
|
|
36
|
-
addedAt: Date;
|
|
37
|
-
updatedAt: Date;
|
|
38
|
-
archivedAt: Date | null;
|
|
39
33
|
name: string;
|
|
40
|
-
sectionOrder: number;
|
|
41
|
-
isArchived: boolean;
|
|
42
|
-
isDeleted: boolean;
|
|
43
|
-
isCollapsed: boolean;
|
|
44
34
|
}[];
|
|
45
35
|
totalCount: number;
|
|
46
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-sections.d.ts","sourceRoot":"","sources":["../../src/tools/add-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyBvB,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"add-sections.d.ts","sourceRoot":"","sources":["../../src/tools/add-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyBvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC8C,CAAA;AAa/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TodoistApi } from '@doist/todoist-sdk';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { mapTask } from '../tool-helpers.js';
|
|
4
|
+
import { SectionSummary } from '../utils/output-schemas.js';
|
|
4
5
|
type ProjectStructure = {
|
|
5
6
|
id: string;
|
|
6
7
|
name: string;
|
|
7
8
|
parentId?: string;
|
|
8
9
|
folderId?: string;
|
|
9
10
|
childOrder: number;
|
|
10
|
-
sections:
|
|
11
|
+
sections: SectionSummary[];
|
|
11
12
|
children: ProjectStructure[];
|
|
12
13
|
};
|
|
13
14
|
type AccountOverviewStructured = Record<string, unknown> & {
|
|
@@ -15,7 +16,7 @@ type AccountOverviewStructured = Record<string, unknown> & {
|
|
|
15
16
|
inbox: {
|
|
16
17
|
id: string;
|
|
17
18
|
name: string;
|
|
18
|
-
sections:
|
|
19
|
+
sections: SectionSummary[];
|
|
19
20
|
} | null;
|
|
20
21
|
projects: ProjectStructure[];
|
|
21
22
|
totalProjects: number;
|
|
@@ -28,7 +29,7 @@ type ProjectOverviewStructured = Record<string, unknown> & {
|
|
|
28
29
|
id: string;
|
|
29
30
|
name: string;
|
|
30
31
|
};
|
|
31
|
-
sections:
|
|
32
|
+
sections: SectionSummary[];
|
|
32
33
|
tasks: Array<ReturnType<typeof mapTask> & {
|
|
33
34
|
children: never[];
|
|
34
35
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-overview.d.ts","sourceRoot":"","sources":["../../src/tools/get-overview.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KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,GAAG;QAAE,QAAQ,EAAE,KAAK,EAAE,CAAA;KAAE,CAAC,CAAA;IAChE,KAAK,EAAE;QACH,UAAU,EAAE,MAAM,CAAA;QAClB,aAAa,EAAE,MAAM,CAAA;QACrB,mBAAmB,EAAE,MAAM,CAAA;KAC9B,CAAA;CACJ,CAAA;AAmKD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA3ZT,MAAM;kBACJ,MAAM;uBACD,MAAM;uBACN,MAAM;wBACL,MAAM;sBACR;gBAAE,EAAE,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,EAAE;sBAC9B,OAAO,EAAE;;gBANf,MAAM;kBACJ,MAAM;uBACD,MAAM;uBACN,MAAM;wBACL,MAAM;sBACR;gBAAE,EAAE,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,EAAE;sBAC9B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsawC,CAAA;AAE/D,OAAO,EAAE,KAAK,yBAAyB,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,CAAA"}
|
|
@@ -30,18 +30,8 @@ declare const updateSections: {
|
|
|
30
30
|
textContent: string;
|
|
31
31
|
structuredContent: {
|
|
32
32
|
sections: {
|
|
33
|
-
url: string;
|
|
34
33
|
id: string;
|
|
35
|
-
userId: string;
|
|
36
|
-
projectId: string;
|
|
37
|
-
addedAt: Date;
|
|
38
|
-
updatedAt: Date;
|
|
39
|
-
archivedAt: Date | null;
|
|
40
34
|
name: string;
|
|
41
|
-
sectionOrder: number;
|
|
42
|
-
isArchived: boolean;
|
|
43
|
-
isDeleted: boolean;
|
|
44
|
-
isCollapsed: boolean;
|
|
45
35
|
}[];
|
|
46
36
|
totalCount: number;
|
|
47
37
|
updatedSectionIds: string[];
|
|
@@ -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;AAoBvB,QAAA,MAAM,cAAc
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB2C,CAAA;AAa/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Section } from '@doist/todoist-sdk';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
/**
|
|
3
4
|
* Schema for a mapped task object returned by tools
|
|
@@ -70,6 +71,12 @@ declare const SectionSchema: z.ZodObject<{
|
|
|
70
71
|
id: z.ZodString;
|
|
71
72
|
name: z.ZodString;
|
|
72
73
|
}, z.core.$strip>;
|
|
74
|
+
type SectionSummary = z.infer<typeof SectionSchema>;
|
|
75
|
+
/**
|
|
76
|
+
* Strip an SDK Section (or any object with id/name) down to the fields
|
|
77
|
+
* declared in SectionSchema. Keeps tool responses aligned with the schema.
|
|
78
|
+
*/
|
|
79
|
+
declare function toSectionSummary({ id, name }: Section): SectionSummary;
|
|
73
80
|
/**
|
|
74
81
|
* Schema for a comment object returned by tools
|
|
75
82
|
*/
|
|
@@ -188,5 +195,5 @@ declare const FailureSchema: z.ZodObject<{
|
|
|
188
195
|
error: z.ZodString;
|
|
189
196
|
code: z.ZodOptional<z.ZodString>;
|
|
190
197
|
}, z.core.$strip>;
|
|
191
|
-
export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, LabelSchema, ProjectSchema, ReminderSchema, SectionSchema, TaskSchema, };
|
|
198
|
+
export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, LabelSchema, ProjectSchema, ReminderSchema, SectionSchema, type SectionSummary, TaskSchema, toSectionSummary, };
|
|
192
199
|
//# sourceMappingURL=output-schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/utils/output-schemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/utils/output-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACpF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;GAEG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;iBA+Bd,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;iBAGjB,CAAA;AAEF,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEnD;;;GAGG;AACH,iBAAS,gBAAgB,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,GAAG,cAAc,CAE/D;AA0BD;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;iBAQjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;iBAYvB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,kBAAkB;;;;iBAItB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMf,CAAA;AAaF;;GAEG;AACH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBlB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;iBAIjB,CAAA;AAEF,OAAO,EACH,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,cAAc,EACd,aAAa,EACb,KAAK,cAAc,EACnB,UAAU,EACV,gBAAgB,GACnB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doist/todoist-ai",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"prepare": "husky"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@doist/todoist-sdk": "10.1.
|
|
62
|
+
"@doist/todoist-sdk": "10.1.1",
|
|
63
63
|
"@modelcontextprotocol/ext-apps": "1.2.2",
|
|
64
64
|
"date-fns": "4.1.0",
|
|
65
65
|
"dompurify": "3.3.3",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@modelcontextprotocol/inspector": "0.21.2",
|
|
75
75
|
"@semantic-release/changelog": "6.0.3",
|
|
76
|
+
"@semantic-release/exec": "7.1.0",
|
|
76
77
|
"@semantic-release/git": "10.0.1",
|
|
77
78
|
"@types/dompurify": "3.2.0",
|
|
78
79
|
"@types/express": "5.0.6",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"lint-staged": "16.4.0",
|
|
88
89
|
"morgan": "1.10.1",
|
|
89
90
|
"nodemon": "3.1.14",
|
|
90
|
-
"oxfmt": "0.
|
|
91
|
+
"oxfmt": "0.48.0",
|
|
91
92
|
"oxlint": "1.58.0",
|
|
92
93
|
"react": "19.2.5",
|
|
93
94
|
"react-dom": "19.2.5",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync, writeFileSync } from 'node:fs'
|
|
3
|
+
|
|
4
|
+
const [version, manifestPath = '.claude-plugin/plugin.json'] = process.argv.slice(2)
|
|
5
|
+
|
|
6
|
+
if (!version) {
|
|
7
|
+
console.error('Usage: bump-plugin-version.mjs <version> [manifestPath]')
|
|
8
|
+
process.exit(1)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'))
|
|
12
|
+
manifest.version = version
|
|
13
|
+
writeFileSync(manifestPath, `${JSON.stringify(manifest, null, 4)}\n`)
|
|
14
|
+
console.log(`Updated ${manifestPath} to ${version}`)
|