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.
- package/README.md +1 -1
- package/dist/src/index.d.ts +8 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +573 -348
- package/dist/src/index.js.map +1 -1
- package/dist/src/prompts/adr-suggestion-prompts.d.ts.map +1 -1
- package/dist/src/prompts/adr-suggestion-prompts.js +2 -0
- package/dist/src/prompts/adr-suggestion-prompts.js.map +1 -1
- package/dist/src/resources/index.d.ts.map +1 -1
- package/dist/src/resources/index.js +71 -1
- package/dist/src/resources/index.js.map +1 -1
- package/dist/src/tools/adr-suggestion-tool.d.ts +16 -0
- package/dist/src/tools/adr-suggestion-tool.d.ts.map +1 -1
- package/dist/src/tools/adr-suggestion-tool.js +55 -2
- package/dist/src/tools/adr-suggestion-tool.js.map +1 -1
- package/dist/src/tools/smart-git-push-tool.d.ts +21 -1
- package/dist/src/tools/smart-git-push-tool.d.ts.map +1 -1
- package/dist/src/tools/smart-git-push-tool.js +181 -28
- package/dist/src/tools/smart-git-push-tool.js.map +1 -1
- package/dist/src/tools/smart-score-tool.d.ts +173 -0
- package/dist/src/tools/smart-score-tool.d.ts.map +1 -0
- package/dist/src/tools/smart-score-tool.js +681 -0
- package/dist/src/tools/smart-score-tool.js.map +1 -0
- package/dist/src/tools/todo-management-tool-v2.d.ts +329 -0
- package/dist/src/tools/todo-management-tool-v2.d.ts.map +1 -0
- package/dist/src/tools/todo-management-tool-v2.js +644 -0
- package/dist/src/tools/todo-management-tool-v2.js.map +1 -0
- package/dist/src/tools/tool-chain-orchestrator.d.ts +126 -0
- package/dist/src/tools/tool-chain-orchestrator.d.ts.map +1 -0
- package/dist/src/tools/tool-chain-orchestrator.js +550 -0
- package/dist/src/tools/tool-chain-orchestrator.js.map +1 -0
- package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts +150 -0
- package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts.map +1 -0
- package/dist/src/tools/troubleshoot-guided-workflow-tool.js +520 -0
- package/dist/src/tools/troubleshoot-guided-workflow-tool.js.map +1 -0
- package/dist/src/types/conversation-context.d.ts +6 -0
- package/dist/src/types/conversation-context.d.ts.map +1 -1
- package/dist/src/types/conversation-context.js +9 -1
- package/dist/src/types/conversation-context.js.map +1 -1
- package/dist/src/types/knowledge-graph-schemas.d.ts +773 -0
- package/dist/src/types/knowledge-graph-schemas.d.ts.map +1 -0
- package/dist/src/types/knowledge-graph-schemas.js +87 -0
- package/dist/src/types/knowledge-graph-schemas.js.map +1 -0
- package/dist/src/types/todo-json-schemas.d.ts +663 -0
- package/dist/src/types/todo-json-schemas.d.ts.map +1 -0
- package/dist/src/types/todo-json-schemas.js +113 -0
- package/dist/src/types/todo-json-schemas.js.map +1 -0
- package/dist/src/utils/chain-of-thought-template.d.ts.map +1 -1
- package/dist/src/utils/chain-of-thought-template.js.map +1 -1
- package/dist/src/utils/json-safe.d.ts +38 -0
- package/dist/src/utils/json-safe.d.ts.map +1 -0
- package/dist/src/utils/json-safe.js +86 -0
- package/dist/src/utils/json-safe.js.map +1 -0
- package/dist/src/utils/knowledge-graph-manager.d.ts +65 -0
- package/dist/src/utils/knowledge-graph-manager.d.ts.map +1 -0
- package/dist/src/utils/knowledge-graph-manager.js +358 -0
- package/dist/src/utils/knowledge-graph-manager.js.map +1 -0
- package/dist/src/utils/mcp-response-validator.d.ts +30 -0
- package/dist/src/utils/mcp-response-validator.d.ts.map +1 -0
- package/dist/src/utils/mcp-response-validator.js +197 -0
- package/dist/src/utils/mcp-response-validator.js.map +1 -0
- package/dist/src/utils/project-health-scoring.d.ts +177 -0
- package/dist/src/utils/project-health-scoring.d.ts.map +1 -0
- package/dist/src/utils/project-health-scoring.js +370 -0
- package/dist/src/utils/project-health-scoring.js.map +1 -0
- package/dist/src/utils/release-readiness-detector.d.ts +2 -0
- package/dist/src/utils/release-readiness-detector.d.ts.map +1 -1
- package/dist/src/utils/release-readiness-detector.js +2 -0
- package/dist/src/utils/release-readiness-detector.js.map +1 -1
- package/dist/src/utils/todo-file-watcher.d.ts +26 -0
- package/dist/src/utils/todo-file-watcher.d.ts.map +1 -0
- package/dist/src/utils/todo-file-watcher.js +163 -0
- package/dist/src/utils/todo-file-watcher.js.map +1 -0
- package/dist/src/utils/todo-json-manager.d.ts +71 -0
- package/dist/src/utils/todo-json-manager.d.ts.map +1 -0
- package/dist/src/utils/todo-json-manager.js +394 -0
- package/dist/src/utils/todo-json-manager.js.map +1 -0
- package/dist/src/utils/todo-markdown-converter.d.ts +16 -0
- package/dist/src/utils/todo-markdown-converter.d.ts.map +1 -0
- package/dist/src/utils/todo-markdown-converter.js +362 -0
- package/dist/src/utils/todo-markdown-converter.js.map +1 -0
- package/dist/src/utils/todo-migration.d.ts +47 -0
- package/dist/src/utils/todo-migration.d.ts.map +1 -0
- package/dist/src/utils/todo-migration.js +261 -0
- package/dist/src/utils/todo-migration.js.map +1 -0
- package/package.json +1 -1
- package/dist/src/tools/todo-management-tool.d.ts +0 -166
- package/dist/src/tools/todo-management-tool.d.ts.map +0 -1
- package/dist/src/tools/todo-management-tool.js +0 -472
- package/dist/src/tools/todo-management-tool.js.map +0 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Score Tool - Central Coordination for Project Health Scoring
|
|
3
|
+
*
|
|
4
|
+
* Provides comprehensive scoring coordination across all MCP tools:
|
|
5
|
+
* - Cross-tool score synchronization
|
|
6
|
+
* - Manual score recalculation and rebalancing
|
|
7
|
+
* - Health score diagnostics and validation
|
|
8
|
+
* - Automated score updates and maintenance
|
|
9
|
+
*
|
|
10
|
+
* IMPORTANT FOR AI ASSISTANTS: This tool depends on cache infrastructure and
|
|
11
|
+
* works best when other tools have already populated data.
|
|
12
|
+
*
|
|
13
|
+
* Cache Dependencies:
|
|
14
|
+
* - Requires: .mcp-adr-cache/project-health-scores.json (main scoring data)
|
|
15
|
+
* - May read: .mcp-adr-cache/todo-data.json (for task completion scoring)
|
|
16
|
+
* - Updates: .mcp-adr-cache/project-health-scores.json (with new scores)
|
|
17
|
+
*
|
|
18
|
+
* Workflow Timing:
|
|
19
|
+
* - Run AFTER other tools have populated cache data
|
|
20
|
+
* - Use 'recalculate_scores' to refresh stale data
|
|
21
|
+
* - Use 'sync_scores' to synchronize across tools
|
|
22
|
+
* - Use 'optimize_weights' for score tuning
|
|
23
|
+
*/
|
|
24
|
+
import { z } from 'zod';
|
|
25
|
+
declare const SmartScoreSchema: z.ZodUnion<[z.ZodObject<{
|
|
26
|
+
operation: z.ZodLiteral<"recalculate_scores">;
|
|
27
|
+
projectPath: z.ZodString;
|
|
28
|
+
components: z.ZodDefault<z.ZodArray<z.ZodEnum<["task_completion", "deployment_readiness", "architecture_compliance", "security_posture", "code_quality", "all"]>, "many">>;
|
|
29
|
+
forceUpdate: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
updateSources: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
projectPath: string;
|
|
33
|
+
operation: "recalculate_scores";
|
|
34
|
+
components: ("task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality" | "all")[];
|
|
35
|
+
forceUpdate: boolean;
|
|
36
|
+
updateSources: boolean;
|
|
37
|
+
}, {
|
|
38
|
+
projectPath: string;
|
|
39
|
+
operation: "recalculate_scores";
|
|
40
|
+
components?: ("task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality" | "all")[] | undefined;
|
|
41
|
+
forceUpdate?: boolean | undefined;
|
|
42
|
+
updateSources?: boolean | undefined;
|
|
43
|
+
}>, z.ZodObject<{
|
|
44
|
+
operation: z.ZodLiteral<"sync_scores">;
|
|
45
|
+
projectPath: z.ZodString;
|
|
46
|
+
todoPath: z.ZodDefault<z.ZodString>;
|
|
47
|
+
triggerTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["manage_todo", "smart_git_push", "compare_adr_progress", "analyze_content_security", "validate_rules"]>, "many">>;
|
|
48
|
+
rebalanceWeights: z.ZodDefault<z.ZodBoolean>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
projectPath: string;
|
|
51
|
+
operation: "sync_scores";
|
|
52
|
+
todoPath: string;
|
|
53
|
+
rebalanceWeights: boolean;
|
|
54
|
+
triggerTools?: ("manage_todo" | "smart_git_push" | "compare_adr_progress" | "analyze_content_security" | "validate_rules")[] | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
projectPath: string;
|
|
57
|
+
operation: "sync_scores";
|
|
58
|
+
todoPath?: string | undefined;
|
|
59
|
+
triggerTools?: ("manage_todo" | "smart_git_push" | "compare_adr_progress" | "analyze_content_security" | "validate_rules")[] | undefined;
|
|
60
|
+
rebalanceWeights?: boolean | undefined;
|
|
61
|
+
}>, z.ZodObject<{
|
|
62
|
+
operation: z.ZodLiteral<"diagnose_scores">;
|
|
63
|
+
projectPath: z.ZodString;
|
|
64
|
+
includeHistory: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
+
checkDataFreshness: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
+
suggestImprovements: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
projectPath: string;
|
|
69
|
+
operation: "diagnose_scores";
|
|
70
|
+
includeHistory: boolean;
|
|
71
|
+
checkDataFreshness: boolean;
|
|
72
|
+
suggestImprovements: boolean;
|
|
73
|
+
}, {
|
|
74
|
+
projectPath: string;
|
|
75
|
+
operation: "diagnose_scores";
|
|
76
|
+
includeHistory?: boolean | undefined;
|
|
77
|
+
checkDataFreshness?: boolean | undefined;
|
|
78
|
+
suggestImprovements?: boolean | undefined;
|
|
79
|
+
}>, z.ZodObject<{
|
|
80
|
+
operation: z.ZodLiteral<"optimize_weights">;
|
|
81
|
+
projectPath: z.ZodString;
|
|
82
|
+
analysisMode: z.ZodDefault<z.ZodEnum<["current_state", "historical_data", "project_type"]>>;
|
|
83
|
+
customWeights: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
taskCompletion: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
deploymentReadiness: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
architectureCompliance: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
securityPosture: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
codeQuality: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
taskCompletion?: number | undefined;
|
|
91
|
+
deploymentReadiness?: number | undefined;
|
|
92
|
+
architectureCompliance?: number | undefined;
|
|
93
|
+
securityPosture?: number | undefined;
|
|
94
|
+
codeQuality?: number | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
taskCompletion?: number | undefined;
|
|
97
|
+
deploymentReadiness?: number | undefined;
|
|
98
|
+
architectureCompliance?: number | undefined;
|
|
99
|
+
securityPosture?: number | undefined;
|
|
100
|
+
codeQuality?: number | undefined;
|
|
101
|
+
}>>;
|
|
102
|
+
previewOnly: z.ZodDefault<z.ZodBoolean>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
projectPath: string;
|
|
105
|
+
operation: "optimize_weights";
|
|
106
|
+
analysisMode: "project_type" | "current_state" | "historical_data";
|
|
107
|
+
previewOnly: boolean;
|
|
108
|
+
customWeights?: {
|
|
109
|
+
taskCompletion?: number | undefined;
|
|
110
|
+
deploymentReadiness?: number | undefined;
|
|
111
|
+
architectureCompliance?: number | undefined;
|
|
112
|
+
securityPosture?: number | undefined;
|
|
113
|
+
codeQuality?: number | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
projectPath: string;
|
|
117
|
+
operation: "optimize_weights";
|
|
118
|
+
analysisMode?: "project_type" | "current_state" | "historical_data" | undefined;
|
|
119
|
+
customWeights?: {
|
|
120
|
+
taskCompletion?: number | undefined;
|
|
121
|
+
deploymentReadiness?: number | undefined;
|
|
122
|
+
architectureCompliance?: number | undefined;
|
|
123
|
+
securityPosture?: number | undefined;
|
|
124
|
+
codeQuality?: number | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
previewOnly?: boolean | undefined;
|
|
127
|
+
}>, z.ZodObject<{
|
|
128
|
+
operation: z.ZodLiteral<"reset_scores">;
|
|
129
|
+
projectPath: z.ZodString;
|
|
130
|
+
component: z.ZodDefault<z.ZodEnum<["task_completion", "deployment_readiness", "architecture_compliance", "security_posture", "code_quality", "all"]>>;
|
|
131
|
+
preserveHistory: z.ZodDefault<z.ZodBoolean>;
|
|
132
|
+
recalculateAfterReset: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
projectPath: string;
|
|
135
|
+
operation: "reset_scores";
|
|
136
|
+
component: "task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality" | "all";
|
|
137
|
+
preserveHistory: boolean;
|
|
138
|
+
recalculateAfterReset: boolean;
|
|
139
|
+
}, {
|
|
140
|
+
projectPath: string;
|
|
141
|
+
operation: "reset_scores";
|
|
142
|
+
component?: "task_completion" | "deployment_readiness" | "architecture_compliance" | "security_posture" | "code_quality" | "all" | undefined;
|
|
143
|
+
preserveHistory?: boolean | undefined;
|
|
144
|
+
recalculateAfterReset?: boolean | undefined;
|
|
145
|
+
}>, z.ZodObject<{
|
|
146
|
+
operation: z.ZodLiteral<"get_score_trends">;
|
|
147
|
+
projectPath: z.ZodString;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
projectPath: string;
|
|
150
|
+
operation: "get_score_trends";
|
|
151
|
+
}, {
|
|
152
|
+
projectPath: string;
|
|
153
|
+
operation: "get_score_trends";
|
|
154
|
+
}>, z.ZodObject<{
|
|
155
|
+
operation: z.ZodLiteral<"get_intent_scores">;
|
|
156
|
+
projectPath: z.ZodString;
|
|
157
|
+
intentId: z.ZodString;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
projectPath: string;
|
|
160
|
+
intentId: string;
|
|
161
|
+
operation: "get_intent_scores";
|
|
162
|
+
}, {
|
|
163
|
+
projectPath: string;
|
|
164
|
+
intentId: string;
|
|
165
|
+
operation: "get_intent_scores";
|
|
166
|
+
}>]>;
|
|
167
|
+
type SmartScoreArgs = z.infer<typeof SmartScoreSchema>;
|
|
168
|
+
/**
|
|
169
|
+
* Main smart score function
|
|
170
|
+
*/
|
|
171
|
+
export declare function smartScore(args: SmartScoreArgs): Promise<any>;
|
|
172
|
+
export {};
|
|
173
|
+
//# sourceMappingURL=smart-score-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smart-score-tool.d.ts","sourceRoot":"","sources":["../../../src/tools/smart-score-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8DxB,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQpB,CAAC;AAEH,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AA0MvD;;GAEG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,CAydnE"}
|