mcp-adr-analysis-server 2.0.9 → 2.0.11

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 (90) hide show
  1. package/README.md +1 -1
  2. package/dist/src/index.d.ts +8 -1
  3. package/dist/src/index.d.ts.map +1 -1
  4. package/dist/src/index.js +573 -348
  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/resources/index.d.ts.map +1 -1
  10. package/dist/src/resources/index.js +71 -1
  11. package/dist/src/resources/index.js.map +1 -1
  12. package/dist/src/tools/adr-suggestion-tool.d.ts +16 -0
  13. package/dist/src/tools/adr-suggestion-tool.d.ts.map +1 -1
  14. package/dist/src/tools/adr-suggestion-tool.js +55 -2
  15. package/dist/src/tools/adr-suggestion-tool.js.map +1 -1
  16. package/dist/src/tools/smart-git-push-tool.d.ts +21 -1
  17. package/dist/src/tools/smart-git-push-tool.d.ts.map +1 -1
  18. package/dist/src/tools/smart-git-push-tool.js +181 -28
  19. package/dist/src/tools/smart-git-push-tool.js.map +1 -1
  20. package/dist/src/tools/smart-score-tool.d.ts +173 -0
  21. package/dist/src/tools/smart-score-tool.d.ts.map +1 -0
  22. package/dist/src/tools/smart-score-tool.js +681 -0
  23. package/dist/src/tools/smart-score-tool.js.map +1 -0
  24. package/dist/src/tools/todo-management-tool-v2.d.ts +329 -0
  25. package/dist/src/tools/todo-management-tool-v2.d.ts.map +1 -0
  26. package/dist/src/tools/todo-management-tool-v2.js +644 -0
  27. package/dist/src/tools/todo-management-tool-v2.js.map +1 -0
  28. package/dist/src/tools/tool-chain-orchestrator.d.ts +126 -0
  29. package/dist/src/tools/tool-chain-orchestrator.d.ts.map +1 -0
  30. package/dist/src/tools/tool-chain-orchestrator.js +550 -0
  31. package/dist/src/tools/tool-chain-orchestrator.js.map +1 -0
  32. package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts +150 -0
  33. package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts.map +1 -0
  34. package/dist/src/tools/troubleshoot-guided-workflow-tool.js +520 -0
  35. package/dist/src/tools/troubleshoot-guided-workflow-tool.js.map +1 -0
  36. package/dist/src/types/conversation-context.d.ts +6 -0
  37. package/dist/src/types/conversation-context.d.ts.map +1 -1
  38. package/dist/src/types/conversation-context.js +9 -1
  39. package/dist/src/types/conversation-context.js.map +1 -1
  40. package/dist/src/types/knowledge-graph-schemas.d.ts +773 -0
  41. package/dist/src/types/knowledge-graph-schemas.d.ts.map +1 -0
  42. package/dist/src/types/knowledge-graph-schemas.js +87 -0
  43. package/dist/src/types/knowledge-graph-schemas.js.map +1 -0
  44. package/dist/src/types/todo-json-schemas.d.ts +663 -0
  45. package/dist/src/types/todo-json-schemas.d.ts.map +1 -0
  46. package/dist/src/types/todo-json-schemas.js +113 -0
  47. package/dist/src/types/todo-json-schemas.js.map +1 -0
  48. package/dist/src/utils/chain-of-thought-template.d.ts.map +1 -1
  49. package/dist/src/utils/chain-of-thought-template.js.map +1 -1
  50. package/dist/src/utils/json-safe.d.ts +38 -0
  51. package/dist/src/utils/json-safe.d.ts.map +1 -0
  52. package/dist/src/utils/json-safe.js +86 -0
  53. package/dist/src/utils/json-safe.js.map +1 -0
  54. package/dist/src/utils/knowledge-graph-manager.d.ts +65 -0
  55. package/dist/src/utils/knowledge-graph-manager.d.ts.map +1 -0
  56. package/dist/src/utils/knowledge-graph-manager.js +358 -0
  57. package/dist/src/utils/knowledge-graph-manager.js.map +1 -0
  58. package/dist/src/utils/mcp-response-validator.d.ts +30 -0
  59. package/dist/src/utils/mcp-response-validator.d.ts.map +1 -0
  60. package/dist/src/utils/mcp-response-validator.js +197 -0
  61. package/dist/src/utils/mcp-response-validator.js.map +1 -0
  62. package/dist/src/utils/project-health-scoring.d.ts +177 -0
  63. package/dist/src/utils/project-health-scoring.d.ts.map +1 -0
  64. package/dist/src/utils/project-health-scoring.js +370 -0
  65. package/dist/src/utils/project-health-scoring.js.map +1 -0
  66. package/dist/src/utils/release-readiness-detector.d.ts +2 -0
  67. package/dist/src/utils/release-readiness-detector.d.ts.map +1 -1
  68. package/dist/src/utils/release-readiness-detector.js +2 -0
  69. package/dist/src/utils/release-readiness-detector.js.map +1 -1
  70. package/dist/src/utils/todo-file-watcher.d.ts +26 -0
  71. package/dist/src/utils/todo-file-watcher.d.ts.map +1 -0
  72. package/dist/src/utils/todo-file-watcher.js +163 -0
  73. package/dist/src/utils/todo-file-watcher.js.map +1 -0
  74. package/dist/src/utils/todo-json-manager.d.ts +71 -0
  75. package/dist/src/utils/todo-json-manager.d.ts.map +1 -0
  76. package/dist/src/utils/todo-json-manager.js +394 -0
  77. package/dist/src/utils/todo-json-manager.js.map +1 -0
  78. package/dist/src/utils/todo-markdown-converter.d.ts +16 -0
  79. package/dist/src/utils/todo-markdown-converter.d.ts.map +1 -0
  80. package/dist/src/utils/todo-markdown-converter.js +362 -0
  81. package/dist/src/utils/todo-markdown-converter.js.map +1 -0
  82. package/dist/src/utils/todo-migration.d.ts +47 -0
  83. package/dist/src/utils/todo-migration.d.ts.map +1 -0
  84. package/dist/src/utils/todo-migration.js +261 -0
  85. package/dist/src/utils/todo-migration.js.map +1 -0
  86. package/package.json +1 -1
  87. package/dist/src/tools/todo-management-tool.d.ts +0 -166
  88. package/dist/src/tools/todo-management-tool.d.ts.map +0 -1
  89. package/dist/src/tools/todo-management-tool.js +0 -472
  90. package/dist/src/tools/todo-management-tool.js.map +0 -1
