@todoist/mcp 22.0.1 → 22.0.3
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.js +2 -2
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/{mcp-server-BWSjVGOl.js → mcp-server-e9pAGmFV.js} +1498 -1490
- package/dist/{require-valid-todoist-token-Dn3kiJrR.js → require-valid-todoist-token-2hyC17gj.js} +1 -1
- package/dist/tools/find-project-collaborators.d.ts.map +1 -1
- package/dist/tools/view-attachment.d.ts.map +1 -1
- package/dist/utils/person-names.d.ts +12 -0
- package/dist/utils/person-names.d.ts.map +1 -0
- package/dist/utils/user-resolver.d.ts +6 -1
- package/dist/utils/user-resolver.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/{require-valid-todoist-token-Dn3kiJrR.js → require-valid-todoist-token-2hyC17gj.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ot as e, st as t } from "./mcp-server-
|
|
1
|
+
import { ot as e, st as t } from "./mcp-server-e9pAGmFV.js";
|
|
2
2
|
import { buildBearerChallenge as n, createTokenVerdictCache as r, getValidationRateLimit as i, validateBearerToken as a } from "@todoist/mcp-core/host";
|
|
3
3
|
// src/utils/validate-todoist-token.ts
|
|
4
4
|
var o = "https://api.todoist.com", s = (n, r) => a({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-project-collaborators.d.ts","sourceRoot":"","sources":["../../src/tools/find-project-collaborators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"find-project-collaborators.d.ts","sourceRoot":"","sources":["../../src/tools/find-project-collaborators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,OAAO,EAAE,KAAK,mBAAmB,EAAgB,MAAM,2BAA2B,CAAA;AAsClF,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGiC,CAAA;AA4J/D,OAAO,EAAE,wBAAwB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-attachment.d.ts","sourceRoot":"","sources":["../../src/tools/view-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"view-attachment.d.ts","sourceRoot":"","sources":["../../src/tools/view-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAiFvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;CAmFsB,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A person's name in the form names are compared in: case and Latin accents
|
|
3
|
+
* ignored, so "Zoë" and "zoe" are the same name.
|
|
4
|
+
*
|
|
5
|
+
* Unlike a label name, which drops every mark the way Todoist's filter query
|
|
6
|
+
* does, only an accent (U+0300 to U+036F) on a Latin letter is dropped. In
|
|
7
|
+
* other scripts a mark is part of the letter, and dropping it would make
|
|
8
|
+
* "майя" and "маия", "राम" and "रमा", or "が" and "か", one name that could
|
|
9
|
+
* resolve to the wrong person.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toComparablePersonName(name: string): string;
|
|
12
|
+
//# sourceMappingURL=person-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-names.d.ts","sourceRoot":"","sources":["../../src/utils/person-names.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3D"}
|
|
@@ -31,7 +31,8 @@ export declare class UserResolver {
|
|
|
31
31
|
* Resolve a user name or ID to a user ID by looking up collaborators across all shared projects.
|
|
32
32
|
* Supports exact name matches, partial matches, email matches, and the "me" keyword.
|
|
33
33
|
*
|
|
34
|
-
* @throws AmbiguousUserError when a
|
|
34
|
+
* @throws AmbiguousUserError when a reference fits more than one person: a
|
|
35
|
+
* partial name or email, or a full name two people share
|
|
35
36
|
*/
|
|
36
37
|
resolveUser(client: TodoistApi, nameOrId: string): Promise<ResolvedUser | null>;
|
|
37
38
|
private matchUser;
|
|
@@ -43,6 +44,10 @@ export declare class UserResolver {
|
|
|
43
44
|
* A partial name is left to the account-wide lookup because it prefers an
|
|
44
45
|
* exact match on any shared project, and a partial match here would hide
|
|
45
46
|
* that person behind someone with a similar name.
|
|
47
|
+
*
|
|
48
|
+
* @throws AmbiguousUserError when two people on the project share the full
|
|
49
|
+
* name. They are named from this project alone, so the error lists only
|
|
50
|
+
* people the task can go to, without reading every shared project.
|
|
46
51
|
*/
|
|
47
52
|
resolveProjectCollaborator(client: TodoistApi, projectId: string, nameOrId: string): Promise<ResolvedUser | null>;
|
|
48
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-resolver.d.ts","sourceRoot":"","sources":["../../src/utils/user-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,UAAU,EAElB,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"user-resolver.d.ts","sourceRoot":"","sources":["../../src/utils/user-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,UAAU,EAElB,MAAM,cAAc,CAAA;AAMrB,MAAM,M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