@angular-modernizer/adapter-mcp 0.2.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 +188 -235
- package/dist/cli.js +77 -27
- package/dist/index.d.ts +11 -3
- package/dist/index.js +10 -2
- package/dist/mcp-watcher.d.ts +6 -1
- package/dist/mcp-watcher.js +14 -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 +41 -12
- package/dist/server/mcp-server.js +113 -94
- 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/stdio-guard.d.ts +20 -0
- package/dist/server/stdio-guard.js +48 -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 +346 -14
- package/dist/tools/analyze-build-impact.js +315 -31
- 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 +98 -9
- package/dist/tools/find-angular-symbol.js +104 -12
- package/dist/tools/find-component-hosts.d.ts +684 -0
- package/dist/tools/find-component-hosts.js +441 -0
- package/dist/tools/find-usages.d.ts +99 -4
- package/dist/tools/find-usages.js +131 -11
- package/dist/tools/get-bootstrap-execution.d.ts +258 -0
- package/dist/tools/get-bootstrap-execution.js +324 -0
- package/dist/tools/get-call-graph.d.ts +139 -4
- package/dist/tools/get-call-graph.js +123 -13
- 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/compact-output.d.ts +61 -0
- package/dist/tools/helpers/compact-output.js +83 -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 +184 -0
- package/dist/tools/helpers/project-cache.js +331 -0
- 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 +72 -0
- package/dist/tools/helpers/rule-runner.js +131 -0
- 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 +48 -0
- package/dist/tools/helpers/scan-plan.js +166 -0
- package/dist/tools/helpers/scope-paths.d.ts +17 -0
- package/dist/tools/helpers/scope-paths.js +32 -0
- package/dist/tools/helpers/stack-frame-file-index.d.ts +10 -0
- package/dist/tools/helpers/stack-frame-file-index.js +71 -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 +324 -0
- package/dist/tools/inspect-form-group.js +279 -0
- package/dist/tools/inspect-i18n.d.ts +466 -0
- package/dist/tools/inspect-i18n.js +400 -0
- package/dist/tools/inspect-template.d.ts +320 -0
- package/dist/tools/inspect-template.js +324 -0
- package/dist/tools/learn-patterns.d.ts +122 -1
- package/dist/tools/learn-patterns.js +97 -2
- package/dist/tools/list-imports.d.ts +128 -11
- package/dist/tools/list-imports.js +128 -8
- package/dist/tools/orchestrate-migration.d.ts +129 -5
- package/dist/tools/orchestrate-migration.js +166 -12
- package/dist/tools/parse-stack-trace.d.ts +59 -2
- package/dist/tools/parse-stack-trace.js +52 -4
- package/dist/tools/plan-migration.d.ts +418 -1
- package/dist/tools/plan-migration.js +355 -8
- package/dist/tools/resolve-type.d.ts +42 -1
- package/dist/tools/resolve-type.js +37 -4
- 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 +24 -16
- package/dist/tools/scan-all.js +145 -137
- package/dist/tools/scan-angular.d.ts +20 -11
- package/dist/tools/scan-angular.js +52 -24
- package/dist/tools/scan-architecture.d.ts +42 -14
- package/dist/tools/scan-architecture.js +206 -163
- package/dist/tools/scan-solid.d.ts +20 -11
- package/dist/tools/scan-solid.js +52 -24
- package/dist/tools/search-codebase.d.ts +85 -1
- package/dist/tools/search-codebase.js +61 -4
- package/dist/tools/server-status.d.ts +370 -0
- package/dist/tools/server-status.js +369 -0
- 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 +791 -0
- package/dist/tools/trace-output-flow.js +668 -0
- 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 +45 -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 -57
- package/dist/server/json-rpc-handler.d.ts.map +0 -1
- package/dist/server/json-rpc-handler.js +0 -222
- 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/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-usages.d.ts.map +0 -1
- package/dist/tools/find-usages.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/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/rule-matcher.d.ts.map +0 -1
- package/dist/tools/helpers/rule-matcher.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/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/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/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
|
@@ -8,20 +8,99 @@
|
|
|
8
8
|
* resolves tsconfig path aliases, splits value vs type-only dependents and
|
|
9
9
|
* does not let barrels inflate the radius. Optional `symbols` restrict the
|
|
10
10
|
* impact to consumers of specific exported symbols.
|
|
11
|
+
*
|
|
12
|
+
* External templates (`.html`) are not part of the TypeScript program; they
|
|
13
|
+
* are mapped to the component files that own them (`templateUrl`, then same
|
|
14
|
+
* basename) instead of failing. Such a component is recompiled, but its
|
|
15
|
+
* dependents are not counted, because a template edit does not change the
|
|
16
|
+
* component's TypeScript API. Files that cannot be mapped are listed in
|
|
17
|
+
* `unresolvedFiles`. `summaryOnly` and `maxResults` shorten the file lists;
|
|
18
|
+
* counts always describe the full result.
|
|
19
|
+
*
|
|
20
|
+
* Host components that use a changed component, directive or pipe only in
|
|
21
|
+
* their template (NgModule declarations, no import of the class) are listed
|
|
22
|
+
* as `templateDependentFiles` and, with the used classes, in `templateHosts`.
|
|
23
|
+
* They are recompiled and template type-checked; their own dependents are not
|
|
24
|
+
* counted.
|
|
11
25
|
*/
|
|
12
26
|
import { Project } from 'ts-morph';
|
|
13
27
|
import { IncrementalAnalyzer, } from '@angular-modernizer/core';
|
|
28
|
+
import { findTemplateOwnerFiles, } from '@angular-modernizer/api';
|
|
14
29
|
import { existsSync } from 'node:fs';
|
|
15
30
|
import { join } from 'node:path';
|
|
16
31
|
import { findTsConfig } from './helpers/find-ts-config.js';
|
|
32
|
+
import { STRING_ARRAY } from './helpers/investigation-schemas.js';
|
|
33
|
+
import { WARNINGS_OUTPUT_SCHEMA, withWarnings } from './helpers/output-contract.js';
|
|
34
|
+
import { COMPACT_OUTPUT_SCHEMA, limitList, parseCompactOptions, } from './helpers/compact-output.js';
|
|
35
|
+
const BUILD_IMPACT_COUNT_KEYS = [
|
|
36
|
+
'changedFiles',
|
|
37
|
+
'dependentFiles',
|
|
38
|
+
'valueDependentFiles',
|
|
39
|
+
'typeOnlyDependentFiles',
|
|
40
|
+
'templateDependentFiles',
|
|
41
|
+
'reExportFiles',
|
|
42
|
+
'affectedFiles',
|
|
43
|
+
'affectedModules',
|
|
44
|
+
];
|
|
45
|
+
/**
|
|
46
|
+
* Text summary: the recommendation, then the counts and what the lists hold.
|
|
47
|
+
*/
|
|
48
|
+
function describeBuildImpact(result, strategy, summaryOnly) {
|
|
49
|
+
const c = result.counts;
|
|
50
|
+
const lines = [
|
|
51
|
+
result.recommendation,
|
|
52
|
+
`${c.changedFiles} changed, ${c.dependentFiles} dependent file(s) (${c.valueDependentFiles} value, ` +
|
|
53
|
+
`${c.typeOnlyDependentFiles} type-only, ${c.templateDependentFiles} template host(s)), ` +
|
|
54
|
+
`${c.reExportFiles} re-export(s), ${c.affectedModules} module(s); strategy ${strategy}, ` +
|
|
55
|
+
`about ${result.estimatedBuildTime} s build.`,
|
|
56
|
+
];
|
|
57
|
+
if (summaryOnly) {
|
|
58
|
+
lines.push('File lists omitted (summaryOnly).');
|
|
59
|
+
}
|
|
60
|
+
else if (result.truncated) {
|
|
61
|
+
lines.push('File lists capped at maxResults; counts cover everything.');
|
|
62
|
+
}
|
|
63
|
+
return lines.join('\n');
|
|
64
|
+
}
|
|
65
|
+
/** Groups template edges by host component file. */
|
|
66
|
+
function toTemplateHosts(edges) {
|
|
67
|
+
const hosts = new Map();
|
|
68
|
+
for (const edge of edges) {
|
|
69
|
+
const key = `${edge.from}\0${edge.hostClassName}`;
|
|
70
|
+
const host = hosts.get(key) ?? { file: edge.from, component: edge.hostClassName, uses: [] };
|
|
71
|
+
host.uses.push({ className: edge.className, via: edge.via, file: edge.to, templateFile: edge.templateFile });
|
|
72
|
+
hosts.set(key, host);
|
|
73
|
+
}
|
|
74
|
+
return [...hosts.values()];
|
|
75
|
+
}
|
|
17
76
|
/**
|
|
18
77
|
* MCP tool for analyzing build impact before transformations.
|
|
19
78
|
*/
|
|
20
79
|
export class AnalyzeBuildImpactTool {
|
|
80
|
+
projects;
|
|
81
|
+
/**
|
|
82
|
+
* @param projects - Shared project cache; without it every call parses the
|
|
83
|
+
* workspace anew.
|
|
84
|
+
*/
|
|
85
|
+
constructor(projects) {
|
|
86
|
+
this.projects = projects;
|
|
87
|
+
}
|
|
21
88
|
name = 'analyze-build-impact';
|
|
22
|
-
|
|
89
|
+
title = 'Analyze Build Impact';
|
|
90
|
+
annotations = {
|
|
91
|
+
readOnlyHint: true,
|
|
92
|
+
destructiveHint: false,
|
|
93
|
+
idempotentHint: true,
|
|
94
|
+
openWorldHint: false,
|
|
95
|
+
};
|
|
96
|
+
description = 'Analyze build impact before transformations. Estimates affected files, transitive dependents, Angular modules, build time, and provides clear recommendations for AI usage. Helps determine if a transformation is safe to proceed. ' +
|
|
97
|
+
'External .html templates are mapped to their component files. Host components that use a changed component, ' +
|
|
98
|
+
'directive or pipe only in their template (NgModule declarations) are listed as templateHosts. ' +
|
|
99
|
+
'The recommendation and counts come first, summary repeats them as text; ' +
|
|
100
|
+
'use summaryOnly to skip the file lists or maxResults to cap them.';
|
|
23
101
|
inputSchema = {
|
|
24
102
|
type: 'object',
|
|
103
|
+
additionalProperties: false,
|
|
25
104
|
properties: {
|
|
26
105
|
projectPath: {
|
|
27
106
|
type: 'string',
|
|
@@ -41,9 +120,109 @@ export class AnalyzeBuildImpactTool {
|
|
|
41
120
|
},
|
|
42
121
|
description: 'Optional exported symbol names of the changed files. When given, only consumers of exactly these symbols count as dependents, and symbolImpacts lists value / type-only consumers per symbol.',
|
|
43
122
|
},
|
|
123
|
+
...COMPACT_OUTPUT_SCHEMA,
|
|
44
124
|
},
|
|
45
125
|
required: ['projectPath', 'filesToChange'],
|
|
46
126
|
};
|
|
127
|
+
outputSchema = {
|
|
128
|
+
type: 'object',
|
|
129
|
+
properties: {
|
|
130
|
+
recommendation: { type: 'string' },
|
|
131
|
+
counts: {
|
|
132
|
+
type: 'object',
|
|
133
|
+
properties: Object.fromEntries(BUILD_IMPACT_COUNT_KEYS.map((k) => [k, { type: 'integer' }])),
|
|
134
|
+
required: [...BUILD_IMPACT_COUNT_KEYS],
|
|
135
|
+
},
|
|
136
|
+
truncated: { type: 'boolean' },
|
|
137
|
+
estimatedBuildScope: {
|
|
138
|
+
type: 'object',
|
|
139
|
+
properties: {
|
|
140
|
+
strategy: { type: 'string' },
|
|
141
|
+
changedFiles: STRING_ARRAY,
|
|
142
|
+
dependentFiles: STRING_ARRAY,
|
|
143
|
+
affectedModules: STRING_ARRAY,
|
|
144
|
+
estimatedBuildTime: { type: 'number' },
|
|
145
|
+
valueDependentFiles: STRING_ARRAY,
|
|
146
|
+
typeOnlyDependentFiles: STRING_ARRAY,
|
|
147
|
+
reExportFiles: STRING_ARRAY,
|
|
148
|
+
templateDependentFiles: STRING_ARRAY,
|
|
149
|
+
changeSource: { type: 'string' },
|
|
150
|
+
},
|
|
151
|
+
required: ['strategy', 'changedFiles', 'estimatedBuildTime', 'changeSource'],
|
|
152
|
+
},
|
|
153
|
+
affectedFiles: STRING_ARRAY,
|
|
154
|
+
affectedModules: STRING_ARRAY,
|
|
155
|
+
estimatedBuildTime: { type: 'number' },
|
|
156
|
+
mappedFiles: {
|
|
157
|
+
type: 'array',
|
|
158
|
+
items: {
|
|
159
|
+
type: 'object',
|
|
160
|
+
properties: { file: { type: 'string' }, mappedTo: STRING_ARRAY },
|
|
161
|
+
required: ['file', 'mappedTo'],
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
unresolvedFiles: {
|
|
165
|
+
type: 'array',
|
|
166
|
+
items: {
|
|
167
|
+
type: 'object',
|
|
168
|
+
properties: { file: { type: 'string' }, reason: { type: 'string' } },
|
|
169
|
+
required: ['file', 'reason'],
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
dependencies: {
|
|
173
|
+
type: 'array',
|
|
174
|
+
items: {
|
|
175
|
+
type: 'object',
|
|
176
|
+
properties: {
|
|
177
|
+
file: { type: 'string' },
|
|
178
|
+
dependents: { type: 'integer' },
|
|
179
|
+
valueDependents: { type: 'integer' },
|
|
180
|
+
typeOnlyDependents: { type: 'integer' },
|
|
181
|
+
templateDependents: { type: 'integer' },
|
|
182
|
+
isPublicApi: { type: 'boolean' },
|
|
183
|
+
affectedModule: { type: 'string' },
|
|
184
|
+
},
|
|
185
|
+
required: ['file', 'dependents', 'isPublicApi'],
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
symbolImpacts: { type: 'array', items: { type: 'object' } },
|
|
189
|
+
templateHosts: {
|
|
190
|
+
type: 'array',
|
|
191
|
+
items: {
|
|
192
|
+
type: 'object',
|
|
193
|
+
properties: {
|
|
194
|
+
file: { type: 'string' },
|
|
195
|
+
component: { type: 'string' },
|
|
196
|
+
uses: {
|
|
197
|
+
type: 'array',
|
|
198
|
+
items: {
|
|
199
|
+
type: 'object',
|
|
200
|
+
properties: {
|
|
201
|
+
className: { type: 'string' },
|
|
202
|
+
via: { type: 'string' },
|
|
203
|
+
file: { type: 'string' },
|
|
204
|
+
templateFile: { type: 'string' },
|
|
205
|
+
},
|
|
206
|
+
required: ['className', 'via', 'file', 'templateFile'],
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
required: ['file', 'component', 'uses'],
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
summary: { type: 'string' },
|
|
214
|
+
...WARNINGS_OUTPUT_SCHEMA,
|
|
215
|
+
},
|
|
216
|
+
required: [
|
|
217
|
+
'recommendation',
|
|
218
|
+
'counts',
|
|
219
|
+
'truncated',
|
|
220
|
+
'estimatedBuildScope',
|
|
221
|
+
'estimatedBuildTime',
|
|
222
|
+
'dependencies',
|
|
223
|
+
'summary',
|
|
224
|
+
],
|
|
225
|
+
};
|
|
47
226
|
async execute(args) {
|
|
48
227
|
const params = args;
|
|
49
228
|
if (!params.projectPath) {
|
|
@@ -54,6 +233,7 @@ export class AnalyzeBuildImpactTool {
|
|
|
54
233
|
}
|
|
55
234
|
const projectPath = params.projectPath;
|
|
56
235
|
const filesToChange = params.filesToChange;
|
|
236
|
+
const compact = parseCompactOptions(args);
|
|
57
237
|
// Validate project path
|
|
58
238
|
if (!existsSync(projectPath)) {
|
|
59
239
|
throw new Error(`Project path does not exist: ${projectPath}`);
|
|
@@ -66,29 +246,31 @@ export class AnalyzeBuildImpactTool {
|
|
|
66
246
|
? params.symbols.filter((s) => typeof s === 'string')
|
|
67
247
|
: [];
|
|
68
248
|
// Initialize ts-morph project
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
249
|
+
// Shared cache in the server (one parse per workspace); a fresh Project otherwise
|
|
250
|
+
const project = this.projects?.get(tsConfigPath) ??
|
|
251
|
+
new Project({
|
|
252
|
+
tsConfigFilePath: tsConfigPath,
|
|
253
|
+
skipAddingFilesFromTsConfig: false,
|
|
254
|
+
});
|
|
73
255
|
// Normalize file paths to absolute paths
|
|
74
|
-
const
|
|
256
|
+
const requestedFiles = filesToChange.map((file) => {
|
|
75
257
|
if (file.startsWith('/')) {
|
|
76
258
|
return file;
|
|
77
259
|
}
|
|
78
260
|
return join(projectPath, file);
|
|
79
261
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
262
|
+
const { changedFiles: normalizedFiles, templateOnlyFiles, mappedFiles, unresolvedFiles, } = this.resolveChangedFiles(project, requestedFiles);
|
|
263
|
+
if (normalizedFiles.length === 0) {
|
|
264
|
+
throw new Error(`No requested file is part of the TypeScript program: ${unresolvedFiles
|
|
265
|
+
.map((u) => `${u.file} (${u.reason})`)
|
|
266
|
+
.join(', ')}`);
|
|
86
267
|
}
|
|
87
268
|
// Create IncrementalAnalyzer and get build scope using core infrastructure
|
|
88
269
|
const incrementalAnalyzer = new IncrementalAnalyzer(project);
|
|
89
270
|
// The requested files ARE the changed set (forceFiles)
|
|
90
271
|
const buildScope = await incrementalAnalyzer.getBuildScope({
|
|
91
272
|
forceFiles: normalizedFiles,
|
|
273
|
+
...(templateOnlyFiles.length > 0 ? { templateOnlyFiles } : {}),
|
|
92
274
|
...(symbols.length > 0 ? { symbols } : {}),
|
|
93
275
|
});
|
|
94
276
|
// Extract build scope information
|
|
@@ -98,6 +280,7 @@ export class AnalyzeBuildImpactTool {
|
|
|
98
280
|
const estimatedBuildTime = buildScope.estimatedBuildTime;
|
|
99
281
|
const valueDependentFiles = buildScope.valueDependentFiles ?? dependentFiles;
|
|
100
282
|
const typeOnlyDependentFiles = buildScope.typeOnlyDependentFiles ?? [];
|
|
283
|
+
const templateDependentFiles = buildScope.templateDependentFiles ?? [];
|
|
101
284
|
// Calculate detailed dependency info for each changed file
|
|
102
285
|
const dependencies = [];
|
|
103
286
|
for (const changedFile of normalizedFiles) {
|
|
@@ -118,34 +301,133 @@ export class AnalyzeBuildImpactTool {
|
|
|
118
301
|
// Generate recommendation
|
|
119
302
|
const totalAffectedFiles = normalizedFiles.length + dependentFiles.length;
|
|
120
303
|
const baseRecommendation = this.generateRecommendation(totalAffectedFiles, strategy, estimatedBuildTime, dependencies);
|
|
121
|
-
const
|
|
122
|
-
?
|
|
123
|
-
:
|
|
304
|
+
const typeOnlyNote = typeOnlyDependentFiles.length > 0
|
|
305
|
+
? ` ${typeOnlyDependentFiles.length} of the dependents import types only (type-check, no JS rebuild).`
|
|
306
|
+
: '';
|
|
307
|
+
const templateNote = templateDependentFiles.length > 0
|
|
308
|
+
? ` ${templateDependentFiles.length} host component(s) use the changed classes only in their templates (recompile and template type-check), see templateHosts.`
|
|
309
|
+
: '';
|
|
310
|
+
const unresolvedNote = unresolvedFiles.length > 0
|
|
311
|
+
? ` ${unresolvedFiles.length} requested file(s) could not be analyzed, see unresolvedFiles.`
|
|
312
|
+
: '';
|
|
313
|
+
const recommendation = `${baseRecommendation}${typeOnlyNote}${templateNote}${unresolvedNote}`;
|
|
314
|
+
const reExportFiles = buildScope.reExportFiles ?? [];
|
|
315
|
+
// All affected files (changed + dependents)
|
|
316
|
+
const affectedFiles = [...normalizedFiles, ...dependentFiles];
|
|
317
|
+
const counts = {
|
|
318
|
+
changedFiles: normalizedFiles.length,
|
|
319
|
+
dependentFiles: dependentFiles.length,
|
|
320
|
+
valueDependentFiles: valueDependentFiles.length,
|
|
321
|
+
typeOnlyDependentFiles: typeOnlyDependentFiles.length,
|
|
322
|
+
templateDependentFiles: templateDependentFiles.length,
|
|
323
|
+
reExportFiles: reExportFiles.length,
|
|
324
|
+
affectedFiles: affectedFiles.length,
|
|
325
|
+
affectedModules: affectedModules.length,
|
|
326
|
+
};
|
|
327
|
+
const lists = this.compactLists({
|
|
328
|
+
dependentFiles,
|
|
329
|
+
affectedModules,
|
|
330
|
+
valueDependentFiles,
|
|
331
|
+
typeOnlyDependentFiles,
|
|
332
|
+
templateDependentFiles,
|
|
333
|
+
reExportFiles,
|
|
334
|
+
affectedFiles,
|
|
335
|
+
}, compact);
|
|
336
|
+
const templateHosts = compact.summaryOnly
|
|
337
|
+
? undefined
|
|
338
|
+
: limitList(toTemplateHosts(buildScope.templateEdges ?? []), compact.maxResults);
|
|
124
339
|
// Build estimated scope
|
|
125
340
|
const estimatedBuildScope = {
|
|
126
341
|
strategy,
|
|
127
342
|
changedFiles: normalizedFiles,
|
|
128
|
-
dependentFiles,
|
|
129
|
-
affectedModules,
|
|
343
|
+
...(lists.dependentFiles ? { dependentFiles: lists.dependentFiles } : {}),
|
|
344
|
+
...(lists.affectedModules ? { affectedModules: lists.affectedModules } : {}),
|
|
130
345
|
estimatedBuildTime,
|
|
131
|
-
valueDependentFiles
|
|
132
|
-
|
|
133
|
-
|
|
346
|
+
...(lists.valueDependentFiles
|
|
347
|
+
? { valueDependentFiles: lists.valueDependentFiles }
|
|
348
|
+
: {}),
|
|
349
|
+
...(lists.typeOnlyDependentFiles
|
|
350
|
+
? { typeOnlyDependentFiles: lists.typeOnlyDependentFiles }
|
|
351
|
+
: {}),
|
|
352
|
+
...(lists.reExportFiles ? { reExportFiles: lists.reExportFiles } : {}),
|
|
353
|
+
...(lists.templateDependentFiles && lists.templateDependentFiles.length > 0
|
|
354
|
+
? { templateDependentFiles: lists.templateDependentFiles }
|
|
355
|
+
: {}),
|
|
134
356
|
changeSource: buildScope.changeSource ?? 'forced',
|
|
135
357
|
};
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
358
|
+
const truncated = lists.truncated || (templateHosts?.truncated ?? false);
|
|
359
|
+
const result = {
|
|
360
|
+
recommendation,
|
|
361
|
+
counts,
|
|
362
|
+
truncated,
|
|
139
363
|
estimatedBuildScope,
|
|
140
|
-
affectedFiles,
|
|
141
|
-
affectedModules,
|
|
364
|
+
...(lists.affectedFiles ? { affectedFiles: lists.affectedFiles } : {}),
|
|
365
|
+
...(lists.affectedModules ? { affectedModules: lists.affectedModules } : {}),
|
|
142
366
|
estimatedBuildTime,
|
|
143
|
-
|
|
367
|
+
...(mappedFiles.length > 0 ? { mappedFiles } : {}),
|
|
368
|
+
...(unresolvedFiles.length > 0 ? { unresolvedFiles } : {}),
|
|
144
369
|
dependencies,
|
|
145
|
-
...(buildScope.symbolImpacts
|
|
370
|
+
...(buildScope.symbolImpacts && !compact.summaryOnly
|
|
146
371
|
? { symbolImpacts: buildScope.symbolImpacts }
|
|
147
372
|
: {}),
|
|
373
|
+
...(templateHosts && templateHosts.items.length > 0
|
|
374
|
+
? { templateHosts: templateHosts.items }
|
|
375
|
+
: {}),
|
|
148
376
|
};
|
|
377
|
+
const warnings = this.projects?.warnings(tsConfigPath) ?? [];
|
|
378
|
+
return withWarnings({ ...result, summary: describeBuildImpact(result, strategy, compact.summaryOnly) }, warnings);
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Splits the requested files into files of the TypeScript program, `.html`
|
|
382
|
+
* templates mapped to their component files, and files that fit neither.
|
|
383
|
+
* Components reached only through their template are returned as
|
|
384
|
+
* `templateOnlyFiles`: they are recompiled, their dependents are not.
|
|
385
|
+
*/
|
|
386
|
+
resolveChangedFiles(project, requestedFiles) {
|
|
387
|
+
const changed = new Set();
|
|
388
|
+
const direct = new Set();
|
|
389
|
+
const mappedFiles = [];
|
|
390
|
+
const unresolvedFiles = [];
|
|
391
|
+
for (const file of requestedFiles) {
|
|
392
|
+
if (project.getSourceFile(file)) {
|
|
393
|
+
changed.add(file);
|
|
394
|
+
direct.add(file);
|
|
395
|
+
continue;
|
|
396
|
+
}
|
|
397
|
+
if (!file.endsWith('.html')) {
|
|
398
|
+
unresolvedFiles.push({ file, reason: 'not in the TypeScript program' });
|
|
399
|
+
continue;
|
|
400
|
+
}
|
|
401
|
+
const owners = findTemplateOwnerFiles(project, file);
|
|
402
|
+
if (owners.length === 0) {
|
|
403
|
+
unresolvedFiles.push({ file, reason: 'no component references this template' });
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
mappedFiles.push({ file, mappedTo: owners });
|
|
407
|
+
owners.forEach((owner) => changed.add(owner));
|
|
408
|
+
}
|
|
409
|
+
return {
|
|
410
|
+
changedFiles: [...changed],
|
|
411
|
+
templateOnlyFiles: [...changed].filter((file) => !direct.has(file)),
|
|
412
|
+
mappedFiles,
|
|
413
|
+
unresolvedFiles,
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Applies `summaryOnly` (drop every list) or `maxResults` (cap each list).
|
|
418
|
+
*/
|
|
419
|
+
compactLists(lists, compact) {
|
|
420
|
+
if (compact.summaryOnly) {
|
|
421
|
+
return { truncated: false };
|
|
422
|
+
}
|
|
423
|
+
const result = {};
|
|
424
|
+
let truncated = false;
|
|
425
|
+
for (const key of Object.keys(lists)) {
|
|
426
|
+
const limited = limitList(lists[key], compact.maxResults);
|
|
427
|
+
result[key] = limited.items;
|
|
428
|
+
truncated ||= limited.truncated;
|
|
429
|
+
}
|
|
430
|
+
return { ...result, truncated };
|
|
149
431
|
}
|
|
150
432
|
/**
|
|
151
433
|
* Dependent counts for one changed file. Uses the per-file breakdown when
|
|
@@ -156,10 +438,12 @@ export class AnalyzeBuildImpactTool {
|
|
|
156
438
|
if (fileImpact) {
|
|
157
439
|
const valueDependents = fileImpact.valueDependents.length;
|
|
158
440
|
const typeOnlyDependents = fileImpact.typeOnlyDependents.length;
|
|
441
|
+
const templateDependents = fileImpact.templateDependents?.length ?? 0;
|
|
159
442
|
return {
|
|
160
|
-
dependents: valueDependents + typeOnlyDependents,
|
|
443
|
+
dependents: valueDependents + typeOnlyDependents + templateDependents,
|
|
161
444
|
valueDependents,
|
|
162
445
|
typeOnlyDependents,
|
|
446
|
+
...(templateDependents > 0 ? { templateDependents } : {}),
|
|
163
447
|
};
|
|
164
448
|
}
|
|
165
449
|
if (changedFileCount === 1) {
|
|
@@ -177,13 +461,13 @@ export class AnalyzeBuildImpactTool {
|
|
|
177
461
|
return `Public API change detected (${totalAffectedFiles} files affected, ~${estimatedBuildTime}s build time). High impact - may affect many files. Consider smaller batch or review dependents carefully.`;
|
|
178
462
|
}
|
|
179
463
|
if (totalAffectedFiles <= 10) {
|
|
180
|
-
return `Safe to transform, minimal impact (${totalAffectedFiles} files affected, ~${estimatedBuildTime}s build time). Recommended strategy: ${strategy}
|
|
464
|
+
return `Safe to transform, minimal impact (${totalAffectedFiles} files affected, ~${estimatedBuildTime}s build time). Recommended strategy: ${strategy}.`;
|
|
181
465
|
}
|
|
182
466
|
else if (totalAffectedFiles <= 50) {
|
|
183
|
-
return `Medium impact (${totalAffectedFiles} files affected, ~${estimatedBuildTime}s build time). Incremental build recommended. Strategy: ${strategy}
|
|
467
|
+
return `Medium impact (${totalAffectedFiles} files affected, ~${estimatedBuildTime}s build time). Incremental build recommended. Strategy: ${strategy}.`;
|
|
184
468
|
}
|
|
185
469
|
else {
|
|
186
|
-
return `High impact (${totalAffectedFiles} files affected, ~${estimatedBuildTime}s build time). Consider smaller batch or use full build. Strategy: ${strategy}
|
|
470
|
+
return `High impact (${totalAffectedFiles} files affected, ~${estimatedBuildTime}s build time). Consider smaller batch or use full build. Strategy: ${strategy}.`;
|
|
187
471
|
}
|
|
188
472
|
}
|
|
189
473
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* MCP tool for analyzing core-to-shared dependency violations with impact assessment.
|
|
5
5
|
* Detects when core layer imports from shared layer and provides detailed refactoring guidance.
|
|
6
6
|
*/
|
|
7
|
-
import type { MCPTool } from '../types.js';
|
|
7
|
+
import type { MCPTool, ToolAnnotations } from '../types.js';
|
|
8
8
|
/**
|
|
9
9
|
* Result from the analyze-core-to-shared tool.
|
|
10
10
|
*/
|
|
@@ -33,15 +33,19 @@ interface AnalyzeCoreToSharedResult {
|
|
|
33
33
|
metadata?: Record<string, unknown>;
|
|
34
34
|
}[];
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Counts over all violations.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
counts: {
|
|
39
39
|
totalViolations: number;
|
|
40
40
|
analyzedFiles: number;
|
|
41
41
|
bySeverity: Record<string, number>;
|
|
42
42
|
affectedCoreFiles: number;
|
|
43
43
|
uniqueSharedModules: number;
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Human-readable summary for LLM consumption.
|
|
47
|
+
*/
|
|
48
|
+
summary: string;
|
|
45
49
|
/**
|
|
46
50
|
* Analysis metadata.
|
|
47
51
|
*/
|
|
@@ -59,9 +63,12 @@ interface AnalyzeCoreToSharedResult {
|
|
|
59
63
|
*/
|
|
60
64
|
export declare class AnalyzeCoreToSharedTool implements MCPTool {
|
|
61
65
|
readonly name = "analyze-core-to-shared";
|
|
62
|
-
readonly
|
|
66
|
+
readonly title = "Analyze Core-to-Shared Candidates";
|
|
67
|
+
readonly annotations: ToolAnnotations;
|
|
68
|
+
readonly description: string;
|
|
63
69
|
readonly inputSchema: {
|
|
64
70
|
type: string;
|
|
71
|
+
additionalProperties: boolean;
|
|
65
72
|
properties: {
|
|
66
73
|
rootPath: {
|
|
67
74
|
type: string;
|
|
@@ -109,6 +116,129 @@ export declare class AnalyzeCoreToSharedTool implements MCPTool {
|
|
|
109
116
|
};
|
|
110
117
|
required: string[];
|
|
111
118
|
};
|
|
119
|
+
readonly outputSchema: {
|
|
120
|
+
type: string;
|
|
121
|
+
properties: {
|
|
122
|
+
violations: {
|
|
123
|
+
type: string;
|
|
124
|
+
items: {
|
|
125
|
+
type: string;
|
|
126
|
+
properties: {
|
|
127
|
+
id: {
|
|
128
|
+
type: string;
|
|
129
|
+
};
|
|
130
|
+
filePath: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
line: {
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
importedModule: {
|
|
137
|
+
type: string;
|
|
138
|
+
};
|
|
139
|
+
importedItem: {
|
|
140
|
+
type: string;
|
|
141
|
+
};
|
|
142
|
+
severity: {
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
message: {
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
impactAssessment: {
|
|
149
|
+
type: string;
|
|
150
|
+
properties: {
|
|
151
|
+
breakingChangeRisk: {
|
|
152
|
+
type: string;
|
|
153
|
+
};
|
|
154
|
+
riskFactors: {
|
|
155
|
+
readonly type: "array";
|
|
156
|
+
readonly items: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
reverseDependencies: {
|
|
161
|
+
type: string;
|
|
162
|
+
items: {
|
|
163
|
+
type: string;
|
|
164
|
+
properties: {
|
|
165
|
+
file: {
|
|
166
|
+
type: string;
|
|
167
|
+
};
|
|
168
|
+
imports: {
|
|
169
|
+
readonly type: "array";
|
|
170
|
+
readonly items: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
required: string[];
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
transitiveDependencies: {
|
|
179
|
+
readonly type: "array";
|
|
180
|
+
readonly items: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
required: string[];
|
|
186
|
+
};
|
|
187
|
+
suggestedFix: {
|
|
188
|
+
type: string;
|
|
189
|
+
};
|
|
190
|
+
metadata: {
|
|
191
|
+
type: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
required: string[];
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
counts: {
|
|
198
|
+
type: string;
|
|
199
|
+
properties: {
|
|
200
|
+
totalViolations: {
|
|
201
|
+
type: string;
|
|
202
|
+
};
|
|
203
|
+
analyzedFiles: {
|
|
204
|
+
type: string;
|
|
205
|
+
};
|
|
206
|
+
bySeverity: {
|
|
207
|
+
readonly type: "object";
|
|
208
|
+
readonly additionalProperties: {
|
|
209
|
+
readonly type: "integer";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
affectedCoreFiles: {
|
|
213
|
+
type: string;
|
|
214
|
+
};
|
|
215
|
+
uniqueSharedModules: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
required: string[];
|
|
220
|
+
};
|
|
221
|
+
metadata: {
|
|
222
|
+
type: string;
|
|
223
|
+
properties: {
|
|
224
|
+
duration: {
|
|
225
|
+
type: string;
|
|
226
|
+
};
|
|
227
|
+
projectRoot: {
|
|
228
|
+
type: string;
|
|
229
|
+
};
|
|
230
|
+
impactAssessmentEnabled: {
|
|
231
|
+
type: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
required: string[];
|
|
235
|
+
};
|
|
236
|
+
summary: {
|
|
237
|
+
type: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
required: string[];
|
|
241
|
+
};
|
|
112
242
|
execute(args: Record<string, unknown>): Promise<AnalyzeCoreToSharedResult>;
|
|
113
243
|
/**
|
|
114
244
|
* Find files to analyze based on patterns.
|