@angular-modernizer/adapter-mcp 0.3.0 → 1.1.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 +181 -282
- package/dist/cli.js +21 -13
- package/dist/core/project-analyzer.d.ts +3 -12
- package/dist/core/project-analyzer.js +3 -12
- package/dist/index.d.ts +122 -6
- package/dist/index.js +49 -5
- package/dist/mcp-watcher.d.ts +32 -7
- package/dist/mcp-watcher.js +16 -15
- package/dist/scan-host/scan-host.d.ts +119 -0
- package/dist/scan-host/scan-host.js +376 -0
- package/dist/scan-host/scan-protocol.d.ts +35 -0
- package/dist/scan-host/scan-protocol.js +6 -0
- package/dist/scan-host/scan-worker.d.ts +14 -0
- package/dist/scan-host/scan-worker.js +48 -0
- package/dist/server/limited-stdio-transport.d.ts +75 -0
- package/dist/server/limited-stdio-transport.js +115 -0
- package/dist/server/mcp-server.d.ts +20 -18
- package/dist/server/mcp-server.js +42 -79
- package/dist/server/package-version.d.ts +16 -0
- package/dist/server/package-version.js +37 -0
- package/dist/server/sdk-server.d.ts +71 -0
- package/dist/server/sdk-server.js +113 -0
- package/dist/server/tool-registry.d.ts +6 -9
- package/dist/server/tool-registry.js +6 -12
- package/dist/streaming/progress-store.d.ts +22 -5
- package/dist/streaming/progress-store.js +9 -5
- package/dist/tools/analyze-build-impact.d.ts +276 -35
- package/dist/tools/analyze-build-impact.js +175 -28
- package/dist/tools/analyze-core-to-shared.d.ts +176 -16
- package/dist/tools/analyze-core-to-shared.js +124 -19
- package/dist/tools/analyze-parser-performance.d.ts +209 -15
- package/dist/tools/analyze-parser-performance.js +119 -56
- package/dist/tools/analyze-project.d.ts +349 -17
- package/dist/tools/analyze-project.js +282 -97
- package/dist/tools/check-incremental-compatibility.d.ts +74 -12
- package/dist/tools/check-incremental-compatibility.js +69 -10
- package/dist/tools/collect-feedback.d.ts +225 -21
- package/dist/tools/collect-feedback.js +199 -118
- package/dist/tools/compare-health.d.ts +413 -0
- package/dist/tools/compare-health.js +479 -0
- package/dist/tools/extract-libraries.d.ts +200 -24
- package/dist/tools/extract-libraries.js +131 -27
- package/dist/tools/find-angular-symbol.d.ts +92 -24
- package/dist/tools/find-angular-symbol.js +70 -20
- package/dist/tools/find-component-hosts.d.ts +603 -27
- package/dist/tools/find-component-hosts.js +223 -19
- package/dist/tools/find-usages.d.ts +102 -22
- package/dist/tools/find-usages.js +81 -21
- package/dist/tools/get-bootstrap-execution.d.ts +183 -25
- package/dist/tools/get-bootstrap-execution.js +109 -25
- package/dist/tools/get-call-graph.d.ts +127 -12
- package/dist/tools/get-call-graph.js +84 -19
- package/dist/tools/get-operation-progress-tool.d.ts +126 -8
- package/dist/tools/get-operation-progress-tool.js +124 -12
- package/dist/tools/get-operation-progress.d.ts +27 -1
- package/dist/tools/get-operation-progress.js +5 -5
- package/dist/tools/helpers/analysis-output.d.ts +182 -0
- package/dist/tools/helpers/analysis-output.js +165 -0
- package/dist/tools/helpers/batch-kernel.d.ts +14 -0
- package/dist/tools/helpers/batch-kernel.js +12 -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 +2 -1
- package/dist/tools/helpers/compact-output.js +2 -1
- 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 +99 -0
- package/dist/tools/helpers/health-delta.js +236 -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 +60 -37
- package/dist/tools/helpers/project-cache.js +54 -37
- 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 +25 -13
- package/dist/tools/helpers/rule-runner.js +45 -24
- package/dist/tools/helpers/scan-cache.d.ts +22 -0
- package/dist/tools/helpers/scan-cache.js +34 -0
- package/dist/tools/helpers/scan-engine.d.ts +107 -0
- package/dist/tools/helpers/scan-engine.js +197 -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/suggestion-generator.d.ts +9 -13
- package/dist/tools/helpers/suggestion-generator.js +0 -12
- package/dist/tools/helpers/tool-cache.d.ts +11 -0
- package/dist/tools/helpers/tool-cache.js +15 -0
- package/dist/tools/helpers/tool-context.d.ts +63 -0
- package/dist/tools/helpers/tool-context.js +79 -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 +262 -24
- package/dist/tools/inspect-form-group.js +134 -13
- package/dist/tools/inspect-i18n.d.ts +410 -23
- package/dist/tools/inspect-i18n.js +213 -13
- package/dist/tools/inspect-template.d.ts +260 -22
- package/dist/tools/inspect-template.js +174 -13
- package/dist/tools/learn-patterns.d.ts +210 -13
- package/dist/tools/learn-patterns.js +113 -12
- package/dist/tools/list-imports.d.ts +152 -34
- package/dist/tools/list-imports.js +124 -18
- package/dist/tools/orchestrate-migration.d.ts +159 -14
- package/dist/tools/orchestrate-migration.js +147 -20
- package/dist/tools/parse-stack-trace.d.ts +78 -21
- package/dist/tools/parse-stack-trace.js +44 -7
- package/dist/tools/plan-migration.d.ts +395 -26
- package/dist/tools/plan-migration.js +173 -22
- package/dist/tools/resolve-type.d.ts +57 -9
- package/dist/tools/resolve-type.js +49 -12
- package/dist/tools/review-feedback.d.ts +214 -16
- package/dist/tools/review-feedback.js +142 -57
- package/dist/tools/rollback-changes.d.ts +88 -7
- package/dist/tools/rollback-changes.js +74 -19
- package/dist/tools/run-angular-cli.d.ts +57 -12
- package/dist/tools/run-angular-cli.js +76 -13
- package/dist/tools/run-build.d.ts +127 -13
- package/dist/tools/run-build.js +128 -16
- package/dist/tools/run-schematic.d.ts +82 -12
- package/dist/tools/run-schematic.js +115 -18
- package/dist/tools/scan-all.d.ts +88 -23
- package/dist/tools/scan-all.js +161 -220
- package/dist/tools/scan-angular.d.ts +60 -19
- package/dist/tools/scan-angular.js +100 -141
- package/dist/tools/scan-architecture.d.ts +92 -24
- package/dist/tools/scan-architecture.js +268 -211
- package/dist/tools/scan-solid.d.ts +59 -19
- package/dist/tools/scan-solid.js +98 -139
- package/dist/tools/search-codebase.d.ts +110 -23
- package/dist/tools/search-codebase.js +67 -11
- package/dist/tools/server-status.d.ts +392 -26
- package/dist/tools/server-status.js +260 -27
- package/dist/tools/suggest-improvements.d.ts +105 -10
- package/dist/tools/suggest-improvements.js +91 -51
- package/dist/tools/trace-output-flow.d.ts +713 -26
- package/dist/tools/trace-output-flow.js +396 -33
- 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 +402 -18
- package/dist/tools/transform-code.js +708 -649
- package/dist/tools/validate-before-transform.d.ts +136 -7
- package/dist/tools/validate-before-transform.js +65 -9
- package/dist/tools/validate-project-compatibility.d.ts +82 -15
- package/dist/tools/validate-project-compatibility.js +84 -15
- package/dist/tools/validate-transformation.d.ts +243 -8
- package/dist/tools/validate-transformation.js +127 -23
- package/dist/tools/verify-citations.d.ts +202 -0
- package/dist/tools/verify-citations.js +221 -0
- package/dist/types.d.ts +78 -11
- package/dist/types.js +0 -5
- package/dist/utils/format-tool-response.d.ts +22 -59
- package/dist/utils/format-tool-response.js +25 -134
- package/package.json +31 -20
- 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 +0 -200
- package/dist/tools/shared/scan-types.d.ts.map +0 -1
- package/dist/tools/shared/scan-types.js +0 -7
- 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
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
* @angular-modernizer/adapter-mcp - Find Component Hosts Tool
|
|
3
|
-
*
|
|
4
|
-
* MCP tool that lists every template using a component or directive and,
|
|
5
|
-
* per host, which inputs and outputs are bound, unbound or missing, plus
|
|
6
|
-
* the places creating a component in code (dialogs, `createComponent`,
|
|
7
|
-
* wrappers) as `dynamicHosts`.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* Logic lives in `ComponentHostFinder` (`@angular-modernizer/api`); this tool
|
|
11
|
-
* resolves the project, validates arguments and applies the compact output
|
|
12
|
-
* contract (`maxResults` caps the host list and the dynamic host list each).
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* // Via MCP:
|
|
17
|
-
* // tool: find-component-hosts
|
|
18
|
-
* // args: { className: 'ItemComponent', projectRoot: '/project' }
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
import { type MCPTool } from '../types.js';
|
|
1
|
+
import { type MCPTool, type ToolAnnotations } from '../types.js';
|
|
22
2
|
import { type BindingCoverage, type ComponentHost, type ComponentHostResult, type DynamicHost } from '@angular-modernizer/api';
|
|
23
3
|
import { ProjectCache } from './helpers/project-cache.js';
|
|
24
4
|
/** Coverage entry with the host name lists dropped (summaryOnly) or capped (maxResults). */
|
|
25
|
-
type CoverageOutput = Pick<BindingCoverage, 'bound' | 'unbound'> & Partial<Pick<BindingCoverage, 'boundIn' | 'unboundIn'>>;
|
|
5
|
+
export type CoverageOutput = Pick<BindingCoverage, 'bound' | 'unbound'> & Partial<Pick<BindingCoverage, 'boundIn' | 'unboundIn'>>;
|
|
26
6
|
/** A host with occurrences optionally dropped. */
|
|
27
|
-
type HostOutput = Omit<ComponentHost, 'occurrences'> & Partial<Pick<ComponentHost, 'occurrences'>>;
|
|
7
|
+
export type HostOutput = Omit<ComponentHost, 'occurrences'> & Partial<Pick<ComponentHost, 'occurrences'>>;
|
|
28
8
|
/**
|
|
29
9
|
* Output of the find-component-hosts tool.
|
|
30
10
|
*/
|
|
31
|
-
interface FindComponentHostsOutput extends Omit<ComponentHostResult, 'hosts' | 'coverage' | 'dynamicHosts' | 'candidateHosts'> {
|
|
11
|
+
export interface FindComponentHostsOutput extends Omit<ComponentHostResult, 'hosts' | 'coverage' | 'dynamicHosts' | 'candidateHosts'> {
|
|
32
12
|
/** Per input/output: host counts, and host names unless summaryOnly (capped by maxResults). */
|
|
33
13
|
coverage: {
|
|
14
|
+
/** Coverage per input name. */
|
|
34
15
|
inputs: Record<string, CoverageOutput>;
|
|
16
|
+
/** Coverage per output name. */
|
|
35
17
|
outputs: Record<string, CoverageOutput>;
|
|
36
18
|
};
|
|
37
19
|
/** Hosts, cut to `maxResults`; omitted with `summaryOnly`. */
|
|
@@ -46,19 +28,45 @@ interface FindComponentHostsOutput extends Omit<ComponentHostResult, 'hosts' | '
|
|
|
46
28
|
candidateHosts?: DynamicHost[];
|
|
47
29
|
/** `true` when `maxResults` cut the candidate list. */
|
|
48
30
|
candidateTruncated: boolean;
|
|
31
|
+
/** Short text summary of the hosts and the binding coverage. */
|
|
49
32
|
summary: string;
|
|
33
|
+
/** The tsconfig whose program was searched. */
|
|
50
34
|
tsConfigPath: string;
|
|
35
|
+
/** Conditions that can make the result incomplete (unresolved library imports). */
|
|
36
|
+
warnings?: string[];
|
|
51
37
|
}
|
|
52
38
|
/**
|
|
53
|
-
* MCP tool that
|
|
39
|
+
* MCP tool that lists every template using a component or directive and,
|
|
40
|
+
* per host, which inputs and outputs are bound, unbound or missing, plus
|
|
41
|
+
* the places creating a component in code (dialogs, `createComponent`,
|
|
42
|
+
* wrappers) as `dynamicHosts`.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Logic lives in `ComponentHostFinder` (`@angular-modernizer/api`); this tool
|
|
46
|
+
* resolves the project, validates arguments and applies the compact output
|
|
47
|
+
* contract (`maxResults` caps the host list and the dynamic host list each).
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* // Via MCP:
|
|
52
|
+
* // tool: find-component-hosts
|
|
53
|
+
* // args: { className: 'ItemComponent', projectRoot: '/project' }
|
|
54
|
+
* ```
|
|
54
55
|
*/
|
|
55
56
|
export declare class FindComponentHostsTool implements MCPTool {
|
|
56
57
|
private readonly projects;
|
|
57
58
|
readonly name = "find-component-hosts";
|
|
59
|
+
readonly title = "Find Component Hosts";
|
|
60
|
+
readonly annotations: ToolAnnotations;
|
|
58
61
|
constructor(projects?: ProjectCache);
|
|
59
62
|
readonly description: string;
|
|
63
|
+
/**
|
|
64
|
+
* JSON Schema of the tool arguments.
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
60
67
|
readonly inputSchema: {
|
|
61
68
|
type: string;
|
|
69
|
+
additionalProperties: boolean;
|
|
62
70
|
properties: {
|
|
63
71
|
summaryOnly: {
|
|
64
72
|
readonly type: "boolean";
|
|
@@ -103,12 +111,580 @@ export declare class FindComponentHostsTool implements MCPTool {
|
|
|
103
111
|
};
|
|
104
112
|
required: string[];
|
|
105
113
|
};
|
|
114
|
+
/**
|
|
115
|
+
* JSON Schema of the tool result (`structuredContent`).
|
|
116
|
+
* @hidden
|
|
117
|
+
*/
|
|
118
|
+
readonly outputSchema: {
|
|
119
|
+
type: string;
|
|
120
|
+
properties: {
|
|
121
|
+
warnings: {
|
|
122
|
+
readonly type: "array";
|
|
123
|
+
readonly items: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
};
|
|
126
|
+
readonly description: "Conditions that can make the result incomplete, e.g. library imports that do not resolve because node_modules is missing.";
|
|
127
|
+
};
|
|
128
|
+
target: {
|
|
129
|
+
type: string;
|
|
130
|
+
properties: {
|
|
131
|
+
className: {
|
|
132
|
+
type: string;
|
|
133
|
+
};
|
|
134
|
+
kind: {
|
|
135
|
+
type: string;
|
|
136
|
+
};
|
|
137
|
+
selector: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
file: {
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
inputs: {
|
|
144
|
+
type: string;
|
|
145
|
+
items: {
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly properties: {
|
|
148
|
+
readonly name: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
};
|
|
151
|
+
readonly property: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
};
|
|
154
|
+
readonly required: {
|
|
155
|
+
readonly type: "boolean";
|
|
156
|
+
};
|
|
157
|
+
readonly source: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
};
|
|
160
|
+
readonly inheritedFrom: {
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly required: readonly ["name", "property", "source"];
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
outputs: {
|
|
168
|
+
type: string;
|
|
169
|
+
items: {
|
|
170
|
+
readonly type: "object";
|
|
171
|
+
readonly properties: {
|
|
172
|
+
readonly name: {
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
};
|
|
175
|
+
readonly property: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
};
|
|
178
|
+
readonly required: {
|
|
179
|
+
readonly type: "boolean";
|
|
180
|
+
};
|
|
181
|
+
readonly source: {
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
};
|
|
184
|
+
readonly inheritedFrom: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly required: readonly ["name", "property", "source"];
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
required: string[];
|
|
193
|
+
};
|
|
194
|
+
alternatives: {
|
|
195
|
+
readonly type: "array";
|
|
196
|
+
readonly items: {
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
readonly properties: {
|
|
199
|
+
readonly className: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
};
|
|
202
|
+
readonly file: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
};
|
|
205
|
+
readonly selector: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly required: readonly ["className", "file", "selector"];
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
counts: {
|
|
213
|
+
type: string;
|
|
214
|
+
properties: {
|
|
215
|
+
hosts: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
occurrences: {
|
|
219
|
+
type: string;
|
|
220
|
+
};
|
|
221
|
+
templatesScanned: {
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
occurrencesMissingRequired: {
|
|
225
|
+
type: string;
|
|
226
|
+
};
|
|
227
|
+
dynamicHosts: {
|
|
228
|
+
type: string;
|
|
229
|
+
};
|
|
230
|
+
candidateHosts: {
|
|
231
|
+
type: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
required: string[];
|
|
235
|
+
};
|
|
236
|
+
coverage: {
|
|
237
|
+
type: string;
|
|
238
|
+
properties: {
|
|
239
|
+
inputs: {
|
|
240
|
+
readonly type: "object";
|
|
241
|
+
readonly additionalProperties: {
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly properties: {
|
|
244
|
+
readonly bound: {
|
|
245
|
+
readonly type: "integer";
|
|
246
|
+
};
|
|
247
|
+
readonly unbound: {
|
|
248
|
+
readonly type: "integer";
|
|
249
|
+
};
|
|
250
|
+
readonly boundIn: {
|
|
251
|
+
readonly type: "array";
|
|
252
|
+
readonly items: {
|
|
253
|
+
readonly type: "string";
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
readonly unboundIn: {
|
|
257
|
+
readonly type: "array";
|
|
258
|
+
readonly items: {
|
|
259
|
+
readonly type: "string";
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly required: readonly ["bound", "unbound"];
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
outputs: {
|
|
267
|
+
readonly type: "object";
|
|
268
|
+
readonly additionalProperties: {
|
|
269
|
+
readonly type: "object";
|
|
270
|
+
readonly properties: {
|
|
271
|
+
readonly bound: {
|
|
272
|
+
readonly type: "integer";
|
|
273
|
+
};
|
|
274
|
+
readonly unbound: {
|
|
275
|
+
readonly type: "integer";
|
|
276
|
+
};
|
|
277
|
+
readonly boundIn: {
|
|
278
|
+
readonly type: "array";
|
|
279
|
+
readonly items: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly unboundIn: {
|
|
284
|
+
readonly type: "array";
|
|
285
|
+
readonly items: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly required: readonly ["bound", "unbound"];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
required: string[];
|
|
295
|
+
};
|
|
296
|
+
hosts: {
|
|
297
|
+
type: string;
|
|
298
|
+
items: {
|
|
299
|
+
readonly type: "object";
|
|
300
|
+
readonly properties: {
|
|
301
|
+
readonly boundInputs: {
|
|
302
|
+
readonly type: "array";
|
|
303
|
+
readonly items: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
readonly boundOutputs: {
|
|
308
|
+
readonly type: "array";
|
|
309
|
+
readonly items: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly unboundInputs: {
|
|
314
|
+
readonly type: "array";
|
|
315
|
+
readonly items: {
|
|
316
|
+
readonly type: "string";
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
readonly unboundOutputs: {
|
|
320
|
+
readonly type: "array";
|
|
321
|
+
readonly items: {
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
readonly kind: {
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
};
|
|
328
|
+
readonly component: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
};
|
|
331
|
+
readonly componentFile: {
|
|
332
|
+
readonly type: "string";
|
|
333
|
+
};
|
|
334
|
+
readonly templateFile: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
};
|
|
337
|
+
readonly occurrences: {
|
|
338
|
+
readonly type: "array";
|
|
339
|
+
readonly items: {
|
|
340
|
+
readonly type: "object";
|
|
341
|
+
readonly properties: {
|
|
342
|
+
readonly missingRequiredInputs: {
|
|
343
|
+
readonly type: "array";
|
|
344
|
+
readonly items: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
readonly otherBindings: {
|
|
349
|
+
readonly type: "array";
|
|
350
|
+
readonly items: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
readonly structural: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
};
|
|
357
|
+
readonly boundInputs: {
|
|
358
|
+
readonly type: "array";
|
|
359
|
+
readonly items: {
|
|
360
|
+
readonly type: "string";
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
readonly boundOutputs: {
|
|
364
|
+
readonly type: "array";
|
|
365
|
+
readonly items: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
readonly unboundInputs: {
|
|
370
|
+
readonly type: "array";
|
|
371
|
+
readonly items: {
|
|
372
|
+
readonly type: "string";
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
readonly unboundOutputs: {
|
|
376
|
+
readonly type: "array";
|
|
377
|
+
readonly items: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
readonly templateFile: {
|
|
382
|
+
readonly type: "string";
|
|
383
|
+
};
|
|
384
|
+
readonly line: {
|
|
385
|
+
readonly type: "integer";
|
|
386
|
+
};
|
|
387
|
+
readonly col: {
|
|
388
|
+
readonly type: "integer";
|
|
389
|
+
};
|
|
390
|
+
readonly tag: {
|
|
391
|
+
readonly type: "string";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
readonly required: readonly ["templateFile", "line", "col", "tag", "boundInputs", "boundOutputs", "unboundInputs", "unboundOutputs", "missingRequiredInputs", "otherBindings"];
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
readonly required: readonly ["kind", "component", "componentFile", "templateFile", "boundInputs", "boundOutputs", "unboundInputs", "unboundOutputs"];
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
truncated: {
|
|
402
|
+
type: string;
|
|
403
|
+
};
|
|
404
|
+
dynamicHosts: {
|
|
405
|
+
type: string;
|
|
406
|
+
items: {
|
|
407
|
+
readonly type: "object";
|
|
408
|
+
readonly properties: {
|
|
409
|
+
readonly kind: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
};
|
|
412
|
+
readonly component: {
|
|
413
|
+
readonly type: "string";
|
|
414
|
+
};
|
|
415
|
+
readonly componentFile: {
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
};
|
|
418
|
+
readonly file: {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
};
|
|
421
|
+
readonly line: {
|
|
422
|
+
readonly type: "integer";
|
|
423
|
+
};
|
|
424
|
+
readonly col: {
|
|
425
|
+
readonly type: "integer";
|
|
426
|
+
};
|
|
427
|
+
readonly in: {
|
|
428
|
+
readonly type: "string";
|
|
429
|
+
};
|
|
430
|
+
readonly sink: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
};
|
|
433
|
+
readonly via: {
|
|
434
|
+
readonly type: "array";
|
|
435
|
+
readonly items: {
|
|
436
|
+
readonly type: "string";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
readonly resolution: {
|
|
440
|
+
readonly type: "array";
|
|
441
|
+
readonly items: {
|
|
442
|
+
readonly type: "string";
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
readonly componentArgument: {
|
|
446
|
+
readonly type: "integer";
|
|
447
|
+
};
|
|
448
|
+
readonly arguments: {
|
|
449
|
+
readonly type: "array";
|
|
450
|
+
readonly items: {
|
|
451
|
+
readonly type: "object";
|
|
452
|
+
readonly properties: {
|
|
453
|
+
readonly index: {
|
|
454
|
+
readonly type: "integer";
|
|
455
|
+
};
|
|
456
|
+
readonly parameter: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
};
|
|
459
|
+
readonly text: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
};
|
|
462
|
+
readonly data: {
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
readonly required: readonly ["index", "text"];
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
readonly result: {
|
|
470
|
+
readonly type: "object";
|
|
471
|
+
readonly properties: {
|
|
472
|
+
readonly use: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
};
|
|
475
|
+
readonly chain: {
|
|
476
|
+
readonly type: "array";
|
|
477
|
+
readonly items: {
|
|
478
|
+
readonly type: "string";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly target: {
|
|
482
|
+
readonly type: "string";
|
|
483
|
+
};
|
|
484
|
+
readonly text: {
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
};
|
|
487
|
+
readonly note: {
|
|
488
|
+
readonly type: "string";
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
readonly required: readonly ["use", "chain"];
|
|
492
|
+
};
|
|
493
|
+
readonly route: {
|
|
494
|
+
readonly type: "object";
|
|
495
|
+
readonly properties: {
|
|
496
|
+
readonly path: {
|
|
497
|
+
readonly type: "string";
|
|
498
|
+
};
|
|
499
|
+
readonly lazy: {
|
|
500
|
+
readonly type: "boolean";
|
|
501
|
+
};
|
|
502
|
+
readonly guards: {
|
|
503
|
+
readonly type: "array";
|
|
504
|
+
readonly items: {
|
|
505
|
+
readonly type: "string";
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
readonly data: {
|
|
509
|
+
readonly type: "string";
|
|
510
|
+
};
|
|
511
|
+
readonly resolve: {
|
|
512
|
+
readonly type: "array";
|
|
513
|
+
readonly items: {
|
|
514
|
+
readonly type: "string";
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
readonly required: readonly ["path", "lazy", "guards"];
|
|
519
|
+
};
|
|
520
|
+
readonly certainty: {
|
|
521
|
+
readonly type: "string";
|
|
522
|
+
};
|
|
523
|
+
readonly selectorExpression: {
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
};
|
|
526
|
+
readonly selectorLiterals: {
|
|
527
|
+
readonly type: "array";
|
|
528
|
+
readonly items: {
|
|
529
|
+
readonly type: "string";
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
readonly required: readonly ["kind", "component", "componentFile", "file", "line", "col", "in", "sink", "via", "resolution", "arguments", "result"];
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
dynamicTruncated: {
|
|
537
|
+
type: string;
|
|
538
|
+
};
|
|
539
|
+
candidateHosts: {
|
|
540
|
+
type: string;
|
|
541
|
+
items: {
|
|
542
|
+
readonly type: "object";
|
|
543
|
+
readonly properties: {
|
|
544
|
+
readonly kind: {
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
};
|
|
547
|
+
readonly component: {
|
|
548
|
+
readonly type: "string";
|
|
549
|
+
};
|
|
550
|
+
readonly componentFile: {
|
|
551
|
+
readonly type: "string";
|
|
552
|
+
};
|
|
553
|
+
readonly file: {
|
|
554
|
+
readonly type: "string";
|
|
555
|
+
};
|
|
556
|
+
readonly line: {
|
|
557
|
+
readonly type: "integer";
|
|
558
|
+
};
|
|
559
|
+
readonly col: {
|
|
560
|
+
readonly type: "integer";
|
|
561
|
+
};
|
|
562
|
+
readonly in: {
|
|
563
|
+
readonly type: "string";
|
|
564
|
+
};
|
|
565
|
+
readonly sink: {
|
|
566
|
+
readonly type: "string";
|
|
567
|
+
};
|
|
568
|
+
readonly via: {
|
|
569
|
+
readonly type: "array";
|
|
570
|
+
readonly items: {
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
readonly resolution: {
|
|
575
|
+
readonly type: "array";
|
|
576
|
+
readonly items: {
|
|
577
|
+
readonly type: "string";
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
readonly componentArgument: {
|
|
581
|
+
readonly type: "integer";
|
|
582
|
+
};
|
|
583
|
+
readonly arguments: {
|
|
584
|
+
readonly type: "array";
|
|
585
|
+
readonly items: {
|
|
586
|
+
readonly type: "object";
|
|
587
|
+
readonly properties: {
|
|
588
|
+
readonly index: {
|
|
589
|
+
readonly type: "integer";
|
|
590
|
+
};
|
|
591
|
+
readonly parameter: {
|
|
592
|
+
readonly type: "string";
|
|
593
|
+
};
|
|
594
|
+
readonly text: {
|
|
595
|
+
readonly type: "string";
|
|
596
|
+
};
|
|
597
|
+
readonly data: {
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
readonly required: readonly ["index", "text"];
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
readonly result: {
|
|
605
|
+
readonly type: "object";
|
|
606
|
+
readonly properties: {
|
|
607
|
+
readonly use: {
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
};
|
|
610
|
+
readonly chain: {
|
|
611
|
+
readonly type: "array";
|
|
612
|
+
readonly items: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
readonly target: {
|
|
617
|
+
readonly type: "string";
|
|
618
|
+
};
|
|
619
|
+
readonly text: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
};
|
|
622
|
+
readonly note: {
|
|
623
|
+
readonly type: "string";
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
readonly required: readonly ["use", "chain"];
|
|
627
|
+
};
|
|
628
|
+
readonly route: {
|
|
629
|
+
readonly type: "object";
|
|
630
|
+
readonly properties: {
|
|
631
|
+
readonly path: {
|
|
632
|
+
readonly type: "string";
|
|
633
|
+
};
|
|
634
|
+
readonly lazy: {
|
|
635
|
+
readonly type: "boolean";
|
|
636
|
+
};
|
|
637
|
+
readonly guards: {
|
|
638
|
+
readonly type: "array";
|
|
639
|
+
readonly items: {
|
|
640
|
+
readonly type: "string";
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
readonly data: {
|
|
644
|
+
readonly type: "string";
|
|
645
|
+
};
|
|
646
|
+
readonly resolve: {
|
|
647
|
+
readonly type: "array";
|
|
648
|
+
readonly items: {
|
|
649
|
+
readonly type: "string";
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
readonly required: readonly ["path", "lazy", "guards"];
|
|
654
|
+
};
|
|
655
|
+
readonly certainty: {
|
|
656
|
+
readonly type: "string";
|
|
657
|
+
};
|
|
658
|
+
readonly selectorExpression: {
|
|
659
|
+
readonly type: "string";
|
|
660
|
+
};
|
|
661
|
+
readonly selectorLiterals: {
|
|
662
|
+
readonly type: "array";
|
|
663
|
+
readonly items: {
|
|
664
|
+
readonly type: "string";
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
readonly required: readonly ["kind", "component", "componentFile", "file", "line", "col", "in", "sink", "via", "resolution", "arguments", "result"];
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
candidateTruncated: {
|
|
672
|
+
type: string;
|
|
673
|
+
};
|
|
674
|
+
summary: {
|
|
675
|
+
type: string;
|
|
676
|
+
};
|
|
677
|
+
tsConfigPath: {
|
|
678
|
+
type: string;
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
required: string[];
|
|
682
|
+
};
|
|
106
683
|
execute(args: Record<string, unknown>): Promise<FindComponentHostsOutput>;
|
|
107
684
|
private buildSummary;
|
|
108
685
|
private shapeCoverage;
|
|
109
|
-
/** `
|
|
686
|
+
/** `AppDialog.open 24, new AppDialogRef 2` */
|
|
110
687
|
private sinkList;
|
|
111
688
|
private nameList;
|
|
112
689
|
}
|
|
113
|
-
export {};
|
|
114
690
|
//# sourceMappingURL=find-component-hosts.d.ts.map
|