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