@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.
Files changed (298) hide show
  1. package/README.md +181 -282
  2. package/dist/cli.js +21 -13
  3. package/dist/core/project-analyzer.d.ts +3 -12
  4. package/dist/core/project-analyzer.js +3 -12
  5. package/dist/index.d.ts +122 -6
  6. package/dist/index.js +49 -5
  7. package/dist/mcp-watcher.d.ts +32 -7
  8. package/dist/mcp-watcher.js +16 -15
  9. package/dist/scan-host/scan-host.d.ts +119 -0
  10. package/dist/scan-host/scan-host.js +376 -0
  11. package/dist/scan-host/scan-protocol.d.ts +35 -0
  12. package/dist/scan-host/scan-protocol.js +6 -0
  13. package/dist/scan-host/scan-worker.d.ts +14 -0
  14. package/dist/scan-host/scan-worker.js +48 -0
  15. package/dist/server/limited-stdio-transport.d.ts +75 -0
  16. package/dist/server/limited-stdio-transport.js +115 -0
  17. package/dist/server/mcp-server.d.ts +20 -18
  18. package/dist/server/mcp-server.js +42 -79
  19. package/dist/server/package-version.d.ts +16 -0
  20. package/dist/server/package-version.js +37 -0
  21. package/dist/server/sdk-server.d.ts +71 -0
  22. package/dist/server/sdk-server.js +113 -0
  23. package/dist/server/tool-registry.d.ts +6 -9
  24. package/dist/server/tool-registry.js +6 -12
  25. package/dist/streaming/progress-store.d.ts +22 -5
  26. package/dist/streaming/progress-store.js +9 -5
  27. package/dist/tools/analyze-build-impact.d.ts +276 -35
  28. package/dist/tools/analyze-build-impact.js +175 -28
  29. package/dist/tools/analyze-core-to-shared.d.ts +176 -16
  30. package/dist/tools/analyze-core-to-shared.js +124 -19
  31. package/dist/tools/analyze-parser-performance.d.ts +209 -15
  32. package/dist/tools/analyze-parser-performance.js +119 -56
  33. package/dist/tools/analyze-project.d.ts +349 -17
  34. package/dist/tools/analyze-project.js +282 -97
  35. package/dist/tools/check-incremental-compatibility.d.ts +74 -12
  36. package/dist/tools/check-incremental-compatibility.js +69 -10
  37. package/dist/tools/collect-feedback.d.ts +225 -21
  38. package/dist/tools/collect-feedback.js +199 -118
  39. package/dist/tools/compare-health.d.ts +413 -0
  40. package/dist/tools/compare-health.js +479 -0
  41. package/dist/tools/extract-libraries.d.ts +200 -24
  42. package/dist/tools/extract-libraries.js +131 -27
  43. package/dist/tools/find-angular-symbol.d.ts +92 -24
  44. package/dist/tools/find-angular-symbol.js +70 -20
  45. package/dist/tools/find-component-hosts.d.ts +603 -27
  46. package/dist/tools/find-component-hosts.js +223 -19
  47. package/dist/tools/find-usages.d.ts +102 -22
  48. package/dist/tools/find-usages.js +81 -21
  49. package/dist/tools/get-bootstrap-execution.d.ts +183 -25
  50. package/dist/tools/get-bootstrap-execution.js +109 -25
  51. package/dist/tools/get-call-graph.d.ts +127 -12
  52. package/dist/tools/get-call-graph.js +84 -19
  53. package/dist/tools/get-operation-progress-tool.d.ts +126 -8
  54. package/dist/tools/get-operation-progress-tool.js +124 -12
  55. package/dist/tools/get-operation-progress.d.ts +27 -1
  56. package/dist/tools/get-operation-progress.js +5 -5
  57. package/dist/tools/helpers/analysis-output.d.ts +182 -0
  58. package/dist/tools/helpers/analysis-output.js +165 -0
  59. package/dist/tools/helpers/batch-kernel.d.ts +14 -0
  60. package/dist/tools/helpers/batch-kernel.js +12 -0
  61. package/dist/tools/helpers/build-schemas.d.ts +36 -0
  62. package/dist/tools/helpers/build-schemas.js +23 -0
  63. package/dist/tools/helpers/citation-file-source.d.ts +10 -0
  64. package/dist/tools/helpers/citation-file-source.js +82 -0
  65. package/dist/tools/helpers/compact-output.d.ts +2 -1
  66. package/dist/tools/helpers/compact-output.js +2 -1
  67. package/dist/tools/helpers/finding-window.d.ts +43 -0
  68. package/dist/tools/helpers/finding-window.js +64 -0
  69. package/dist/tools/helpers/health-delta.d.ts +99 -0
  70. package/dist/tools/helpers/health-delta.js +236 -0
  71. package/dist/tools/helpers/investigation-schemas.d.ts +93 -0
  72. package/dist/tools/helpers/investigation-schemas.js +48 -0
  73. package/dist/tools/helpers/library-imports.d.ts +57 -0
  74. package/dist/tools/helpers/library-imports.js +151 -0
  75. package/dist/tools/helpers/load-source-files.d.ts +30 -0
  76. package/dist/tools/helpers/load-source-files.js +34 -0
  77. package/dist/tools/helpers/output-contract.d.ts +32 -0
  78. package/dist/tools/helpers/output-contract.js +32 -0
  79. package/dist/tools/helpers/platform-root-resolver.d.ts +55 -25
  80. package/dist/tools/helpers/platform-root-resolver.js +75 -48
  81. package/dist/tools/helpers/process-output.d.ts +19 -0
  82. package/dist/tools/helpers/process-output.js +31 -0
  83. package/dist/tools/helpers/project-cache.d.ts +60 -37
  84. package/dist/tools/helpers/project-cache.js +54 -37
  85. package/dist/tools/helpers/project-decorators.d.ts +14 -0
  86. package/dist/tools/helpers/project-decorators.js +22 -0
  87. package/dist/tools/helpers/rule-matcher.js +5 -0
  88. package/dist/tools/helpers/rule-runner.d.ts +25 -13
  89. package/dist/tools/helpers/rule-runner.js +45 -24
  90. package/dist/tools/helpers/scan-cache.d.ts +22 -0
  91. package/dist/tools/helpers/scan-cache.js +34 -0
  92. package/dist/tools/helpers/scan-engine.d.ts +107 -0
  93. package/dist/tools/helpers/scan-engine.js +197 -0
  94. package/dist/tools/helpers/scan-plan.d.ts +5 -2
  95. package/dist/tools/helpers/scan-plan.js +18 -3
  96. package/dist/tools/helpers/scope-paths.d.ts +17 -0
  97. package/dist/tools/helpers/scope-paths.js +32 -0
  98. package/dist/tools/helpers/suggestion-generator.d.ts +9 -13
  99. package/dist/tools/helpers/suggestion-generator.js +0 -12
  100. package/dist/tools/helpers/tool-cache.d.ts +11 -0
  101. package/dist/tools/helpers/tool-cache.js +15 -0
  102. package/dist/tools/helpers/tool-context.d.ts +63 -0
  103. package/dist/tools/helpers/tool-context.js +79 -0
  104. package/dist/tools/helpers/transform-safety.d.ts +40 -0
  105. package/dist/tools/helpers/transform-safety.js +87 -0
  106. package/dist/tools/helpers/validation-output.d.ts +53 -0
  107. package/dist/tools/helpers/validation-output.js +48 -0
  108. package/dist/tools/inspect-form-group.d.ts +262 -24
  109. package/dist/tools/inspect-form-group.js +134 -13
  110. package/dist/tools/inspect-i18n.d.ts +410 -23
  111. package/dist/tools/inspect-i18n.js +213 -13
  112. package/dist/tools/inspect-template.d.ts +260 -22
  113. package/dist/tools/inspect-template.js +174 -13
  114. package/dist/tools/learn-patterns.d.ts +210 -13
  115. package/dist/tools/learn-patterns.js +113 -12
  116. package/dist/tools/list-imports.d.ts +152 -34
  117. package/dist/tools/list-imports.js +124 -18
  118. package/dist/tools/orchestrate-migration.d.ts +159 -14
  119. package/dist/tools/orchestrate-migration.js +147 -20
  120. package/dist/tools/parse-stack-trace.d.ts +78 -21
  121. package/dist/tools/parse-stack-trace.js +44 -7
  122. package/dist/tools/plan-migration.d.ts +395 -26
  123. package/dist/tools/plan-migration.js +173 -22
  124. package/dist/tools/resolve-type.d.ts +57 -9
  125. package/dist/tools/resolve-type.js +49 -12
  126. package/dist/tools/review-feedback.d.ts +214 -16
  127. package/dist/tools/review-feedback.js +142 -57
  128. package/dist/tools/rollback-changes.d.ts +88 -7
  129. package/dist/tools/rollback-changes.js +74 -19
  130. package/dist/tools/run-angular-cli.d.ts +57 -12
  131. package/dist/tools/run-angular-cli.js +76 -13
  132. package/dist/tools/run-build.d.ts +127 -13
  133. package/dist/tools/run-build.js +128 -16
  134. package/dist/tools/run-schematic.d.ts +82 -12
  135. package/dist/tools/run-schematic.js +115 -18
  136. package/dist/tools/scan-all.d.ts +88 -23
  137. package/dist/tools/scan-all.js +161 -220
  138. package/dist/tools/scan-angular.d.ts +60 -19
  139. package/dist/tools/scan-angular.js +100 -141
  140. package/dist/tools/scan-architecture.d.ts +92 -24
  141. package/dist/tools/scan-architecture.js +268 -211
  142. package/dist/tools/scan-solid.d.ts +59 -19
  143. package/dist/tools/scan-solid.js +98 -139
  144. package/dist/tools/search-codebase.d.ts +110 -23
  145. package/dist/tools/search-codebase.js +67 -11
  146. package/dist/tools/server-status.d.ts +392 -26
  147. package/dist/tools/server-status.js +260 -27
  148. package/dist/tools/suggest-improvements.d.ts +105 -10
  149. package/dist/tools/suggest-improvements.js +91 -51
  150. package/dist/tools/trace-output-flow.d.ts +713 -26
  151. package/dist/tools/trace-output-flow.js +396 -33
  152. package/dist/tools/transform-code-batch.d.ts +3 -0
  153. package/dist/tools/transform-code-batch.js +10 -5
  154. package/dist/tools/transform-code.d.ts +402 -18
  155. package/dist/tools/transform-code.js +708 -649
  156. package/dist/tools/validate-before-transform.d.ts +136 -7
  157. package/dist/tools/validate-before-transform.js +65 -9
  158. package/dist/tools/validate-project-compatibility.d.ts +82 -15
  159. package/dist/tools/validate-project-compatibility.js +84 -15
  160. package/dist/tools/validate-transformation.d.ts +243 -8
  161. package/dist/tools/validate-transformation.js +127 -23
  162. package/dist/tools/verify-citations.d.ts +202 -0
  163. package/dist/tools/verify-citations.js +221 -0
  164. package/dist/types.d.ts +78 -11
  165. package/dist/types.js +0 -5
  166. package/dist/utils/format-tool-response.d.ts +22 -59
  167. package/dist/utils/format-tool-response.js +25 -134
  168. package/package.json +31 -20
  169. package/dist/cli.d.ts.map +0 -1
  170. package/dist/cli.js.map +0 -1
  171. package/dist/core/project-analyzer.d.ts.map +0 -1
  172. package/dist/core/project-analyzer.js.map +0 -1
  173. package/dist/index.d.ts.map +0 -1
  174. package/dist/index.js.map +0 -1
  175. package/dist/mcp-watcher.d.ts.map +0 -1
  176. package/dist/mcp-watcher.js.map +0 -1
  177. package/dist/server/json-rpc-handler.d.ts +0 -98
  178. package/dist/server/json-rpc-handler.d.ts.map +0 -1
  179. package/dist/server/json-rpc-handler.js +0 -301
  180. package/dist/server/json-rpc-handler.js.map +0 -1
  181. package/dist/server/mcp-server.d.ts.map +0 -1
  182. package/dist/server/mcp-server.js.map +0 -1
  183. package/dist/server/stdio-guard.d.ts.map +0 -1
  184. package/dist/server/stdio-guard.js.map +0 -1
  185. package/dist/server/tool-registry.d.ts.map +0 -1
  186. package/dist/server/tool-registry.js.map +0 -1
  187. package/dist/streaming/progress-store.d.ts.map +0 -1
  188. package/dist/streaming/progress-store.js.map +0 -1
  189. package/dist/tools/analyze-build-impact.d.ts.map +0 -1
  190. package/dist/tools/analyze-build-impact.js.map +0 -1
  191. package/dist/tools/analyze-core-to-shared.d.ts.map +0 -1
  192. package/dist/tools/analyze-core-to-shared.js.map +0 -1
  193. package/dist/tools/analyze-parser-performance.d.ts.map +0 -1
  194. package/dist/tools/analyze-parser-performance.js.map +0 -1
  195. package/dist/tools/analyze-project.d.ts.map +0 -1
  196. package/dist/tools/analyze-project.js.map +0 -1
  197. package/dist/tools/check-incremental-compatibility.d.ts.map +0 -1
  198. package/dist/tools/check-incremental-compatibility.js.map +0 -1
  199. package/dist/tools/collect-feedback.d.ts.map +0 -1
  200. package/dist/tools/collect-feedback.js.map +0 -1
  201. package/dist/tools/extract-libraries.d.ts.map +0 -1
  202. package/dist/tools/extract-libraries.js.map +0 -1
  203. package/dist/tools/find-angular-symbol.d.ts.map +0 -1
  204. package/dist/tools/find-angular-symbol.js.map +0 -1
  205. package/dist/tools/find-component-hosts.d.ts.map +0 -1
  206. package/dist/tools/find-component-hosts.js.map +0 -1
  207. package/dist/tools/find-usages.d.ts.map +0 -1
  208. package/dist/tools/find-usages.js.map +0 -1
  209. package/dist/tools/get-bootstrap-execution.d.ts.map +0 -1
  210. package/dist/tools/get-bootstrap-execution.js.map +0 -1
  211. package/dist/tools/get-call-graph.d.ts.map +0 -1
  212. package/dist/tools/get-call-graph.js.map +0 -1
  213. package/dist/tools/get-operation-progress-tool.d.ts.map +0 -1
  214. package/dist/tools/get-operation-progress-tool.js.map +0 -1
  215. package/dist/tools/get-operation-progress.d.ts.map +0 -1
  216. package/dist/tools/get-operation-progress.js.map +0 -1
  217. package/dist/tools/helpers/compact-output.d.ts.map +0 -1
  218. package/dist/tools/helpers/compact-output.js.map +0 -1
  219. package/dist/tools/helpers/feedback-analyzer.d.ts.map +0 -1
  220. package/dist/tools/helpers/feedback-analyzer.js.map +0 -1
  221. package/dist/tools/helpers/find-ts-config.d.ts.map +0 -1
  222. package/dist/tools/helpers/find-ts-config.js.map +0 -1
  223. package/dist/tools/helpers/platform-root-resolver.d.ts.map +0 -1
  224. package/dist/tools/helpers/platform-root-resolver.js.map +0 -1
  225. package/dist/tools/helpers/project-cache.d.ts.map +0 -1
  226. package/dist/tools/helpers/project-cache.js.map +0 -1
  227. package/dist/tools/helpers/rule-matcher.d.ts.map +0 -1
  228. package/dist/tools/helpers/rule-matcher.js.map +0 -1
  229. package/dist/tools/helpers/rule-runner.d.ts.map +0 -1
  230. package/dist/tools/helpers/rule-runner.js.map +0 -1
  231. package/dist/tools/helpers/scan-plan.d.ts.map +0 -1
  232. package/dist/tools/helpers/scan-plan.js.map +0 -1
  233. package/dist/tools/helpers/stack-frame-file-index.d.ts.map +0 -1
  234. package/dist/tools/helpers/stack-frame-file-index.js.map +0 -1
  235. package/dist/tools/helpers/suggestion-generator.d.ts.map +0 -1
  236. package/dist/tools/helpers/suggestion-generator.js.map +0 -1
  237. package/dist/tools/inspect-form-group.d.ts.map +0 -1
  238. package/dist/tools/inspect-form-group.js.map +0 -1
  239. package/dist/tools/inspect-i18n.d.ts.map +0 -1
  240. package/dist/tools/inspect-i18n.js.map +0 -1
  241. package/dist/tools/inspect-template.d.ts.map +0 -1
  242. package/dist/tools/inspect-template.js.map +0 -1
  243. package/dist/tools/learn-patterns.d.ts.map +0 -1
  244. package/dist/tools/learn-patterns.js.map +0 -1
  245. package/dist/tools/list-imports.d.ts.map +0 -1
  246. package/dist/tools/list-imports.js.map +0 -1
  247. package/dist/tools/orchestrate-migration.d.ts.map +0 -1
  248. package/dist/tools/orchestrate-migration.js.map +0 -1
  249. package/dist/tools/parse-stack-trace.d.ts.map +0 -1
  250. package/dist/tools/parse-stack-trace.js.map +0 -1
  251. package/dist/tools/plan-migration.d.ts.map +0 -1
  252. package/dist/tools/plan-migration.js.map +0 -1
  253. package/dist/tools/resolve-type.d.ts.map +0 -1
  254. package/dist/tools/resolve-type.js.map +0 -1
  255. package/dist/tools/review-feedback.d.ts.map +0 -1
  256. package/dist/tools/review-feedback.js.map +0 -1
  257. package/dist/tools/rollback-changes.d.ts.map +0 -1
  258. package/dist/tools/rollback-changes.js.map +0 -1
  259. package/dist/tools/run-angular-cli.d.ts.map +0 -1
  260. package/dist/tools/run-angular-cli.js.map +0 -1
  261. package/dist/tools/run-build.d.ts.map +0 -1
  262. package/dist/tools/run-build.js.map +0 -1
  263. package/dist/tools/run-schematic.d.ts.map +0 -1
  264. package/dist/tools/run-schematic.js.map +0 -1
  265. package/dist/tools/scan-all.d.ts.map +0 -1
  266. package/dist/tools/scan-all.js.map +0 -1
  267. package/dist/tools/scan-angular.d.ts.map +0 -1
  268. package/dist/tools/scan-angular.js.map +0 -1
  269. package/dist/tools/scan-architecture.d.ts.map +0 -1
  270. package/dist/tools/scan-architecture.js.map +0 -1
  271. package/dist/tools/scan-solid.d.ts.map +0 -1
  272. package/dist/tools/scan-solid.js.map +0 -1
  273. package/dist/tools/search-codebase.d.ts.map +0 -1
  274. package/dist/tools/search-codebase.js.map +0 -1
  275. package/dist/tools/server-status.d.ts.map +0 -1
  276. package/dist/tools/server-status.js.map +0 -1
  277. package/dist/tools/shared/scan-types.d.ts +0 -200
  278. package/dist/tools/shared/scan-types.d.ts.map +0 -1
  279. package/dist/tools/shared/scan-types.js +0 -7
  280. package/dist/tools/shared/scan-types.js.map +0 -1
  281. package/dist/tools/suggest-improvements.d.ts.map +0 -1
  282. package/dist/tools/suggest-improvements.js.map +0 -1
  283. package/dist/tools/trace-output-flow.d.ts.map +0 -1
  284. package/dist/tools/trace-output-flow.js.map +0 -1
  285. package/dist/tools/transform-code-batch.d.ts.map +0 -1
  286. package/dist/tools/transform-code-batch.js.map +0 -1
  287. package/dist/tools/transform-code.d.ts.map +0 -1
  288. package/dist/tools/transform-code.js.map +0 -1
  289. package/dist/tools/validate-before-transform.d.ts.map +0 -1
  290. package/dist/tools/validate-before-transform.js.map +0 -1
  291. package/dist/tools/validate-project-compatibility.d.ts.map +0 -1
  292. package/dist/tools/validate-project-compatibility.js.map +0 -1
  293. package/dist/tools/validate-transformation.d.ts.map +0 -1
  294. package/dist/tools/validate-transformation.js.map +0 -1
  295. package/dist/types.d.ts.map +0 -1
  296. package/dist/types.js.map +0 -1
  297. package/dist/utils/format-tool-response.d.ts.map +0 -1
  298. 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 finds the template hosts of a component or directive.
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
- /** `SobSolDialog.open 24, new SobSolDialogRef 2` */
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