@doist/todoist-mcp 13.1.1 → 13.1.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.
@@ -23,18 +23,20 @@ export declare function appendToQuery(query: string, filterComponent: string): s
23
23
  * Builds a query filter string for responsible user filtering that can be appended to a Todoist filter query.
24
24
  * @param resolvedAssigneeId - The resolved assignee ID (if provided)
25
25
  * @param assigneeEmail - The assignee email (if provided)
26
+ * @param currentUserId - The current authenticated user's ID
26
27
  * @param responsibleUserFiltering - The filtering mode ('assigned', 'unassignedOrMe', 'all')
27
28
  * @returns Query filter string (e.g., "assigned to: email@example.com" or "!assigned to: others")
28
29
  */
29
- export declare function buildResponsibleUserQueryFilter({ resolvedAssigneeId, assigneeEmail, responsibleUserFiltering, }: {
30
+ export declare function buildResponsibleUserQueryFilter({ resolvedAssigneeId, assigneeEmail, currentUserId, responsibleUserFiltering, }: {
30
31
  resolvedAssigneeId: string | undefined;
31
32
  assigneeEmail: string | undefined;
33
+ currentUserId?: string;
32
34
  responsibleUserFiltering?: ResponsibleUserFiltering;
33
35
  }): string;
34
36
  /**
35
37
  * Filters tasks based on responsible user logic:
36
- * - If resolvedAssigneeId is provided: returns only tasks assigned to that user
37
- * - If no resolvedAssigneeId: returns only unassigned tasks or tasks assigned to current user
38
+ * - If resolvedAssigneeId is another user: returns only tasks assigned to that user
39
+ * - Otherwise: returns only unassigned tasks or tasks assigned to current user
38
40
  * @param tasks - Array of tasks to filter (must have responsibleUid property)
39
41
  * @param resolvedAssigneeId - The resolved assignee ID to filter by (optional)
40
42
  * @param currentUserId - The current authenticated user's ID
@@ -1 +1 @@
1
- {"version":3,"file":"filter-helpers.d.ts","sourceRoot":"","sources":["../src/filter-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAGpD,eAAO,MAAM,0BAA0B,gDAAiD,CAAA;AACxF,MAAM,MAAM,wBAAwB,GAAG,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;;;;GAMG;AACH,wBAAsB,sBAAsB,CACxC,MAAM,EAAE,UAAU,EAClB,eAAe,EAAE,MAAM,GAAG,SAAS,GACpC,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CAaxD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAQ5E;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAAC,EAC5C,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,wBAA2C,GAC9C,EAAE;IACC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;CACtD,GAAG,MAAM,CAmBT;AAED;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,SAAS;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EAChF,KAAK,EACL,kBAAkB,EAClB,aAAa,EACb,wBAA2C,GAC9C,EAAE;IACC,KAAK,EAAE,CAAC,EAAE,CAAA;IACV,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;CACtD,GAAG,CAAC,EAAE,CAgBN"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { t as s } from "./mcp-server-DicqL5ml.js";
2
- import { F as r, a as d, b as i, c as n, d as c, e as l, f as m, h as p, i as f, j as T, k as j, l as g, m as k, n as u, o as v, p as P, q as h, r as b, s as S, u as y, v as A, w as C, x as R, y as x, z as F, g as M, A as O, B as E, C as L, D as w, E as H, G as I, H as W, I as q, J as z, K as B, L as D, M as N, N as U, O as V, P as G, Q as J, R as K, S as Q, T as X, U as Y, V as _, W as Z, X as $, Y as ss } from "./mcp-server-DicqL5ml.js";
3
- import { r as es, v as ts } from "./require-valid-todoist-token-BYd0I37Y.js";
1
+ import { t as s } from "./mcp-server-BIOaN76C.js";
2
+ import { F as r, a as d, b as i, c as n, d as c, e as l, f as m, h as p, i as f, j as T, k as j, l as g, m as k, n as u, o as v, p as P, q as h, r as b, s as S, u as y, v as A, w as C, x as R, y as x, z as F, g as M, A as O, B as E, C as L, D as w, E as H, G as I, H as W, I as q, J as z, K as B, L as D, M as N, N as U, O as V, P as G, Q as J, R as K, S as Q, T as X, U as Y, V as _, W as Z, X as $, Y as ss } from "./mcp-server-BIOaN76C.js";
3
+ import { r as es, v as ts } from "./require-valid-todoist-token-DR3IS4dH.js";
4
4
  const e = s;
5
5
  export {
6
6
  r as FEATURE_NAMES,
package/dist/main-http.js CHANGED
@@ -3,8 +3,8 @@ import { isIP as p } from "node:net";
3
3
  import O from "dotenv";
4
4
  import { NodeStreamableHTTPServerTransport as S } from "@modelcontextprotocol/node";
5
5
  import m from "express";
6
- import { g as v } from "./mcp-server-DicqL5ml.js";
7
- import { r as w } from "./require-valid-todoist-token-BYd0I37Y.js";
6
+ import { g as v } from "./mcp-server-BIOaN76C.js";
7
+ import { r as w } from "./require-valid-todoist-token-DR3IS4dH.js";
8
8
  function f(t) {
9
9
  return t.startsWith("[") && t.endsWith("]") ? t.slice(1, -1) : t;
10
10
  }
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { StdioServerTransport as s } from "@modelcontextprotocol/server/stdio";
3
3
  import c from "dotenv";
4
- import { g as i } from "./mcp-server-DicqL5ml.js";
4
+ import { g as i } from "./mcp-server-BIOaN76C.js";
5
5
  function p() {
6
6
  const e = process.env.TODOIST_BASE_URL, r = process.env.TODOIST_API_KEY;
7
7
  if (!r)