@doist/todoist-ai 8.12.2 → 9.0.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.
Files changed (170) hide show
  1. package/README.md +11 -206
  2. package/bin/_launcher.js +16 -0
  3. package/bin/todoist-ai-http.js +4 -0
  4. package/bin/todoist-ai.js +4 -0
  5. package/index.d.ts +1 -0
  6. package/index.mjs +1 -0
  7. package/package.json +20 -108
  8. package/LICENSE +0 -21
  9. package/dist/filter-helpers.d.ts +0 -51
  10. package/dist/filter-helpers.d.ts.map +0 -1
  11. package/dist/index.d.ts +0 -2954
  12. package/dist/index.d.ts.map +0 -1
  13. package/dist/index.js +0 -103
  14. package/dist/main-http.d.ts +0 -3
  15. package/dist/main-http.d.ts.map +0 -1
  16. package/dist/main-http.js +0 -41
  17. package/dist/main.d.ts +0 -3
  18. package/dist/main.d.ts.map +0 -1
  19. package/dist/main.js +0 -17
  20. package/dist/mcp-apps/index.html +0 -98
  21. package/dist/mcp-helpers.d.ts +0 -58
  22. package/dist/mcp-helpers.d.ts.map +0 -1
  23. package/dist/mcp-server-DO3M1GWl.js +0 -6132
  24. package/dist/mcp-server.d.ts +0 -16
  25. package/dist/mcp-server.d.ts.map +0 -1
  26. package/dist/middleware/require-valid-todoist-token.d.ts +0 -38
  27. package/dist/middleware/require-valid-todoist-token.d.ts.map +0 -1
  28. package/dist/prompts/productivity-analysis.d.ts +0 -58
  29. package/dist/prompts/productivity-analysis.d.ts.map +0 -1
  30. package/dist/require-valid-todoist-token-CpbXZfcm.js +0 -72
  31. package/dist/todoist-tool.d.ts +0 -62
  32. package/dist/todoist-tool.d.ts.map +0 -1
  33. package/dist/tool-execution-error.d.ts +0 -7
  34. package/dist/tool-execution-error.d.ts.map +0 -1
  35. package/dist/tool-helpers.d.ts +0 -265
  36. package/dist/tool-helpers.d.ts.map +0 -1
  37. package/dist/tools/add-comments.d.ts +0 -83
  38. package/dist/tools/add-comments.d.ts.map +0 -1
  39. package/dist/tools/add-filters.d.ts +0 -94
  40. package/dist/tools/add-filters.d.ts.map +0 -1
  41. package/dist/tools/add-labels.d.ts +0 -92
  42. package/dist/tools/add-labels.d.ts.map +0 -1
  43. package/dist/tools/add-projects.d.ts +0 -112
  44. package/dist/tools/add-projects.d.ts.map +0 -1
  45. package/dist/tools/add-reminders.d.ts +0 -148
  46. package/dist/tools/add-reminders.d.ts.map +0 -1
  47. package/dist/tools/add-sections.d.ts +0 -40
  48. package/dist/tools/add-sections.d.ts.map +0 -1
  49. package/dist/tools/add-tasks.d.ts +0 -118
  50. package/dist/tools/add-tasks.d.ts.map +0 -1
  51. package/dist/tools/analyze-project-health.d.ts +0 -45
  52. package/dist/tools/analyze-project-health.d.ts.map +0 -1
  53. package/dist/tools/complete-tasks.d.ts +0 -42
  54. package/dist/tools/complete-tasks.d.ts.map +0 -1
  55. package/dist/tools/delete-object.d.ts +0 -54
  56. package/dist/tools/delete-object.d.ts.map +0 -1
  57. package/dist/tools/fetch-object.d.ts +0 -199
  58. package/dist/tools/fetch-object.d.ts.map +0 -1
  59. package/dist/tools/fetch.d.ts +0 -41
  60. package/dist/tools/fetch.d.ts.map +0 -1
  61. package/dist/tools/find-activity.d.ts +0 -91
  62. package/dist/tools/find-activity.d.ts.map +0 -1
  63. package/dist/tools/find-comments.d.ts +0 -89
  64. package/dist/tools/find-comments.d.ts.map +0 -1
  65. package/dist/tools/find-completed-tasks.d.ts +0 -115
  66. package/dist/tools/find-completed-tasks.d.ts.map +0 -1
  67. package/dist/tools/find-filters.d.ts +0 -92
  68. package/dist/tools/find-filters.d.ts.map +0 -1
  69. package/dist/tools/find-labels.d.ts +0 -81
  70. package/dist/tools/find-labels.d.ts.map +0 -1
  71. package/dist/tools/find-project-collaborators.d.ts +0 -94
  72. package/dist/tools/find-project-collaborators.d.ts.map +0 -1
  73. package/dist/tools/find-projects.d.ts +0 -87
  74. package/dist/tools/find-projects.d.ts.map +0 -1
  75. package/dist/tools/find-reminders.d.ts +0 -95
  76. package/dist/tools/find-reminders.d.ts.map +0 -1
  77. package/dist/tools/find-sections.d.ts +0 -41
  78. package/dist/tools/find-sections.d.ts.map +0 -1
  79. package/dist/tools/find-tasks-by-date.d.ts +0 -133
  80. package/dist/tools/find-tasks-by-date.d.ts.map +0 -1
  81. package/dist/tools/find-tasks.d.ts +0 -116
  82. package/dist/tools/find-tasks.d.ts.map +0 -1
  83. package/dist/tools/get-overview.d.ts +0 -123
  84. package/dist/tools/get-overview.d.ts.map +0 -1
  85. package/dist/tools/get-productivity-stats.d.ts +0 -160
  86. package/dist/tools/get-productivity-stats.d.ts.map +0 -1
  87. package/dist/tools/get-project-activity-stats.d.ts +0 -48
  88. package/dist/tools/get-project-activity-stats.d.ts.map +0 -1
  89. package/dist/tools/get-project-health.d.ts +0 -112
  90. package/dist/tools/get-project-health.d.ts.map +0 -1
  91. package/dist/tools/get-workspace-insights.d.ts +0 -65
  92. package/dist/tools/get-workspace-insights.d.ts.map +0 -1
  93. package/dist/tools/list-workspaces.d.ts +0 -54
  94. package/dist/tools/list-workspaces.d.ts.map +0 -1
  95. package/dist/tools/manage-assignments.d.ts +0 -72
  96. package/dist/tools/manage-assignments.d.ts.map +0 -1
  97. package/dist/tools/project-management.d.ts +0 -78
  98. package/dist/tools/project-management.d.ts.map +0 -1
  99. package/dist/tools/project-move.d.ts +0 -88
  100. package/dist/tools/project-move.d.ts.map +0 -1
  101. package/dist/tools/reorder-objects.d.ts +0 -50
  102. package/dist/tools/reorder-objects.d.ts.map +0 -1
  103. package/dist/tools/reschedule-tasks.d.ts +0 -78
  104. package/dist/tools/reschedule-tasks.d.ts.map +0 -1
  105. package/dist/tools/search.d.ts +0 -43
  106. package/dist/tools/search.d.ts.map +0 -1
  107. package/dist/tools/uncomplete-tasks.d.ts +0 -42
  108. package/dist/tools/uncomplete-tasks.d.ts.map +0 -1
  109. package/dist/tools/update-comments.d.ts +0 -87
  110. package/dist/tools/update-comments.d.ts.map +0 -1
  111. package/dist/tools/update-filters.d.ts +0 -106
  112. package/dist/tools/update-filters.d.ts.map +0 -1
  113. package/dist/tools/update-labels.d.ts +0 -122
  114. package/dist/tools/update-labels.d.ts.map +0 -1
  115. package/dist/tools/update-projects.d.ts +0 -120
  116. package/dist/tools/update-projects.d.ts.map +0 -1
  117. package/dist/tools/update-reminders.d.ts +0 -148
  118. package/dist/tools/update-reminders.d.ts.map +0 -1
  119. package/dist/tools/update-sections.d.ts +0 -42
  120. package/dist/tools/update-sections.d.ts.map +0 -1
  121. package/dist/tools/update-tasks.d.ts +0 -113
  122. package/dist/tools/update-tasks.d.ts.map +0 -1
  123. package/dist/tools/user-info.d.ts +0 -57
  124. package/dist/tools/user-info.d.ts.map +0 -1
  125. package/dist/tools/view-attachment.d.ts +0 -25
  126. package/dist/tools/view-attachment.d.ts.map +0 -1
  127. package/dist/usage-tracking.d.ts +0 -27
  128. package/dist/usage-tracking.d.ts.map +0 -1
  129. package/dist/utils/assignment-validator.d.ts +0 -69
  130. package/dist/utils/assignment-validator.d.ts.map +0 -1
  131. package/dist/utils/colors.d.ts +0 -68
  132. package/dist/utils/colors.d.ts.map +0 -1
  133. package/dist/utils/constants.d.ts +0 -53
  134. package/dist/utils/constants.d.ts.map +0 -1
  135. package/dist/utils/date.d.ts +0 -18
  136. package/dist/utils/date.d.ts.map +0 -1
  137. package/dist/utils/duration-parser.d.ts +0 -36
  138. package/dist/utils/duration-parser.d.ts.map +0 -1
  139. package/dist/utils/filter-resolver.d.ts +0 -27
  140. package/dist/utils/filter-resolver.d.ts.map +0 -1
  141. package/dist/utils/labels.d.ts +0 -13
  142. package/dist/utils/labels.d.ts.map +0 -1
  143. package/dist/utils/output-schemas.d.ts +0 -199
  144. package/dist/utils/output-schemas.d.ts.map +0 -1
  145. package/dist/utils/priorities.d.ts +0 -14
  146. package/dist/utils/priorities.d.ts.map +0 -1
  147. package/dist/utils/reminder-schemas.d.ts +0 -33
  148. package/dist/utils/reminder-schemas.d.ts.map +0 -1
  149. package/dist/utils/response-builders.d.ts +0 -93
  150. package/dist/utils/response-builders.d.ts.map +0 -1
  151. package/dist/utils/retry.d.ts +0 -10
  152. package/dist/utils/retry.d.ts.map +0 -1
  153. package/dist/utils/sanitize-data.d.ts +0 -10
  154. package/dist/utils/sanitize-data.d.ts.map +0 -1
  155. package/dist/utils/schema-helpers.d.ts +0 -10
  156. package/dist/utils/schema-helpers.d.ts.map +0 -1
  157. package/dist/utils/test-helpers.d.ts +0 -91
  158. package/dist/utils/test-helpers.d.ts.map +0 -1
  159. package/dist/utils/tool-names.d.ts +0 -56
  160. package/dist/utils/tool-names.d.ts.map +0 -1
  161. package/dist/utils/user-resolver.d.ts +0 -39
  162. package/dist/utils/user-resolver.d.ts.map +0 -1
  163. package/dist/utils/validate-todoist-token.d.ts +0 -9
  164. package/dist/utils/validate-todoist-token.d.ts.map +0 -1
  165. package/dist/utils/workspace-resolver.d.ts +0 -31
  166. package/dist/utils/workspace-resolver.d.ts.map +0 -1
  167. package/scripts/bump-plugin-version.mjs +0 -14
  168. package/scripts/run-tool.ts +0 -240
  169. package/scripts/test-executable.cjs +0 -69
  170. package/scripts/validate-schemas.ts +0 -284
