@todoist/mcp 17.3.13 → 17.3.14

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.
@@ -321,7 +321,7 @@ function zr(e) {
321
321
  const t = Ot(e);
322
322
  return t ? Br(t) : is(e);
323
323
  }
324
- const Gr = "17.3.13", qr = {
324
+ const Gr = "17.3.14", qr = {
325
325
  version: Gr
326
326
  }, Ut = 3600 * 1e3, Yr = 365 * 24 * Ut, $ = {
327
327
  /** Default limit for task listings */
@@ -4338,6 +4338,9 @@ function $e(e, t) {
4338
4338
  const d = new Date(Date.UTC(a, i - 1, c));
4339
4339
  return d.setUTCDate(d.getUTCDate() + t), Bs(d);
4340
4340
  }
4341
+ function Ao(e, t) {
4342
+ return t > 1 ? `${e} to ${$e(e, t - 1)}` : e;
4343
+ }
4341
4344
  function Rc(e) {
4342
4345
  const t = e < 0 ? "-" : "+", o = Math.abs(e), r = String(Math.floor(o / 60)).padStart(2, "0"), n = String(o % 60).padStart(2, "0");
4343
4346
  return `${t}${r}:${n}`;
@@ -4394,7 +4397,7 @@ function Fc(e, t) {
4394
4397
  function ve(e, t = "or") {
4395
4398
  return e.map((o) => `@${tt(o)}`).join(t === "and" ? " & " : " | ");
4396
4399
  }
4397
- const { FIND_ACTIVITY: Ao } = y, Hc = 7;
4400
+ const { FIND_ACTIVITY: Do } = y, Hc = 7;
4398
4401
  function Wc({
4399
4402
  since: e,
4400
4403
  until: t,
@@ -4547,9 +4550,9 @@ function Gc({
4547
4550
  function qc(e, t, o) {
4548
4551
  const r = "Completions of recurring tasks that are still active are not in this list.";
4549
4552
  if (e.getBy === "due")
4550
- return `${r} ${Ao} with objectType "task" and eventType "completed" reports them, but only by completion time: it cannot match a due-date range.`;
4553
+ return `${r} ${Do} with objectType "task" and eventType "completed" reports them, but only by completion time: it cannot match a due-date range.`;
4551
4554
  const n = (c) => zs({ date: c, timeZone: o, fallbackOffset: t }), a = n(e.since), i = n($e(e.until, 1));
4552
- return `${r} To include them, call ${Ao} with objectType "task", eventType "completed", dateFrom "${a}" and dateTo "${i}".`;
4555
+ return `${r} To include them, call ${Do} with objectType "task", eventType "completed", dateFrom "${a}" and dateTo "${i}".`;
4553
4556
  }
4554
4557
  const { ADD_FOLDERS: Yc, FIND_PROJECTS: Vc, LIST_WORKSPACES: Jc } = y, Xc = {
4555
4558
  workspace: s.string().trim().min(1).optional().describe(
@@ -4848,7 +4851,7 @@ function Js({
4848
4851
  nextSteps: l
4849
4852
  });
4850
4853
  }
4851
- const { ADD_PROJECTS: Do, FIND_FOLDERS: Xs, PROJECT_MANAGEMENT: Zs } = y, ud = {
4854
+ const { ADD_PROJECTS: xo, FIND_FOLDERS: Xs, PROJECT_MANAGEMENT: Zs } = y, ud = {
4852
4855
  active: "projects",
4853
4856
  archived: "archived projects",
4854
4857
  all: "projects (active and archived)"
@@ -4963,7 +4966,7 @@ function yd({
4963
4966
  "Set includeUnjoined to also search workspace projects the user hasn't joined"
4964
4967
  ), f.push("Try broader search terms"), f.push("Check spelling"), f.push("Remove searchText to see all projects")) : t.folderId && r?.total ? f.push("None of the projects the user has joined are in this folder") : t.archivedStatus === "archived" ? (f.push(`No archived projects${h}`), f.push("Use archivedStatus: 'all' to also see active projects")) : t.archivedStatus === "all" ? (f.push(
4965
4968
  t.folderId ? "No projects in this folder" : "No projects created yet"
4966
- ), t.folderId || f.push(`Use ${Do} to create a project`)) : (f.push(`No active projects${h}`), f.push("Use archivedStatus: 'all' to include archived projects"), t.folderId || f.push(`Use ${Do} to create a project`)), t.folderId && !r?.total && f.push(`Use ${Xs} to check the folder ID`));
4969
+ ), t.folderId || f.push(`Use ${xo} to create a project`)) : (f.push(`No active projects${h}`), f.push("Use archivedStatus: 'all' to include archived projects"), t.folderId || f.push(`Use ${xo} to create a project`)), t.folderId && !r?.total && f.push(`Use ${Xs} to check the folder ID`));
4967
4970
  const m = se({
4968
4971
  subject: a,
4969
4972
  count: e.length,
@@ -5242,7 +5245,7 @@ function _d({
5242
5245
  a.push(
5243
5246
  `today${d}${t.daysCount > 1 ? ` + ${t.daysCount - 1} more days` : ""}`
5244
5247
  );
5245
- } else t.startDate && a.push(xo(t.startDate, t.daysCount));
5248
+ } else t.startDate && a.push(Ao(t.startDate, t.daysCount));
5246
5249
  if (t.labels && t.labels.length > 0) {
5247
5250
  const d = ve(t.labels, t.labelsOperator);
5248
5251
  a.push(`labels: ${d}`);
@@ -5252,7 +5255,7 @@ function _d({
5252
5255
  a.push(`assigned to: ${d}`);
5253
5256
  }
5254
5257
  let i = "";
5255
- if (t.overdueOption === "overdue-only" ? i = "Overdue tasks" : t.startDate === "today" ? i = t.overdueOption === "exclude-overdue" ? "Today's tasks" : "Today's tasks + overdue" : t.startDate ? i = `Tasks for ${xo(t.startDate, t.daysCount)}` : i = "Tasks", t.responsibleUser) {
5258
+ if (t.overdueOption === "overdue-only" ? i = "Overdue tasks" : t.startDate === "today" ? i = t.overdueOption === "exclude-overdue" ? "Today's tasks" : "Today's tasks + overdue" : t.startDate ? i = `Tasks for ${Ao(t.startDate, t.daysCount)}` : i = "Tasks", t.responsibleUser) {
5256
5259
  const d = r || t.responsibleUser;
5257
5260
  i += ` assigned to ${d}`;
5258
5261
  }
@@ -5275,9 +5278,6 @@ function _d({
5275
5278
  zeroReasonHints: c
5276
5279
  });
5277
5280
  }
5278
- function xo(e, t) {
5279
- return t > 1 ? `${e} to ${$e(e, t - 1)}` : e;
5280
- }
5281
5281
  const Ud = 300 * 1e3;
5282
5282
  class Pd {
5283
5283
  constructor() {
@@ -1,5 +1,5 @@
1
1
  import { validateBearerToken as _, createTokenVerdictCache as p, buildBearerChallenge as u } from "@todoist/mcp-core/host";
2
- import { a2 as v, a3 as A } from "./mcp-server-Bx9lGYGM.js";
2
+ import { a2 as v, a3 as A } from "./mcp-server-BG9J-1Tn.js";
3
3
  const k = "https://api.todoist.com", U = (e, t) => _({
4
4
  // Resolved the way the SDK resolves its own requests against a custom base URL. An empty
5
5
  // base (`TODOIST_BASE_URL=`) means the default, as it does for the SDK client.
@@ -1 +1 @@
1
- {"version":3,"file":"find-tasks-by-date.d.ts","sourceRoot":"","sources":["../../src/tools/find-tasks-by-date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,cAAc,CAAA;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmDvB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAiDtB,CAAA;AAUD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkG0C,CAAA;AAgG/D,OAAO,EAAE,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"find-tasks-by-date.d.ts","sourceRoot":"","sources":["../../src/tools/find-tasks-by-date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,cAAc,CAAA;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAwDvB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAiDtB,CAAA;AAUD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkG0C,CAAA;AAqF/D,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -15,6 +15,12 @@ export declare function getDateInOffset(date: Date, offsetMinutes: number): stri
15
15
  * Shift a YYYY-MM-DD date string by the specified number of days in UTC.
16
16
  */
17
17
  export declare function shiftDateStringByDays(dateString: string, days: number): string;
18
+ /**
19
+ * The days a search of `daysCount` days from `startDate` covers, as "YYYY-MM-DD" or
20
+ * "YYYY-MM-DD to YYYY-MM-DD". The search stops before the day after the range, so
21
+ * the last day named is `daysCount - 1` days after the start.
22
+ */
23
+ export declare function describeDateRange(startDate: string, daysCount: number): string;
18
24
  /**
19
25
  * The first moment of a YYYY-MM-DD date in `timeZone`, as `YYYY-MM-DDT00:00:00` with the
20
26
  * offset that names it. A fixed offset such as the user's current `gmtString` is wrong
@@ -1 +1 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKhD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CASjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAGzE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9E;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,cAAc,GACjB,EAAE;IACC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,cAAc,EAAE,MAAM,CAAA;CACzB,GAAG,MAAM,CAmBT"}
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKhD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CASjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAGzE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI9E;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,cAAc,GACjB,EAAE;IACC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,cAAc,EAAE,MAAM,CAAA;CACzB,GAAG,MAAM,CAmBT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoist/mcp",
3
- "version": "17.3.13",
3
+ "version": "17.3.14",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",