mcp-adr-analysis-server 2.7.24 → 2.7.25
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/dist/.tsbuildinfo +1 -1
- package/dist/src/tools/bootstrap-validation-loop-tool.d.ts +0 -178
- package/dist/src/tools/bootstrap-validation-loop-tool.d.ts.map +1 -1
- package/dist/src/tools/bootstrap-validation-loop-tool.js +0 -1580
- package/dist/src/tools/bootstrap-validation-loop-tool.js.map +1 -1
- package/package.json +1 -2
- package/dist/src/utils/dag-executor.d.ts +0 -106
- package/dist/src/utils/dag-executor.d.ts.map +0 -1
- package/dist/src/utils/dag-executor.js +0 -453
- package/dist/src/utils/dag-executor.js.map +0 -1
- package/dist/src/utils/deployment-task-integration.d.ts +0 -260
- package/dist/src/utils/deployment-task-integration.d.ts.map +0 -1
- package/dist/src/utils/deployment-task-integration.js +0 -393
- package/dist/src/utils/deployment-task-integration.js.map +0 -1
- package/dist/src/utils/dynamic-deployment-intelligence.d.ts +0 -117
- package/dist/src/utils/dynamic-deployment-intelligence.d.ts.map +0 -1
- package/dist/src/utils/dynamic-deployment-intelligence.js +0 -445
- package/dist/src/utils/dynamic-deployment-intelligence.js.map +0 -1
- package/dist/src/utils/pattern-contribution-helper.d.ts +0 -60
- package/dist/src/utils/pattern-contribution-helper.d.ts.map +0 -1
- package/dist/src/utils/pattern-contribution-helper.js +0 -308
- package/dist/src/utils/pattern-contribution-helper.js.map +0 -1
- package/dist/src/utils/pattern-loader.d.ts +0 -183
- package/dist/src/utils/pattern-loader.d.ts.map +0 -1
- package/dist/src/utils/pattern-loader.js +0 -198
- package/dist/src/utils/pattern-loader.js.map +0 -1
- package/dist/src/utils/pattern-to-dag-converter.d.ts +0 -62
- package/dist/src/utils/pattern-to-dag-converter.d.ts.map +0 -1
- package/dist/src/utils/pattern-to-dag-converter.js +0 -265
- package/dist/src/utils/pattern-to-dag-converter.js.map +0 -1
- package/dist/src/utils/resource-extractor.d.ts +0 -57
- package/dist/src/utils/resource-extractor.d.ts.map +0 -1
- package/dist/src/utils/resource-extractor.js +0 -323
- package/dist/src/utils/resource-extractor.js.map +0 -1
- package/dist/src/utils/system-card-manager.d.ts +0 -194
- package/dist/src/utils/system-card-manager.d.ts.map +0 -1
- package/dist/src/utils/system-card-manager.js +0 -336
- package/dist/src/utils/system-card-manager.js.map +0 -1
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Tasks Integration for Deployment Readiness Tool
|
|
3
|
-
*
|
|
4
|
-
* This module provides standardized task tracking for the deployment readiness tool,
|
|
5
|
-
* implementing ADR-020: MCP Tasks Integration Strategy.
|
|
6
|
-
*
|
|
7
|
-
* Key features:
|
|
8
|
-
* - Creates MCP Tasks for deployment validation operations
|
|
9
|
-
* - Tracks progress through validation phases (tests, history, code quality, ADR compliance)
|
|
10
|
-
* - Supports cancellation between phases
|
|
11
|
-
* - Provides memory integration for deployment assessment tracking
|
|
12
|
-
*
|
|
13
|
-
* @see ADR-020: MCP Tasks Integration Strategy
|
|
14
|
-
* @see https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/tasks
|
|
15
|
-
*/
|
|
16
|
-
import { type AdrTask, type TaskResult, type TaskManager } from './task-manager.js';
|
|
17
|
-
/**
|
|
18
|
-
* Deployment validation phases that map to MCP Task phases
|
|
19
|
-
*/
|
|
20
|
-
export declare const DEPLOYMENT_PHASES: readonly ["initialization", "test_validation", "code_quality_analysis", "deployment_history_analysis", "adr_compliance_check", "environment_research", "blocker_assessment", "final_report"];
|
|
21
|
-
export type DeploymentPhase = (typeof DEPLOYMENT_PHASES)[number];
|
|
22
|
-
/**
|
|
23
|
-
* Deployment task context for tracking state across validation steps
|
|
24
|
-
*/
|
|
25
|
-
export interface DeploymentTaskContext {
|
|
26
|
-
taskId: string;
|
|
27
|
-
currentPhase: DeploymentPhase;
|
|
28
|
-
operation: string;
|
|
29
|
-
targetEnvironment: string;
|
|
30
|
-
cancelled: boolean;
|
|
31
|
-
testValidationResult?: {
|
|
32
|
-
passed: boolean;
|
|
33
|
-
failureCount: number;
|
|
34
|
-
coveragePercentage: number;
|
|
35
|
-
};
|
|
36
|
-
codeQualityResult?: {
|
|
37
|
-
score: number;
|
|
38
|
-
securityIssues: number;
|
|
39
|
-
complexity: number;
|
|
40
|
-
};
|
|
41
|
-
historyAnalysisResult?: {
|
|
42
|
-
successRate: number;
|
|
43
|
-
rollbackRate: number;
|
|
44
|
-
recommendedAction: string;
|
|
45
|
-
};
|
|
46
|
-
adrComplianceResult?: {
|
|
47
|
-
score: number;
|
|
48
|
-
compliantAdrs: number;
|
|
49
|
-
totalAdrs: number;
|
|
50
|
-
};
|
|
51
|
-
blockerCount?: number;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Options for creating a deployment task
|
|
55
|
-
*/
|
|
56
|
-
export interface CreateDeploymentTaskOptions {
|
|
57
|
-
projectPath: string;
|
|
58
|
-
targetEnvironment: string;
|
|
59
|
-
operation: string;
|
|
60
|
-
strictMode?: boolean;
|
|
61
|
-
enableMemoryIntegration?: boolean;
|
|
62
|
-
enableTreeSitterAnalysis?: boolean;
|
|
63
|
-
enableResearchIntegration?: boolean;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Result from deployment task execution
|
|
67
|
-
*/
|
|
68
|
-
export interface DeploymentTaskResult extends TaskResult {
|
|
69
|
-
data?: {
|
|
70
|
-
isDeploymentReady: boolean;
|
|
71
|
-
overallScore: number;
|
|
72
|
-
confidence: number;
|
|
73
|
-
blockerCount: number;
|
|
74
|
-
testsPassed: boolean;
|
|
75
|
-
gitPushStatus: 'allowed' | 'blocked' | 'conditional';
|
|
76
|
-
memoryEntityId?: string;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Deployment Task Manager - Provides MCP Tasks integration for deployment readiness
|
|
81
|
-
*
|
|
82
|
-
* This class wraps the TaskManager to provide deployment-specific functionality:
|
|
83
|
-
* - Creates tasks with deployment validation phases
|
|
84
|
-
* - Tracks validation progress through multiple checks
|
|
85
|
-
* - Supports cancellation between phases
|
|
86
|
-
* - Integrates with memory for assessment tracking
|
|
87
|
-
*/
|
|
88
|
-
export declare class DeploymentTaskManager {
|
|
89
|
-
private taskManager;
|
|
90
|
-
private activeContexts;
|
|
91
|
-
constructor(taskManager?: TaskManager);
|
|
92
|
-
/**
|
|
93
|
-
* Initialize the deployment task manager
|
|
94
|
-
*/
|
|
95
|
-
initialize(): Promise<void>;
|
|
96
|
-
/**
|
|
97
|
-
* Create a new deployment task
|
|
98
|
-
*
|
|
99
|
-
* @returns The created task and context
|
|
100
|
-
*/
|
|
101
|
-
createDeploymentTask(options: CreateDeploymentTaskOptions): Promise<{
|
|
102
|
-
task: AdrTask;
|
|
103
|
-
context: DeploymentTaskContext;
|
|
104
|
-
}>;
|
|
105
|
-
/**
|
|
106
|
-
* Get deployment task context
|
|
107
|
-
*/
|
|
108
|
-
getContext(taskId: string): DeploymentTaskContext | undefined;
|
|
109
|
-
/**
|
|
110
|
-
* Start a deployment phase
|
|
111
|
-
*/
|
|
112
|
-
startPhase(taskId: string, phase: DeploymentPhase, message?: string): Promise<void>;
|
|
113
|
-
/**
|
|
114
|
-
* Update phase progress
|
|
115
|
-
*/
|
|
116
|
-
updatePhaseProgress(taskId: string, phase: DeploymentPhase, phaseProgress: number, message?: string): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* Complete a deployment phase
|
|
119
|
-
*/
|
|
120
|
-
completePhase(taskId: string, phase: DeploymentPhase, _message?: string): Promise<void>;
|
|
121
|
-
/**
|
|
122
|
-
* Fail a deployment phase
|
|
123
|
-
*/
|
|
124
|
-
failPhase(taskId: string, phase: DeploymentPhase, error: string): Promise<void>;
|
|
125
|
-
/**
|
|
126
|
-
* Store test validation result
|
|
127
|
-
*/
|
|
128
|
-
storeTestValidationResult(taskId: string, result: {
|
|
129
|
-
passed: boolean;
|
|
130
|
-
failureCount: number;
|
|
131
|
-
coveragePercentage: number;
|
|
132
|
-
}): Promise<void>;
|
|
133
|
-
/**
|
|
134
|
-
* Store code quality result
|
|
135
|
-
*/
|
|
136
|
-
storeCodeQualityResult(taskId: string, result: {
|
|
137
|
-
score: number;
|
|
138
|
-
securityIssues: number;
|
|
139
|
-
complexity: number;
|
|
140
|
-
}): Promise<void>;
|
|
141
|
-
/**
|
|
142
|
-
* Store deployment history analysis result
|
|
143
|
-
*/
|
|
144
|
-
storeHistoryAnalysisResult(taskId: string, result: {
|
|
145
|
-
successRate: number;
|
|
146
|
-
rollbackRate: number;
|
|
147
|
-
recommendedAction: string;
|
|
148
|
-
}): Promise<void>;
|
|
149
|
-
/**
|
|
150
|
-
* Store ADR compliance result
|
|
151
|
-
*/
|
|
152
|
-
storeAdrComplianceResult(taskId: string, result: {
|
|
153
|
-
score: number;
|
|
154
|
-
compliantAdrs: number;
|
|
155
|
-
totalAdrs: number;
|
|
156
|
-
}): Promise<void>;
|
|
157
|
-
/**
|
|
158
|
-
* Store blocker count
|
|
159
|
-
*/
|
|
160
|
-
storeBlockerCount(taskId: string, blockerCount: number): Promise<void>;
|
|
161
|
-
/**
|
|
162
|
-
* Check if task is cancelled
|
|
163
|
-
*/
|
|
164
|
-
isCancelled(taskId: string): Promise<boolean>;
|
|
165
|
-
/**
|
|
166
|
-
* Cancel a deployment task
|
|
167
|
-
*/
|
|
168
|
-
cancelTask(taskId: string, reason?: string): Promise<void>;
|
|
169
|
-
/**
|
|
170
|
-
* Complete a deployment task successfully
|
|
171
|
-
*/
|
|
172
|
-
completeTask(taskId: string, result: DeploymentTaskResult): Promise<void>;
|
|
173
|
-
/**
|
|
174
|
-
* Fail a deployment task
|
|
175
|
-
*/
|
|
176
|
-
failTask(taskId: string, error: string): Promise<void>;
|
|
177
|
-
/**
|
|
178
|
-
* Get task status
|
|
179
|
-
*/
|
|
180
|
-
getTaskStatus(taskId: string): Promise<{
|
|
181
|
-
task: AdrTask | null;
|
|
182
|
-
context: DeploymentTaskContext | undefined;
|
|
183
|
-
}>;
|
|
184
|
-
}
|
|
185
|
-
export declare function getDeploymentTaskManager(): DeploymentTaskManager;
|
|
186
|
-
/**
|
|
187
|
-
* Reset the global DeploymentTaskManager (for testing)
|
|
188
|
-
*/
|
|
189
|
-
export declare function resetDeploymentTaskManager(): Promise<void>;
|
|
190
|
-
/**
|
|
191
|
-
* Helper function to wrap deployment execution with task tracking
|
|
192
|
-
*
|
|
193
|
-
* This can be used by the deployment_readiness tool to automatically
|
|
194
|
-
* track progress through MCP Tasks.
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* ```typescript
|
|
198
|
-
* const result = await executeDeploymentWithTaskTracking(
|
|
199
|
-
* {
|
|
200
|
-
* projectPath: '/path/to/project',
|
|
201
|
-
* targetEnvironment: 'production',
|
|
202
|
-
* operation: 'full_audit',
|
|
203
|
-
* },
|
|
204
|
-
* async (tracker) => {
|
|
205
|
-
* // Test validation phase
|
|
206
|
-
* await tracker.startPhase('test_validation');
|
|
207
|
-
* const testResult = await runTests();
|
|
208
|
-
* await tracker.storeTestValidationResult(testResult);
|
|
209
|
-
* await tracker.completePhase('test_validation');
|
|
210
|
-
*
|
|
211
|
-
* // Code quality phase
|
|
212
|
-
* await tracker.startPhase('code_quality_analysis');
|
|
213
|
-
* const qualityResult = await analyzeCodeQuality();
|
|
214
|
-
* await tracker.storeCodeQualityResult(qualityResult);
|
|
215
|
-
* await tracker.completePhase('code_quality_analysis');
|
|
216
|
-
*
|
|
217
|
-
* // Return final result
|
|
218
|
-
* return { isDeploymentReady: true, overallScore: 95 };
|
|
219
|
-
* }
|
|
220
|
-
* );
|
|
221
|
-
* ```
|
|
222
|
-
*/
|
|
223
|
-
export declare function executeDeploymentWithTaskTracking<T extends DeploymentTaskResult>(options: CreateDeploymentTaskOptions, executor: (tracker: DeploymentTaskTracker) => Promise<T['data']>): Promise<{
|
|
224
|
-
taskId: string;
|
|
225
|
-
result: T;
|
|
226
|
-
}>;
|
|
227
|
-
/**
|
|
228
|
-
* Task tracker interface provided to deployment executor
|
|
229
|
-
*/
|
|
230
|
-
export interface DeploymentTaskTracker {
|
|
231
|
-
taskId: string;
|
|
232
|
-
startPhase: (phase: DeploymentPhase, message?: string) => Promise<void>;
|
|
233
|
-
updatePhaseProgress: (phase: DeploymentPhase, progress: number, message?: string) => Promise<void>;
|
|
234
|
-
completePhase: (phase: DeploymentPhase, message?: string) => Promise<void>;
|
|
235
|
-
failPhase: (phase: DeploymentPhase, error: string) => Promise<void>;
|
|
236
|
-
storeTestValidationResult: (result: {
|
|
237
|
-
passed: boolean;
|
|
238
|
-
failureCount: number;
|
|
239
|
-
coveragePercentage: number;
|
|
240
|
-
}) => Promise<void>;
|
|
241
|
-
storeCodeQualityResult: (result: {
|
|
242
|
-
score: number;
|
|
243
|
-
securityIssues: number;
|
|
244
|
-
complexity: number;
|
|
245
|
-
}) => Promise<void>;
|
|
246
|
-
storeHistoryAnalysisResult: (result: {
|
|
247
|
-
successRate: number;
|
|
248
|
-
rollbackRate: number;
|
|
249
|
-
recommendedAction: string;
|
|
250
|
-
}) => Promise<void>;
|
|
251
|
-
storeAdrComplianceResult: (result: {
|
|
252
|
-
score: number;
|
|
253
|
-
compliantAdrs: number;
|
|
254
|
-
totalAdrs: number;
|
|
255
|
-
}) => Promise<void>;
|
|
256
|
-
storeBlockerCount: (count: number) => Promise<void>;
|
|
257
|
-
isCancelled: () => Promise<boolean>;
|
|
258
|
-
getContext: () => DeploymentTaskContext;
|
|
259
|
-
}
|
|
260
|
-
//# sourceMappingURL=deployment-task-integration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployment-task-integration.d.ts","sourceRoot":"","sources":["../../../src/utils/deployment-task-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAkB,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKpG;;GAEG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AAE;QAClC,MAAM,EAAE,OAAO,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,sBAAsB,EAAE,CAAC,MAAM,EAAE;QAC/B,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;KACpB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,0BAA0B,EAAE,CAAC,MAAM,EAAE;QACnC,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,iBAAiB,EAAE,MAAM,CAAC;KAC3B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,wBAAwB,EAAE,CAAC,MAAM,EAAE;QACjC,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;KACnB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,WAAW,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,qBAAqB,CAAC;CACzC"}
|
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MCP Tasks Integration for Deployment Readiness Tool
|
|
3
|
-
*
|
|
4
|
-
* This module provides standardized task tracking for the deployment readiness tool,
|
|
5
|
-
* implementing ADR-020: MCP Tasks Integration Strategy.
|
|
6
|
-
*
|
|
7
|
-
* Key features:
|
|
8
|
-
* - Creates MCP Tasks for deployment validation operations
|
|
9
|
-
* - Tracks progress through validation phases (tests, history, code quality, ADR compliance)
|
|
10
|
-
* - Supports cancellation between phases
|
|
11
|
-
* - Provides memory integration for deployment assessment tracking
|
|
12
|
-
*
|
|
13
|
-
* @see ADR-020: MCP Tasks Integration Strategy
|
|
14
|
-
* @see https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/tasks
|
|
15
|
-
*/
|
|
16
|
-
import { getTaskManager } from './task-manager.js';
|
|
17
|
-
import { createComponentLogger } from './enhanced-logging.js';
|
|
18
|
-
const logger = createComponentLogger('DeploymentTaskIntegration');
|
|
19
|
-
/**
|
|
20
|
-
* Deployment validation phases that map to MCP Task phases
|
|
21
|
-
*/
|
|
22
|
-
export const DEPLOYMENT_PHASES = [
|
|
23
|
-
'initialization',
|
|
24
|
-
'test_validation',
|
|
25
|
-
'code_quality_analysis',
|
|
26
|
-
'deployment_history_analysis',
|
|
27
|
-
'adr_compliance_check',
|
|
28
|
-
'environment_research',
|
|
29
|
-
'blocker_assessment',
|
|
30
|
-
'final_report',
|
|
31
|
-
];
|
|
32
|
-
/**
|
|
33
|
-
* Deployment Task Manager - Provides MCP Tasks integration for deployment readiness
|
|
34
|
-
*
|
|
35
|
-
* This class wraps the TaskManager to provide deployment-specific functionality:
|
|
36
|
-
* - Creates tasks with deployment validation phases
|
|
37
|
-
* - Tracks validation progress through multiple checks
|
|
38
|
-
* - Supports cancellation between phases
|
|
39
|
-
* - Integrates with memory for assessment tracking
|
|
40
|
-
*/
|
|
41
|
-
export class DeploymentTaskManager {
|
|
42
|
-
taskManager;
|
|
43
|
-
activeContexts = new Map();
|
|
44
|
-
constructor(taskManager) {
|
|
45
|
-
this.taskManager = taskManager ?? getTaskManager();
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Initialize the deployment task manager
|
|
49
|
-
*/
|
|
50
|
-
async initialize() {
|
|
51
|
-
await this.taskManager.initialize();
|
|
52
|
-
logger.info('DeploymentTaskManager initialized');
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Create a new deployment task
|
|
56
|
-
*
|
|
57
|
-
* @returns The created task and context
|
|
58
|
-
*/
|
|
59
|
-
async createDeploymentTask(options) {
|
|
60
|
-
const { projectPath, targetEnvironment, operation } = options;
|
|
61
|
-
const task = await this.taskManager.createTask({
|
|
62
|
-
type: 'deployment',
|
|
63
|
-
tool: 'deployment_readiness',
|
|
64
|
-
phases: [...DEPLOYMENT_PHASES],
|
|
65
|
-
projectPath,
|
|
66
|
-
ttl: 600000, // 10 minute TTL for deployment checks
|
|
67
|
-
pollInterval: 1000, // 1 second poll interval
|
|
68
|
-
});
|
|
69
|
-
const context = {
|
|
70
|
-
taskId: task.taskId,
|
|
71
|
-
currentPhase: 'initialization',
|
|
72
|
-
operation,
|
|
73
|
-
targetEnvironment,
|
|
74
|
-
cancelled: false,
|
|
75
|
-
};
|
|
76
|
-
this.activeContexts.set(task.taskId, context);
|
|
77
|
-
logger.info('Deployment task created', {
|
|
78
|
-
taskId: task.taskId,
|
|
79
|
-
projectPath,
|
|
80
|
-
targetEnvironment,
|
|
81
|
-
operation,
|
|
82
|
-
});
|
|
83
|
-
return { task, context };
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Get deployment task context
|
|
87
|
-
*/
|
|
88
|
-
getContext(taskId) {
|
|
89
|
-
return this.activeContexts.get(taskId);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Start a deployment phase
|
|
93
|
-
*/
|
|
94
|
-
async startPhase(taskId, phase, message) {
|
|
95
|
-
const context = this.activeContexts.get(taskId);
|
|
96
|
-
if (!context) {
|
|
97
|
-
logger.warn('No context found for task', { taskId });
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
// Check for cancellation
|
|
101
|
-
if (context.cancelled) {
|
|
102
|
-
throw new Error('Task was cancelled');
|
|
103
|
-
}
|
|
104
|
-
context.currentPhase = phase;
|
|
105
|
-
await this.taskManager.startPhase(taskId, phase);
|
|
106
|
-
// Calculate overall progress based on phase
|
|
107
|
-
const phaseIndex = DEPLOYMENT_PHASES.indexOf(phase);
|
|
108
|
-
const phaseProgress = phaseIndex >= 0 ? Math.floor((phaseIndex / DEPLOYMENT_PHASES.length) * 100) : 0;
|
|
109
|
-
await this.taskManager.updateProgress({
|
|
110
|
-
taskId,
|
|
111
|
-
progress: phaseProgress,
|
|
112
|
-
phase,
|
|
113
|
-
phaseProgress: 0,
|
|
114
|
-
message: message ?? `Starting phase: ${phase}`,
|
|
115
|
-
});
|
|
116
|
-
logger.info('Deployment phase started', { taskId, phase, progress: phaseProgress });
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Update phase progress
|
|
120
|
-
*/
|
|
121
|
-
async updatePhaseProgress(taskId, phase, phaseProgress, message) {
|
|
122
|
-
const context = this.activeContexts.get(taskId);
|
|
123
|
-
if (!context) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
// Calculate overall progress
|
|
127
|
-
const phaseIndex = DEPLOYMENT_PHASES.indexOf(phase);
|
|
128
|
-
const phaseFraction = 100 / DEPLOYMENT_PHASES.length;
|
|
129
|
-
const baseProgress = phaseIndex * phaseFraction;
|
|
130
|
-
const overallProgress = Math.floor(baseProgress + (phaseProgress / 100) * phaseFraction);
|
|
131
|
-
await this.taskManager.updateProgress({
|
|
132
|
-
taskId,
|
|
133
|
-
progress: overallProgress,
|
|
134
|
-
phase,
|
|
135
|
-
phaseProgress,
|
|
136
|
-
...(message !== undefined && { message }),
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Complete a deployment phase
|
|
141
|
-
*/
|
|
142
|
-
async completePhase(taskId, phase, _message) {
|
|
143
|
-
const context = this.activeContexts.get(taskId);
|
|
144
|
-
if (!context) {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
await this.taskManager.completePhase(taskId, phase);
|
|
148
|
-
logger.info('Deployment phase completed', { taskId, phase });
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Fail a deployment phase
|
|
152
|
-
*/
|
|
153
|
-
async failPhase(taskId, phase, error) {
|
|
154
|
-
const context = this.activeContexts.get(taskId);
|
|
155
|
-
if (!context) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
await this.taskManager.failPhase(taskId, phase, error);
|
|
159
|
-
logger.warn('Deployment phase failed', { taskId, phase, error });
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Store test validation result
|
|
163
|
-
*/
|
|
164
|
-
async storeTestValidationResult(taskId, result) {
|
|
165
|
-
const context = this.activeContexts.get(taskId);
|
|
166
|
-
if (!context) {
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
context.testValidationResult = result;
|
|
170
|
-
const statusMessage = result.passed
|
|
171
|
-
? `Tests passed (${result.failureCount} failures, ${result.coveragePercentage}% coverage)`
|
|
172
|
-
: `Tests failed (${result.failureCount} failures, ${result.coveragePercentage}% coverage)`;
|
|
173
|
-
await this.taskManager.updateProgress({
|
|
174
|
-
taskId,
|
|
175
|
-
progress: 25,
|
|
176
|
-
message: statusMessage,
|
|
177
|
-
});
|
|
178
|
-
logger.info('Test validation result stored', { taskId, ...result });
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Store code quality result
|
|
182
|
-
*/
|
|
183
|
-
async storeCodeQualityResult(taskId, result) {
|
|
184
|
-
const context = this.activeContexts.get(taskId);
|
|
185
|
-
if (!context) {
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
context.codeQualityResult = result;
|
|
189
|
-
await this.taskManager.updateProgress({
|
|
190
|
-
taskId,
|
|
191
|
-
progress: 40,
|
|
192
|
-
message: `Code quality score: ${result.score}% (${result.securityIssues} security issues)`,
|
|
193
|
-
});
|
|
194
|
-
logger.info('Code quality result stored', { taskId, ...result });
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Store deployment history analysis result
|
|
198
|
-
*/
|
|
199
|
-
async storeHistoryAnalysisResult(taskId, result) {
|
|
200
|
-
const context = this.activeContexts.get(taskId);
|
|
201
|
-
if (!context) {
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
context.historyAnalysisResult = result;
|
|
205
|
-
await this.taskManager.updateProgress({
|
|
206
|
-
taskId,
|
|
207
|
-
progress: 55,
|
|
208
|
-
message: `Deployment history: ${result.successRate}% success, ${result.rollbackRate}% rollback`,
|
|
209
|
-
});
|
|
210
|
-
logger.info('History analysis result stored', { taskId, ...result });
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Store ADR compliance result
|
|
214
|
-
*/
|
|
215
|
-
async storeAdrComplianceResult(taskId, result) {
|
|
216
|
-
const context = this.activeContexts.get(taskId);
|
|
217
|
-
if (!context) {
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
context.adrComplianceResult = result;
|
|
221
|
-
await this.taskManager.updateProgress({
|
|
222
|
-
taskId,
|
|
223
|
-
progress: 70,
|
|
224
|
-
message: `ADR compliance: ${result.score}% (${result.compliantAdrs}/${result.totalAdrs} ADRs)`,
|
|
225
|
-
});
|
|
226
|
-
logger.info('ADR compliance result stored', { taskId, ...result });
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Store blocker count
|
|
230
|
-
*/
|
|
231
|
-
async storeBlockerCount(taskId, blockerCount) {
|
|
232
|
-
const context = this.activeContexts.get(taskId);
|
|
233
|
-
if (!context) {
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
context.blockerCount = blockerCount;
|
|
237
|
-
const statusMessage = blockerCount === 0
|
|
238
|
-
? 'No deployment blockers found'
|
|
239
|
-
: `${blockerCount} deployment blocker(s) found`;
|
|
240
|
-
await this.taskManager.updateProgress({
|
|
241
|
-
taskId,
|
|
242
|
-
progress: 85,
|
|
243
|
-
message: statusMessage,
|
|
244
|
-
});
|
|
245
|
-
logger.info('Blocker count stored', { taskId, blockerCount });
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Check if task is cancelled
|
|
249
|
-
*/
|
|
250
|
-
async isCancelled(taskId) {
|
|
251
|
-
const context = this.activeContexts.get(taskId);
|
|
252
|
-
if (!context) {
|
|
253
|
-
return false;
|
|
254
|
-
}
|
|
255
|
-
// Check if task was cancelled externally
|
|
256
|
-
const task = await this.taskManager.getTask(taskId);
|
|
257
|
-
if (task?.status === 'cancelled') {
|
|
258
|
-
context.cancelled = true;
|
|
259
|
-
}
|
|
260
|
-
return context.cancelled;
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Cancel a deployment task
|
|
264
|
-
*/
|
|
265
|
-
async cancelTask(taskId, reason) {
|
|
266
|
-
const context = this.activeContexts.get(taskId);
|
|
267
|
-
if (context) {
|
|
268
|
-
context.cancelled = true;
|
|
269
|
-
}
|
|
270
|
-
await this.taskManager.cancelTask(taskId, reason ?? 'Deployment validation cancelled by user');
|
|
271
|
-
this.activeContexts.delete(taskId);
|
|
272
|
-
logger.info('Deployment task cancelled', { taskId, reason });
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Complete a deployment task successfully
|
|
276
|
-
*/
|
|
277
|
-
async completeTask(taskId, result) {
|
|
278
|
-
await this.taskManager.completeTask(taskId, result);
|
|
279
|
-
this.activeContexts.delete(taskId);
|
|
280
|
-
logger.info('Deployment task completed', { taskId, success: result.success });
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Fail a deployment task
|
|
284
|
-
*/
|
|
285
|
-
async failTask(taskId, error) {
|
|
286
|
-
await this.taskManager.failTask(taskId, error);
|
|
287
|
-
this.activeContexts.delete(taskId);
|
|
288
|
-
logger.error('Deployment task failed', undefined, { taskId, error });
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Get task status
|
|
292
|
-
*/
|
|
293
|
-
async getTaskStatus(taskId) {
|
|
294
|
-
const task = await this.taskManager.getTask(taskId);
|
|
295
|
-
const context = this.activeContexts.get(taskId);
|
|
296
|
-
return { task, context };
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* Get the global DeploymentTaskManager instance
|
|
301
|
-
*/
|
|
302
|
-
let globalDeploymentTaskManager = null;
|
|
303
|
-
export function getDeploymentTaskManager() {
|
|
304
|
-
if (!globalDeploymentTaskManager) {
|
|
305
|
-
globalDeploymentTaskManager = new DeploymentTaskManager();
|
|
306
|
-
}
|
|
307
|
-
return globalDeploymentTaskManager;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Reset the global DeploymentTaskManager (for testing)
|
|
311
|
-
*/
|
|
312
|
-
export async function resetDeploymentTaskManager() {
|
|
313
|
-
globalDeploymentTaskManager = null;
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* Helper function to wrap deployment execution with task tracking
|
|
317
|
-
*
|
|
318
|
-
* This can be used by the deployment_readiness tool to automatically
|
|
319
|
-
* track progress through MCP Tasks.
|
|
320
|
-
*
|
|
321
|
-
* @example
|
|
322
|
-
* ```typescript
|
|
323
|
-
* const result = await executeDeploymentWithTaskTracking(
|
|
324
|
-
* {
|
|
325
|
-
* projectPath: '/path/to/project',
|
|
326
|
-
* targetEnvironment: 'production',
|
|
327
|
-
* operation: 'full_audit',
|
|
328
|
-
* },
|
|
329
|
-
* async (tracker) => {
|
|
330
|
-
* // Test validation phase
|
|
331
|
-
* await tracker.startPhase('test_validation');
|
|
332
|
-
* const testResult = await runTests();
|
|
333
|
-
* await tracker.storeTestValidationResult(testResult);
|
|
334
|
-
* await tracker.completePhase('test_validation');
|
|
335
|
-
*
|
|
336
|
-
* // Code quality phase
|
|
337
|
-
* await tracker.startPhase('code_quality_analysis');
|
|
338
|
-
* const qualityResult = await analyzeCodeQuality();
|
|
339
|
-
* await tracker.storeCodeQualityResult(qualityResult);
|
|
340
|
-
* await tracker.completePhase('code_quality_analysis');
|
|
341
|
-
*
|
|
342
|
-
* // Return final result
|
|
343
|
-
* return { isDeploymentReady: true, overallScore: 95 };
|
|
344
|
-
* }
|
|
345
|
-
* );
|
|
346
|
-
* ```
|
|
347
|
-
*/
|
|
348
|
-
export async function executeDeploymentWithTaskTracking(options, executor) {
|
|
349
|
-
const dtm = getDeploymentTaskManager();
|
|
350
|
-
await dtm.initialize();
|
|
351
|
-
const { task, context } = await dtm.createDeploymentTask(options);
|
|
352
|
-
const taskId = task.taskId;
|
|
353
|
-
// Create a tracker interface for the executor
|
|
354
|
-
const tracker = {
|
|
355
|
-
taskId,
|
|
356
|
-
startPhase: (phase, message) => dtm.startPhase(taskId, phase, message),
|
|
357
|
-
updatePhaseProgress: (phase, progress, message) => dtm.updatePhaseProgress(taskId, phase, progress, message),
|
|
358
|
-
completePhase: (phase, message) => dtm.completePhase(taskId, phase, message),
|
|
359
|
-
failPhase: (phase, error) => dtm.failPhase(taskId, phase, error),
|
|
360
|
-
storeTestValidationResult: result => dtm.storeTestValidationResult(taskId, result),
|
|
361
|
-
storeCodeQualityResult: result => dtm.storeCodeQualityResult(taskId, result),
|
|
362
|
-
storeHistoryAnalysisResult: result => dtm.storeHistoryAnalysisResult(taskId, result),
|
|
363
|
-
storeAdrComplianceResult: result => dtm.storeAdrComplianceResult(taskId, result),
|
|
364
|
-
storeBlockerCount: count => dtm.storeBlockerCount(taskId, count),
|
|
365
|
-
isCancelled: () => dtm.isCancelled(taskId),
|
|
366
|
-
getContext: () => context,
|
|
367
|
-
};
|
|
368
|
-
try {
|
|
369
|
-
const resultData = await executor(tracker);
|
|
370
|
-
const result = {
|
|
371
|
-
success: resultData?.isDeploymentReady ?? false,
|
|
372
|
-
data: resultData,
|
|
373
|
-
};
|
|
374
|
-
await dtm.completeTask(taskId, result);
|
|
375
|
-
return { taskId, result };
|
|
376
|
-
}
|
|
377
|
-
catch (error) {
|
|
378
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
379
|
-
await dtm.failTask(taskId, errorMessage);
|
|
380
|
-
return {
|
|
381
|
-
taskId,
|
|
382
|
-
result: {
|
|
383
|
-
success: false,
|
|
384
|
-
error: {
|
|
385
|
-
code: 'DEPLOYMENT_READINESS_ERROR',
|
|
386
|
-
message: errorMessage,
|
|
387
|
-
recoverable: false,
|
|
388
|
-
},
|
|
389
|
-
},
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
//# sourceMappingURL=deployment-task-integration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployment-task-integration.js","sourceRoot":"","sources":["../../../src/utils/deployment-task-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAmD,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAwB,MAAM,uBAAuB,CAAC;AAEpF,MAAM,MAAM,GAAoB,qBAAqB,CAAC,2BAA2B,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,gBAAgB;IAChB,iBAAiB;IACjB,uBAAuB;IACvB,6BAA6B;IAC7B,sBAAsB;IACtB,sBAAsB;IACtB,oBAAoB;IACpB,cAAc;CACN,CAAC;AAgEX;;;;;;;;GAQG;AACH,MAAM,OAAO,qBAAqB;IACxB,WAAW,CAAc;IACzB,cAAc,GAAuC,IAAI,GAAG,EAAE,CAAC;IAEvE,YAAY,WAAyB;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,IAAI,cAAc,EAAE,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC;QACpC,MAAM,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,oBAAoB,CAAC,OAAoC;QAI7D,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;QAE9D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC;YAC7C,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,sBAAsB;YAC5B,MAAM,EAAE,CAAC,GAAG,iBAAiB,CAAC;YAC9B,WAAW;YACX,GAAG,EAA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