@todoist/mcp 17.4.0 → 17.4.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.
@@ -25,9 +25,11 @@ type PromptArgs = z.infer<typeof argsSchema>;
25
25
  * "Today" is the date at `offsetMinutes` from UTC, which the prompt callback sets to
26
26
  * the user's Todoist timezone, so the range follows the user's calendar rather than
27
27
  * the server's. The arithmetic runs on UTC calendar dates, so the server's own
28
- * timezone and daylight-saving changes cannot move a day.
28
+ * timezone and daylight-saving changes cannot move a day. "This week" starts on
29
+ * `weekStartDay` (1 = Monday, 7 = Sunday), the user's own setting; any other value
30
+ * starts it on Monday.
29
31
  */
30
- declare function computeDateRange(period: PromptArgs['period'], now?: Date, offsetMinutes?: number): {
32
+ declare function computeDateRange(period: PromptArgs['period'], now?: Date, offsetMinutes?: number, weekStartDay?: number): {
31
33
  since: string;
32
34
  until: string;
33
35
  periodDescription: string;
@@ -1 +1 @@
1
- {"version":3,"file":"productivity-analysis.d.ts","sourceRoot":"","sources":["../../src/prompts/productivity-analysis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;iBAiBd,CAAA;AAEF,KAAK,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAE5C;;;;;;GAMG;AACH,iBAAS,gBAAgB,CACrB,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,EAC5B,GAAG,GAAE,IAAiB,EACtB,aAAa,SAAI,GAClB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAiC7D;AAuDD,iBAAS,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;;;;;;;;;;CAOzB,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { validateBearerToken as A, getValidationRateLimit as v, createTokenVerdictCache as k, buildBearerChallenge as f } from "@todoist/mcp-core/host";
2
- import { a2 as p, a3 as g } from "./mcp-server-BCVK1SJo.js";
2
+ import { a2 as p, a3 as g } from "./mcp-server-C7dCGLGm.js";
3
3
  const m = "https://api.todoist.com", E = (e, t) => A({
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoist/mcp",
3
- "version": "17.4.0",
3
+ "version": "17.4.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",