mcp-adr-analysis-server 2.0.10 → 2.0.12

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 (73) hide show
  1. package/README.md +1 -1
  2. package/dist/src/index.d.ts +1 -2
  3. package/dist/src/index.d.ts.map +1 -1
  4. package/dist/src/index.js +340 -492
  5. package/dist/src/index.js.map +1 -1
  6. package/dist/src/prompts/adr-suggestion-prompts.d.ts.map +1 -1
  7. package/dist/src/prompts/adr-suggestion-prompts.js +2 -0
  8. package/dist/src/prompts/adr-suggestion-prompts.js.map +1 -1
  9. package/dist/src/tools/adr-suggestion-tool.d.ts +16 -0
  10. package/dist/src/tools/adr-suggestion-tool.d.ts.map +1 -1
  11. package/dist/src/tools/adr-suggestion-tool.js +55 -2
  12. package/dist/src/tools/adr-suggestion-tool.js.map +1 -1
  13. package/dist/src/tools/smart-git-push-tool-v2.d.ts +55 -0
  14. package/dist/src/tools/smart-git-push-tool-v2.d.ts.map +1 -0
  15. package/dist/src/tools/smart-git-push-tool-v2.js +527 -0
  16. package/dist/src/tools/smart-git-push-tool-v2.js.map +1 -0
  17. package/dist/src/tools/smart-git-push-tool.d.ts +27 -3
  18. package/dist/src/tools/smart-git-push-tool.d.ts.map +1 -1
  19. package/dist/src/tools/smart-git-push-tool.js +490 -10
  20. package/dist/src/tools/smart-git-push-tool.js.map +1 -1
  21. package/dist/src/tools/smart-score-tool.d.ts +39 -4
  22. package/dist/src/tools/smart-score-tool.d.ts.map +1 -1
  23. package/dist/src/tools/smart-score-tool.js +94 -15
  24. package/dist/src/tools/smart-score-tool.js.map +1 -1
  25. package/dist/src/tools/todo-management-tool-v2.d.ts +329 -0
  26. package/dist/src/tools/todo-management-tool-v2.d.ts.map +1 -0
  27. package/dist/src/tools/todo-management-tool-v2.js +644 -0
  28. package/dist/src/tools/todo-management-tool-v2.js.map +1 -0
  29. package/dist/src/tools/tool-chain-orchestrator.d.ts +3 -41
  30. package/dist/src/tools/tool-chain-orchestrator.d.ts.map +1 -1
  31. package/dist/src/tools/tool-chain-orchestrator.js +10 -198
  32. package/dist/src/tools/tool-chain-orchestrator.js.map +1 -1
  33. package/dist/src/types/conversation-context.d.ts +6 -0
  34. package/dist/src/types/conversation-context.d.ts.map +1 -1
  35. package/dist/src/types/conversation-context.js +9 -1
  36. package/dist/src/types/conversation-context.js.map +1 -1
  37. package/dist/src/types/knowledge-graph-schemas.d.ts +298 -6
  38. package/dist/src/types/knowledge-graph-schemas.d.ts.map +1 -1
  39. package/dist/src/types/knowledge-graph-schemas.js +31 -3
  40. package/dist/src/types/knowledge-graph-schemas.js.map +1 -1
  41. package/dist/src/types/todo-json-schemas.d.ts +663 -0
  42. package/dist/src/types/todo-json-schemas.d.ts.map +1 -0
  43. package/dist/src/types/todo-json-schemas.js +113 -0
  44. package/dist/src/types/todo-json-schemas.js.map +1 -0
  45. package/dist/src/utils/chain-of-thought-template.d.ts.map +1 -1
  46. package/dist/src/utils/chain-of-thought-template.js.map +1 -1
  47. package/dist/src/utils/knowledge-graph-manager.d.ts +50 -0
  48. package/dist/src/utils/knowledge-graph-manager.d.ts.map +1 -1
  49. package/dist/src/utils/knowledge-graph-manager.js +209 -3
  50. package/dist/src/utils/knowledge-graph-manager.js.map +1 -1
  51. package/dist/src/utils/project-health-scoring.js +5 -5
  52. package/dist/src/utils/project-health-scoring.js.map +1 -1
  53. package/dist/src/utils/todo-json-manager.d.ts +71 -0
  54. package/dist/src/utils/todo-json-manager.d.ts.map +1 -0
  55. package/dist/src/utils/todo-json-manager.js +394 -0
  56. package/dist/src/utils/todo-json-manager.js.map +1 -0
  57. package/dist/src/utils/todo-markdown-converter.d.ts +16 -0
  58. package/dist/src/utils/todo-markdown-converter.d.ts.map +1 -0
  59. package/dist/src/utils/todo-markdown-converter.js +362 -0
  60. package/dist/src/utils/todo-markdown-converter.js.map +1 -0
  61. package/dist/src/utils/todo-migration.d.ts +47 -0
  62. package/dist/src/utils/todo-migration.d.ts.map +1 -0
  63. package/dist/src/utils/todo-migration.js +261 -0
  64. package/dist/src/utils/todo-migration.js.map +1 -0
  65. package/package.json +1 -1
  66. package/dist/src/tools/human-override-tool.d.ts +0 -42
  67. package/dist/src/tools/human-override-tool.d.ts.map +0 -1
  68. package/dist/src/tools/human-override-tool.js +0 -431
  69. package/dist/src/tools/human-override-tool.js.map +0 -1
  70. package/dist/src/tools/todo-management-tool.d.ts +0 -344
  71. package/dist/src/tools/todo-management-tool.d.ts.map +0 -1
  72. package/dist/src/tools/todo-management-tool.js +0 -1249
  73. package/dist/src/tools/todo-management-tool.js.map +0 -1
