@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,56 +1,65 @@
1
- /**
2
- * @angular-modernizer/adapter-mcp - Trace Output Flow Tool
3
- *
4
- * MCP tool that follows the payload of a component's outputs across the
5
- * template boundary: emit sites, the host bindings and handlers that receive
6
- * the value, and what the handler methods do with `$event`.
7
- *
8
- * @remarks
9
- * Logic lives in `OutputFlowTracer` (`@angular-modernizer/api`); this tool
10
- * resolves the project, validates arguments and applies the compact output
11
- * contract (`maxResults` caps emit sites, bound hosts and unbound hosts per
12
- * output).
13
- *
14
- * @example
15
- * ```typescript
16
- * // Via MCP:
17
- * // tool: trace-output-flow
18
- * // args: { className: 'ItemComponent', output: 'formError', projectRoot: '/project' }
19
- * ```
20
- */
21
- import { type MCPTool } from '../types.js';
1
+ import { type MCPTool, type ToolAnnotations } from '../types.js';
22
2
  import { type DynamicResultFlow, type OutputFlow, type OutputFlowResult } from '@angular-modernizer/api';
23
3
  import { ProjectCache } from './helpers/project-cache.js';
24
4
  /** An output with its lists dropped (summaryOnly) or capped (maxResults). */
