@doist/todoist-ai 4.17.0 → 4.17.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/dist/filter-helpers.d.ts +1 -1
- package/dist/filter-helpers.d.ts.map +1 -1
- package/dist/index.d.ts +117 -386
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-helpers.d.ts +1 -37
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/{mcp-server-BADReNAy.js → mcp-server-BMGcSL1c.js} +926 -960
- package/dist/todoist-tool.d.ts +6 -2
- package/dist/todoist-tool.d.ts.map +1 -1
- package/dist/tool-helpers.d.ts +20 -18
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tools/add-comments.d.ts +1 -15
- package/dist/tools/add-comments.d.ts.map +1 -1
- package/dist/tools/add-projects.d.ts +5 -17
- package/dist/tools/add-projects.d.ts.map +1 -1
- package/dist/tools/add-sections.d.ts +1 -15
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/add-tasks.d.ts +7 -21
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/complete-tasks.d.ts +1 -15
- package/dist/tools/complete-tasks.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +2 -16
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/fetch.d.ts +3 -8
- package/dist/tools/fetch.d.ts.map +1 -1
- package/dist/tools/find-activity.d.ts +13 -27
- package/dist/tools/find-activity.d.ts.map +1 -1
- package/dist/tools/find-comments.d.ts +2 -16
- package/dist/tools/find-comments.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.d.ts +8 -22
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-project-collaborators.d.ts +20 -20
- package/dist/tools/find-project-collaborators.d.ts.map +1 -1
- package/dist/tools/find-projects.d.ts +3 -17
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/find-sections.d.ts +1 -15
- package/dist/tools/find-sections.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.d.ts +8 -22
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/find-tasks.d.ts +8 -22
- package/dist/tools/find-tasks.d.ts.map +1 -1
- package/dist/tools/get-overview.d.ts +9 -16
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/manage-assignments.d.ts +5 -19
- package/dist/tools/manage-assignments.d.ts.map +1 -1
- package/dist/tools/search.d.ts +11 -7
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/update-comments.d.ts +1 -15
- package/dist/tools/update-comments.d.ts.map +1 -1
- package/dist/tools/update-projects.d.ts +5 -17
- package/dist/tools/update-projects.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +1 -15
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/tools/update-tasks.d.ts +7 -21
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/tools/user-info.d.ts +1 -15
- package/dist/tools/user-info.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +6 -6
- package/dist/utils/test-helpers.d.ts +1 -33
- package/dist/utils/test-helpers.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import { CurrentUser, PersonalProject, Section, Task } from '@doist/todoist-api-typescript';
|
|
2
|
-
import {
|
|
3
|
-
/**
|
|
4
|
-
* Mapped task type matching the output of mapTask function.
|
|
5
|
-
* Used for filter-based query test mocks.
|
|
6
|
-
*/
|
|
7
|
-
export type MappedTask = {
|
|
8
|
-
id: string;
|
|
9
|
-
content: string;
|
|
10
|
-
description: string;
|
|
11
|
-
dueDate: string | undefined;
|
|
12
|
-
recurring: string | boolean;
|
|
13
|
-
deadlineDate: string | undefined;
|
|
14
|
-
priority: number;
|
|
15
|
-
projectId: string;
|
|
16
|
-
sectionId: string | null;
|
|
17
|
-
parentId: string | null;
|
|
18
|
-
labels: string[];
|
|
19
|
-
duration: string | null;
|
|
20
|
-
responsibleUid: string | null;
|
|
21
|
-
assignedByUid: string | null;
|
|
22
|
-
checked: boolean;
|
|
23
|
-
completedAt: string | null;
|
|
24
|
-
};
|
|
2
|
+
import { MappedTask } from '../tool-helpers';
|
|
25
3
|
/**
|
|
26
4
|
* Creates a mock Task with all required properties and sensible defaults.
|
|
27
5
|
* Pass only the properties you want to override for your specific test.
|
|
@@ -69,16 +47,6 @@ export declare function createTestCases<T, E = unknown>(cases: Array<{
|
|
|
69
47
|
input: T;
|
|
70
48
|
expected?: E;
|
|
71
49
|
}[];
|
|
72
|
-
/**
|
|
73
|
-
* Extracts the text content from a tool output for snapshot testing.
|
|
74
|
-
* This allows tests to match against just the text content while tools return structured output.
|
|
75
|
-
*/
|
|
76
|
-
export declare function extractTextContent(toolOutput: unknown): string;
|
|
77
|
-
/**
|
|
78
|
-
* Extracts the structured content from a tool output for testing.
|
|
79
|
-
* This handles both the new `structuredContent` field and legacy JSON-encoded content.
|
|
80
|
-
*/
|
|
81
|
-
export declare function extractStructuredContent(output: ReturnType<typeof getToolOutput>): Record<string, unknown>;
|
|
82
50
|
/**
|
|
83
51
|
* Common mock IDs used across tests for consistency.
|
|
84
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAChG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"test-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C;;;G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4.17.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -56,18 +56,18 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@biomejs/biome": "2.3.2",
|
|
59
|
-
"@types/express": "
|
|
60
|
-
"@types/morgan": "
|
|
61
|
-
"@types/node": "
|
|
62
|
-
"concurrently": "
|
|
63
|
-
"express": "
|
|
64
|
-
"husky": "
|
|
65
|
-
"lint-staged": "
|
|
66
|
-
"morgan": "
|
|
67
|
-
"nodemon": "
|
|
68
|
-
"rimraf": "
|
|
69
|
-
"typescript": "
|
|
70
|
-
"vite": "7.1.
|
|
59
|
+
"@types/express": "5.0.5",
|
|
60
|
+
"@types/morgan": "1.9.10",
|
|
61
|
+
"@types/node": "22.19.0",
|
|
62
|
+
"concurrently": "9.2.1",
|
|
63
|
+
"express": "5.1.0",
|
|
64
|
+
"husky": "9.1.7",
|
|
65
|
+
"lint-staged": "16.2.6",
|
|
66
|
+
"morgan": "1.10.1",
|
|
67
|
+
"nodemon": "3.1.10",
|
|
68
|
+
"rimraf": "6.1.0",
|
|
69
|
+
"typescript": "5.9.3",
|
|
70
|
+
"vite": "7.1.12",
|
|
71
71
|
"vite-plugin-dts": "4.5.4",
|
|
72
72
|
"vitest": "3.2.4"
|
|
73
73
|
},
|