@@ -1,57 +0,0 @@
1
- import { TodoistApi } from '@doist/todoist-sdk';
2
- import { z } from 'zod';
3
- type UserPlan = 'Todoist Free' | 'Todoist Pro' | 'Todoist Business';
4
- type UserInfoStructured = Record<string, unknown> & {
5
- type: 'user_info';
6
- userId: string;
7
- fullName: string;
8
- timezone: string;
9
- currentLocalTime: string;
10
- startDay: number;
11
- startDayName: string;
12
- weekStartDate: string;
13
- weekEndDate: string;
14
- currentWeekNumber: number;
15
- completedToday: number;
16
- dailyGoal: number;
17
- weeklyGoal: number;
18
- email: string;
19
- plan: UserPlan;
20
- };
21
- declare const userInfo: {
22
- name: "user-info";
23
- description: string;
24
- parameters: {};
25
- outputSchema: {
26
- type: z.ZodLiteral<"user_info">;
27
- userId: z.ZodString;
28
- fullName: z.ZodString;
29
- timezone: z.ZodString;
30
- currentLocalTime: z.ZodString;
31
- startDay: z.ZodNumber;
32
- startDayName: z.ZodString;
33
- weekStartDate: z.ZodString;
34
- weekEndDate: z.ZodString;
35
- currentWeekNumber: z.ZodNumber;
36
- completedToday: z.ZodNumber;
37
- dailyGoal: z.ZodNumber;
38
- weeklyGoal: z.ZodNumber;
39
- email: z.ZodString;
40
- plan: z.ZodEnum<{
41
- "Todoist Free": "Todoist Free";
42
- "Todoist Pro": "Todoist Pro";
43
- "Todoist Business": "Todoist Business";
44
- }>;
45
- };
46
- annotations: {
47
- readOnlyHint: true;
48
- destructiveHint: false;
49
- idempotentHint: true;
50
- };
51
- execute(_args: Record<string, never>, client: TodoistApi): Promise<{
52
- textContent: string;
53
- structuredContent: UserInfoStructured;
54
- }>;
55
- };
56
- export { type UserInfoStructured, userInfo };
57
- //# sourceMappingURL=user-info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-info.d.ts","sourceRoot":"","sources":["../../src/tools/user-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyBvB,KAAK,QAAQ,GAAG,cAAc,GAAG,aAAa,GAAG,kBAAkB,CAAA;AAEnE,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAChD,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,QAAQ,CAAA;CACjB,CAAA;AAgJD,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAeiD,CAAA;AAE/D,OAAO,EAAE,KAAK,kBAAkB,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,25 +0,0 @@
1
- import { ContentBlock } from '@modelcontextprotocol/sdk/types.js';
2
- import { z } from 'zod';
3
- declare const viewAttachment: {
4
- name: "view-attachment";
5
- description: string;
6
- parameters: {
7
- fileUrl: z.ZodURL;
8
- };
9
- annotations: {
10
- readOnlyHint: true;
11
- destructiveHint: false;
12
- idempotentHint: true;
13
- };
14
- execute({ fileUrl }: {
15
- fileUrl: string;
16
- }, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
17
- textContent: string;
18
- contentItems?: undefined;
19
- } | {
20
- textContent: string;
21
- contentItems: ContentBlock[];
22
- }>;
23
- };
24
- export { viewAttachment };
25
- //# sourceMappingURL=view-attachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"view-attachment.d.ts","sourceRoot":"","sources":["../../src/tools/view-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACtE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAoFvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;CAuEsB,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -1,27 +0,0 @@
1
- import { CustomFetch, TodoistApi } from '@doist/todoist-sdk';
2
- declare const TODOIST_AI_VERSION: string;
3
- type UsageTrackingConfig = {
4
- enabled?: boolean;
5
- platform?: string;
6
- sessionId?: string;
7
- };
8
- type DispatcherModule = {
9
- getDefaultDispatcher: () => Promise<unknown | undefined>;
10
- };
11
- export declare function normalizeUsageLabel(label: string): string;
12
- export declare function runWithUsageTrackingContext<T>(label: string, fn: () => T): T;
13
- export declare function buildUsageTrackingHeaders({ label, platform, sessionId, }?: {
14
- label?: string;
15
- platform?: string;
16
- sessionId?: string;
17
- }): Record<string, string>;
18
- export declare function resetDefaultDispatcherForTests(): Promise<void>;
19
- export declare function setDispatcherModuleLoaderForTests(loader: () => Promise<DispatcherModule>): void;
20
- export declare function resetDispatcherModuleLoaderForTests(): void;
21
- export declare function createTrackedFetch(baseFetch?: typeof fetch, tracking?: UsageTrackingConfig): CustomFetch;
22
- export declare function createTodoistClient(apiKey: string, { baseUrl, tracking, }?: {
23
- baseUrl?: string;
24
- tracking?: UsageTrackingConfig;
25
- }): TodoistApi;
26
- export { TODOIST_AI_VERSION };
27
- //# sourceMappingURL=usage-tracking.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage-tracking.d.ts","sourceRoot":"","sources":["../src/usage-tracking.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAA4B,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI3F,QAAA,MAAM,kBAAkB,QAAsB,CAAA;AAI9C,KAAK,mBAAmB,GAAG;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,KAAK,gBAAgB,GAAG;IACpB,oBAAoB,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;CAC3D,CAAA;AAcD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAE5E;AAED,wBAAgB,yBAAyB,CAAC,EACtC,KAAK,EACL,QAAgB,EAChB,SAAwB,GAC3B,GAAE;IACC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CAChB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAW9B;AAkGD,wBAAsB,8BAA8B,IAAI,OAAO,CAAC,IAAI,CAAC,CAYpE;AAED,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAE/F;AAED,wBAAgB,mCAAmC,IAAI,IAAI,CAE1D;AAqBD,wBAAgB,kBAAkB,CAC9B,SAAS,GAAE,OAAO,KAAwB,EAC1C,QAAQ,GAAE,mBAAwB,GACnC,WAAW,CA+Bb;AAED,wBAAgB,mBAAmB,CAC/B,MAAM,EAAE,MAAM,EACd,EACI,OAAO,EACP,QAAQ,GACX,GAAE;IACC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CAC5B,GACP,UAAU,CAKZ;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -1,69 +0,0 @@
1
- import { TodoistApi } from '@doist/todoist-sdk';
2
- import { ResolvedUser } from './user-resolver.js';
3
- export declare const AssignmentErrorType: {
4
- readonly USER_NOT_FOUND: "USER_NOT_FOUND";
5
- readonly USER_NOT_COLLABORATOR: "USER_NOT_COLLABORATOR";
6
- readonly PROJECT_NOT_SHARED: "PROJECT_NOT_SHARED";
7
- readonly TASK_NOT_ACCESSIBLE: "TASK_NOT_ACCESSIBLE";
8
- readonly PERMISSION_DENIED: "PERMISSION_DENIED";
9
- readonly PROJECT_NOT_FOUND: "PROJECT_NOT_FOUND";
10
- readonly TASK_NOT_FOUND: "TASK_NOT_FOUND";
11
- };
12
- export type AssignmentErrorType = (typeof AssignmentErrorType)[keyof typeof AssignmentErrorType];
13
- export type ValidationError = {
14
- type: AssignmentErrorType;
15
- message: string;
16
- suggestions?: string[];
17
- };
18
- export type ValidationResult = {
19
- isValid: boolean;
20
- resolvedUser?: ResolvedUser;
21
- error?: ValidationError;
22
- taskId?: string;
23
- projectId?: string;
24
- };
25
- export type Assignment = {
26
- taskId?: string;
27
- projectId: string;
28
- responsibleUid: string;
29
- };
30
- export declare class AssignmentValidator {
31
- /**
32
- * Validate a single assignment operation
33
- */
34
- validateAssignment(client: TodoistApi, assignment: Assignment): Promise<ValidationResult>;
35
- /**
36
- * Validate multiple assignment operations in bulk
37
- */
38
- validateBulkAssignment(client: TodoistApi, assignments: Assignment[]): Promise<ValidationResult[]>;
39
- /**
40
- * Validate assignment for task creation (no taskId required)
41
- */
42
- validateTaskCreationAssignment(client: TodoistApi, projectId: string, responsibleUid: string): Promise<ValidationResult>;
43
- /**
44
- * Validate assignment for task update
45
- */
46
- validateTaskUpdateAssignment(client: TodoistApi, taskId: string, responsibleUid: string | null): Promise<ValidationResult>;
47
- /**
48
- * Get detailed assignment eligibility information for troubleshooting
49
- */
50
- getAssignmentEligibility(client: TodoistApi, projectId: string, responsibleUid: string, taskIds?: string[]): Promise<{
51
- canAssign: boolean;
52
- projectInfo: {
53
- name: string;
54
- isShared: boolean;
55
- collaboratorCount: number;
56
- };
57
- userInfo?: {
58
- resolvedName: string;
59
- isCollaborator: boolean;
60
- };
61
- taskInfo?: {
62
- accessibleTasks: number;
63
- inaccessibleTasks: number;
64
- };
65
- recommendations: string[];
66
- }>;
67
- }
68
- export declare const assignmentValidator: AssignmentValidator;
69
- //# sourceMappingURL=assignment-validator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assignment-validator.d.ts","sourceRoot":"","sources":["../../src/utils/assignment-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,oBAAoB,CAAA;AAEpE,eAAO,MAAM,mBAAmB;;;;;;;;CAQtB,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAA;AAEhG,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,mBAAmB,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,qBAAa,mBAAmB;IAC5B;;OAEG;IACG,kBAAkB,CACpB,MAAM,EAAE,UAAU,EAClB,UAAU,EAAE,UAAU,GACvB,OAAO,CAAC,gBAAgB,CAAC;IAqH5B;;OAEG;IACG,sBAAsB,CACxB,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,UAAU,EAAE,GAC1B,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAS9B;;OAEG;IACG,8BAA8B,CAChC,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,GACvB,OAAO,CAAC,gBAAgB,CAAC;IAO5B;;OAEG;IACG,4BAA4B,CAC9B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,GAAG,IAAI,GAC9B,OAAO,CAAC,gBAAgB,CAAC;IAkC5B;;OAEG;IACG,wBAAwB,CAC1B,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC;QACP,SAAS,EAAE,OAAO,CAAA;QAClB,WAAW,EAAE;YACT,IAAI,EAAE,MAAM,CAAA;YACZ,QAAQ,EAAE,OAAO,CAAA;YACjB,iBAAiB,EAAE,MAAM,CAAA;SAC5B,CAAA;QACD,QAAQ,CAAC,EAAE;YACP,YAAY,EAAE,MAAM,CAAA;YACpB,cAAc,EAAE,OAAO,CAAA;SAC1B,CAAA;QACD,QAAQ,CAAC,EAAE;YACP,eAAe,EAAE,MAAM,CAAA;YACvB,iBAAiB,EAAE,MAAM,CAAA;SAC5B,CAAA;QACD,eAAe,EAAE,MAAM,EAAE,CAAA;KAC5B,CAAC;CAqFL;AAGD,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
@@ -1,68 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const ColorSchema: z.ZodPipe<z.ZodTransform<string | undefined, unknown>, z.ZodOptional<z.ZodEnum<{
3
- berry_red: "berry_red";
4
- red: "red";
5
- orange: "orange";
6
- yellow: "yellow";
7
- olive_green: "olive_green";
8
- lime_green: "lime_green";
9
- green: "green";
10
- mint_green: "mint_green";
11
- teal: "teal";
12
- sky_blue: "sky_blue";
13
- light_blue: "light_blue";
14
- blue: "blue";
15
- grape: "grape";
16
- violet: "violet";
17
- lavender: "lavender";
18
- magenta: "magenta";
19
- salmon: "salmon";
20
- charcoal: "charcoal";
21
- grey: "grey";
22
- taupe: "taupe";
23
- }>>>;
24
- export declare const ColorKeySchema: z.ZodEnum<{
25
- berry_red: "berry_red";
26
- red: "red";
27
- orange: "orange";
28
- yellow: "yellow";
29
- olive_green: "olive_green";
30
- lime_green: "lime_green";
31
- green: "green";
32
- mint_green: "mint_green";
33
- teal: "teal";
34
- sky_blue: "sky_blue";
35
- light_blue: "light_blue";
36
- blue: "blue";
37
- grape: "grape";
38
- violet: "violet";
39
- lavender: "lavender";
40
- magenta: "magenta";
41
- salmon: "salmon";
42
- charcoal: "charcoal";
43
- grey: "grey";
44
- taupe: "taupe";
45
- }>;
46
- export declare const ColorOutputSchema: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
47
- berry_red: "berry_red";
48
- red: "red";
49
- orange: "orange";
50
- yellow: "yellow";
51
- olive_green: "olive_green";
52
- lime_green: "lime_green";
53
- green: "green";
54
- mint_green: "mint_green";
55
- teal: "teal";
56
- sky_blue: "sky_blue";
57
- light_blue: "light_blue";
58
- blue: "blue";
59
- grape: "grape";
60
- violet: "violet";
61
- lavender: "lavender";
62
- magenta: "magenta";
63
- salmon: "salmon";
64
- charcoal: "charcoal";
65
- grey: "grey";
66
- taupe: "taupe";
67
- }>>>;
68
- //# sourceMappingURL=colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/utils/colors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmBvB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;IAEO,CAAA;AAG/B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAA6D,CAAA;AAQxF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;IAIe,CAAA"}
@@ -1,53 +0,0 @@
1
- /**
2
- * Application-wide constants
3
- *
4
- * This module centralizes magic numbers and configuration values
5
- * to improve maintainability and provide a single source of truth.
6
- */
7
- export declare const ApiLimits: {
8
- /** Default limit for task listings */
9
- readonly TASKS_DEFAULT: 10;
10
- /** Maximum limit for task search and list operations */
11
- readonly TASKS_MAX: 100;
12
- /** Default limit for completed tasks */
13
- readonly COMPLETED_TASKS_DEFAULT: 50;
14
- /** Maximum limit for completed tasks */
15
- readonly COMPLETED_TASKS_MAX: 200;
16
- /** Default limit for project listings */
17
- readonly PROJECTS_DEFAULT: 50;
18
- /** Maximum limit for project listings */
19
- readonly PROJECTS_MAX: 200;
20
- /** Maximum limit for section listings */
21
- readonly SECTIONS_MAX: 200;
22
- /** Batch size for fetching all tasks in a project */
23
- readonly TASKS_BATCH_SIZE: 50;
24
- /** Default limit for comment listings */
25
- readonly COMMENTS_DEFAULT: 10;
26
- /** Maximum limit for comment search and list operations */
27
- readonly COMMENTS_MAX: 10;
28
- /** Default limit for activity log listings */
29
- readonly ACTIVITY_DEFAULT: 20;
30
- /** Maximum limit for activity log search and list operations */
31
- readonly ACTIVITY_MAX: 100;
32
- /** Default limit for label listings */
33
- readonly LABELS_DEFAULT: 50;
34
- /** Maximum limit for label listings */
35
- readonly LABELS_MAX: 200;
36
- /** Default limit for reminder listings */
37
- readonly REMINDERS_DEFAULT: 50;
38
- /** Maximum limit for reminder search operations */
39
- readonly REMINDERS_MAX: 200;
40
- };
41
- export declare const DisplayLimits: {
42
- /** Maximum number of failures to show in detailed error messages */
43
- readonly MAX_FAILURES_SHOWN: 3;
44
- /** Threshold for suggesting batch operations */
45
- readonly BATCH_OPERATION_THRESHOLD: 10;
46
- };
47
- export declare const ResponseConfig: {
48
- /** Maximum characters per line in text responses */
49
- readonly MAX_LINE_LENGTH: 100;
50
- /** Indentation for nested items */
51
- readonly INDENT_SIZE: 2;
52
- };
53
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,eAAO,MAAM,SAAS;IAClB,sCAAsC;;IAEtC,wDAAwD;;IAExD,wCAAwC;;IAExC,wCAAwC;;IAExC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,yCAAyC;;IAEzC,qDAAqD;;IAErD,yCAAyC;;IAEzC,2DAA2D;;IAE3D,8CAA8C;;IAE9C,gEAAgE;;IAEhE,uCAAuC;;IAEvC,uCAAuC;;IAEvC,0CAA0C;;IAE1C,mDAAmD;;CAE7C,CAAA;AAGV,eAAO,MAAM,aAAa;IACtB,oEAAoE;;IAEpE,gDAAgD;;CAE1C,CAAA;AAGV,eAAO,MAAM,cAAc;IACvB,oDAAoD;;IAEpD,mCAAmC;;CAE7B,CAAA"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Format a Date using UTC calendar components (YYYY-MM-DD).
3
- */
4
- export declare function formatUtcDate(date: Date): string;
5
- /**
6
- * Parse a GMT offset string (+HH:MM or -HH:MM) to total minutes.
7
- * Falls back to 0 for malformed offsets.
8
- */
9
- export declare function parseGmtOffsetToMinutes(gmtOffset: string): number;
10
- /**
11
- * Return the date string (YYYY-MM-DD) in a provided GMT offset.
12
- */
13
- export declare function getDateInOffset(date: Date, offsetMinutes: number): string;
14
- /**
15
- * Shift a YYYY-MM-DD date string by the specified number of days in UTC.
16
- */
17
- export declare function shiftDateStringByDays(dateString: string, days: number): string;
18
- //# sourceMappingURL=date.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Duration parser utility for converting human-readable duration strings
3
- * to minutes using a restricted, language-neutral syntax.
4
- *
5
- * Supported formats:
6
- * - "2h" (hours only)
7
- * - "90m" (minutes only)
8
- * - "2h30m" (hours + minutes)
9
- * - "1.5h" (decimal hours)
10
- * - Supports optional spaces: "2h 30m"
11
- */
12
- type ParsedDuration = {
13
- minutes: number;
14
- };
15
- export declare class DurationParseError extends Error {
16
- constructor(input: string, reason: string);
17
- }
18
- /**
19
- * Parses duration string in restricted syntax to minutes.
20
- * Max duration: 1440 minutes (24 hours)
21
- *
22
- * @param durationStr - Duration string like "2h30m", "45m", "1.5h"
23
- * @returns Parsed duration in minutes
24
- * @throws DurationParseError for invalid formats
25
- */
26
- export declare function parseDuration(durationStr: string): ParsedDuration;
27
- /**
28
- * Formats minutes back to a human-readable duration string.
29
- * Used when returning task data to LLMs.
30
- *
31
- * @param minutes - Duration in minutes
32
- * @returns Formatted duration string like "2h30m" or "45m"
33
- */
34
- export declare function formatDuration(minutes: number): string;
35
- export {};
36
- //# sourceMappingURL=duration-parser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"duration-parser.d.ts","sourceRoot":"","sources":["../../src/utils/duration-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,KAAK,cAAc,GAAG;IAClB,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,qBAAa,kBAAmB,SAAQ,KAAK;gBAC7B,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAI5C;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAgEjE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAetD"}
@@ -1,27 +0,0 @@
1
- import { TodoistApi } from '@doist/todoist-sdk';
2
- export type ResolvedFilter = {
3
- filterId: string;
4
- filterName: string;
5
- filterQuery: string;
6
- };
7
- export declare class FilterResolver {
8
- private cache;
9
- private getFilters;
10
- /**
11
- * Resolve a filter name or ID to a filter ID, name, and query.
12
- *
13
- * Resolution order:
14
- * 1. Exact ID match
15
- * 2. Exact case-insensitive name match
16
- * 3. Unique partial case-insensitive name match
17
- * 4. Multiple partial matches → throw ambiguous error
18
- * 5. No match → throw not-found error
19
- */
20
- resolveFilter(client: TodoistApi, nameOrId: string): Promise<ResolvedFilter>;
21
- /**
22
- * Clear the filter cache — useful for testing.
23
- */
24
- clearCache(): void;
25
- }
26
- export declare const filterResolver: FilterResolver;
27
- //# sourceMappingURL=filter-resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter-resolver.d.ts","sourceRoot":"","sources":["../../src/utils/filter-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;CACtB,CAAA;AAID,qBAAa,cAAc;IACvB,OAAO,CAAC,KAAK,CAAwD;YAEvD,UAAU;IAcxB;;;;;;;;;OASG;IACG,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAuDlF;;OAEG;IACH,UAAU,IAAI,IAAI;CAGrB;AAGD,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
- declare const LABELS_OPERATORS: readonly ["and", "or"];
3
- type LabelsOperator = (typeof LABELS_OPERATORS)[number];
4
- export declare const LabelsSchema: {
5
- labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
- labelsOperator: z.ZodOptional<z.ZodEnum<{
7
- or: "or";
8
- and: "and";
9
- }>>;
10
- };
11
- export declare function generateLabelsFilter(labels?: string[], labelsOperator?: LabelsOperator): string;
12
- export {};
13
- //# sourceMappingURL=labels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/utils/labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,gBAAgB,wBAAyB,CAAA;AAC/C,KAAK,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,eAAO,MAAM,YAAY;;;;;;CAQxB,CAAA;AAED,wBAAgB,oBAAoB,CAAC,MAAM,GAAE,MAAM,EAAO,EAAE,cAAc,GAAE,cAAqB,UAOhG"}
@@ -1,199 +0,0 @@
1
- import { Section } from '@doist/todoist-sdk';
2
- import { z } from 'zod';
3
- /**
4
- * Schema for a mapped task object returned by tools
5
- */
6
- declare const TaskSchema: z.ZodObject<{
7
- id: z.ZodString;
8
- content: z.ZodString;
9
- description: z.ZodString;
10
- dueDate: z.ZodOptional<z.ZodString>;
11
- recurring: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>;
12
- deadlineDate: z.ZodOptional<z.ZodString>;
13
- priority: z.ZodEnum<{
14
- p1: "p1";
15
- p2: "p2";
16
- p3: "p3";
17
- p4: "p4";
18
- }>;
19
- projectId: z.ZodString;
20
- sectionId: z.ZodOptional<z.ZodString>;
21
- parentId: z.ZodOptional<z.ZodString>;
22
- labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
- duration: z.ZodOptional<z.ZodString>;
24
- responsibleUid: z.ZodOptional<z.ZodString>;
25
- isUncompletable: z.ZodOptional<z.ZodBoolean>;
26
- assignedByUid: z.ZodOptional<z.ZodString>;
27
- checked: z.ZodBoolean;
28
- completedAt: z.ZodOptional<z.ZodString>;
29
- }, z.core.$strip>;
30
- /**
31
- * Schema for a mapped project object returned by tools
32
- */
33
- declare const ProjectSchema: z.ZodObject<{
34
- id: z.ZodString;
35
- name: z.ZodString;
36
- color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
37
- berry_red: "berry_red";
38
- red: "red";
39
- orange: "orange";
40
- yellow: "yellow";
41
- olive_green: "olive_green";
42
- lime_green: "lime_green";
43
- green: "green";
44
- mint_green: "mint_green";
45
- teal: "teal";
46
- sky_blue: "sky_blue";
47
- light_blue: "light_blue";
48
- blue: "blue";
49
- grape: "grape";
50
- violet: "violet";
51
- lavender: "lavender";
52
- magenta: "magenta";
53
- salmon: "salmon";
54
- charcoal: "charcoal";
55
- grey: "grey";
56
- taupe: "taupe";
57
- }>>>;
58
- isFavorite: z.ZodBoolean;
59
- isShared: z.ZodBoolean;
60
- parentId: z.ZodOptional<z.ZodString>;
61
- inboxProject: z.ZodBoolean;
62
- viewStyle: z.ZodString;
63
- workspaceId: z.ZodOptional<z.ZodString>;
64
- folderId: z.ZodOptional<z.ZodString>;
65
- childOrder: z.ZodNumber;
66
- }, z.core.$strip>;
67
- /**
68
- * Schema for a section object returned by tools
69
- */
70
- declare const SectionSchema: z.ZodObject<{
71
- id: z.ZodString;
72
- name: z.ZodString;
73
- }, z.core.$strip>;
74
- type SectionSummary = z.infer<typeof SectionSchema>;
75
- /**
76
- * Strip an SDK Section (or any object with id/name) down to the fields
77
- * declared in SectionSchema. Keeps tool responses aligned with the schema.
78
- */
79
- declare function toSectionSummary({ id, name }: Section): SectionSummary;
80
- /**
81
- * Schema for a comment object returned by tools
82
- */
83
- declare const CommentSchema: z.ZodObject<{
84
- id: z.ZodString;
85
- taskId: z.ZodOptional<z.ZodString>;
86
- projectId: z.ZodOptional<z.ZodString>;
87
- content: z.ZodString;
88
- postedAt: z.ZodString;
89
- postedUid: z.ZodOptional<z.ZodString>;
90
- fileAttachment: z.ZodOptional<z.ZodObject<{
91
- resourceType: z.ZodString;
92
- fileName: z.ZodOptional<z.ZodString>;
93
- fileSize: z.ZodOptional<z.ZodNumber>;
94
- fileType: z.ZodOptional<z.ZodString>;
95
- fileUrl: z.ZodOptional<z.ZodString>;
96
- fileDuration: z.ZodOptional<z.ZodNumber>;
97
- uploadState: z.ZodOptional<z.ZodEnum<{
98
- completed: "completed";
99
- pending: "pending";
100
- }>>;
101
- url: z.ZodOptional<z.ZodString>;
102
- title: z.ZodOptional<z.ZodString>;
103
- image: z.ZodOptional<z.ZodString>;
104
- imageWidth: z.ZodOptional<z.ZodNumber>;
105
- imageHeight: z.ZodOptional<z.ZodNumber>;
106
- }, z.core.$strip>>;
107
- }, z.core.$strip>;
108
- /**
109
- * Schema for an activity event object returned by tools
110
- */
111
- declare const ActivityEventSchema: z.ZodObject<{
112
- id: z.ZodOptional<z.ZodString>;
113
- objectType: z.ZodString;
114
- objectId: z.ZodString;
115
- eventType: z.ZodString;
116
- eventDate: z.ZodString;
117
- parentProjectId: z.ZodOptional<z.ZodString>;
118
- parentItemId: z.ZodOptional<z.ZodString>;
119
- initiatorId: z.ZodOptional<z.ZodString>;
120
- extraData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
121
- }, z.core.$strip>;
122
- /**
123
- * Schema for a user/collaborator object returned by tools
124
- */
125
- declare const CollaboratorSchema: z.ZodObject<{
126
- id: z.ZodString;
127
- name: z.ZodString;
128
- email: z.ZodString;
129
- }, z.core.$strip>;
130
- /**
131
- * Schema for a label object returned by tools
132
- */
133
- declare const LabelSchema: z.ZodObject<{
134
- id: z.ZodString;
135
- name: z.ZodString;
136
- color: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
137
- berry_red: "berry_red";
138
- red: "red";
139
- orange: "orange";
140
- yellow: "yellow";
141
- olive_green: "olive_green";
142
- lime_green: "lime_green";
143
- green: "green";
144
- mint_green: "mint_green";
145
- teal: "teal";
146
- sky_blue: "sky_blue";
147
- light_blue: "light_blue";
148
- blue: "blue";
149
- grape: "grape";
150
- violet: "violet";
151
- lavender: "lavender";
152
- magenta: "magenta";
153
- salmon: "salmon";
154
- charcoal: "charcoal";
155
- grey: "grey";
156
- taupe: "taupe";
157
- }>>>;
158
- order: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
159
- isFavorite: z.ZodBoolean;
160
- }, z.core.$strip>;
161
- /**
162
- * Schema for a mapped reminder object returned by tools
163
- */
164
- declare const ReminderSchema: z.ZodObject<{
165
- id: z.ZodString;
166
- taskId: z.ZodString;
167
- type: z.ZodEnum<{
168
- location: "location";
169
- absolute: "absolute";
170
- relative: "relative";
171
- }>;
172
- minuteOffset: z.ZodOptional<z.ZodNumber>;
173
- due: z.ZodOptional<z.ZodObject<{
174
- isRecurring: z.ZodBoolean;
175
- string: z.ZodString;
176
- date: z.ZodString;
177
- datetime: z.ZodOptional<z.ZodString>;
178
- timezone: z.ZodOptional<z.ZodString>;
179
- }, z.core.$strip>>;
180
- name: z.ZodOptional<z.ZodString>;
181
- locLat: z.ZodOptional<z.ZodString>;
182
- locLong: z.ZodOptional<z.ZodString>;
183
- locTrigger: z.ZodOptional<z.ZodEnum<{
184
- on_enter: "on_enter";
185
- on_leave: "on_leave";
186
- }>>;
187
- radius: z.ZodOptional<z.ZodNumber>;
188
- isUrgent: z.ZodOptional<z.ZodBoolean>;
189
- }, z.core.$strip>;
190
- /**
191
- * Schema for batch operation failure
192
- */
193
- declare const FailureSchema: z.ZodObject<{
194
- item: z.ZodString;
195
- error: z.ZodString;
196
- code: z.ZodOptional<z.ZodString>;
197
- }, z.core.$strip>;
198
- export { ActivityEventSchema, CollaboratorSchema, CommentSchema, FailureSchema, LabelSchema, ProjectSchema, ReminderSchema, SectionSchema, type SectionSummary, TaskSchema, toSectionSummary, };
199
- //# sourceMappingURL=output-schemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/utils/output-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACpF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;GAEG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;iBA+Bd,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;iBAGjB,CAAA;AAEF,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEnD;;;GAGG;AACH,iBAAS,gBAAgB,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,GAAG,cAAc,CAE/D;AA0BD;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;iBAQjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;iBAYvB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,kBAAkB;;;;iBAItB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMf,CAAA;AAaF;;GAEG;AACH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBlB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;iBAIjB,CAAA;AAEF,OAAO,EACH,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,cAAc,EACd,aAAa,EACb,KAAK,cAAc,EACnB,UAAU,EACV,gBAAgB,GACnB,CAAA"}
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- declare const PRIORITY_VALUES: readonly ["p1", "p2", "p3", "p4"];
3
- export type Priority = (typeof PRIORITY_VALUES)[number];
4
- export declare const PRIORITY_INPUT_DESCRIPTION = "Task priority as a string: \"p1\" (highest), \"p2\" (high), \"p3\" (medium), or \"p4\" (lowest/default). Integers like 1, 2, 3, or 4 are not accepted.";
5
- export declare const PrioritySchema: z.ZodEnum<{
6
- p1: "p1";
7
- p2: "p2";
8
- p3: "p3";
9
- p4: "p4";
10
- }>;
11
- export declare function convertPriorityToNumber(priority: Priority): number;
12
- export declare function convertNumberToPriority(priority: number): Priority | undefined;
13
- export {};
14
- //# sourceMappingURL=priorities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"priorities.d.ts","sourceRoot":"","sources":["../../src/utils/priorities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,eAAe,mCAAoC,CAAA;AACzD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,eAAO,MAAM,0BAA0B,2JAC6G,CAAA;AAEpJ,eAAO,MAAM,cAAc;;;;;EAA+D,CAAA;AAE1F,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAIlE;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAI9E"}