@angular-modernizer/adapter-mcp 0.3.0 → 1.0.0
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 +103 -218
- package/dist/cli.js +13 -13
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -2
- package/dist/mcp-watcher.d.ts +6 -1
- package/dist/mcp-watcher.js +11 -10
- package/dist/server/limited-stdio-transport.d.ts +68 -0
- package/dist/server/limited-stdio-transport.js +115 -0
- package/dist/server/mcp-server.d.ts +12 -14
- package/dist/server/mcp-server.js +41 -75
- package/dist/server/package-version.d.ts +16 -0
- package/dist/server/package-version.js +37 -0
- package/dist/server/sdk-server.d.ts +70 -0
- package/dist/server/sdk-server.js +113 -0
- package/dist/server/tool-registry.d.ts +3 -2
- package/dist/server/tool-registry.js +5 -5
- package/dist/tools/analyze-build-impact.d.ts +220 -1
- package/dist/tools/analyze-build-impact.js +145 -3
- package/dist/tools/analyze-core-to-shared.d.ts +134 -4
- package/dist/tools/analyze-core-to-shared.js +113 -9
- package/dist/tools/analyze-parser-performance.d.ts +200 -7
- package/dist/tools/analyze-parser-performance.js +108 -47
- package/dist/tools/analyze-project.d.ts +267 -5
- package/dist/tools/analyze-project.js +196 -8
- package/dist/tools/check-incremental-compatibility.d.ts +61 -1
- package/dist/tools/check-incremental-compatibility.js +58 -2
- package/dist/tools/collect-feedback.d.ts +199 -10
- package/dist/tools/collect-feedback.js +171 -99
- package/dist/tools/compare-health.d.ts +356 -0
- package/dist/tools/compare-health.js +472 -0
- package/dist/tools/extract-libraries.d.ts +156 -4
- package/dist/tools/extract-libraries.js +115 -10
- package/dist/tools/find-angular-symbol.d.ts +69 -3
- package/dist/tools/find-angular-symbol.js +55 -8
- package/dist/tools/find-component-hosts.d.ts +572 -2
- package/dist/tools/find-component-hosts.js +207 -6
- package/dist/tools/find-usages.d.ts +79 -1
- package/dist/tools/find-usages.js +64 -7
- package/dist/tools/get-bootstrap-execution.d.ts +151 -1
- package/dist/tools/get-bootstrap-execution.js +84 -3
- package/dist/tools/get-call-graph.d.ts +111 -1
- package/dist/tools/get-call-graph.js +72 -10
- package/dist/tools/get-operation-progress-tool.d.ts +114 -2
- package/dist/tools/get-operation-progress-tool.js +114 -7
- package/dist/tools/get-operation-progress.d.ts +1 -1
- package/dist/tools/get-operation-progress.js +5 -5
- package/dist/tools/helpers/analysis-output.d.ts +177 -0
- package/dist/tools/helpers/analysis-output.js +165 -0
- package/dist/tools/helpers/build-schemas.d.ts +36 -0
- package/dist/tools/helpers/build-schemas.js +23 -0
- package/dist/tools/helpers/citation-file-source.d.ts +10 -0
- package/dist/tools/helpers/citation-file-source.js +82 -0
- package/dist/tools/helpers/finding-window.d.ts +43 -0
- package/dist/tools/helpers/finding-window.js +64 -0
- package/dist/tools/helpers/health-delta.d.ts +86 -0
- package/dist/tools/helpers/health-delta.js +239 -0
- package/dist/tools/helpers/investigation-schemas.d.ts +93 -0
- package/dist/tools/helpers/investigation-schemas.js +48 -0
- package/dist/tools/helpers/library-imports.d.ts +57 -0
- package/dist/tools/helpers/library-imports.js +151 -0
- package/dist/tools/helpers/load-source-files.d.ts +30 -0
- package/dist/tools/helpers/load-source-files.js +34 -0
- package/dist/tools/helpers/output-contract.d.ts +32 -0
- package/dist/tools/helpers/output-contract.js +32 -0
- package/dist/tools/helpers/platform-root-resolver.d.ts +55 -25
- package/dist/tools/helpers/platform-root-resolver.js +75 -48
- package/dist/tools/helpers/process-output.d.ts +19 -0
- package/dist/tools/helpers/process-output.js +31 -0
- package/dist/tools/helpers/project-cache.d.ts +11 -4
- package/dist/tools/helpers/project-cache.js +22 -4
- package/dist/tools/helpers/project-decorators.d.ts +14 -0
- package/dist/tools/helpers/project-decorators.js +22 -0
- package/dist/tools/helpers/rule-matcher.js +5 -0
- package/dist/tools/helpers/rule-runner.d.ts +9 -4
- package/dist/tools/helpers/rule-runner.js +28 -14
- package/dist/tools/helpers/scan-cache.d.ts +22 -0
- package/dist/tools/helpers/scan-cache.js +34 -0
- package/dist/tools/helpers/scan-plan.d.ts +5 -2
- package/dist/tools/helpers/scan-plan.js +18 -3
- package/dist/tools/helpers/scope-paths.d.ts +17 -0
- package/dist/tools/helpers/scope-paths.js +32 -0
- package/dist/tools/helpers/tool-context.d.ts +60 -0
- package/dist/tools/helpers/tool-context.js +82 -0
- package/dist/tools/helpers/transform-safety.d.ts +40 -0
- package/dist/tools/helpers/transform-safety.js +87 -0
- package/dist/tools/helpers/validation-output.d.ts +53 -0
- package/dist/tools/helpers/validation-output.js +48 -0
- package/dist/tools/inspect-form-group.d.ts +232 -1
- package/dist/tools/inspect-form-group.js +120 -2
- package/dist/tools/inspect-i18n.d.ts +382 -1
- package/dist/tools/inspect-i18n.js +199 -2
- package/dist/tools/inspect-template.d.ts +232 -1
- package/dist/tools/inspect-template.js +160 -2
- package/dist/tools/learn-patterns.d.ts +122 -1
- package/dist/tools/learn-patterns.js +97 -2
- package/dist/tools/list-imports.d.ts +111 -10
- package/dist/tools/list-imports.js +110 -7
- package/dist/tools/orchestrate-migration.d.ts +128 -5
- package/dist/tools/orchestrate-migration.js +135 -13
- package/dist/tools/parse-stack-trace.d.ts +56 -1
- package/dist/tools/parse-stack-trace.js +34 -0
- package/dist/tools/plan-migration.d.ts +330 -1
- package/dist/tools/plan-migration.js +154 -3
- package/dist/tools/resolve-type.d.ts +39 -1
- package/dist/tools/resolve-type.js +31 -2
- package/dist/tools/review-feedback.d.ts +206 -11
- package/dist/tools/review-feedback.js +132 -51
- package/dist/tools/rollback-changes.d.ts +79 -2
- package/dist/tools/rollback-changes.js +66 -14
- package/dist/tools/run-angular-cli.d.ts +45 -2
- package/dist/tools/run-angular-cli.js +67 -7
- package/dist/tools/run-build.d.ts +114 -2
- package/dist/tools/run-build.js +117 -8
- package/dist/tools/run-schematic.d.ts +70 -2
- package/dist/tools/run-schematic.js +104 -10
- package/dist/tools/scan-all.d.ts +19 -11
- package/dist/tools/scan-all.js +139 -131
- package/dist/tools/scan-angular.d.ts +19 -10
- package/dist/tools/scan-angular.js +51 -23
- package/dist/tools/scan-architecture.d.ts +17 -10
- package/dist/tools/scan-architecture.js +93 -31
- package/dist/tools/scan-solid.d.ts +19 -10
- package/dist/tools/scan-solid.js +51 -23
- package/dist/tools/search-codebase.d.ts +82 -1
- package/dist/tools/search-codebase.js +55 -2
- package/dist/tools/server-status.d.ts +279 -5
- package/dist/tools/server-status.js +179 -5
- package/dist/tools/suggest-improvements.d.ts +97 -5
- package/dist/tools/suggest-improvements.js +80 -44
- package/dist/tools/trace-output-flow.d.ts +682 -2
- package/dist/tools/trace-output-flow.js +375 -15
- package/dist/tools/transform-code-batch.d.ts +3 -0
- package/dist/tools/transform-code-batch.js +10 -5
- package/dist/tools/transform-code.d.ts +335 -12
- package/dist/tools/transform-code.js +649 -608
- package/dist/tools/validate-before-transform.d.ts +116 -2
- package/dist/tools/validate-before-transform.js +55 -2
- package/dist/tools/validate-project-compatibility.d.ts +64 -2
- package/dist/tools/validate-project-compatibility.js +67 -4
- package/dist/tools/validate-transformation.d.ts +220 -2
- package/dist/tools/validate-transformation.js +113 -15
- package/dist/tools/verify-citations.d.ts +181 -0
- package/dist/tools/verify-citations.js +218 -0
- package/dist/types.d.ts +38 -1
- package/dist/utils/format-tool-response.d.ts +22 -59
- package/dist/utils/format-tool-response.js +25 -134
- package/package.json +30 -13
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/core/project-analyzer.d.ts.map +0 -1
- package/dist/core/project-analyzer.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mcp-watcher.d.ts.map +0 -1
- package/dist/mcp-watcher.js.map +0 -1
- package/dist/server/json-rpc-handler.d.ts +0 -98
- package/dist/server/json-rpc-handler.d.ts.map +0 -1
- package/dist/server/json-rpc-handler.js +0 -301
- package/dist/server/json-rpc-handler.js.map +0 -1
- package/dist/server/mcp-server.d.ts.map +0 -1
- package/dist/server/mcp-server.js.map +0 -1
- package/dist/server/stdio-guard.d.ts.map +0 -1
- package/dist/server/stdio-guard.js.map +0 -1
- package/dist/server/tool-registry.d.ts.map +0 -1
- package/dist/server/tool-registry.js.map +0 -1
- package/dist/streaming/progress-store.d.ts.map +0 -1
- package/dist/streaming/progress-store.js.map +0 -1
- package/dist/tools/analyze-build-impact.d.ts.map +0 -1
- package/dist/tools/analyze-build-impact.js.map +0 -1
- package/dist/tools/analyze-core-to-shared.d.ts.map +0 -1
- package/dist/tools/analyze-core-to-shared.js.map +0 -1
- package/dist/tools/analyze-parser-performance.d.ts.map +0 -1
- package/dist/tools/analyze-parser-performance.js.map +0 -1
- package/dist/tools/analyze-project.d.ts.map +0 -1
- package/dist/tools/analyze-project.js.map +0 -1
- package/dist/tools/check-incremental-compatibility.d.ts.map +0 -1
- package/dist/tools/check-incremental-compatibility.js.map +0 -1
- package/dist/tools/collect-feedback.d.ts.map +0 -1
- package/dist/tools/collect-feedback.js.map +0 -1
- package/dist/tools/extract-libraries.d.ts.map +0 -1
- package/dist/tools/extract-libraries.js.map +0 -1
- package/dist/tools/find-angular-symbol.d.ts.map +0 -1
- package/dist/tools/find-angular-symbol.js.map +0 -1
- package/dist/tools/find-component-hosts.d.ts.map +0 -1
- package/dist/tools/find-component-hosts.js.map +0 -1
- package/dist/tools/find-usages.d.ts.map +0 -1
- package/dist/tools/find-usages.js.map +0 -1
- package/dist/tools/get-bootstrap-execution.d.ts.map +0 -1
- package/dist/tools/get-bootstrap-execution.js.map +0 -1
- package/dist/tools/get-call-graph.d.ts.map +0 -1
- package/dist/tools/get-call-graph.js.map +0 -1
- package/dist/tools/get-operation-progress-tool.d.ts.map +0 -1
- package/dist/tools/get-operation-progress-tool.js.map +0 -1
- package/dist/tools/get-operation-progress.d.ts.map +0 -1
- package/dist/tools/get-operation-progress.js.map +0 -1
- package/dist/tools/helpers/compact-output.d.ts.map +0 -1
- package/dist/tools/helpers/compact-output.js.map +0 -1
- package/dist/tools/helpers/feedback-analyzer.d.ts.map +0 -1
- package/dist/tools/helpers/feedback-analyzer.js.map +0 -1
- package/dist/tools/helpers/find-ts-config.d.ts.map +0 -1
- package/dist/tools/helpers/find-ts-config.js.map +0 -1
- package/dist/tools/helpers/platform-root-resolver.d.ts.map +0 -1
- package/dist/tools/helpers/platform-root-resolver.js.map +0 -1
- package/dist/tools/helpers/project-cache.d.ts.map +0 -1
- package/dist/tools/helpers/project-cache.js.map +0 -1
- package/dist/tools/helpers/rule-matcher.d.ts.map +0 -1
- package/dist/tools/helpers/rule-matcher.js.map +0 -1
- package/dist/tools/helpers/rule-runner.d.ts.map +0 -1
- package/dist/tools/helpers/rule-runner.js.map +0 -1
- package/dist/tools/helpers/scan-plan.d.ts.map +0 -1
- package/dist/tools/helpers/scan-plan.js.map +0 -1
- package/dist/tools/helpers/stack-frame-file-index.d.ts.map +0 -1
- package/dist/tools/helpers/stack-frame-file-index.js.map +0 -1
- package/dist/tools/helpers/suggestion-generator.d.ts.map +0 -1
- package/dist/tools/helpers/suggestion-generator.js.map +0 -1
- package/dist/tools/inspect-form-group.d.ts.map +0 -1
- package/dist/tools/inspect-form-group.js.map +0 -1
- package/dist/tools/inspect-i18n.d.ts.map +0 -1
- package/dist/tools/inspect-i18n.js.map +0 -1
- package/dist/tools/inspect-template.d.ts.map +0 -1
- package/dist/tools/inspect-template.js.map +0 -1
- package/dist/tools/learn-patterns.d.ts.map +0 -1
- package/dist/tools/learn-patterns.js.map +0 -1
- package/dist/tools/list-imports.d.ts.map +0 -1
- package/dist/tools/list-imports.js.map +0 -1
- package/dist/tools/orchestrate-migration.d.ts.map +0 -1
- package/dist/tools/orchestrate-migration.js.map +0 -1
- package/dist/tools/parse-stack-trace.d.ts.map +0 -1
- package/dist/tools/parse-stack-trace.js.map +0 -1
- package/dist/tools/plan-migration.d.ts.map +0 -1
- package/dist/tools/plan-migration.js.map +0 -1
- package/dist/tools/resolve-type.d.ts.map +0 -1
- package/dist/tools/resolve-type.js.map +0 -1
- package/dist/tools/review-feedback.d.ts.map +0 -1
- package/dist/tools/review-feedback.js.map +0 -1
- package/dist/tools/rollback-changes.d.ts.map +0 -1
- package/dist/tools/rollback-changes.js.map +0 -1
- package/dist/tools/run-angular-cli.d.ts.map +0 -1
- package/dist/tools/run-angular-cli.js.map +0 -1
- package/dist/tools/run-build.d.ts.map +0 -1
- package/dist/tools/run-build.js.map +0 -1
- package/dist/tools/run-schematic.d.ts.map +0 -1
- package/dist/tools/run-schematic.js.map +0 -1
- package/dist/tools/scan-all.d.ts.map +0 -1
- package/dist/tools/scan-all.js.map +0 -1
- package/dist/tools/scan-angular.d.ts.map +0 -1
- package/dist/tools/scan-angular.js.map +0 -1
- package/dist/tools/scan-architecture.d.ts.map +0 -1
- package/dist/tools/scan-architecture.js.map +0 -1
- package/dist/tools/scan-solid.d.ts.map +0 -1
- package/dist/tools/scan-solid.js.map +0 -1
- package/dist/tools/search-codebase.d.ts.map +0 -1
- package/dist/tools/search-codebase.js.map +0 -1
- package/dist/tools/server-status.d.ts.map +0 -1
- package/dist/tools/server-status.js.map +0 -1
- package/dist/tools/shared/scan-types.d.ts.map +0 -1
- package/dist/tools/shared/scan-types.js.map +0 -1
- package/dist/tools/suggest-improvements.d.ts.map +0 -1
- package/dist/tools/suggest-improvements.js.map +0 -1
- package/dist/tools/trace-output-flow.d.ts.map +0 -1
- package/dist/tools/trace-output-flow.js.map +0 -1
- package/dist/tools/transform-code-batch.d.ts.map +0 -1
- package/dist/tools/transform-code-batch.js.map +0 -1
- package/dist/tools/transform-code.d.ts.map +0 -1
- package/dist/tools/transform-code.js.map +0 -1
- package/dist/tools/validate-before-transform.d.ts.map +0 -1
- package/dist/tools/validate-before-transform.js.map +0 -1
- package/dist/tools/validate-project-compatibility.d.ts.map +0 -1
- package/dist/tools/validate-project-compatibility.js.map +0 -1
- package/dist/tools/validate-transformation.d.ts.map +0 -1
- package/dist/tools/validate-transformation.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils/format-tool-response.d.ts.map +0 -1
- package/dist/utils/format-tool-response.js.map +0 -1
|
@@ -3,15 +3,20 @@
|
|
|
3
3
|
*
|
|
4
4
|
* MCP tool for querying progress of streaming operations.
|
|
5
5
|
*/
|
|
6
|
-
import type { MCPTool } from '../types.js';
|
|
6
|
+
import type { MCPTool, ToolAnnotations } from '../types.js';
|
|
7
|
+
import { getOperationProgress } from './get-operation-progress.js';
|
|
8
|
+
type OperationProgress = Awaited<ReturnType<typeof getOperationProgress>>;
|
|
7
9
|
/**
|
|
8
10
|
* MCP tool for getting operation progress.
|
|
9
11
|
*/
|
|
10
12
|
export declare class GetOperationProgressTool implements MCPTool {
|
|
11
13
|
readonly name = "get-operation-progress";
|
|
14
|
+
readonly title = "Get Operation Progress";
|
|
15
|
+
readonly annotations: ToolAnnotations;
|
|
12
16
|
readonly description: string;
|
|
13
17
|
readonly inputSchema: {
|
|
14
18
|
type: string;
|
|
19
|
+
additionalProperties: boolean;
|
|
15
20
|
properties: {
|
|
16
21
|
operationId: {
|
|
17
22
|
type: string;
|
|
@@ -24,6 +29,113 @@ export declare class GetOperationProgressTool implements MCPTool {
|
|
|
24
29
|
};
|
|
25
30
|
required: string[];
|
|
26
31
|
};
|
|
27
|
-
|
|
32
|
+
readonly outputSchema: {
|
|
33
|
+
type: string;
|
|
34
|
+
properties: {
|
|
35
|
+
operationId: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
status: {
|
|
39
|
+
type: string;
|
|
40
|
+
enum: string[];
|
|
41
|
+
};
|
|
42
|
+
events: {
|
|
43
|
+
type: string;
|
|
44
|
+
items: {
|
|
45
|
+
type: string;
|
|
46
|
+
properties: {
|
|
47
|
+
phase: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
message: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
percentage: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
timestamp: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
unifiedDiff: {
|
|
60
|
+
type: string;
|
|
61
|
+
properties: {
|
|
62
|
+
filePath: {
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
65
|
+
diff: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
linesAdded: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
linesRemoved: {
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
syntaxErrors: {
|
|
77
|
+
type: string;
|
|
78
|
+
items: {
|
|
79
|
+
type: string;
|
|
80
|
+
properties: {
|
|
81
|
+
filePath: {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
line: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
message: {
|
|
88
|
+
type: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
memoryUsage: {
|
|
94
|
+
type: string;
|
|
95
|
+
properties: {
|
|
96
|
+
heapUsed: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
heapTotal: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
external: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
percentage: {
|
|
106
|
+
type: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
required: string[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
totalEvents: {
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
elapsedTime: {
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
eta: {
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
error: {
|
|
124
|
+
type: string;
|
|
125
|
+
};
|
|
126
|
+
result: {
|
|
127
|
+
type: string;
|
|
128
|
+
description: string;
|
|
129
|
+
};
|
|
130
|
+
summary: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
required: string[];
|
|
135
|
+
};
|
|
136
|
+
execute(args: Record<string, unknown>): Promise<OperationProgress & {
|
|
137
|
+
summary: string;
|
|
138
|
+
}>;
|
|
28
139
|
}
|
|
140
|
+
export {};
|
|
29
141
|
//# sourceMappingURL=get-operation-progress-tool.d.ts.map
|
|
@@ -4,15 +4,56 @@
|
|
|
4
4
|
* MCP tool for querying progress of streaming operations.
|
|
5
5
|
*/
|
|
6
6
|
import { getOperationProgress, validateInput, } from './get-operation-progress.js';
|
|
7
|
+
/**
|
|
8
|
+
* Text summary: status, time, events, the last event, and the stored result's
|
|
9
|
+
* own summary once the operation is completed.
|
|
10
|
+
*/
|
|
11
|
+
function describeProgress(progress) {
|
|
12
|
+
const last = progress.events.at(-1);
|
|
13
|
+
const lines = [
|
|
14
|
+
`Operation ${progress.operationId} ${progress.status} after ${(progress.elapsedTime / 1000).toFixed(1)} s; ` +
|
|
15
|
+
`${progress.events.length} of ${progress.totalEvents} event(s)` +
|
|
16
|
+
(progress.eta === undefined
|
|
17
|
+
? ''
|
|
18
|
+
: `; eta ${(progress.eta / 1000).toFixed(1)} s`) +
|
|
19
|
+
'.',
|
|
20
|
+
];
|
|
21
|
+
if (last !== undefined) {
|
|
22
|
+
lines.push(`Last event: ${last.phase} ${last.percentage}%: ${last.message}`);
|
|
23
|
+
}
|
|
24
|
+
if (progress.error !== undefined) {
|
|
25
|
+
lines.push(`Error: ${progress.error}`);
|
|
26
|
+
}
|
|
27
|
+
const result = progress.result;
|
|
28
|
+
if (typeof result === 'object' && result !== null && 'summary' in result) {
|
|
29
|
+
const inner = result.summary;
|
|
30
|
+
if (typeof inner === 'string') {
|
|
31
|
+
lines.push(`Result: ${inner}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return lines.join('\n');
|
|
35
|
+
}
|
|
7
36
|
/**
|
|
8
37
|
* MCP tool for getting operation progress.
|
|
9
38
|
*/
|
|
10
39
|
export class GetOperationProgressTool {
|
|
11
40
|
name = 'get-operation-progress';
|
|
12
|
-
|
|
13
|
-
|
|
41
|
+
title = 'Get Operation Progress';
|
|
42
|
+
annotations = {
|
|
43
|
+
readOnlyHint: true,
|
|
44
|
+
destructiveHint: false,
|
|
45
|
+
idempotentHint: true,
|
|
46
|
+
openWorldHint: false,
|
|
47
|
+
};
|
|
48
|
+
description = 'Deprecated, kept in 1.x: polls an operation started with streaming: true (transform-code, scan-architecture). ' +
|
|
49
|
+
'Call those tools synchronously instead: they send MCP progress notifications when the request has a progressToken ' +
|
|
50
|
+
'and stop on notifications/cancelled. ' +
|
|
51
|
+
'Get progress for a streaming operation (transformation or analysis). ' +
|
|
52
|
+
'Returns status, events, and operation metadata including diffs and syntax errors. ' +
|
|
53
|
+
'A completed operation carries the tool result in result; summary is a short text with the status, the last event and the result summary.';
|
|
14
54
|
inputSchema = {
|
|
15
55
|
type: 'object',
|
|
56
|
+
additionalProperties: false,
|
|
16
57
|
properties: {
|
|
17
58
|
operationId: {
|
|
18
59
|
type: 'string',
|
|
@@ -25,12 +66,78 @@ export class GetOperationProgressTool {
|
|
|
25
66
|
},
|
|
26
67
|
required: ['operationId'],
|
|
27
68
|
};
|
|
69
|
+
outputSchema = {
|
|
70
|
+
type: 'object',
|
|
71
|
+
properties: {
|
|
72
|
+
operationId: { type: 'string' },
|
|
73
|
+
status: {
|
|
74
|
+
type: 'string',
|
|
75
|
+
enum: ['running', 'completed', 'failed', 'cancelled'],
|
|
76
|
+
},
|
|
77
|
+
events: {
|
|
78
|
+
type: 'array',
|
|
79
|
+
items: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
phase: { type: 'string' },
|
|
83
|
+
message: { type: 'string' },
|
|
84
|
+
percentage: { type: 'number' },
|
|
85
|
+
timestamp: { type: 'number' },
|
|
86
|
+
unifiedDiff: {
|
|
87
|
+
type: 'object',
|
|
88
|
+
properties: {
|
|
89
|
+
filePath: { type: 'string' },
|
|
90
|
+
diff: { type: 'string' },
|
|
91
|
+
linesAdded: { type: 'integer' },
|
|
92
|
+
linesRemoved: { type: 'integer' },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
syntaxErrors: {
|
|
96
|
+
type: 'array',
|
|
97
|
+
items: {
|
|
98
|
+
type: 'object',
|
|
99
|
+
properties: {
|
|
100
|
+
filePath: { type: 'string' },
|
|
101
|
+
line: { type: 'integer' },
|
|
102
|
+
message: { type: 'string' },
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
memoryUsage: {
|
|
107
|
+
type: 'object',
|
|
108
|
+
properties: {
|
|
109
|
+
heapUsed: { type: 'number' },
|
|
110
|
+
heapTotal: { type: 'number' },
|
|
111
|
+
external: { type: 'number' },
|
|
112
|
+
percentage: { type: 'number' },
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
required: ['phase', 'message', 'percentage', 'timestamp'],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
totalEvents: { type: 'integer' },
|
|
120
|
+
elapsedTime: { type: 'number' },
|
|
121
|
+
eta: { type: 'number' },
|
|
122
|
+
error: { type: 'string' },
|
|
123
|
+
result: {
|
|
124
|
+
type: 'object',
|
|
125
|
+
description: 'Result of the operation as the tool returns it (scan-architecture, transform-code), only when completed.',
|
|
126
|
+
},
|
|
127
|
+
summary: { type: 'string' },
|
|
128
|
+
},
|
|
129
|
+
required: [
|
|
130
|
+
'operationId',
|
|
131
|
+
'status',
|
|
132
|
+
'events',
|
|
133
|
+
'totalEvents',
|
|
134
|
+
'elapsedTime',
|
|
135
|
+
'summary',
|
|
136
|
+
],
|
|
137
|
+
};
|
|
28
138
|
async execute(args) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// Execute the operation
|
|
32
|
-
const result = await getOperationProgress(validatedInput);
|
|
33
|
-
return result;
|
|
139
|
+
const progress = await getOperationProgress(validateInput(args));
|
|
140
|
+
return { ...progress, summary: describeProgress(progress) };
|
|
34
141
|
}
|
|
35
142
|
}
|
|
36
143
|
//# sourceMappingURL=get-operation-progress-tool.js.map
|
|
@@ -59,12 +59,12 @@ export async function getOperationProgress(input) {
|
|
|
59
59
|
message: event.message,
|
|
60
60
|
percentage: event.percentage,
|
|
61
61
|
timestamp: event.timestamp,
|
|
62
|
-
|
|
62
|
+
unifiedDiff: event.unifiedDiff
|
|
63
63
|
? {
|
|
64
|
-
filePath: event.
|
|
65
|
-
diff: event.
|
|
66
|
-
linesAdded: event.
|
|
67
|
-
linesRemoved: event.
|
|
64
|
+
filePath: event.unifiedDiff.filePath,
|
|
65
|
+
diff: event.unifiedDiff.diff,
|
|
66
|
+
linesAdded: event.unifiedDiff.linesAdded,
|
|
67
|
+
linesRemoved: event.unifiedDiff.linesRemoved,
|
|
68
68
|
}
|
|
69
69
|
: undefined,
|
|
70
70
|
syntaxErrors: event.syntaxErrors
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @angular-modernizer/adapter-mcp - Output parts of the analysis tools
|
|
3
|
+
*
|
|
4
|
+
* Schema pieces and summary helpers shared by analyze-project and the scans.
|
|
5
|
+
* Objects stay open, see `output-contract.ts`.
|
|
6
|
+
*/
|
|
7
|
+
/** `pagination` of a paged result list. */
|
|
8
|
+
export declare const PAGINATION_SCHEMA: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly totalResults: {
|
|
12
|
+
readonly type: "integer";
|
|
13
|
+
};
|
|
14
|
+
readonly returnedResults: {
|
|
15
|
+
readonly type: "integer";
|
|
16
|
+
};
|
|
17
|
+
readonly offset: {
|
|
18
|
+
readonly type: "integer";
|
|
19
|
+
};
|
|
20
|
+
readonly hasMore: {
|
|
21
|
+
readonly type: "boolean";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
readonly required: readonly ["totalResults", "returnedResults", "offset", "hasMore"];
|
|
25
|
+
};
|
|
26
|
+
/** Pagination of a result list, as the analysis tools report it. */
|
|
27
|
+
export interface Pagination {
|
|
28
|
+
totalResults: number;
|
|
29
|
+
returnedResults: number;
|
|
30
|
+
offset: number;
|
|
31
|
+
hasMore: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Names at most `max` entries, comma separated, with "and N more" for the
|
|
35
|
+
* rest; `undefined` for an empty list.
|
|
36
|
+
*/
|
|
37
|
+
export declare function nameList(items: readonly string[], max: number): string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* `name n` pairs of a count record, largest first (ties by name), at most
|
|
40
|
+
* `max` of them; `undefined` for an empty record.
|
|
41
|
+
*/
|
|
42
|
+
export declare function countList(counts: Record<string, number>, max: number): string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Line about the returned page, or `undefined` when the page holds every
|
|
45
|
+
* result.
|
|
46
|
+
*/
|
|
47
|
+
export declare function pageNote(pagination: Pagination | undefined, noun: string): string | undefined;
|
|
48
|
+
/** Counts of a scan over all violations, independent of the page. */
|
|
49
|
+
export interface ScanCounts {
|
|
50
|
+
totalViolations: number;
|
|
51
|
+
analyzedFiles: number;
|
|
52
|
+
bySeverity: Record<string, number>;
|
|
53
|
+
byCategory: Record<string, number>;
|
|
54
|
+
byRule: Record<string, number>;
|
|
55
|
+
}
|
|
56
|
+
/** Fields of a scan violation the summary names. */
|
|
57
|
+
export interface ScanViolationLine {
|
|
58
|
+
ruleId: string;
|
|
59
|
+
severity: string;
|
|
60
|
+
filePath: string;
|
|
61
|
+
line?: number;
|
|
62
|
+
message: string;
|
|
63
|
+
}
|
|
64
|
+
/** `counts` of a scan. */
|
|
65
|
+
export declare const SCAN_COUNTS_SCHEMA: {
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
readonly properties: {
|
|
68
|
+
readonly totalViolations: {
|
|
69
|
+
readonly type: "integer";
|
|
70
|
+
};
|
|
71
|
+
readonly analyzedFiles: {
|
|
72
|
+
readonly type: "integer";
|
|
73
|
+
};
|
|
74
|
+
readonly bySeverity: {
|
|
75
|
+
readonly type: "object";
|
|
76
|
+
readonly additionalProperties: {
|
|
77
|
+
readonly type: "integer";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly byCategory: {
|
|
81
|
+
readonly type: "object";
|
|
82
|
+
readonly additionalProperties: {
|
|
83
|
+
readonly type: "integer";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly byRule: {
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly additionalProperties: {
|
|
89
|
+
readonly type: "integer";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly required: readonly ["totalViolations", "analyzedFiles", "bySeverity", "byCategory", "byRule"];
|
|
94
|
+
};
|
|
95
|
+
/** One entry of `violations` of a scan. */
|
|
96
|
+
export declare const SCAN_VIOLATION_SCHEMA: {
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly id: {
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
};
|
|
102
|
+
readonly ruleId: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
};
|
|
105
|
+
readonly severity: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
};
|
|
108
|
+
readonly message: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
};
|
|
111
|
+
readonly filePath: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
};
|
|
114
|
+
readonly line: {
|
|
115
|
+
readonly type: "integer";
|
|
116
|
+
};
|
|
117
|
+
readonly column: {
|
|
118
|
+
readonly type: "integer";
|
|
119
|
+
};
|
|
120
|
+
readonly category: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
};
|
|
123
|
+
readonly suggestedFix: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
};
|
|
126
|
+
readonly metadata: {
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
readonly required: readonly ["ruleId", "severity", "message", "filePath"];
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Run details of a scan that stopped early (time budget or cancellation);
|
|
134
|
+
* scan-architecture always reports them.
|
|
135
|
+
*/
|
|
136
|
+
export declare const SCAN_EXECUTION_SCHEMA: {
|
|
137
|
+
readonly type: "object";
|
|
138
|
+
readonly properties: {
|
|
139
|
+
readonly maxDurationMs: {
|
|
140
|
+
readonly type: "number";
|
|
141
|
+
};
|
|
142
|
+
readonly incomplete: {
|
|
143
|
+
readonly type: "boolean";
|
|
144
|
+
};
|
|
145
|
+
readonly stopReason: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
};
|
|
148
|
+
readonly skippedFiles: {
|
|
149
|
+
readonly type: "integer";
|
|
150
|
+
};
|
|
151
|
+
readonly ruleTimings: {
|
|
152
|
+
readonly type: "array";
|
|
153
|
+
readonly items: {
|
|
154
|
+
readonly type: "object";
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly note: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
readonly required: readonly ["incomplete", "skippedFiles"];
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Output schema of a scan: violations, counts, metadata and summary, plus
|
|
165
|
+
* the tool's own fields. Only `counts`, `metadata` and `summary` are required.
|
|
166
|
+
*/
|
|
167
|
+
export declare function scanOutputSchema(extra?: Record<string, unknown>): {
|
|
168
|
+
type: 'object';
|
|
169
|
+
properties: Record<string, unknown>;
|
|
170
|
+
required: string[];
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Text summary of a scan: totals per severity, the largest rules and
|
|
174
|
+
* categories, the first violations of the page and the page itself.
|
|
175
|
+
*/
|
|
176
|
+
export declare function describeScan(counts: ScanCounts, violations: readonly ScanViolationLine[], pagination: Pagination | undefined, notes?: readonly string[]): string;
|
|
177
|
+
//# sourceMappingURL=analysis-output.d.ts.map
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @angular-modernizer/adapter-mcp - Output parts of the analysis tools
|
|
3
|
+
*
|
|
4
|
+
* Schema pieces and summary helpers shared by analyze-project and the scans.
|
|
5
|
+
* Objects stay open, see `output-contract.ts`.
|
|
6
|
+
*/
|
|
7
|
+
/** `pagination` of a paged result list. */
|
|
8
|
+
export const PAGINATION_SCHEMA = {
|
|
9
|
+
type: 'object',
|
|
10
|
+
properties: {
|
|
11
|
+
totalResults: { type: 'integer' },
|
|
12
|
+
returnedResults: { type: 'integer' },
|
|
13
|
+
offset: { type: 'integer' },
|
|
14
|
+
hasMore: { type: 'boolean' },
|
|
15
|
+
},
|
|
16
|
+
required: ['totalResults', 'returnedResults', 'offset', 'hasMore'],
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Names at most `max` entries, comma separated, with "and N more" for the
|
|
20
|
+
* rest; `undefined` for an empty list.
|
|
21
|
+
*/
|
|
22
|
+
export function nameList(items, max) {
|
|
23
|
+
if (items.length === 0) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const more = items.length > max ? ` and ${items.length - max} more` : '';
|
|
27
|
+
return `${items.slice(0, max).join(', ')}${more}`;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* `name n` pairs of a count record, largest first (ties by name), at most
|
|
31
|
+
* `max` of them; `undefined` for an empty record.
|
|
32
|
+
*/
|
|
33
|
+
export function countList(counts, max) {
|
|
34
|
+
const sorted = Object.entries(counts).sort(([nameA, countA], [nameB, countB]) => countB - countA || nameA.localeCompare(nameB));
|
|
35
|
+
return nameList(sorted.map(([name, count]) => `${name} ${count}`), max);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Line about the returned page, or `undefined` when the page holds every
|
|
39
|
+
* result.
|
|
40
|
+
*/
|
|
41
|
+
export function pageNote(pagination, noun) {
|
|
42
|
+
if (pagination === undefined || pagination.returnedResults === pagination.totalResults) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
const { offset, returnedResults, totalResults, hasMore } = pagination;
|
|
46
|
+
const range = returnedResults === 0
|
|
47
|
+
? `none of ${totalResults} ${noun} (offset ${offset})`
|
|
48
|
+
: `${noun} ${offset + 1} to ${offset + returnedResults} of ${totalResults}`;
|
|
49
|
+
return `Showing ${range}${hasMore ? '; resultOffset pages on' : ''}.`;
|
|
50
|
+
}
|
|
51
|
+
const COUNT_RECORD = { type: 'object', additionalProperties: { type: 'integer' } };
|
|
52
|
+
/** `counts` of a scan. */
|
|
53
|
+
export const SCAN_COUNTS_SCHEMA = {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
totalViolations: { type: 'integer' },
|
|
57
|
+
analyzedFiles: { type: 'integer' },
|
|
58
|
+
bySeverity: COUNT_RECORD,
|
|
59
|
+
byCategory: COUNT_RECORD,
|
|
60
|
+
byRule: COUNT_RECORD,
|
|
61
|
+
},
|
|
62
|
+
required: ['totalViolations', 'analyzedFiles', 'bySeverity', 'byCategory', 'byRule'],
|
|
63
|
+
};
|
|
64
|
+
/** One entry of `violations` of a scan. */
|
|
65
|
+
export const SCAN_VIOLATION_SCHEMA = {
|
|
66
|
+
type: 'object',
|
|
67
|
+
properties: {
|
|
68
|
+
id: { type: 'string' },
|
|
69
|
+
ruleId: { type: 'string' },
|
|
70
|
+
severity: { type: 'string' },
|
|
71
|
+
message: { type: 'string' },
|
|
72
|
+
filePath: { type: 'string' },
|
|
73
|
+
line: { type: 'integer' },
|
|
74
|
+
column: { type: 'integer' },
|
|
75
|
+
category: { type: 'string' },
|
|
76
|
+
suggestedFix: { type: 'string' },
|
|
77
|
+
metadata: { type: 'object' },
|
|
78
|
+
},
|
|
79
|
+
required: ['ruleId', 'severity', 'message', 'filePath'],
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Run details of a scan that stopped early (time budget or cancellation);
|
|
83
|
+
* scan-architecture always reports them.
|
|
84
|
+
*/
|
|
85
|
+
export const SCAN_EXECUTION_SCHEMA = {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: {
|
|
88
|
+
maxDurationMs: { type: 'number' },
|
|
89
|
+
incomplete: { type: 'boolean' },
|
|
90
|
+
stopReason: { type: 'string' },
|
|
91
|
+
skippedFiles: { type: 'integer' },
|
|
92
|
+
ruleTimings: { type: 'array', items: { type: 'object' } },
|
|
93
|
+
note: { type: 'string' },
|
|
94
|
+
},
|
|
95
|
+
required: ['incomplete', 'skippedFiles'],
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Output schema of a scan: violations, counts, metadata and summary, plus
|
|
99
|
+
* the tool's own fields. Only `counts`, `metadata` and `summary` are required.
|
|
100
|
+
*/
|
|
101
|
+
export function scanOutputSchema(extra = {}) {
|
|
102
|
+
return {
|
|
103
|
+
type: 'object',
|
|
104
|
+
properties: {
|
|
105
|
+
violations: { type: 'array', items: SCAN_VIOLATION_SCHEMA },
|
|
106
|
+
counts: SCAN_COUNTS_SCHEMA,
|
|
107
|
+
metadata: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {
|
|
110
|
+
rulesExecuted: { type: 'array', items: { type: 'string' } },
|
|
111
|
+
duration: { type: 'number' },
|
|
112
|
+
projectRoot: { type: 'string' },
|
|
113
|
+
},
|
|
114
|
+
required: ['rulesExecuted', 'duration', 'projectRoot'],
|
|
115
|
+
},
|
|
116
|
+
pagination: PAGINATION_SCHEMA,
|
|
117
|
+
orchestration: { type: 'object' },
|
|
118
|
+
...extra,
|
|
119
|
+
summary: { type: 'string' },
|
|
120
|
+
},
|
|
121
|
+
required: ['counts', 'metadata', 'summary'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/** Rules and categories named in a scan summary. */
|
|
125
|
+
const SUMMARY_COUNTS = 10;
|
|
126
|
+
/** Violations spelled out in a scan summary; the rest is in `violations`. */
|
|
127
|
+
const SUMMARY_VIOLATIONS = 5;
|
|
128
|
+
/** Longest violation message in a scan summary. */
|
|
129
|
+
const SUMMARY_MESSAGE_LENGTH = 160;
|
|
130
|
+
/**
|
|
131
|
+
* Text summary of a scan: totals per severity, the largest rules and
|
|
132
|
+
* categories, the first violations of the page and the page itself.
|
|
133
|
+
*/
|
|
134
|
+
export function describeScan(counts, violations, pagination, notes = []) {
|
|
135
|
+
const severity = countList(counts.bySeverity, SUMMARY_COUNTS);
|
|
136
|
+
const lines = [
|
|
137
|
+
`${counts.totalViolations} violation(s) in ${counts.analyzedFiles} analyzed file(s)` +
|
|
138
|
+
(severity === undefined ? '.' : ` (${severity}).`),
|
|
139
|
+
];
|
|
140
|
+
const rules = countList(counts.byRule, SUMMARY_COUNTS);
|
|
141
|
+
if (rules !== undefined) {
|
|
142
|
+
lines.push(`Rules: ${rules}.`);
|
|
143
|
+
}
|
|
144
|
+
const categories = countList(counts.byCategory, SUMMARY_COUNTS);
|
|
145
|
+
if (categories !== undefined) {
|
|
146
|
+
lines.push(`Categories: ${categories}.`);
|
|
147
|
+
}
|
|
148
|
+
if (violations.length > 0) {
|
|
149
|
+
lines.push(`First ${Math.min(violations.length, SUMMARY_VIOLATIONS)} returned:`);
|
|
150
|
+
for (const v of violations.slice(0, SUMMARY_VIOLATIONS)) {
|
|
151
|
+
const at = v.line === undefined ? v.filePath : `${v.filePath}:${v.line}`;
|
|
152
|
+
const message = v.message.length > SUMMARY_MESSAGE_LENGTH
|
|
153
|
+
? `${v.message.slice(0, SUMMARY_MESSAGE_LENGTH - 3)}...`
|
|
154
|
+
: v.message;
|
|
155
|
+
lines.push(`- ${v.severity} ${v.ruleId} ${at}: ${message}`);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const page = pageNote(pagination, 'violations');
|
|
159
|
+
if (page !== undefined) {
|
|
160
|
+
lines.push(page);
|
|
161
|
+
}
|
|
162
|
+
lines.push(...notes);
|
|
163
|
+
return lines.join('\n');
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=analysis-output.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @angular-modernizer/adapter-mcp - Output schema pieces of the build tools
|
|
3
|
+
*
|
|
4
|
+
* Shared by run-build and check-incremental-compatibility, which both return
|
|
5
|
+
* the `IncompatibilityCheck` list of the core IncompatibilityDetector.
|
|
6
|
+
*/
|
|
7
|
+
/** Schema of an `IncompatibilityCheck` list. */
|
|
8
|
+
export declare const INCOMPATIBILITY_ISSUES_SCHEMA: {
|
|
9
|
+
readonly type: "array";
|
|
10
|
+
readonly items: {
|
|
11
|
+
readonly type: "object";
|
|
12
|
+
readonly properties: {
|
|
13
|
+
readonly type: {
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
};
|
|
16
|
+
readonly detected: {
|
|
17
|
+
readonly type: "boolean";
|
|
18
|
+
};
|
|
19
|
+
readonly severity: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly enum: readonly ["blocker", "warning"];
|
|
22
|
+
};
|
|
23
|
+
readonly message: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
};
|
|
26
|
+
readonly recommendation: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
};
|
|
29
|
+
readonly details: {
|
|
30
|
+
readonly type: "object";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly required: readonly ["type", "detected", "severity", "message", "recommendation"];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=build-schemas.d.ts.map
|