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
@@ -0,0 +1,663 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * JSON-First TODO System Schemas
4
+ *
5
+ * This replaces inconsistent markdown parsing with structured JSON storage
6
+ * that integrates seamlessly with the knowledge graph and scoring system.
7
+ */
8
+ export declare const TodoTaskSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ title: z.ZodString;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked", "cancelled"]>;
13
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
14
+ category: z.ZodOptional<z.ZodString>;
15
+ assignee: z.ZodOptional<z.ZodString>;
16
+ createdAt: z.ZodString;
17
+ updatedAt: z.ZodString;
18
+ completedAt: z.ZodOptional<z.ZodString>;
19
+ dueDate: z.ZodOptional<z.ZodString>;
20
+ parentTaskId: z.ZodOptional<z.ZodString>;
21
+ subtasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
22
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
23
+ blockedBy: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
24
+ linkedAdrs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
25
+ adrGeneratedTask: z.ZodDefault<z.ZodBoolean>;
26
+ intentId: z.ZodOptional<z.ZodString>;
27
+ toolExecutions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
+ scoreWeight: z.ZodDefault<z.ZodNumber>;
29
+ scoreCategory: z.ZodDefault<z.ZodEnum<["task_completion", "deployment_readiness", "architecture_compliance", "security_posture", "code_quality"]>>;
30
+ estimatedHours: z.ZodOptional<z.ZodNumber>;
31
+ actualHours: z.ZodOptional<z.ZodNumber>;
32
+ progressPercentage: z.ZodDefault<z.ZodNumber>;
33
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
34
+ notes: z.ZodOptional<z.ZodString>;
35
+ lastModifiedBy: z.ZodDefault<z.ZodEnum<["human", "tool", "adr_generator", "knowledge_graph"]>>;
36
+ autoComplete: z.ZodDefault<z.ZodBoolean>;
37
+ completionCriteria: z.ZodOptional<z.ZodString>;
38
+ version: z.ZodDefault<z.ZodNumber>;
39
+ changeLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
40
+ timestamp: z.ZodString;
41
+ action: z.ZodEnum<["created", "updated", "completed", "blocked", "cancelled", "moved"]>;
42
+ details: z.ZodString;
43
+ modifiedBy: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ timestamp: string;
46
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
47
+ details: string;
48
+ modifiedBy: string;
49
+ }, {
50
+ timestamp: string;
51
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
52
+ details: string;
53
+ modifiedBy: string;
54
+ }>, "many">>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
57
+ title: string;
58
+ tags: string[];
59
+ version: number;
60
+ id: string;
61
+ priority: "medium" | "low" | "high" | "critical";
62
+ dependencies: string[];
63
+ lastModifiedBy: "tool" | "human" | "adr_generator" | "knowledge_graph";
64
+ createdAt: string;
65
+ updatedAt: string;
66
+ subtasks: string[];
67
+ blockedBy: string[];
68
+ linkedAdrs: string[];
69
+ adrGeneratedTask: boolean;
70
+ toolExecutions: string[];
71
+ scoreWeight: number;
72
+ scoreCategory: "task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality";
73
+ progressPercentage: number;
74
+ autoComplete: boolean;
75
+ changeLog: {
76
+ timestamp: string;
77
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
78
+ details: string;
79
+ modifiedBy: string;
80
+ }[];
81
+ category?: string | undefined;
82
+ description?: string | undefined;
83
+ assignee?: string | undefined;
84
+ dueDate?: string | undefined;
85
+ intentId?: string | undefined;
86
+ completedAt?: string | undefined;
87
+ parentTaskId?: string | undefined;
88
+ estimatedHours?: number | undefined;
89
+ actualHours?: number | undefined;
90
+ notes?: string | undefined;
91
+ completionCriteria?: string | undefined;
92
+ }, {
93
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
94
+ title: string;
95
+ id: string;
96
+ priority: "medium" | "low" | "high" | "critical";
97
+ createdAt: string;
98
+ updatedAt: string;
99
+ category?: string | undefined;
100
+ tags?: string[] | undefined;
101
+ version?: number | undefined;
102
+ description?: string | undefined;
103
+ assignee?: string | undefined;
104
+ dueDate?: string | undefined;
105
+ dependencies?: string[] | undefined;
106
+ intentId?: string | undefined;
107
+ lastModifiedBy?: "tool" | "human" | "adr_generator" | "knowledge_graph" | undefined;
108
+ completedAt?: string | undefined;
109
+ parentTaskId?: string | undefined;
110
+ subtasks?: string[] | undefined;
111
+ blockedBy?: string[] | undefined;
112
+ linkedAdrs?: string[] | undefined;
113
+ adrGeneratedTask?: boolean | undefined;
114
+ toolExecutions?: string[] | undefined;
115
+ scoreWeight?: number | undefined;
116
+ scoreCategory?: "task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality" | undefined;
117
+ estimatedHours?: number | undefined;
118
+ actualHours?: number | undefined;
119
+ progressPercentage?: number | undefined;
120
+ notes?: string | undefined;
121
+ autoComplete?: boolean | undefined;
122
+ completionCriteria?: string | undefined;
123
+ changeLog?: {
124
+ timestamp: string;
125
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
126
+ details: string;
127
+ modifiedBy: string;
128
+ }[] | undefined;
129
+ }>;
130
+ export declare const TodoSectionSchema: z.ZodObject<{
131
+ id: z.ZodString;
132
+ title: z.ZodString;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ order: z.ZodNumber;
135
+ collapsed: z.ZodDefault<z.ZodBoolean>;
136
+ tasks: z.ZodArray<z.ZodString, "many">;
137
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ title: string;
140
+ id: string;
141
+ order: number;
142
+ collapsed: boolean;
143
+ tasks: string[];
144
+ metadata?: Record<string, any> | undefined;
145
+ description?: string | undefined;
146
+ }, {
147
+ title: string;
148
+ id: string;
149
+ order: number;
150
+ tasks: string[];
151
+ metadata?: Record<string, any> | undefined;
152
+ description?: string | undefined;
153
+ collapsed?: boolean | undefined;
154
+ }>;
155
+ export declare const TodoJsonDataSchema: z.ZodObject<{
156
+ version: z.ZodDefault<z.ZodString>;
157
+ metadata: z.ZodObject<{
158
+ projectName: z.ZodOptional<z.ZodString>;
159
+ lastUpdated: z.ZodString;
160
+ totalTasks: z.ZodNumber;
161
+ completedTasks: z.ZodNumber;
162
+ lastSyncToMarkdown: z.ZodOptional<z.ZodString>;
163
+ autoSyncEnabled: z.ZodDefault<z.ZodBoolean>;
164
+ lastGitPush: z.ZodOptional<z.ZodString>;
165
+ lastPushFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ lastUpdated: string;
168
+ totalTasks: number;
169
+ completedTasks: number;
170
+ autoSyncEnabled: boolean;
171
+ projectName?: string | undefined;
172
+ lastSyncToMarkdown?: string | undefined;
173
+ lastGitPush?: string | undefined;
174
+ lastPushFiles?: string[] | undefined;
175
+ }, {
176
+ lastUpdated: string;
177
+ totalTasks: number;
178
+ completedTasks: number;
179
+ projectName?: string | undefined;
180
+ lastSyncToMarkdown?: string | undefined;
181
+ autoSyncEnabled?: boolean | undefined;
182
+ lastGitPush?: string | undefined;
183
+ lastPushFiles?: string[] | undefined;
184
+ }>;
185
+ tasks: z.ZodRecord<z.ZodString, z.ZodObject<{
186
+ id: z.ZodString;
187
+ title: z.ZodString;
188
+ description: z.ZodOptional<z.ZodString>;
189
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked", "cancelled"]>;
190
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
191
+ category: z.ZodOptional<z.ZodString>;
192
+ assignee: z.ZodOptional<z.ZodString>;
193
+ createdAt: z.ZodString;
194
+ updatedAt: z.ZodString;
195
+ completedAt: z.ZodOptional<z.ZodString>;
196
+ dueDate: z.ZodOptional<z.ZodString>;
197
+ parentTaskId: z.ZodOptional<z.ZodString>;
198
+ subtasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
199
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
200
+ blockedBy: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
201
+ linkedAdrs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
202
+ adrGeneratedTask: z.ZodDefault<z.ZodBoolean>;
203
+ intentId: z.ZodOptional<z.ZodString>;
204
+ toolExecutions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
205
+ scoreWeight: z.ZodDefault<z.ZodNumber>;
206
+ scoreCategory: z.ZodDefault<z.ZodEnum<["task_completion", "deployment_readiness", "architecture_compliance", "security_posture", "code_quality"]>>;
207
+ estimatedHours: z.ZodOptional<z.ZodNumber>;
208
+ actualHours: z.ZodOptional<z.ZodNumber>;
209
+ progressPercentage: z.ZodDefault<z.ZodNumber>;
210
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
211
+ notes: z.ZodOptional<z.ZodString>;
212
+ lastModifiedBy: z.ZodDefault<z.ZodEnum<["human", "tool", "adr_generator", "knowledge_graph"]>>;
213
+ autoComplete: z.ZodDefault<z.ZodBoolean>;
214
+ completionCriteria: z.ZodOptional<z.ZodString>;
215
+ version: z.ZodDefault<z.ZodNumber>;
216
+ changeLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
217
+ timestamp: z.ZodString;
218
+ action: z.ZodEnum<["created", "updated", "completed", "blocked", "cancelled", "moved"]>;
219
+ details: z.ZodString;
220
+ modifiedBy: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ timestamp: string;
223
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
224
+ details: string;
225
+ modifiedBy: string;
226
+ }, {
227
+ timestamp: string;
228
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
229
+ details: string;
230
+ modifiedBy: string;
231
+ }>, "many">>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
234
+ title: string;
235
+ tags: string[];
236
+ version: number;
237
+ id: string;
238
+ priority: "medium" | "low" | "high" | "critical";
239
+ dependencies: string[];
240
+ lastModifiedBy: "tool" | "human" | "adr_generator" | "knowledge_graph";
241
+ createdAt: string;
242
+ updatedAt: string;
243
+ subtasks: string[];
244
+ blockedBy: string[];
245
+ linkedAdrs: string[];
246
+ adrGeneratedTask: boolean;
247
+ toolExecutions: string[];
248
+ scoreWeight: number;
249
+ scoreCategory: "task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality";
250
+ progressPercentage: number;
251
+ autoComplete: boolean;
252
+ changeLog: {
253
+ timestamp: string;
254
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
255
+ details: string;
256
+ modifiedBy: string;
257
+ }[];
258
+ category?: string | undefined;
259
+ description?: string | undefined;
260
+ assignee?: string | undefined;
261
+ dueDate?: string | undefined;
262
+ intentId?: string | undefined;
263
+ completedAt?: string | undefined;
264
+ parentTaskId?: string | undefined;
265
+ estimatedHours?: number | undefined;
266
+ actualHours?: number | undefined;
267
+ notes?: string | undefined;
268
+ completionCriteria?: string | undefined;
269
+ }, {
270
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
271
+ title: string;
272
+ id: string;
273
+ priority: "medium" | "low" | "high" | "critical";
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ category?: string | undefined;
277
+ tags?: string[] | undefined;
278
+ version?: number | undefined;
279
+ description?: string | undefined;
280
+ assignee?: string | undefined;
281
+ dueDate?: string | undefined;
282
+ dependencies?: string[] | undefined;
283
+ intentId?: string | undefined;
284
+ lastModifiedBy?: "tool" | "human" | "adr_generator" | "knowledge_graph" | undefined;
285
+ completedAt?: string | undefined;
286
+ parentTaskId?: string | undefined;
287
+ subtasks?: string[] | undefined;
288
+ blockedBy?: string[] | undefined;
289
+ linkedAdrs?: string[] | undefined;
290
+ adrGeneratedTask?: boolean | undefined;
291
+ toolExecutions?: string[] | undefined;
292
+ scoreWeight?: number | undefined;
293
+ scoreCategory?: "task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality" | undefined;
294
+ estimatedHours?: number | undefined;
295
+ actualHours?: number | undefined;
296
+ progressPercentage?: number | undefined;
297
+ notes?: string | undefined;
298
+ autoComplete?: boolean | undefined;
299
+ completionCriteria?: string | undefined;
300
+ changeLog?: {
301
+ timestamp: string;
302
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
303
+ details: string;
304
+ modifiedBy: string;
305
+ }[] | undefined;
306
+ }>>;
307
+ sections: z.ZodArray<z.ZodObject<{
308
+ id: z.ZodString;
309
+ title: z.ZodString;
310
+ description: z.ZodOptional<z.ZodString>;
311
+ order: z.ZodNumber;
312
+ collapsed: z.ZodDefault<z.ZodBoolean>;
313
+ tasks: z.ZodArray<z.ZodString, "many">;
314
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ title: string;
317
+ id: string;
318
+ order: number;
319
+ collapsed: boolean;
320
+ tasks: string[];
321
+ metadata?: Record<string, any> | undefined;
322
+ description?: string | undefined;
323
+ }, {
324
+ title: string;
325
+ id: string;
326
+ order: number;
327
+ tasks: string[];
328
+ metadata?: Record<string, any> | undefined;
329
+ description?: string | undefined;
330
+ collapsed?: boolean | undefined;
331
+ }>, "many">;
332
+ scoringSync: z.ZodObject<{
333
+ lastScoreUpdate: z.ZodString;
334
+ taskCompletionScore: z.ZodNumber;
335
+ priorityWeightedScore: z.ZodNumber;
336
+ criticalTasksRemaining: z.ZodNumber;
337
+ scoreHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
338
+ timestamp: z.ZodString;
339
+ score: z.ZodNumber;
340
+ trigger: z.ZodString;
341
+ }, "strip", z.ZodTypeAny, {
342
+ timestamp: string;
343
+ score: number;
344
+ trigger: string;
345
+ }, {
346
+ timestamp: string;
347
+ score: number;
348
+ trigger: string;
349
+ }>, "many">>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ lastScoreUpdate: string;
352
+ scoreHistory: {
353
+ timestamp: string;
354
+ score: number;
355
+ trigger: string;
356
+ }[];
357
+ taskCompletionScore: number;
358
+ priorityWeightedScore: number;
359
+ criticalTasksRemaining: number;
360
+ }, {
361
+ lastScoreUpdate: string;
362
+ taskCompletionScore: number;
363
+ priorityWeightedScore: number;
364
+ criticalTasksRemaining: number;
365
+ scoreHistory?: {
366
+ timestamp: string;
367
+ score: number;
368
+ trigger: string;
369
+ }[] | undefined;
370
+ }>;
371
+ knowledgeGraphSync: z.ZodObject<{
372
+ lastSync: z.ZodString;
373
+ linkedIntents: z.ZodArray<z.ZodString, "many">;
374
+ pendingUpdates: z.ZodDefault<z.ZodArray<z.ZodObject<{
375
+ taskId: z.ZodString;
376
+ updateType: z.ZodEnum<["status", "progress", "completion"]>;
377
+ timestamp: z.ZodString;
378
+ }, "strip", z.ZodTypeAny, {
379
+ timestamp: string;
380
+ taskId: string;
381
+ updateType: "status" | "progress" | "completion";
382
+ }, {
383
+ timestamp: string;
384
+ taskId: string;
385
+ updateType: "status" | "progress" | "completion";
386
+ }>, "many">>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ lastSync: string;
389
+ linkedIntents: string[];
390
+ pendingUpdates: {
391
+ timestamp: string;
392
+ taskId: string;
393
+ updateType: "status" | "progress" | "completion";
394
+ }[];
395
+ }, {
396
+ lastSync: string;
397
+ linkedIntents: string[];
398
+ pendingUpdates?: {
399
+ timestamp: string;
400
+ taskId: string;
401
+ updateType: "status" | "progress" | "completion";
402
+ }[] | undefined;
403
+ }>;
404
+ automationRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
405
+ id: z.ZodString;
406
+ name: z.ZodString;
407
+ trigger: z.ZodEnum<["task_completed", "all_dependencies_met", "score_threshold", "time_based"]>;
408
+ conditions: z.ZodRecord<z.ZodString, z.ZodAny>;
409
+ actions: z.ZodArray<z.ZodObject<{
410
+ type: z.ZodEnum<["complete_task", "create_task", "update_status", "notify", "update_score"]>;
411
+ parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ type: "complete_task" | "create_task" | "update_status" | "notify" | "update_score";
414
+ parameters: Record<string, any>;
415
+ }, {
416
+ type: "complete_task" | "create_task" | "update_status" | "notify" | "update_score";
417
+ parameters: Record<string, any>;
418
+ }>, "many">;
419
+ }, "strip", z.ZodTypeAny, {
420
+ id: string;
421
+ name: string;
422
+ trigger: "task_completed" | "all_dependencies_met" | "score_threshold" | "time_based";
423
+ conditions: Record<string, any>;
424
+ actions: {
425
+ type: "complete_task" | "create_task" | "update_status" | "notify" | "update_score";
426
+ parameters: Record<string, any>;
427
+ }[];
428
+ }, {
429
+ id: string;
430
+ name: string;
431
+ trigger: "task_completed" | "all_dependencies_met" | "score_threshold" | "time_based";
432
+ conditions: Record<string, any>;
433
+ actions: {
434
+ type: "complete_task" | "create_task" | "update_status" | "notify" | "update_score";
435
+ parameters: Record<string, any>;
436
+ }[];
437
+ }>, "many">>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ metadata: {
440
+ lastUpdated: string;
441
+ totalTasks: number;
442
+ completedTasks: number;
443
+ autoSyncEnabled: boolean;
444
+ projectName?: string | undefined;
445
+ lastSyncToMarkdown?: string | undefined;
446
+ lastGitPush?: string | undefined;
447
+ lastPushFiles?: string[] | undefined;
448
+ };
449
+ version: string;
450
+ tasks: Record<string, {
451
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
452
+ title: string;
453
+ tags: string[];
454
+ version: number;
455
+ id: string;
456
+ priority: "medium" | "low" | "high" | "critical";
457
+ dependencies: string[];
458
+ lastModifiedBy: "tool" | "human" | "adr_generator" | "knowledge_graph";
459
+ createdAt: string;
460
+ updatedAt: string;
461
+ subtasks: string[];
462
+ blockedBy: string[];
463
+ linkedAdrs: string[];
464
+ adrGeneratedTask: boolean;
465
+ toolExecutions: string[];
466
+ scoreWeight: number;
467
+ scoreCategory: "task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality";
468
+ progressPercentage: number;
469
+ autoComplete: boolean;
470
+ changeLog: {
471
+ timestamp: string;
472
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
473
+ details: string;
474
+ modifiedBy: string;
475
+ }[];
476
+ category?: string | undefined;
477
+ description?: string | undefined;
478
+ assignee?: string | undefined;
479
+ dueDate?: string | undefined;
480
+ intentId?: string | undefined;
481
+ completedAt?: string | undefined;
482
+ parentTaskId?: string | undefined;
483
+ estimatedHours?: number | undefined;
484
+ actualHours?: number | undefined;
485
+ notes?: string | undefined;
486
+ completionCriteria?: string | undefined;
487
+ }>;
488
+ sections: {
489
+ title: string;
490
+ id: string;
491
+ order: number;
492
+ collapsed: boolean;
493
+ tasks: string[];
494
+ metadata?: Record<string, any> | undefined;
495
+ description?: string | undefined;
496
+ }[];
497
+ scoringSync: {
498
+ lastScoreUpdate: string;
499
+ scoreHistory: {
500
+ timestamp: string;
501
+ score: number;
502
+ trigger: string;
503
+ }[];
504
+ taskCompletionScore: number;
505
+ priorityWeightedScore: number;
506
+ criticalTasksRemaining: number;
507
+ };
508
+ knowledgeGraphSync: {
509
+ lastSync: string;
510
+ linkedIntents: string[];
511
+ pendingUpdates: {
512
+ timestamp: string;
513
+ taskId: string;
514
+ updateType: "status" | "progress" | "completion";
515
+ }[];
516
+ };
517
+ automationRules: {
518
+ id: string;
519
+ name: string;
520
+ trigger: "task_completed" | "all_dependencies_met" | "score_threshold" | "time_based";
521
+ conditions: Record<string, any>;
522
+ actions: {
523
+ type: "complete_task" | "create_task" | "update_status" | "notify" | "update_score";
524
+ parameters: Record<string, any>;
525
+ }[];
526
+ }[];
527
+ }, {
528
+ metadata: {
529
+ lastUpdated: string;
530
+ totalTasks: number;
531
+ completedTasks: number;
532
+ projectName?: string | undefined;
533
+ lastSyncToMarkdown?: string | undefined;
534
+ autoSyncEnabled?: boolean | undefined;
535
+ lastGitPush?: string | undefined;
536
+ lastPushFiles?: string[] | undefined;
537
+ };
538
+ tasks: Record<string, {
539
+ status: "pending" | "completed" | "in_progress" | "blocked" | "cancelled";
540
+ title: string;
541
+ id: string;
542
+ priority: "medium" | "low" | "high" | "critical";
543
+ createdAt: string;
544
+ updatedAt: string;
545
+ category?: string | undefined;
546
+ tags?: string[] | undefined;
547
+ version?: number | undefined;
548
+ description?: string | undefined;
549
+ assignee?: string | undefined;
550
+ dueDate?: string | undefined;
551
+ dependencies?: string[] | undefined;
552
+ intentId?: string | undefined;
553
+ lastModifiedBy?: "tool" | "human" | "adr_generator" | "knowledge_graph" | undefined;
554
+ completedAt?: string | undefined;
555
+ parentTaskId?: string | undefined;
556
+ subtasks?: string[] | undefined;
557
+ blockedBy?: string[] | undefined;
558
+ linkedAdrs?: string[] | undefined;
559
+ adrGeneratedTask?: boolean | undefined;
560
+ toolExecutions?: string[] | undefined;
561
+ scoreWeight?: number | undefined;
562
+ scoreCategory?: "task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality" | undefined;
563
+ estimatedHours?: number | undefined;
564
+ actualHours?: number | undefined;
565
+ progressPercentage?: number | undefined;
566
+ notes?: string | undefined;
567
+ autoComplete?: boolean | undefined;
568
+ completionCriteria?: string | undefined;
569
+ changeLog?: {
570
+ timestamp: string;
571
+ action: "completed" | "blocked" | "created" | "cancelled" | "updated" | "moved";
572
+ details: string;
573
+ modifiedBy: string;
574
+ }[] | undefined;
575
+ }>;
576
+ sections: {
577
+ title: string;
578
+ id: string;
579
+ order: number;
580
+ tasks: string[];
581
+ metadata?: Record<string, any> | undefined;
582
+ description?: string | undefined;
583
+ collapsed?: boolean | undefined;
584
+ }[];
585
+ scoringSync: {
586
+ lastScoreUpdate: string;
587
+ taskCompletionScore: number;
588
+ priorityWeightedScore: number;
589
+ criticalTasksRemaining: number;
590
+ scoreHistory?: {
591
+ timestamp: string;
592
+ score: number;
593
+ trigger: string;
594
+ }[] | undefined;
595
+ };
596
+ knowledgeGraphSync: {
597
+ lastSync: string;
598
+ linkedIntents: string[];
599
+ pendingUpdates?: {
600
+ timestamp: string;
601
+ taskId: string;
602
+ updateType: "status" | "progress" | "completion";
603
+ }[] | undefined;
604
+ };
605
+ version?: string | undefined;
606
+ automationRules?: {
607
+ id: string;
608
+ name: string;
609
+ trigger: "task_completed" | "all_dependencies_met" | "score_threshold" | "time_based";
610
+ conditions: Record<string, any>;
611
+ actions: {
612
+ type: "complete_task" | "create_task" | "update_status" | "notify" | "update_score";
613
+ parameters: Record<string, any>;
614
+ }[];
615
+ }[] | undefined;
616
+ }>;
617
+ export type TodoTask = z.infer<typeof TodoTaskSchema>;
618
+ export type TodoSection = z.infer<typeof TodoSectionSchema>;
619
+ export type TodoJsonData = z.infer<typeof TodoJsonDataSchema>;
620
+ export interface TaskUpdateOperation {
621
+ taskId: string;
622
+ updates: Partial<TodoTask>;
623
+ reason: string;
624
+ triggeredBy: 'human' | 'tool' | 'automation';
625
+ }
626
+ export interface TaskMovementOperation {
627
+ taskId: string;
628
+ fromSectionId: string;
629
+ toSectionId: string;
630
+ newIndex?: number;
631
+ reason: string;
632
+ }
633
+ export interface AutoCompletionRule {
634
+ taskId: string;
635
+ criteria: {
636
+ allDependenciesCompleted?: boolean;
637
+ scoreThreshold?: number;
638
+ timeElapsed?: number;
639
+ externalTrigger?: string;
640
+ };
641
+ action: 'complete' | 'move_to_section' | 'update_priority';
642
+ }
643
+ export interface TodoScoreMetrics {
644
+ totalTasks: number;
645
+ completedTasks: number;
646
+ completionPercentage: number;
647
+ priorityWeightedScore: number;
648
+ criticalTasksRemaining: number;
649
+ blockedTasksCount: number;
650
+ averageTaskAge: number;
651
+ velocityMetrics: {
652
+ tasksCompletedLastWeek: number;
653
+ averageCompletionTime: number;
654
+ };
655
+ }
656
+ export interface TodoKnowledgeGraphLink {
657
+ taskId: string;
658
+ intentId: string;
659
+ linkType: 'generated_from' | 'contributes_to' | 'blocks' | 'depends_on';
660
+ confidence: number;
661
+ lastUpdated: string;
662
+ }
663
+ //# sourceMappingURL=todo-json-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-json-schemas.d.ts","sourceRoot":"","sources":["../../../src/types/todo-json-schemas.ts"],"names":[],"mappings":"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"}