@doist/todoist-ai 4.0.0 → 4.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.
- package/dist/index.d.ts +139 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ import { updateProjects } from './tools/update-projects.js';
|
|
|
11
11
|
import { addSections } from './tools/add-sections.js';
|
|
12
12
|
import { findSections } from './tools/find-sections.js';
|
|
13
13
|
import { updateSections } from './tools/update-sections.js';
|
|
14
|
+
import { addComments } from './tools/add-comments.js';
|
|
15
|
+
import { findComments } from './tools/find-comments.js';
|
|
16
|
+
import { updateComments } from './tools/update-comments.js';
|
|
14
17
|
import { deleteObject } from './tools/delete-object.js';
|
|
15
18
|
import { getOverview } from './tools/get-overview.js';
|
|
16
19
|
declare const tools: {
|
|
@@ -684,6 +687,141 @@ declare const tools: {
|
|
|
684
687
|
structuredContent?: undefined;
|
|
685
688
|
}>;
|
|
686
689
|
};
|
|
690
|
+
addComments: {
|
|
691
|
+
name: "add-comments";
|
|
692
|
+
description: string;
|
|
693
|
+
parameters: {
|
|
694
|
+
comments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
695
|
+
taskId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
696
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
697
|
+
content: import("zod").ZodString;
|
|
698
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
699
|
+
content: string;
|
|
700
|
+
projectId?: string | undefined;
|
|
701
|
+
taskId?: string | undefined;
|
|
702
|
+
}, {
|
|
703
|
+
content: string;
|
|
704
|
+
projectId?: string | undefined;
|
|
705
|
+
taskId?: string | undefined;
|
|
706
|
+
}>, "many">;
|
|
707
|
+
};
|
|
708
|
+
execute(args: {
|
|
709
|
+
comments: {
|
|
710
|
+
content: string;
|
|
711
|
+
projectId?: string | undefined;
|
|
712
|
+
taskId?: string | undefined;
|
|
713
|
+
}[];
|
|
714
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
715
|
+
content: {
|
|
716
|
+
type: "text";
|
|
717
|
+
text: string;
|
|
718
|
+
}[];
|
|
719
|
+
structuredContent: {
|
|
720
|
+
comments: import("@doist/todoist-api-typescript").Comment[];
|
|
721
|
+
totalCount: number;
|
|
722
|
+
addedCommentIds: string[];
|
|
723
|
+
};
|
|
724
|
+
} | {
|
|
725
|
+
content: ({
|
|
726
|
+
type: "text";
|
|
727
|
+
text: string;
|
|
728
|
+
mimeType?: undefined;
|
|
729
|
+
} | {
|
|
730
|
+
type: "text";
|
|
731
|
+
mimeType: string;
|
|
732
|
+
text: string;
|
|
733
|
+
})[];
|
|
734
|
+
structuredContent?: undefined;
|
|
735
|
+
}>;
|
|
736
|
+
};
|
|
737
|
+
updateComments: {
|
|
738
|
+
name: "update-comments";
|
|
739
|
+
description: string;
|
|
740
|
+
parameters: {
|
|
741
|
+
comments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
742
|
+
id: import("zod").ZodString;
|
|
743
|
+
content: import("zod").ZodString;
|
|
744
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
745
|
+
content: string;
|
|
746
|
+
id: string;
|
|
747
|
+
}, {
|
|
748
|
+
content: string;
|
|
749
|
+
id: string;
|
|
750
|
+
}>, "many">;
|
|
751
|
+
};
|
|
752
|
+
execute(args: {
|
|
753
|
+
comments: {
|
|
754
|
+
content: string;
|
|
755
|
+
id: string;
|
|
756
|
+
}[];
|
|
757
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
758
|
+
content: {
|
|
759
|
+
type: "text";
|
|
760
|
+
text: string;
|
|
761
|
+
}[];
|
|
762
|
+
structuredContent: {
|
|
763
|
+
comments: import("@doist/todoist-api-typescript").Comment[];
|
|
764
|
+
totalCount: number;
|
|
765
|
+
updatedCommentIds: string[];
|
|
766
|
+
appliedOperations: {
|
|
767
|
+
updateCount: number;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
} | {
|
|
771
|
+
content: ({
|
|
772
|
+
type: "text";
|
|
773
|
+
text: string;
|
|
774
|
+
mimeType?: undefined;
|
|
775
|
+
} | {
|
|
776
|
+
type: "text";
|
|
777
|
+
mimeType: string;
|
|
778
|
+
text: string;
|
|
779
|
+
})[];
|
|
780
|
+
structuredContent?: undefined;
|
|
781
|
+
}>;
|
|
782
|
+
};
|
|
783
|
+
findComments: {
|
|
784
|
+
name: "find-comments";
|
|
785
|
+
description: string;
|
|
786
|
+
parameters: {
|
|
787
|
+
taskId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
788
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
789
|
+
commentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
790
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
791
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
792
|
+
};
|
|
793
|
+
execute(args: {
|
|
794
|
+
projectId?: string | undefined;
|
|
795
|
+
limit?: number | undefined;
|
|
796
|
+
cursor?: string | undefined;
|
|
797
|
+
taskId?: string | undefined;
|
|
798
|
+
commentId?: string | undefined;
|
|
799
|
+
}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
|
|
800
|
+
content: {
|
|
801
|
+
type: "text";
|
|
802
|
+
text: string;
|
|
803
|
+
}[];
|
|
804
|
+
structuredContent: {
|
|
805
|
+
comments: import("@doist/todoist-api-typescript").Comment[];
|
|
806
|
+
searchType: string;
|
|
807
|
+
searchId: string;
|
|
808
|
+
hasMore: boolean;
|
|
809
|
+
nextCursor: string | null;
|
|
810
|
+
totalCount: number;
|
|
811
|
+
};
|
|
812
|
+
} | {
|
|
813
|
+
content: ({
|
|
814
|
+
type: "text";
|
|
815
|
+
text: string;
|
|
816
|
+
mimeType?: undefined;
|
|
817
|
+
} | {
|
|
818
|
+
type: "text";
|
|
819
|
+
mimeType: string;
|
|
820
|
+
text: string;
|
|
821
|
+
})[];
|
|
822
|
+
structuredContent?: undefined;
|
|
823
|
+
}>;
|
|
824
|
+
};
|
|
687
825
|
getOverview: {
|
|
688
826
|
name: "get-overview";
|
|
689
827
|
description: string;
|
|
@@ -748,5 +886,5 @@ declare const tools: {
|
|
|
748
886
|
};
|
|
749
887
|
};
|
|
750
888
|
export { tools, getMcpServer };
|
|
751
|
-
export { addTasks, completeTasks, updateTasks, findTasks, findTasksByDate, findCompletedTasks, addProjects, updateProjects, findProjects, addSections, updateSections, findSections, getOverview, deleteObject, };
|
|
889
|
+
export { addTasks, completeTasks, updateTasks, findTasks, findTasksByDate, findCompletedTasks, addProjects, updateProjects, findProjects, addSections, updateSections, findSections, addComments, updateComments, findComments, getOverview, deleteObject, };
|
|
752
890
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAG9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,YAAY,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,EACd,YAAY,EAEZ,WAAW,EACX,cAAc,EACd,YAAY,EAEZ,WAAW,EACX,YAAY,GACf,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,10 @@ import { updateProjects } from './tools/update-projects.js';
|
|
|
14
14
|
import { addSections } from './tools/add-sections.js';
|
|
15
15
|
import { findSections } from './tools/find-sections.js';
|
|
16
16
|
import { updateSections } from './tools/update-sections.js';
|
|
17
|
+
// Comment management tools
|
|
18
|
+
import { addComments } from './tools/add-comments.js';
|
|
19
|
+
import { findComments } from './tools/find-comments.js';
|
|
20
|
+
import { updateComments } from './tools/update-comments.js';
|
|
17
21
|
// General tools
|
|
18
22
|
import { deleteObject } from './tools/delete-object.js';
|
|
19
23
|
import { getOverview } from './tools/get-overview.js';
|
|
@@ -33,6 +37,10 @@ const tools = {
|
|
|
33
37
|
addSections,
|
|
34
38
|
updateSections,
|
|
35
39
|
findSections,
|
|
40
|
+
// Comment management tools
|
|
41
|
+
addComments,
|
|
42
|
+
updateComments,
|
|
43
|
+
findComments,
|
|
36
44
|
// General tools
|
|
37
45
|
getOverview,
|
|
38
46
|
deleteObject,
|
|
@@ -45,5 +53,7 @@ addTasks, completeTasks, updateTasks, findTasks, findTasksByDate, findCompletedT
|
|
|
45
53
|
addProjects, updateProjects, findProjects,
|
|
46
54
|
// Section management tools
|
|
47
55
|
addSections, updateSections, findSections,
|
|
56
|
+
// Comment management tools
|
|
57
|
+
addComments, updateComments, findComments,
|
|
48
58
|
// General tools
|
|
49
59
|
getOverview, deleteObject, };
|