@@ -0,0 +1,773 @@
1
+ import { z } from 'zod';
2
+ export declare const ToolExecutionSnapshotSchema: z.ZodObject<{
3
+ toolName: z.ZodString;
4
+ parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
5
+ result: z.ZodRecord<z.ZodString, z.ZodAny>;
6
+ todoTasksCreated: z.ZodArray<z.ZodString, "many">;
7
+ todoTasksModified: z.ZodArray<z.ZodString, "many">;
8
+ executionTime: z.ZodString;
9
+ success: z.ZodBoolean;
10
+ error: z.ZodOptional<z.ZodString>;
11
+ scoreImpact: z.ZodOptional<z.ZodObject<{
12
+ beforeScore: z.ZodOptional<z.ZodNumber>;
13
+ afterScore: z.ZodOptional<z.ZodNumber>;
14
+ componentImpacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
15
+ scoreConfidence: z.ZodOptional<z.ZodNumber>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ beforeScore?: number | undefined;
18
+ afterScore?: number | undefined;
19
+ componentImpacts?: Record<string, number> | undefined;
20
+ scoreConfidence?: number | undefined;
21
+ }, {
22
+ beforeScore?: number | undefined;
23
+ afterScore?: number | undefined;
24
+ componentImpacts?: Record<string, number> | undefined;
25
+ scoreConfidence?: number | undefined;
26
+ }>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ success: boolean;
29
+ result: Record<string, any>;
30
+ executionTime: string;
31
+ toolName: string;
32
+ parameters: Record<string, any>;
33
+ todoTasksCreated: string[];
34
+ todoTasksModified: string[];
35
+ error?: string | undefined;
36
+ scoreImpact?: {
37
+ beforeScore?: number | undefined;
38
+ afterScore?: number | undefined;
39
+ componentImpacts?: Record<string, number> | undefined;
40
+ scoreConfidence?: number | undefined;
41
+ } | undefined;
42
+ }, {
43
+ success: boolean;
44
+ result: Record<string, any>;
45
+ executionTime: string;
46
+ toolName: string;
47
+ parameters: Record<string, any>;
48
+ todoTasksCreated: string[];
49
+ todoTasksModified: string[];
50
+ error?: string | undefined;
51
+ scoreImpact?: {
52
+ beforeScore?: number | undefined;
53
+ afterScore?: number | undefined;
54
+ componentImpacts?: Record<string, number> | undefined;
55
+ scoreConfidence?: number | undefined;
56
+ } | undefined;
57
+ }>;
58
+ export declare const IntentSnapshotSchema: z.ZodObject<{
59
+ intentId: z.ZodString;
60
+ humanRequest: z.ZodString;
61
+ parsedGoals: z.ZodArray<z.ZodString, "many">;
62
+ priority: z.ZodEnum<["high", "medium", "low"]>;
63
+ timestamp: z.ZodString;
64
+ toolChain: z.ZodArray<z.ZodObject<{
65
+ toolName: z.ZodString;
66
+ parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
67
+ result: z.ZodRecord<z.ZodString, z.ZodAny>;
68
+ todoTasksCreated: z.ZodArray<z.ZodString, "many">;
69
+ todoTasksModified: z.ZodArray<z.ZodString, "many">;
70
+ executionTime: z.ZodString;
71
+ success: z.ZodBoolean;
72
+ error: z.ZodOptional<z.ZodString>;
73
+ scoreImpact: z.ZodOptional<z.ZodObject<{
74
+ beforeScore: z.ZodOptional<z.ZodNumber>;
75
+ afterScore: z.ZodOptional<z.ZodNumber>;
76
+ componentImpacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
77
+ scoreConfidence: z.ZodOptional<z.ZodNumber>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ beforeScore?: number | undefined;
80
+ afterScore?: number | undefined;
81
+ componentImpacts?: Record<string, number> | undefined;
82
+ scoreConfidence?: number | undefined;
83
+ }, {
84
+ beforeScore?: number | undefined;
85
+ afterScore?: number | undefined;
86
+ componentImpacts?: Record<string, number> | undefined;
87
+ scoreConfidence?: number | undefined;
88
+ }>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ success: boolean;
91
+ result: Record<string, any>;
92
+ executionTime: string;
93
+ toolName: string;
94
+ parameters: Record<string, any>;
95
+ todoTasksCreated: string[];
96
+ todoTasksModified: string[];
97
+ error?: string | undefined;
98
+ scoreImpact?: {
99
+ beforeScore?: number | undefined;
100
+ afterScore?: number | undefined;
101
+ componentImpacts?: Record<string, number> | undefined;
102
+ scoreConfidence?: number | undefined;
103
+ } | undefined;
104
+ }, {
105
+ success: boolean;
106
+ result: Record<string, any>;
107
+ executionTime: string;
108
+ toolName: string;
109
+ parameters: Record<string, any>;
110
+ todoTasksCreated: string[];
111
+ todoTasksModified: string[];
112
+ error?: string | undefined;
113
+ scoreImpact?: {
114
+ beforeScore?: number | undefined;
115
+ afterScore?: number | undefined;
116
+ componentImpacts?: Record<string, number> | undefined;
117
+ scoreConfidence?: number | undefined;
118
+ } | undefined;
119
+ }>, "many">;
120
+ currentStatus: z.ZodEnum<["planning", "executing", "completed", "failed"]>;
121
+ todoMdSnapshot: z.ZodString;
122
+ parentIntentId: z.ZodOptional<z.ZodString>;
123
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
124
+ scoreTracking: z.ZodOptional<z.ZodObject<{
125
+ initialScore: z.ZodOptional<z.ZodNumber>;
126
+ currentScore: z.ZodOptional<z.ZodNumber>;
127
+ targetScore: z.ZodOptional<z.ZodNumber>;
128
+ scoreProgress: z.ZodOptional<z.ZodNumber>;
129
+ componentScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
130
+ lastScoreUpdate: z.ZodOptional<z.ZodString>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ initialScore?: number | undefined;
133
+ currentScore?: number | undefined;
134
+ targetScore?: number | undefined;
135
+ scoreProgress?: number | undefined;
136
+ componentScores?: Record<string, number> | undefined;
137
+ lastScoreUpdate?: string | undefined;
138
+ }, {
139
+ initialScore?: number | undefined;
140
+ currentScore?: number | undefined;
141
+ targetScore?: number | undefined;
142
+ scoreProgress?: number | undefined;
143
+ componentScores?: Record<string, number> | undefined;
144
+ lastScoreUpdate?: string | undefined;
145
+ }>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ timestamp: string;
148
+ priority: "medium" | "low" | "high";
149
+ humanRequest: string;
150
+ intentId: string;
151
+ parsedGoals: string[];
152
+ toolChain: {
153
+ success: boolean;
154
+ result: Record<string, any>;
155
+ executionTime: string;
156
+ toolName: string;
157
+ parameters: Record<string, any>;
158
+ todoTasksCreated: string[];
159
+ todoTasksModified: string[];
160
+ error?: string | undefined;
161
+ scoreImpact?: {
162
+ beforeScore?: number | undefined;
163
+ afterScore?: number | undefined;
164
+ componentImpacts?: Record<string, number> | undefined;
165
+ scoreConfidence?: number | undefined;
166
+ } | undefined;
167
+ }[];
168
+ currentStatus: "completed" | "failed" | "planning" | "executing";
169
+ todoMdSnapshot: string;
170
+ tags?: string[] | undefined;
171
+ parentIntentId?: string | undefined;
172
+ scoreTracking?: {
173
+ initialScore?: number | undefined;
174
+ currentScore?: number | undefined;
175
+ targetScore?: number | undefined;
176
+ scoreProgress?: number | undefined;
177
+ componentScores?: Record<string, number> | undefined;
178
+ lastScoreUpdate?: string | undefined;
179
+ } | undefined;
180
+ }, {
181
+ timestamp: string;
182
+ priority: "medium" | "low" | "high";
183
+ humanRequest: string;
184
+ intentId: string;
185
+ parsedGoals: string[];
186
+ toolChain: {
187
+ success: boolean;
188
+ result: Record<string, any>;
189
+ executionTime: string;
190
+ toolName: string;
191
+ parameters: Record<string, any>;
192
+ todoTasksCreated: string[];
193
+ todoTasksModified: string[];
194
+ error?: string | undefined;
195
+ scoreImpact?: {
196
+ beforeScore?: number | undefined;
197
+ afterScore?: number | undefined;
198
+ componentImpacts?: Record<string, number> | undefined;
199
+ scoreConfidence?: number | undefined;
200
+ } | undefined;
201
+ }[];
202
+ currentStatus: "completed" | "failed" | "planning" | "executing";
203
+ todoMdSnapshot: string;
204
+ tags?: string[] | undefined;
205
+ parentIntentId?: string | undefined;
206
+ scoreTracking?: {
207
+ initialScore?: number | undefined;
208
+ currentScore?: number | undefined;
209
+ targetScore?: number | undefined;
210
+ scoreProgress?: number | undefined;
211
+ componentScores?: Record<string, number> | undefined;
212
+ lastScoreUpdate?: string | undefined;
213
+ } | undefined;
214
+ }>;
215
+ export declare const TodoSyncStateSchema: z.ZodObject<{
216
+ lastSyncTimestamp: z.ZodString;
217
+ todoMdHash: z.ZodString;
218
+ knowledgeGraphHash: z.ZodString;
219
+ syncStatus: z.ZodEnum<["synced", "pending", "conflict", "error"]>;
220
+ conflictDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
221
+ taskId: z.ZodString;
222
+ conflict: z.ZodString;
223
+ todoVersion: z.ZodString;
224
+ kgVersion: z.ZodString;
225
+ }, "strip", z.ZodTypeAny, {
226
+ conflict: string;
227
+ taskId: string;
228
+ todoVersion: string;
229
+ kgVersion: string;
230
+ }, {
231
+ conflict: string;
232
+ taskId: string;
233
+ todoVersion: string;
234
+ kgVersion: string;
235
+ }>, "many">>;
236
+ lastModifiedBy: z.ZodEnum<["human", "tool", "sync"]>;
237
+ version: z.ZodNumber;
238
+ }, "strip", z.ZodTypeAny, {
239
+ version: number;
240
+ lastSyncTimestamp: string;
241
+ todoMdHash: string;
242
+ knowledgeGraphHash: string;
243
+ syncStatus: "error" | "pending" | "synced" | "conflict";
244
+ lastModifiedBy: "tool" | "human" | "sync";
245
+ conflictDetails?: {
246
+ conflict: string;
247
+ taskId: string;
248
+ todoVersion: string;
249
+ kgVersion: string;
250
+ }[] | undefined;
251
+ }, {
252
+ version: number;
253
+ lastSyncTimestamp: string;
254
+ todoMdHash: string;
255
+ knowledgeGraphHash: string;
256
+ syncStatus: "error" | "pending" | "synced" | "conflict";
257
+ lastModifiedBy: "tool" | "human" | "sync";
258
+ conflictDetails?: {
259
+ conflict: string;
260
+ taskId: string;
261
+ todoVersion: string;
262
+ kgVersion: string;
263
+ }[] | undefined;
264
+ }>;
265
+ export declare const KnowledgeGraphSnapshotSchema: z.ZodObject<{
266
+ version: z.ZodString;
267
+ timestamp: z.ZodString;
268
+ intents: z.ZodArray<z.ZodObject<{
269
+ intentId: z.ZodString;
270
+ humanRequest: z.ZodString;
271
+ parsedGoals: z.ZodArray<z.ZodString, "many">;
272
+ priority: z.ZodEnum<["high", "medium", "low"]>;
273
+ timestamp: z.ZodString;
274
+ toolChain: z.ZodArray<z.ZodObject<{
275
+ toolName: z.ZodString;
276
+ parameters: z.ZodRecord<z.ZodString, z.ZodAny>;
277
+ result: z.ZodRecord<z.ZodString, z.ZodAny>;
278
+ todoTasksCreated: z.ZodArray<z.ZodString, "many">;
279
+ todoTasksModified: z.ZodArray<z.ZodString, "many">;
280
+ executionTime: z.ZodString;
281
+ success: z.ZodBoolean;
282
+ error: z.ZodOptional<z.ZodString>;
283
+ scoreImpact: z.ZodOptional<z.ZodObject<{
284
+ beforeScore: z.ZodOptional<z.ZodNumber>;
285
+ afterScore: z.ZodOptional<z.ZodNumber>;
286
+ componentImpacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
287
+ scoreConfidence: z.ZodOptional<z.ZodNumber>;
288
+ }, "strip", z.ZodTypeAny, {
289
+ beforeScore?: number | undefined;
290
+ afterScore?: number | undefined;
291
+ componentImpacts?: Record<string, number> | undefined;
292
+ scoreConfidence?: number | undefined;
293
+ }, {
294
+ beforeScore?: number | undefined;
295
+ afterScore?: number | undefined;
296
+ componentImpacts?: Record<string, number> | undefined;
297
+ scoreConfidence?: number | undefined;
298
+ }>>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ success: boolean;
301
+ result: Record<string, any>;
302
+ executionTime: string;
303
+ toolName: string;
304
+ parameters: Record<string, any>;
305
+ todoTasksCreated: string[];
306
+ todoTasksModified: string[];
307
+ error?: string | undefined;
308
+ scoreImpact?: {
309
+ beforeScore?: number | undefined;
310
+ afterScore?: number | undefined;
311
+ componentImpacts?: Record<string, number> | undefined;
312
+ scoreConfidence?: number | undefined;
313
+ } | undefined;
314
+ }, {
315
+ success: boolean;
316
+ result: Record<string, any>;
317
+ executionTime: string;
318
+ toolName: string;
319
+ parameters: Record<string, any>;
320
+ todoTasksCreated: string[];
321
+ todoTasksModified: string[];
322
+ error?: string | undefined;
323
+ scoreImpact?: {
324
+ beforeScore?: number | undefined;
325
+ afterScore?: number | undefined;
326
+ componentImpacts?: Record<string, number> | undefined;
327
+ scoreConfidence?: number | undefined;
328
+ } | undefined;
329
+ }>, "many">;
330
+ currentStatus: z.ZodEnum<["planning", "executing", "completed", "failed"]>;
331
+ todoMdSnapshot: z.ZodString;
332
+ parentIntentId: z.ZodOptional<z.ZodString>;
333
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
334
+ scoreTracking: z.ZodOptional<z.ZodObject<{
335
+ initialScore: z.ZodOptional<z.ZodNumber>;
336
+ currentScore: z.ZodOptional<z.ZodNumber>;
337
+ targetScore: z.ZodOptional<z.ZodNumber>;
338
+ scoreProgress: z.ZodOptional<z.ZodNumber>;
339
+ componentScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
340
+ lastScoreUpdate: z.ZodOptional<z.ZodString>;
341
+ }, "strip", z.ZodTypeAny, {
342
+ initialScore?: number | undefined;
343
+ currentScore?: number | undefined;
344
+ targetScore?: number | undefined;
345
+ scoreProgress?: number | undefined;
346
+ componentScores?: Record<string, number> | undefined;
347
+ lastScoreUpdate?: string | undefined;
348
+ }, {
349
+ initialScore?: number | undefined;
350
+ currentScore?: number | undefined;
351
+ targetScore?: number | undefined;
352
+ scoreProgress?: number | undefined;
353
+ componentScores?: Record<string, number> | undefined;
354
+ lastScoreUpdate?: string | undefined;
355
+ }>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ timestamp: string;
358
+ priority: "medium" | "low" | "high";
359
+ humanRequest: string;
360
+ intentId: string;
361
+ parsedGoals: string[];
362
+ toolChain: {
363
+ success: boolean;
364
+ result: Record<string, any>;
365
+ executionTime: string;
366
+ toolName: string;
367
+ parameters: Record<string, any>;
368
+ todoTasksCreated: string[];
369
+ todoTasksModified: string[];
370
+ error?: string | undefined;
371
+ scoreImpact?: {
372
+ beforeScore?: number | undefined;
373
+ afterScore?: number | undefined;
374
+ componentImpacts?: Record<string, number> | undefined;
375
+ scoreConfidence?: number | undefined;
376
+ } | undefined;
377
+ }[];
378
+ currentStatus: "completed" | "failed" | "planning" | "executing";
379
+ todoMdSnapshot: string;
380
+ tags?: string[] | undefined;
381
+ parentIntentId?: string | undefined;
382
+ scoreTracking?: {
383
+ initialScore?: number | undefined;
384
+ currentScore?: number | undefined;
385
+ targetScore?: number | undefined;
386
+ scoreProgress?: number | undefined;
387
+ componentScores?: Record<string, number> | undefined;
388
+ lastScoreUpdate?: string | undefined;
389
+ } | undefined;
390
+ }, {
391
+ timestamp: string;
392
+ priority: "medium" | "low" | "high";
393
+ humanRequest: string;
394
+ intentId: string;
395
+ parsedGoals: string[];
396
+ toolChain: {
397
+ success: boolean;
398
+ result: Record<string, any>;
399
+ executionTime: string;
400
+ toolName: string;
401
+ parameters: Record<string, any>;
402
+ todoTasksCreated: string[];
403
+ todoTasksModified: string[];
404
+ error?: string | undefined;
405
+ scoreImpact?: {
406
+ beforeScore?: number | undefined;
407
+ afterScore?: number | undefined;
408
+ componentImpacts?: Record<string, number> | undefined;
409
+ scoreConfidence?: number | undefined;
410
+ } | undefined;
411
+ }[];
412
+ currentStatus: "completed" | "failed" | "planning" | "executing";
413
+ todoMdSnapshot: string;
414
+ tags?: string[] | undefined;
415
+ parentIntentId?: string | undefined;
416
+ scoreTracking?: {
417
+ initialScore?: number | undefined;
418
+ currentScore?: number | undefined;
419
+ targetScore?: number | undefined;
420
+ scoreProgress?: number | undefined;
421
+ componentScores?: Record<string, number> | undefined;
422
+ lastScoreUpdate?: string | undefined;
423
+ } | undefined;
424
+ }>, "many">;
425
+ todoSyncState: z.ZodObject<{
426
+ lastSyncTimestamp: z.ZodString;
427
+ todoMdHash: z.ZodString;
428
+ knowledgeGraphHash: z.ZodString;
429
+ syncStatus: z.ZodEnum<["synced", "pending", "conflict", "error"]>;
430
+ conflictDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
431
+ taskId: z.ZodString;
432
+ conflict: z.ZodString;
433
+ todoVersion: z.ZodString;
434
+ kgVersion: z.ZodString;
435
+ }, "strip", z.ZodTypeAny, {
436
+ conflict: string;
437
+ taskId: string;
438
+ todoVersion: string;
439
+ kgVersion: string;
440
+ }, {
441
+ conflict: string;
442
+ taskId: string;
443
+ todoVersion: string;
444
+ kgVersion: string;
445
+ }>, "many">>;
446
+ lastModifiedBy: z.ZodEnum<["human", "tool", "sync"]>;
447
+ version: z.ZodNumber;
448
+ }, "strip", z.ZodTypeAny, {
449
+ version: number;
450
+ lastSyncTimestamp: string;
451
+ todoMdHash: string;
452
+ knowledgeGraphHash: string;
453
+ syncStatus: "error" | "pending" | "synced" | "conflict";
454
+ lastModifiedBy: "tool" | "human" | "sync";
455
+ conflictDetails?: {
456
+ conflict: string;
457
+ taskId: string;
458
+ todoVersion: string;
459
+ kgVersion: string;
460
+ }[] | undefined;
461
+ }, {
462
+ version: number;
463
+ lastSyncTimestamp: string;
464
+ todoMdHash: string;
465
+ knowledgeGraphHash: string;
466
+ syncStatus: "error" | "pending" | "synced" | "conflict";
467
+ lastModifiedBy: "tool" | "human" | "sync";
468
+ conflictDetails?: {
469
+ conflict: string;
470
+ taskId: string;
471
+ todoVersion: string;
472
+ kgVersion: string;
473
+ }[] | undefined;
474
+ }>;
475
+ analytics: z.ZodObject<{
476
+ totalIntents: z.ZodNumber;
477
+ completedIntents: z.ZodNumber;
478
+ activeIntents: z.ZodNumber;
479
+ averageGoalCompletion: z.ZodNumber;
480
+ mostUsedTools: z.ZodArray<z.ZodObject<{
481
+ toolName: z.ZodString;
482
+ usageCount: z.ZodNumber;
483
+ }, "strip", z.ZodTypeAny, {
484
+ toolName: string;
485
+ usageCount: number;
486
+ }, {
487
+ toolName: string;
488
+ usageCount: number;
489
+ }>, "many">;
490
+ successfulPatterns: z.ZodArray<z.ZodObject<{
491
+ pattern: z.ZodString;
492
+ successRate: z.ZodNumber;
493
+ examples: z.ZodArray<z.ZodString, "many">;
494
+ }, "strip", z.ZodTypeAny, {
495
+ successRate: number;
496
+ pattern: string;
497
+ examples: string[];
498
+ }, {
499
+ successRate: number;
500
+ pattern: string;
501
+ examples: string[];
502
+ }>, "many">;
503
+ }, "strip", z.ZodTypeAny, {
504
+ totalIntents: number;
505
+ completedIntents: number;
506
+ activeIntents: number;
507
+ averageGoalCompletion: number;
508
+ mostUsedTools: {
509
+ toolName: string;
510
+ usageCount: number;
511
+ }[];
512
+ successfulPatterns: {
513
+ successRate: number;
514
+ pattern: string;
515
+ examples: string[];
516
+ }[];
517
+ }, {
518
+ totalIntents: number;
519
+ completedIntents: number;
520
+ activeIntents: number;
521
+ averageGoalCompletion: number;
522
+ mostUsedTools: {
523
+ toolName: string;
524
+ usageCount: number;
525
+ }[];
526
+ successfulPatterns: {
527
+ successRate: number;
528
+ pattern: string;
529
+ examples: string[];
530
+ }[];
531
+ }>;
532
+ scoreHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
533
+ timestamp: z.ZodString;
534
+ intentId: z.ZodOptional<z.ZodString>;
535
+ overallScore: z.ZodNumber;
536
+ componentScores: z.ZodObject<{
537
+ taskCompletion: z.ZodNumber;
538
+ deploymentReadiness: z.ZodNumber;
539
+ architectureCompliance: z.ZodNumber;
540
+ securityPosture: z.ZodNumber;
541
+ codeQuality: z.ZodNumber;
542
+ }, "strip", z.ZodTypeAny, {
543
+ taskCompletion: number;
544
+ deploymentReadiness: number;
545
+ architectureCompliance: number;
546
+ securityPosture: number;
547
+ codeQuality: number;
548
+ }, {
549
+ taskCompletion: number;
550
+ deploymentReadiness: number;
551
+ architectureCompliance: number;
552
+ securityPosture: number;
553
+ codeQuality: number;
554
+ }>;
555
+ triggerEvent: z.ZodString;
556
+ confidence: z.ZodNumber;
557
+ }, "strip", z.ZodTypeAny, {
558
+ confidence: number;
559
+ timestamp: string;
560
+ overallScore: number;
561
+ componentScores: {
562
+ taskCompletion: number;
563
+ deploymentReadiness: number;
564
+ architectureCompliance: number;
565
+ securityPosture: number;
566
+ codeQuality: number;
567
+ };
568
+ triggerEvent: string;
569
+ intentId?: string | undefined;
570
+ }, {
571
+ confidence: number;
572
+ timestamp: string;
573
+ overallScore: number;
574
+ componentScores: {
575
+ taskCompletion: number;
576
+ deploymentReadiness: number;
577
+ architectureCompliance: number;
578
+ securityPosture: number;
579
+ codeQuality: number;
580
+ };
581
+ triggerEvent: string;
582
+ intentId?: string | undefined;
583
+ }>, "many">>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ timestamp: string;
586
+ version: string;
587
+ intents: {
588
+ timestamp: string;
589
+ priority: "medium" | "low" | "high";
590
+ humanRequest: string;
591
+ intentId: string;
592
+ parsedGoals: string[];
593
+ toolChain: {
594
+ success: boolean;
595
+ result: Record<string, any>;
596
+ executionTime: string;
597
+ toolName: string;
598
+ parameters: Record<string, any>;
599
+ todoTasksCreated: string[];
600
+ todoTasksModified: string[];
601
+ error?: string | undefined;
602
+ scoreImpact?: {
603
+ beforeScore?: number | undefined;
604
+ afterScore?: number | undefined;
605
+ componentImpacts?: Record<string, number> | undefined;
606
+ scoreConfidence?: number | undefined;
607
+ } | undefined;
608
+ }[];
609
+ currentStatus: "completed" | "failed" | "planning" | "executing";
610
+ todoMdSnapshot: string;
611
+ tags?: string[] | undefined;
612
+ parentIntentId?: string | undefined;
613
+ scoreTracking?: {
614
+ initialScore?: number | undefined;
615
+ currentScore?: number | undefined;
616
+ targetScore?: number | undefined;
617
+ scoreProgress?: number | undefined;
618
+ componentScores?: Record<string, number> | undefined;
619
+ lastScoreUpdate?: string | undefined;
620
+ } | undefined;
621
+ }[];
622
+ todoSyncState: {
623
+ version: number;
624
+ lastSyncTimestamp: string;
625
+ todoMdHash: string;
626
+ knowledgeGraphHash: string;
627
+ syncStatus: "error" | "pending" | "synced" | "conflict";
628
+ lastModifiedBy: "tool" | "human" | "sync";
629
+ conflictDetails?: {
630
+ conflict: string;
631
+ taskId: string;
632
+ todoVersion: string;
633
+ kgVersion: string;
634
+ }[] | undefined;
635
+ };
636
+ analytics: {
637
+ totalIntents: number;
638
+ completedIntents: number;
639
+ activeIntents: number;
640
+ averageGoalCompletion: number;
641
+ mostUsedTools: {
642
+ toolName: string;
643
+ usageCount: number;
644
+ }[];
645
+ successfulPatterns: {
646
+ successRate: number;
647
+ pattern: string;
648
+ examples: string[];
649
+ }[];
650
+ };
651
+ scoreHistory?: {
652
+ confidence: number;
653
+ timestamp: string;
654
+ overallScore: number;
655
+ componentScores: {
656
+ taskCompletion: number;
657
+ deploymentReadiness: number;
658
+ architectureCompliance: number;
659
+ securityPosture: number;
660
+ codeQuality: number;
661
+ };
662
+ triggerEvent: string;
663
+ intentId?: string | undefined;
664
+ }[] | undefined;
665
+ }, {
666
+ timestamp: string;
667
+ version: string;
668
+ intents: {
669
+ timestamp: string;
670
+ priority: "medium" | "low" | "high";
671
+ humanRequest: string;
672
+ intentId: string;
673
+ parsedGoals: string[];
674
+ toolChain: {
675
+ success: boolean;
676
+ result: Record<string, any>;
677
+ executionTime: string;
678
+ toolName: string;
679
+ parameters: Record<string, any>;
680
+ todoTasksCreated: string[];
681
+ todoTasksModified: string[];
682
+ error?: string | undefined;
683
+ scoreImpact?: {
684
+ beforeScore?: number | undefined;
685
+ afterScore?: number | undefined;
686
+ componentImpacts?: Record<string, number> | undefined;
687
+ scoreConfidence?: number | undefined;
688
+ } | undefined;
689
+ }[];
690
+ currentStatus: "completed" | "failed" | "planning" | "executing";
691
+ todoMdSnapshot: string;
692
+ tags?: string[] | undefined;
693
+ parentIntentId?: string | undefined;
694
+ scoreTracking?: {
695
+ initialScore?: number | undefined;
696
+ currentScore?: number | undefined;
697
+ targetScore?: number | undefined;
698
+ scoreProgress?: number | undefined;
699
+ componentScores?: Record<string, number> | undefined;
700
+ lastScoreUpdate?: string | undefined;
701
+ } | undefined;
702
+ }[];
703
+ todoSyncState: {
704
+ version: number;
705
+ lastSyncTimestamp: string;
706
+ todoMdHash: string;
707
+ knowledgeGraphHash: string;
708
+ syncStatus: "error" | "pending" | "synced" | "conflict";
709
+ lastModifiedBy: "tool" | "human" | "sync";
710
+ conflictDetails?: {
711
+ conflict: string;
712
+ taskId: string;
713
+ todoVersion: string;
714
+ kgVersion: string;
715
+ }[] | undefined;
716
+ };
717
+ analytics: {
718
+ totalIntents: number;
719
+ completedIntents: number;
720
+ activeIntents: number;
721
+ averageGoalCompletion: number;
722
+ mostUsedTools: {
723
+ toolName: string;
724
+ usageCount: number;
725
+ }[];
726
+ successfulPatterns: {
727
+ successRate: number;
728
+ pattern: string;
729
+ examples: string[];
730
+ }[];
731
+ };
732
+ scoreHistory?: {
733
+ confidence: number;
734
+ timestamp: string;
735
+ overallScore: number;
736
+ componentScores: {
737
+ taskCompletion: number;
738
+ deploymentReadiness: number;
739
+ architectureCompliance: number;
740
+ securityPosture: number;
741
+ codeQuality: number;
742
+ };
743
+ triggerEvent: string;
744
+ intentId?: string | undefined;
745
+ }[] | undefined;
746
+ }>;
747
+ export type ToolExecutionSnapshot = z.infer<typeof ToolExecutionSnapshotSchema>;
748
+ export type IntentSnapshot = z.infer<typeof IntentSnapshotSchema>;
749
+ export type TodoSyncState = z.infer<typeof TodoSyncStateSchema>;
750
+ export type KnowledgeGraphSnapshot = z.infer<typeof KnowledgeGraphSnapshotSchema>;
751
+ export interface IntentGoal {
752
+ id: string;
753
+ description: string;
754
+ status: 'pending' | 'in_progress' | 'completed' | 'blocked';
755
+ completionPercentage: number;
756
+ linkedTasks: string[];
757
+ linkedAdrs: string[];
758
+ }
759
+ export interface ToolChainPattern {
760
+ id: string;
761
+ name: string;
762
+ tools: string[];
763
+ successRate: number;
764
+ averageExecutionTime: number;
765
+ commonGoalTypes: string[];
766
+ lastUsed: string;
767
+ }
768
+ export interface ConflictResolutionStrategy {
769
+ type: 'timestamp' | 'manual' | 'merge' | 'preserve_human';
770
+ description: string;
771
+ autoResolve: boolean;
772
+ }
773
+ //# sourceMappingURL=knowledge-graph-schemas.d.ts.map