@@ -1,344 +0,0 @@
1
- /**
2
- * MCP Tool for TODO.md management with incremental updates and task lifecycle
3
- * Provides smart merging, status tracking, and preservation of custom tasks
4
- */
5
- import { z } from 'zod';
6
- declare const ManageTodoSchema: z.ZodUnion<[z.ZodObject<{
7
- operation: z.ZodLiteral<"update_status">;
8
- todoPath: z.ZodDefault<z.ZodString>;
9
- updates: z.ZodArray<z.ZodObject<{
10
- taskId: z.ZodString;
11
- status: z.ZodEnum<["pending", "in_progress", "completed", "blocked", "cancelled"]>;
12
- notes: z.ZodOptional<z.ZodString>;
13
- assignee: z.ZodOptional<z.ZodString>;
14
- }, "strip", z.ZodTypeAny, {
15
- status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
16
- taskId: string;
17
- assignee?: string | undefined;
18
- notes?: string | undefined;
19
- }, {
20
- status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
21
- taskId: string;
22
- assignee?: string | undefined;
23
- notes?: string | undefined;
24
- }>, "many">;
25
- }, "strip", z.ZodTypeAny, {
26
- operation: "update_status";
27
- todoPath: string;
28
- updates: {
29
- status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
30
- taskId: string;
31
- assignee?: string | undefined;
32
- notes?: string | undefined;
33
- }[];
34
- }, {
35
- operation: "update_status";
36
- updates: {
37
- status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
38
- taskId: string;
39
- assignee?: string | undefined;
40
- notes?: string | undefined;
41
- }[];
42
- todoPath?: string | undefined;
43
- }>, z.ZodObject<{
44
- operation: z.ZodLiteral<"add_tasks">;
45
- todoPath: z.ZodDefault<z.ZodString>;
46
- tasks: z.ZodArray<z.ZodObject<Omit<{
47
- id: z.ZodString;
48
- title: z.ZodString;
49
- status: z.ZodEnum<["pending", "in_progress", "completed", "blocked", "cancelled"]>;
50
- priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
51
- adrSource: z.ZodOptional<z.ZodString>;
52
- category: z.ZodOptional<z.ZodString>;
53
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
54
- notes: z.ZodOptional<z.ZodString>;
55
- createdAt: z.ZodOptional<z.ZodString>;
56
- updatedAt: z.ZodOptional<z.ZodString>;
57
- estimatedHours: z.ZodOptional<z.ZodNumber>;
58
- assignee: z.ZodOptional<z.ZodString>;
59
- }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
60
- status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
61
- title: string;
62
- category?: string | undefined;
63
- priority?: "medium" | "low" | "high" | "critical" | undefined;
64
- assignee?: string | undefined;
65
- dependencies?: string[] | undefined;
66
- adrSource?: string | undefined;
67
- notes?: string | undefined;
68
- estimatedHours?: number | undefined;
69
- }, {
70
- status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
71
- title: string;
72
- category?: string | undefined;
73
- priority?: "medium" | "low" | "high" | "critical" | undefined;
74
- assignee?: string | undefined;
75
- dependencies?: string[] | undefined;
76
- adrSource?: string | undefined;
77
- notes?: string | undefined;
78
- estimatedHours?: number | undefined;
79
- }>, "many">;
80
- section: z.ZodOptional<z.ZodString>;
81
- }, "strip", z.ZodTypeAny, {
82
- tasks: {
83
- status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
84
- title: string;
85
- category?: string | undefined;
86
- priority?: "medium" | "low" | "high" | "critical" | undefined;
87
- assignee?: string | undefined;
88
- dependencies?: string[] | undefined;
89
- adrSource?: string | undefined;
90
- notes?: string | undefined;
91
- estimatedHours?: number | undefined;
92
- }[];
93
- operation: "add_tasks";
94
- todoPath: string;
95
- section?: string | undefined;
96
- }, {
97
- tasks: {
98
- status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
99
- title: string;
100
- category?: string | undefined;
101
- priority?: "medium" | "low" | "high" | "critical" | undefined;
102
- assignee?: string | undefined;
103
- dependencies?: string[] | undefined;
104
- adrSource?: string | undefined;
105
- notes?: string | undefined;
106
- estimatedHours?: number | undefined;
107
- }[];
108
- operation: "add_tasks";
109
- todoPath?: string | undefined;
110
- section?: string | undefined;
111
- }>, z.ZodObject<{
112
- operation: z.ZodLiteral<"merge_adr_updates">;
113
- todoPath: z.ZodDefault<z.ZodString>;
114
- adrDirectory: z.ZodDefault<z.ZodString>;
115
- preserveCompleted: z.ZodDefault<z.ZodBoolean>;
116
- preserveCustom: z.ZodDefault<z.ZodBoolean>;
117
- }, "strip", z.ZodTypeAny, {
118
- adrDirectory: string;
119
- operation: "merge_adr_updates";
120
- todoPath: string;
121
- preserveCompleted: boolean;
122
- preserveCustom: boolean;
123
- }, {
124
- operation: "merge_adr_updates";
125
- adrDirectory?: string | undefined;
126
- todoPath?: string | undefined;
127
- preserveCompleted?: boolean | undefined;
128
- preserveCustom?: boolean | undefined;
129
- }>, z.ZodObject<{
130
- operation: z.ZodLiteral<"sync_progress">;
131
- todoPath: z.ZodDefault<z.ZodString>;
132
- adrDirectory: z.ZodDefault<z.ZodString>;
133
- updateAdrs: z.ZodDefault<z.ZodBoolean>;
134
- }, "strip", z.ZodTypeAny, {
135
- adrDirectory: string;
136
- operation: "sync_progress";
137
- todoPath: string;
138
- updateAdrs: boolean;
139
- }, {
140
- operation: "sync_progress";
141
- adrDirectory?: string | undefined;
142
- todoPath?: string | undefined;
143
- updateAdrs?: boolean | undefined;
144
- }>, z.ZodObject<{
145
- operation: z.ZodLiteral<"analyze_progress">;
146
- todoPath: z.ZodDefault<z.ZodString>;
147
- timeframe: z.ZodDefault<z.ZodEnum<["day", "week", "month", "all"]>>;
148
- includeVelocity: z.ZodDefault<z.ZodBoolean>;
149
- }, "strip", z.ZodTypeAny, {
150
- operation: "analyze_progress";
151
- todoPath: string;
152
- timeframe: "day" | "week" | "month" | "all";
153
- includeVelocity: boolean;
154
- }, {
155
- operation: "analyze_progress";
156
- todoPath?: string | undefined;
157
- timeframe?: "day" | "week" | "month" | "all" | undefined;
158
- includeVelocity?: boolean | undefined;
159
- }>, z.ZodObject<{
160
- operation: z.ZodLiteral<"delete_task">;
161
- todoPath: z.ZodDefault<z.ZodString>;
162
- taskIds: z.ZodArray<z.ZodString, "many">;
163
- force: z.ZodDefault<z.ZodBoolean>;
164
- preserveComments: z.ZodDefault<z.ZodBoolean>;
165
- }, "strip", z.ZodTypeAny, {
166
- operation: "delete_task";
167
- todoPath: string;
168
- taskIds: string[];
169
- force: boolean;
170
- preserveComments: boolean;
171
- }, {
172
- operation: "delete_task";
173
- taskIds: string[];
174
- todoPath?: string | undefined;
175
- force?: boolean | undefined;
176
- preserveComments?: boolean | undefined;
177
- }>, z.ZodObject<{
178
- operation: z.ZodLiteral<"edit_task">;
179
- todoPath: z.ZodDefault<z.ZodString>;
180
- taskId: z.ZodString;
181
- updates: z.ZodObject<{
182
- title: z.ZodOptional<z.ZodString>;
183
- priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
184
- category: z.ZodOptional<z.ZodString>;
185
- estimatedHours: z.ZodOptional<z.ZodNumber>;
186
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
187
- notes: z.ZodOptional<z.ZodString>;
188
- }, "strip", z.ZodTypeAny, {
189
- category?: string | undefined;
190
- title?: string | undefined;
191
- priority?: "medium" | "low" | "high" | "critical" | undefined;
192
- dependencies?: string[] | undefined;
193
- notes?: string | undefined;
194
- estimatedHours?: number | undefined;
195
- }, {
196
- category?: string | undefined;
197
- title?: string | undefined;
198
- priority?: "medium" | "low" | "high" | "critical" | undefined;
199
- dependencies?: string[] | undefined;
200
- notes?: string | undefined;
201
- estimatedHours?: number | undefined;
202
- }>;
203
- interactive: z.ZodDefault<z.ZodBoolean>;
204
- confirmChanges: z.ZodDefault<z.ZodBoolean>;
205
- }, "strip", z.ZodTypeAny, {
206
- taskId: string;
207
- operation: "edit_task";
208
- todoPath: string;
209
- updates: {
210
- category?: string | undefined;
211
- title?: string | undefined;
212
- priority?: "medium" | "low" | "high" | "critical" | undefined;
213
- dependencies?: string[] | undefined;
214
- notes?: string | undefined;
215
- estimatedHours?: number | undefined;
216
- };
217
- interactive: boolean;
218
- confirmChanges: boolean;
219
- }, {
220
- taskId: string;
221
- operation: "edit_task";
222
- updates: {
223
- category?: string | undefined;
224
- title?: string | undefined;
225
- priority?: "medium" | "low" | "high" | "critical" | undefined;
226
- dependencies?: string[] | undefined;
227
- notes?: string | undefined;
228
- estimatedHours?: number | undefined;
229
- };
230
- todoPath?: string | undefined;
231
- interactive?: boolean | undefined;
232
- confirmChanges?: boolean | undefined;
233
- }>, z.ZodObject<{
234
- operation: z.ZodLiteral<"move_task">;
235
- todoPath: z.ZodDefault<z.ZodString>;
236
- taskId: z.ZodString;
237
- targetSection: z.ZodOptional<z.ZodString>;
238
- position: z.ZodOptional<z.ZodNumber>;
239
- interactive: z.ZodDefault<z.ZodBoolean>;
240
- createSection: z.ZodDefault<z.ZodBoolean>;
241
- }, "strip", z.ZodTypeAny, {
242
- taskId: string;
243
- operation: "move_task";
244
- todoPath: string;
245
- interactive: boolean;
246
- createSection: boolean;
247
- targetSection?: string | undefined;
248
- position?: number | undefined;
249
- }, {
250
- taskId: string;
251
- operation: "move_task";
252
- todoPath?: string | undefined;
253
- interactive?: boolean | undefined;
254
- targetSection?: string | undefined;
255
- position?: number | undefined;
256
- createSection?: boolean | undefined;
257
- }>, z.ZodObject<{
258
- operation: z.ZodLiteral<"manage_section">;
259
- todoPath: z.ZodDefault<z.ZodString>;
260
- action: z.ZodEnum<["create", "delete", "rename", "reorder"]>;
261
- sectionName: z.ZodString;
262
- newName: z.ZodOptional<z.ZodString>;
263
- position: z.ZodOptional<z.ZodNumber>;
264
- force: z.ZodDefault<z.ZodBoolean>;
265
- preserveTasks: z.ZodDefault<z.ZodBoolean>;
266
- }, "strip", z.ZodTypeAny, {
267
- action: "create" | "delete" | "rename" | "reorder";
268
- operation: "manage_section";
269
- todoPath: string;
270
- force: boolean;
271
- sectionName: string;
272
- preserveTasks: boolean;
273
- position?: number | undefined;
274
- newName?: string | undefined;
275
- }, {
276
- action: "create" | "delete" | "rename" | "reorder";
277
- operation: "manage_section";
278
- sectionName: string;
279
- todoPath?: string | undefined;
280
- force?: boolean | undefined;
281
- position?: number | undefined;
282
- newName?: string | undefined;
283
- preserveTasks?: boolean | undefined;
284
- }>, z.ZodObject<{
285
- operation: z.ZodLiteral<"search_tasks">;
286
- todoPath: z.ZodDefault<z.ZodString>;
287
- query: z.ZodOptional<z.ZodString>;
288
- filters: z.ZodOptional<z.ZodObject<{
289
- status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "completed", "blocked", "cancelled"]>>;
290
- priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
291
- assignee: z.ZodOptional<z.ZodString>;
292
- section: z.ZodOptional<z.ZodString>;
293
- hasNotes: z.ZodOptional<z.ZodBoolean>;
294
- hasDependencies: z.ZodOptional<z.ZodBoolean>;
295
- }, "strip", z.ZodTypeAny, {
296
- status?: "pending" | "completed" | "in_progress" | "blocked" | "cancelled" | undefined;
297
- priority?: "medium" | "low" | "high" | "critical" | undefined;
298
- assignee?: string | undefined;
299
- section?: string | undefined;
300
- hasNotes?: boolean | undefined;
301
- hasDependencies?: boolean | undefined;
302
- }, {
303
- status?: "pending" | "completed" | "in_progress" | "blocked" | "cancelled" | undefined;
304
- priority?: "medium" | "low" | "high" | "critical" | undefined;
305
- assignee?: string | undefined;
306
- section?: string | undefined;
307
- hasNotes?: boolean | undefined;
308
- hasDependencies?: boolean | undefined;
309
- }>>;
310
- includeMetadata: z.ZodDefault<z.ZodBoolean>;
311
- }, "strip", z.ZodTypeAny, {
312
- operation: "search_tasks";
313
- todoPath: string;
314
- includeMetadata: boolean;
315
- query?: string | undefined;
316
- filters?: {
317
- status?: "pending" | "completed" | "in_progress" | "blocked" | "cancelled" | undefined;
318
- priority?: "medium" | "low" | "high" | "critical" | undefined;
319
- assignee?: string | undefined;
320
- section?: string | undefined;
321
- hasNotes?: boolean | undefined;
322
- hasDependencies?: boolean | undefined;
323
- } | undefined;
324
- }, {
325
- operation: "search_tasks";
326
- todoPath?: string | undefined;
327
- query?: string | undefined;
328
- filters?: {
329
- status?: "pending" | "completed" | "in_progress" | "blocked" | "cancelled" | undefined;
330
- priority?: "medium" | "low" | "high" | "critical" | undefined;
331
- assignee?: string | undefined;
332
- section?: string | undefined;
333
- hasNotes?: boolean | undefined;
334
- hasDependencies?: boolean | undefined;
335
- } | undefined;
336
- includeMetadata?: boolean | undefined;
337
- }>]>;
338
- type ManageTodoArgs = z.infer<typeof ManageTodoSchema>;
339
- /**
340
- * Main TODO management function
341
- */
342
- export declare function manageTodo(args: ManageTodoArgs, projectPath?: string): Promise<any>;
343
- export {};
344
- //# sourceMappingURL=todo-management-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"todo-management-tool.d.ts","sourceRoot":"","sources":["../../../src/tools/todo-management-tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmJxB,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWpB,CAAC;AAEH,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAogBvD;;GAEG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAqvBzF"}