25
- type OutputFlowOutput = Omit<OutputFlow, 'emits' | 'boundIn' | 'unboundIn'> & Partial<Pick<OutputFlow, 'emits' | 'boundIn' | 'unboundIn'>> & {
5
+ export type OutputFlowOutput = Omit<OutputFlow, 'emits' | 'boundIn' | 'unboundIn' | 'subscribedIn'> & Partial<Pick<OutputFlow, 'emits' | 'boundIn' | 'unboundIn' | 'subscribedIn'>> & {
6
+ /** `true` when `maxResults` cut one of the lists. */
26
7
  truncated: boolean;
27
8
  };
28
9
  /** The dynamic section with its lists dropped (summaryOnly) or capped (maxResults). */
29
- type DynamicFlowOutput = Pick<DynamicResultFlow, 'counts'> & Partial<Pick<DynamicResultFlow, 'dataInjections' | 'closeSites' | 'hosts'>> & {
10
+ export type DynamicFlowOutput = Pick<DynamicResultFlow, 'counts'> & Partial<Pick<DynamicResultFlow, 'dataInjections' | 'closeSites' | 'hosts'>> & {
11
+ /** `true` when `maxResults` cut one of the lists. */
30
12
  truncated: boolean;
31
13
  };
32
14
  /**
33
15
  * Output of the trace-output-flow tool.
34
16
  */
35
- interface TraceOutputFlowOutput extends Omit<OutputFlowResult, 'outputs' | 'dynamic'> {
17
+ export interface TraceOutputFlowOutput extends Omit<OutputFlowResult, 'outputs' | 'dynamic'> {
18
+ /** Traced outputs. */
36
19
  outputs: OutputFlowOutput[];
37
20
  /** Components created in code: data injected, close sites, creation sites with result handlers. */
38
21
  dynamic?: DynamicFlowOutput;
39
22
  /** `true` when the effect budget or `maxResults` cut a list. */
40
23
  truncated: boolean;
24
+ /** Short text summary of the traced flows. */
41
25
  summary: string;
26
+ /** The tsconfig whose program was used. */
42
27
  tsConfigPath: string;
28
+ /** Conditions that can make the result incomplete (unresolved library imports). */
29
+ warnings?: string[];
43
30
  }
44
31
  /**
45
- * MCP tool that traces @Output payloads from emit to host handler.
32
+ * MCP tool that follows the payload of a component's outputs across the
33
+ * template boundary: emit sites, the host bindings and handlers that receive
34
+ * the value, and what the handler methods do with `$event`.
35
+ *
36
+ * @remarks
37
+ * Logic lives in `OutputFlowTracer` (`@angular-modernizer/api`); this tool
38
+ * resolves the project, validates arguments and applies the compact output
39
+ * contract (`maxResults` caps emit sites, bound hosts and unbound hosts per
40
+ * output).
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ * // Via MCP:
45
+ * // tool: trace-output-flow
46
+ * // args: { className: 'ItemComponent', output: 'formError', projectRoot: '/project' }
47
+ * ```
46
48
  */
47
49
  export declare class TraceOutputFlowTool implements MCPTool {
48
50
  private readonly projects;
49
51
  readonly name = "trace-output-flow";
52
+ readonly title = "Trace Output Flow";
53
+ readonly annotations: ToolAnnotations;
50
54
  constructor(projects?: ProjectCache);
51
55
  readonly description: string;
56
+ /**
57
+ * JSON Schema of the tool arguments.
58
+ * @hidden
59
+ */
52
60
  readonly inputSchema: {
53
61
  type: string;
62
+ additionalProperties: boolean;
54
63
  properties: {
55
64
  summaryOnly: {
56
65
  readonly type: "boolean";
@@ -99,6 +108,685 @@ export declare class TraceOutputFlowTool implements MCPTool {
99
108
  };
100
109
  required: string[];
101
110
  };
111
+ /**
112
+ * JSON Schema of the tool result (`structuredContent`).
113
+ * @hidden
114
+ */
115
+ readonly outputSchema: {
116
+ type: string;
117
+ $defs: {
118
+ readonly effect: {
119
+ readonly type: "object";
120
+ readonly properties: {
121
+ readonly kind: {
122
+ readonly type: "string";
123
+ };
124
+ readonly file: {
125
+ readonly type: "string";
126
+ };
127
+ readonly line: {
128
+ readonly type: "integer";
129
+ };
130
+ readonly in: {
131
+ readonly type: "string";
132
+ };
133
+ readonly expression: {
134
+ readonly type: "string";
135
+ };
136
+ readonly text: {
137
+ readonly type: "string";
138
+ };
139
+ readonly target: {
140
+ readonly type: "string";
141
+ };
142
+ readonly argIndex: {
143
+ readonly type: "integer";
144
+ };
145
+ readonly callee: {
146
+ readonly type: "object";
147
+ readonly properties: {
148
+ readonly name: {
149
+ readonly type: "string";
150
+ };
151
+ readonly file: {
152
+ readonly type: "string";
153
+ };
154
+ readonly line: {
155
+ readonly type: "integer";
156
+ };
157
+ readonly parameter: {
158
+ readonly type: "string";
159
+ };
160
+ };
161
+ readonly required: readonly ["name", "file", "line"];
162
+ };
163
+ readonly effects: {
164
+ readonly type: "array";
165
+ readonly items: {
166
+ readonly $ref: "#/$defs/effect";
167
+ };
168
+ };
169
+ };
170
+ readonly required: readonly ["kind", "file", "line", "in", "expression", "text"];
171
+ };
172
+ readonly handler: {
173
+ readonly type: "object";
174
+ readonly properties: {
175
+ readonly parameter: {
176
+ readonly type: "string";
177
+ };
178
+ readonly effects: {
179
+ readonly type: "array";
180
+ readonly items: {
181
+ readonly $ref: "#/$defs/effect";
182
+ };
183
+ };
184
+ readonly resultUnused: {
185
+ readonly type: "boolean";
186
+ };
187
+ readonly via: {
188
+ readonly type: "array";
189
+ readonly items: {
190
+ readonly type: "string";
191
+ };
192
+ };
193
+ readonly operators: {
194
+ readonly type: "array";
195
+ readonly items: {
196
+ readonly type: "object";
197
+ readonly properties: {
198
+ readonly name: {
199
+ readonly type: "string";
200
+ };
201
+ readonly parameter: {
202
+ readonly type: "string";
203
+ };
204
+ readonly effects: {
205
+ readonly type: "array";
206
+ readonly items: {
207
+ readonly $ref: "#/$defs/effect";
208
+ };
209
+ };
210
+ };
211
+ readonly required: readonly ["name", "parameter", "effects"];
212
+ };
213
+ };
214
+ };
215
+ readonly required: readonly ["effects"];
216
+ };
217
+ readonly forward: {
218
+ readonly type: "object";
219
+ readonly properties: {
220
+ readonly in: {
221
+ readonly type: "string";
222
+ };
223
+ readonly file: {
224
+ readonly type: "string";
225
+ };
226
+ readonly line: {
227
+ readonly type: "integer";
228
+ };
229
+ readonly chain: {
230
+ readonly type: "array";
231
+ readonly items: {
232
+ readonly type: "string";
233
+ };
234
+ };
235
+ readonly handler: {
236
+ readonly $ref: "#/$defs/handler";
237
+ };
238
+ readonly note: {
239
+ readonly type: "string";
240
+ };
241
+ };
242
+ readonly required: readonly ["in", "file", "line", "chain"];
243
+ };
244
+ };
245
+ properties: {
246
+ warnings: {
247
+ readonly type: "array";
248
+ readonly items: {
249
+ readonly type: "string";
250
+ };
251
+ readonly description: "Conditions that can make the result incomplete, e.g. library imports that do not resolve because node_modules is missing.";
252
+ };
253
+ target: {
254
+ type: string;
255
+ properties: {
256
+ className: {
257
+ type: string;
258
+ };
259
+ kind: {
260
+ type: string;
261
+ };
262
+ selector: {
263
+ type: string;
264
+ };
265
+ file: {
266
+ type: string;
267
+ };
268
+ };
269
+ required: string[];
270
+ };
271
+ alternatives: {
272
+ readonly type: "array";
273
+ readonly items: {
274
+ readonly type: "object";
275
+ readonly properties: {
276
+ readonly className: {
277
+ readonly type: "string";
278
+ };
279
+ readonly file: {
280
+ readonly type: "string";
281
+ };
282
+ readonly selector: {
283
+ readonly type: "string";
284
+ };
285
+ };
286
+ readonly required: readonly ["className", "file", "selector"];
287
+ };
288
+ };
289
+ unknownOutput: {
290
+ type: string;
291
+ };
292
+ availableOutputs: {
293
+ readonly type: "array";
294
+ readonly items: {
295
+ readonly type: "string";
296
+ };
297
+ };
298
+ outputs: {
299
+ type: string;
300
+ items: {
301
+ readonly type: "object";
302
+ readonly properties: {
303
+ readonly name: {
304
+ readonly type: "string";
305
+ };
306
+ readonly property: {
307
+ readonly type: "string";
308
+ };
309
+ readonly source: {
310
+ readonly type: "string";
311
+ };
312
+ readonly inheritedFrom: {
313
+ readonly type: "string";
314
+ };
315
+ readonly emitterKind: {
316
+ readonly type: "string";
317
+ };
318
+ readonly payloadType: {
319
+ readonly type: "string";
320
+ };
321
+ readonly declaredAt: {
322
+ readonly type: "object";
323
+ readonly properties: {
324
+ readonly file: {
325
+ readonly type: "string";
326
+ };
327
+ readonly line: {
328
+ readonly type: "integer";
329
+ };
330
+ };
331
+ readonly required: readonly ["file", "line"];
332
+ };
333
+ readonly emits: {
334
+ readonly type: "array";
335
+ readonly items: {
336
+ readonly type: "object";
337
+ readonly properties: {
338
+ readonly file: {
339
+ readonly type: "string";
340
+ };
341
+ readonly line: {
342
+ readonly type: "integer";
343
+ };
344
+ readonly col: {
345
+ readonly type: "integer";
346
+ };
347
+ readonly in: {
348
+ readonly type: "string";
349
+ };
350
+ readonly via: {
351
+ readonly type: "string";
352
+ };
353
+ readonly argument: {
354
+ readonly type: "string";
355
+ };
356
+ };
357
+ readonly required: readonly ["file", "line", "col", "in", "via"];
358
+ };
359
+ };
360
+ readonly sourceExpression: {
361
+ readonly type: "string";
362
+ };
363
+ readonly boundIn: {
364
+ readonly type: "array";
365
+ readonly items: {
366
+ readonly type: "object";
367
+ readonly properties: {
368
+ readonly component: {
369
+ readonly type: "string";
370
+ };
371
+ readonly componentFile: {
372
+ readonly type: "string";
373
+ };
374
+ readonly templateFile: {
375
+ readonly type: "string";
376
+ };
377
+ readonly bindings: {
378
+ readonly type: "array";
379
+ readonly items: {
380
+ readonly type: "object";
381
+ readonly properties: {
382
+ readonly templateFile: {
383
+ readonly type: "string";
384
+ };
385
+ readonly line: {
386
+ readonly type: "integer";
387
+ };
388
+ readonly col: {
389
+ readonly type: "integer";
390
+ };
391
+ readonly tag: {
392
+ readonly type: "string";
393
+ };
394
+ readonly handler: {
395
+ readonly type: "string";
396
+ };
397
+ readonly twoWay: {
398
+ readonly type: "boolean";
399
+ };
400
+ readonly eventUnused: {
401
+ readonly type: "boolean";
402
+ };
403
+ readonly steps: {
404
+ readonly type: "array";
405
+ readonly items: {
406
+ readonly type: "object";
407
+ readonly properties: {
408
+ readonly kind: {
409
+ readonly type: "string";
410
+ };
411
+ readonly text: {
412
+ readonly type: "string";
413
+ };
414
+ readonly target: {
415
+ readonly type: "string";
416
+ };
417
+ readonly resolved: {
418
+ readonly type: "object";
419
+ readonly properties: {
420
+ readonly name: {
421
+ readonly type: "string";
422
+ };
423
+ readonly file: {
424
+ readonly type: "string";
425
+ };
426
+ readonly line: {
427
+ readonly type: "integer";
428
+ };
429
+ };
430
+ readonly required: readonly ["name", "file", "line"];
431
+ };
432
+ readonly arguments: {
433
+ readonly type: "array";
434
+ readonly items: {
435
+ readonly type: "object";
436
+ readonly properties: {
437
+ readonly index: {
438
+ readonly type: "integer";
439
+ };
440
+ readonly text: {
441
+ readonly type: "string";
442
+ };
443
+ readonly usesEvent: {
444
+ readonly type: "boolean";
445
+ };
446
+ readonly parameter: {
447
+ readonly type: "string";
448
+ };
449
+ readonly effects: {
450
+ readonly type: "array";
451
+ readonly items: {
452
+ readonly $ref: "#/$defs/effect";
453
+ };
454
+ };
455
+ };
456
+ readonly required: readonly ["index", "text", "usesEvent"];
457
+ };
458
+ };
459
+ readonly valueUsesEvent: {
460
+ readonly type: "boolean";
461
+ };
462
+ readonly effects: {
463
+ readonly type: "array";
464
+ readonly items: {
465
+ readonly $ref: "#/$defs/effect";
466
+ };
467
+ };
468
+ };
469
+ readonly required: readonly ["kind", "text", "target"];
470
+ };
471
+ };
472
+ };
473
+ readonly required: readonly ["templateFile", "line", "col", "tag", "handler", "twoWay", "eventUnused", "steps"];
474
+ };
475
+ };
476
+ };
477
+ readonly required: readonly ["component", "componentFile", "templateFile", "bindings"];
478
+ };
479
+ };
480
+ readonly unboundIn: {
481
+ readonly type: "array";
482
+ readonly items: {
483
+ readonly type: "object";
484
+ readonly properties: {
485
+ readonly component: {
486
+ readonly type: "string";
487
+ };
488
+ readonly componentFile: {
489
+ readonly type: "string";
490
+ };
491
+ readonly templateFile: {
492
+ readonly type: "string";
493
+ };
494
+ readonly occurrences: {
495
+ readonly type: "integer";
496
+ };
497
+ };
498
+ readonly required: readonly ["component", "componentFile", "templateFile", "occurrences"];
499
+ };
500
+ };
501
+ readonly subscribedIn: {
502
+ readonly type: "array";
503
+ readonly items: {
504
+ readonly type: "object";
505
+ readonly properties: {
506
+ readonly file: {
507
+ readonly type: "string";
508
+ };
509
+ readonly line: {
510
+ readonly type: "integer";
511
+ };
512
+ readonly col: {
513
+ readonly type: "integer";
514
+ };
515
+ readonly in: {
516
+ readonly type: "string";
517
+ };
518
+ readonly receiver: {
519
+ readonly type: "string";
520
+ };
521
+ readonly chain: {
522
+ readonly type: "array";
523
+ readonly items: {
524
+ readonly type: "string";
525
+ };
526
+ };
527
+ readonly handler: {
528
+ readonly $ref: "#/$defs/handler";
529
+ };
530
+ readonly forwardedTo: {
531
+ readonly type: "array";
532
+ readonly items: {
533
+ readonly $ref: "#/$defs/forward";
534
+ };
535
+ };
536
+ readonly note: {
537
+ readonly type: "string";
538
+ };
539
+ };
540
+ readonly required: readonly ["file", "line", "col", "in", "receiver", "chain"];
541
+ };
542
+ };
543
+ readonly counts: {
544
+ readonly type: "object";
545
+ readonly properties: {
546
+ readonly emitSites: {
547
+ readonly type: "integer";
548
+ };
549
+ readonly boundHosts: {
550
+ readonly type: "integer";
551
+ };
552
+ readonly unboundHosts: {
553
+ readonly type: "integer";
554
+ };
555
+ readonly bindings: {
556
+ readonly type: "integer";
557
+ };
558
+ readonly effects: {
559
+ readonly type: "integer";
560
+ };
561
+ readonly subscriptions: {
562
+ readonly type: "integer";
563
+ };
564
+ };
565
+ readonly required: readonly ["emitSites", "boundHosts", "unboundHosts", "bindings", "effects", "subscriptions"];
566
+ };
567
+ readonly truncated: {
568
+ readonly type: "boolean";
569
+ };
570
+ };
571
+ readonly required: readonly ["name", "property", "source", "emitterKind", "counts", "truncated"];
572
+ };
573
+ };
574
+ dynamic: {
575
+ readonly type: "object";
576
+ readonly properties: {
577
+ readonly dataInjections: {
578
+ readonly type: "array";
579
+ readonly items: {
580
+ readonly type: "object";
581
+ readonly properties: {
582
+ readonly member: {
583
+ readonly type: "string";
584
+ };
585
+ readonly token: {
586
+ readonly type: "string";
587
+ };
588
+ readonly file: {
589
+ readonly type: "string";
590
+ };
591
+ readonly line: {
592
+ readonly type: "integer";
593
+ };
594
+ readonly type: {
595
+ readonly type: "string";
596
+ };
597
+ };
598
+ readonly required: readonly ["member", "token", "file", "line"];
599
+ };
600
+ };
601
+ readonly closeSites: {
602
+ readonly type: "array";
603
+ readonly items: {
604
+ readonly type: "object";
605
+ readonly properties: {
606
+ readonly file: {
607
+ readonly type: "string";
608
+ };
609
+ readonly line: {
610
+ readonly type: "integer";
611
+ };
612
+ readonly col: {
613
+ readonly type: "integer";
614
+ };
615
+ readonly in: {
616
+ readonly type: "string";
617
+ };
618
+ readonly method: {
619
+ readonly type: "string";
620
+ };
621
+ readonly argument: {
622
+ readonly type: "string";
623
+ };
624
+ };
625
+ readonly required: readonly ["file", "line", "col", "in", "method"];
626
+ };
627
+ };
628
+ readonly hosts: {
629
+ readonly type: "array";
630
+ readonly items: {
631
+ readonly type: "object";
632
+ readonly properties: {
633
+ readonly component: {
634
+ readonly type: "string";
635
+ };
636
+ readonly componentFile: {
637
+ readonly type: "string";
638
+ };
639
+ readonly file: {
640
+ readonly type: "string";
641
+ };
642
+ readonly line: {
643
+ readonly type: "integer";
644
+ };
645
+ readonly in: {
646
+ readonly type: "string";
647
+ };
648
+ readonly sink: {
649
+ readonly type: "string";
650
+ };
651
+ readonly via: {
652
+ readonly type: "array";
653
+ readonly items: {
654
+ readonly type: "string";
655
+ };
656
+ };
657
+ readonly result: {
658
+ readonly type: "object";
659
+ readonly properties: {
660
+ readonly use: {
661
+ readonly type: "string";
662
+ };
663
+ readonly chain: {
664
+ readonly type: "array";
665
+ readonly items: {
666
+ readonly type: "string";
667
+ };
668
+ };
669
+ readonly target: {
670
+ readonly type: "string";
671
+ };
672
+ readonly text: {
673
+ readonly type: "string";
674
+ };
675
+ readonly note: {
676
+ readonly type: "string";
677
+ };
678
+ };
679
+ readonly required: readonly ["use", "chain"];
680
+ };
681
+ readonly route: {
682
+ readonly type: "object";
683
+ readonly properties: {
684
+ readonly path: {
685
+ readonly type: "string";
686
+ };
687
+ readonly lazy: {
688
+ readonly type: "boolean";
689
+ };
690
+ readonly guards: {
691
+ readonly type: "array";
692
+ readonly items: {
693
+ readonly type: "string";
694
+ };
695
+ };
696
+ readonly data: {
697
+ readonly type: "string";
698
+ };
699
+ readonly resolve: {
700
+ readonly type: "array";
701
+ readonly items: {
702
+ readonly type: "string";
703
+ };
704
+ };
705
+ };
706
+ readonly required: readonly ["path", "lazy", "guards"];
707
+ };
708
+ readonly handler: {
709
+ readonly $ref: "#/$defs/handler";
710
+ };
711
+ readonly forwardedTo: {
712
+ readonly type: "array";
713
+ readonly items: {
714
+ readonly $ref: "#/$defs/forward";
715
+ };
716
+ };
717
+ };
718
+ readonly required: readonly ["component", "componentFile", "file", "line", "in", "sink", "via", "result"];
719
+ };
720
+ };
721
+ readonly counts: {
722
+ readonly type: "object";
723
+ readonly properties: {
724
+ readonly hosts: {
725
+ readonly type: "integer";
726
+ };
727
+ readonly closeSites: {
728
+ readonly type: "integer";
729
+ };
730
+ readonly handlers: {
731
+ readonly type: "integer";
732
+ };
733
+ readonly effects: {
734
+ readonly type: "integer";
735
+ };
736
+ readonly resultUnused: {
737
+ readonly type: "integer";
738
+ };
739
+ };
740
+ readonly required: readonly ["hosts", "closeSites", "handlers", "effects", "resultUnused"];
741
+ };
742
+ readonly truncated: {
743
+ readonly type: "boolean";
744
+ };
745
+ };
746
+ readonly required: readonly ["counts", "truncated"];
747
+ };
748
+ counts: {
749
+ type: string;
750
+ properties: {
751
+ outputs: {
752
+ type: string;
753
+ };
754
+ hosts: {
755
+ type: string;
756
+ };
757
+ emitSites: {
758
+ type: string;
759
+ };
760
+ bindings: {
761
+ type: string;
762
+ };
763
+ effects: {
764
+ type: string;
765
+ };
766
+ templatesScanned: {
767
+ type: string;
768
+ };
769
+ dynamicHosts: {
770
+ type: string;
771
+ };
772
+ subscriptions: {
773
+ type: string;
774
+ };
775
+ };
776
+ required: string[];
777
+ };
778
+ truncated: {
779
+ type: string;
780
+ };
781
+ summary: {
782
+ type: string;
783
+ };
784
+ tsConfigPath: {
785
+ type: string;
786
+ };
787
+ };
788
+ required: string[];
789
+ };
102
790
  execute(args: Record<string, unknown>): Promise<TraceOutputFlowOutput>;
103
791
  private shapeDynamic;
104
792
  private buildSummary;
@@ -107,5 +795,4 @@ export declare class TraceOutputFlowTool implements MCPTool {
107
795
  private handlerText;
108
796
  private effectList;
109
797
  }
110
- export {};
111
798
  //# sourceMappingURL=trace-output-flow.d.ts.map