@eui/mcp 1.0.3 → 1.2.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 (314) hide show
  1. package/dist/config/__tests__/schema.property.test.d.ts +2 -0
  2. package/dist/config/__tests__/schema.property.test.d.ts.map +1 -0
  3. package/dist/config/__tests__/schema.property.test.js +203 -0
  4. package/dist/config/__tests__/schema.property.test.js.map +1 -0
  5. package/dist/config/__tests__/schema.test.d.ts +2 -0
  6. package/dist/config/__tests__/schema.test.d.ts.map +1 -0
  7. package/dist/config/__tests__/schema.test.js +454 -0
  8. package/dist/config/__tests__/schema.test.js.map +1 -0
  9. package/dist/config/loader.js +4 -4
  10. package/dist/config/loader.js.map +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/loader/__tests__/cache-manager.property.test.d.ts +2 -0
  14. package/dist/loader/__tests__/cache-manager.property.test.d.ts.map +1 -0
  15. package/dist/loader/__tests__/cache-manager.property.test.js +245 -0
  16. package/dist/loader/__tests__/cache-manager.property.test.js.map +1 -0
  17. package/dist/loader/__tests__/cache-manager.test.d.ts +2 -0
  18. package/dist/loader/__tests__/cache-manager.test.d.ts.map +1 -0
  19. package/dist/loader/__tests__/cache-manager.test.js +256 -0
  20. package/dist/loader/__tests__/cache-manager.test.js.map +1 -0
  21. package/dist/loader/__tests__/documentation-loader.integration.test.d.ts +2 -0
  22. package/dist/loader/__tests__/documentation-loader.integration.test.d.ts.map +1 -0
  23. package/dist/loader/__tests__/documentation-loader.integration.test.js +498 -0
  24. package/dist/loader/__tests__/documentation-loader.integration.test.js.map +1 -0
  25. package/dist/loader/__tests__/documentation-loader.property.test.d.ts +2 -0
  26. package/dist/loader/__tests__/documentation-loader.property.test.d.ts.map +1 -0
  27. package/dist/loader/__tests__/documentation-loader.property.test.js +258 -0
  28. package/dist/loader/__tests__/documentation-loader.property.test.js.map +1 -0
  29. package/dist/loader/__tests__/errors.test.d.ts +2 -0
  30. package/dist/loader/__tests__/errors.test.d.ts.map +1 -0
  31. package/dist/loader/__tests__/errors.test.js +132 -0
  32. package/dist/loader/__tests__/errors.test.js.map +1 -0
  33. package/dist/loader/__tests__/http-client.property.test.d.ts +2 -0
  34. package/dist/loader/__tests__/http-client.property.test.d.ts.map +1 -0
  35. package/dist/loader/__tests__/http-client.property.test.js +288 -0
  36. package/dist/loader/__tests__/http-client.property.test.js.map +1 -0
  37. package/dist/loader/__tests__/http-client.test.d.ts +2 -0
  38. package/dist/loader/__tests__/http-client.test.d.ts.map +1 -0
  39. package/dist/loader/__tests__/http-client.test.js +497 -0
  40. package/dist/loader/__tests__/http-client.test.js.map +1 -0
  41. package/dist/loader/__tests__/local-documentation-source.property.test.d.ts +2 -0
  42. package/dist/loader/__tests__/local-documentation-source.property.test.d.ts.map +1 -0
  43. package/dist/loader/__tests__/local-documentation-source.property.test.js +373 -0
  44. package/dist/loader/__tests__/local-documentation-source.property.test.js.map +1 -0
  45. package/dist/loader/__tests__/local-documentation-source.test.d.ts +2 -0
  46. package/dist/loader/__tests__/local-documentation-source.test.d.ts.map +1 -0
  47. package/dist/loader/__tests__/local-documentation-source.test.js +544 -0
  48. package/dist/loader/__tests__/local-documentation-source.test.js.map +1 -0
  49. package/dist/loader/__tests__/path-type-detector.property.test.d.ts +2 -0
  50. package/dist/loader/__tests__/path-type-detector.property.test.d.ts.map +1 -0
  51. package/dist/loader/__tests__/path-type-detector.property.test.js +245 -0
  52. package/dist/loader/__tests__/path-type-detector.property.test.js.map +1 -0
  53. package/dist/loader/__tests__/path-type-detector.test.d.ts +2 -0
  54. package/dist/loader/__tests__/path-type-detector.test.d.ts.map +1 -0
  55. package/dist/loader/__tests__/path-type-detector.test.js +390 -0
  56. package/dist/loader/__tests__/path-type-detector.test.js.map +1 -0
  57. package/dist/loader/__tests__/remote-documentation-source.property.test.d.ts +2 -0
  58. package/dist/loader/__tests__/remote-documentation-source.property.test.d.ts.map +1 -0
  59. package/dist/loader/__tests__/remote-documentation-source.property.test.js +462 -0
  60. package/dist/loader/__tests__/remote-documentation-source.property.test.js.map +1 -0
  61. package/dist/loader/__tests__/remote-documentation-source.test.d.ts +2 -0
  62. package/dist/loader/__tests__/remote-documentation-source.test.d.ts.map +1 -0
  63. package/dist/loader/__tests__/remote-documentation-source.test.js +707 -0
  64. package/dist/loader/__tests__/remote-documentation-source.test.js.map +1 -0
  65. package/dist/loader/remote-documentation-source.d.ts +0 -4
  66. package/dist/loader/remote-documentation-source.d.ts.map +1 -1
  67. package/dist/loader/remote-documentation-source.js +1 -4
  68. package/dist/loader/remote-documentation-source.js.map +1 -1
  69. package/dist/main.js +0 -0
  70. package/dist/main.js.map +1 -1
  71. package/dist/mcp/__tests__/server.property.test.d.ts +2 -0
  72. package/dist/mcp/__tests__/server.property.test.d.ts.map +1 -0
  73. package/dist/mcp/__tests__/server.property.test.js +286 -0
  74. package/dist/mcp/__tests__/server.property.test.js.map +1 -0
  75. package/dist/mcp/__tests__/server.test.d.ts +2 -0
  76. package/dist/mcp/__tests__/server.test.d.ts.map +1 -0
  77. package/dist/mcp/__tests__/server.test.js +101 -0
  78. package/dist/mcp/__tests__/server.test.js.map +1 -0
  79. package/dist/mcp/server.d.ts.map +1 -1
  80. package/dist/mcp/server.js +16 -4
  81. package/dist/mcp/server.js.map +1 -1
  82. package/dist/publish/__tests__/publish-utils.test.d.ts +5 -0
  83. package/dist/publish/__tests__/publish-utils.test.d.ts.map +1 -0
  84. package/dist/publish/__tests__/publish-utils.test.js +189 -0
  85. package/dist/publish/__tests__/publish-utils.test.js.map +1 -0
  86. package/dist/query/__tests__/deprecation-parser.test.d.ts +2 -0
  87. package/dist/query/__tests__/deprecation-parser.test.d.ts.map +1 -0
  88. package/dist/query/__tests__/deprecation-parser.test.js +154 -0
  89. package/dist/query/__tests__/deprecation-parser.test.js.map +1 -0
  90. package/dist/query/__tests__/deprecation-query.test.d.ts +2 -0
  91. package/dist/query/__tests__/deprecation-query.test.d.ts.map +1 -0
  92. package/dist/query/__tests__/deprecation-query.test.js +199 -0
  93. package/dist/query/__tests__/deprecation-query.test.js.map +1 -0
  94. package/dist/query/__tests__/index-builder-debug.test.d.ts +2 -0
  95. package/dist/query/__tests__/index-builder-debug.test.d.ts.map +1 -0
  96. package/dist/query/__tests__/index-builder-debug.test.js +34 -0
  97. package/dist/query/__tests__/index-builder-debug.test.js.map +1 -0
  98. package/dist/query/__tests__/index-builder.property.test.d.ts +2 -0
  99. package/dist/query/__tests__/index-builder.property.test.d.ts.map +1 -0
  100. package/dist/query/__tests__/index-builder.property.test.js +422 -0
  101. package/dist/query/__tests__/index-builder.property.test.js.map +1 -0
  102. package/dist/query/__tests__/index-builder.test.d.ts +2 -0
  103. package/dist/query/__tests__/index-builder.test.d.ts.map +1 -0
  104. package/dist/query/__tests__/index-builder.test.js +55 -0
  105. package/dist/query/__tests__/index-builder.test.js.map +1 -0
  106. package/dist/query/__tests__/result-formatter-deprecation.test.d.ts +2 -0
  107. package/dist/query/__tests__/result-formatter-deprecation.test.d.ts.map +1 -0
  108. package/dist/query/__tests__/result-formatter-deprecation.test.js +159 -0
  109. package/dist/query/__tests__/result-formatter-deprecation.test.js.map +1 -0
  110. package/dist/query/__tests__/result-formatter.integration.test.d.ts +2 -0
  111. package/dist/query/__tests__/result-formatter.integration.test.d.ts.map +1 -0
  112. package/dist/query/__tests__/result-formatter.integration.test.js +140 -0
  113. package/dist/query/__tests__/result-formatter.integration.test.js.map +1 -0
  114. package/dist/query/__tests__/result-formatter.property.test.d.ts +2 -0
  115. package/dist/query/__tests__/result-formatter.property.test.d.ts.map +1 -0
  116. package/dist/query/__tests__/result-formatter.property.test.js +163 -0
  117. package/dist/query/__tests__/result-formatter.property.test.js.map +1 -0
  118. package/dist/query/__tests__/result-formatter.test.d.ts +2 -0
  119. package/dist/query/__tests__/result-formatter.test.d.ts.map +1 -0
  120. package/dist/query/__tests__/result-formatter.test.js +85 -0
  121. package/dist/query/__tests__/result-formatter.test.js.map +1 -0
  122. package/dist/query/__tests__/search-engine.property.test.d.ts +2 -0
  123. package/dist/query/__tests__/search-engine.property.test.d.ts.map +1 -0
  124. package/dist/query/__tests__/search-engine.property.test.js +389 -0
  125. package/dist/query/__tests__/search-engine.property.test.js.map +1 -0
  126. package/dist/query/deprecation-parser.d.ts +46 -0
  127. package/dist/query/deprecation-parser.d.ts.map +1 -0
  128. package/dist/query/deprecation-parser.js +81 -0
  129. package/dist/query/deprecation-parser.js.map +1 -0
  130. package/dist/query/deprecation-query.d.ts +19 -0
  131. package/dist/query/deprecation-query.d.ts.map +1 -0
  132. package/dist/query/deprecation-query.js +73 -0
  133. package/dist/query/deprecation-query.js.map +1 -0
  134. package/dist/query/result-formatter.d.ts +27 -0
  135. package/dist/query/result-formatter.d.ts.map +1 -1
  136. package/dist/query/result-formatter.js +64 -5
  137. package/dist/query/result-formatter.js.map +1 -1
  138. package/dist/tools/__tests__/deprecation-tools.test.d.ts +2 -0
  139. package/dist/tools/__tests__/deprecation-tools.test.d.ts.map +1 -0
  140. package/dist/tools/__tests__/deprecation-tools.test.js +178 -0
  141. package/dist/tools/__tests__/deprecation-tools.test.js.map +1 -0
  142. package/dist/tools/__tests__/get-component-docs.property.test.d.ts +2 -0
  143. package/dist/tools/__tests__/get-component-docs.property.test.d.ts.map +1 -0
  144. package/dist/tools/__tests__/get-component-docs.property.test.js +594 -0
  145. package/dist/tools/__tests__/get-component-docs.property.test.js.map +1 -0
  146. package/dist/tools/__tests__/get-component-docs.test.d.ts +2 -0
  147. package/dist/tools/__tests__/get-component-docs.test.d.ts.map +1 -0
  148. package/dist/tools/__tests__/get-component-docs.test.js +137 -0
  149. package/dist/tools/__tests__/get-component-docs.test.js.map +1 -0
  150. package/dist/tools/__tests__/get-component-examples.property.test.d.ts +2 -0
  151. package/dist/tools/__tests__/get-component-examples.property.test.d.ts.map +1 -0
  152. package/dist/tools/__tests__/get-component-examples.property.test.js +245 -0
  153. package/dist/tools/__tests__/get-component-examples.property.test.js.map +1 -0
  154. package/dist/tools/__tests__/get-component-examples.test.d.ts +2 -0
  155. package/dist/tools/__tests__/get-component-examples.test.d.ts.map +1 -0
  156. package/dist/tools/__tests__/get-component-examples.test.js +128 -0
  157. package/dist/tools/__tests__/get-component-examples.test.js.map +1 -0
  158. package/dist/tools/__tests__/get-component-inputs.property.test.d.ts +2 -0
  159. package/dist/tools/__tests__/get-component-inputs.property.test.d.ts.map +1 -0
  160. package/dist/tools/__tests__/get-component-inputs.property.test.js +310 -0
  161. package/dist/tools/__tests__/get-component-inputs.property.test.js.map +1 -0
  162. package/dist/tools/__tests__/get-component-inputs.test.d.ts +2 -0
  163. package/dist/tools/__tests__/get-component-inputs.test.d.ts.map +1 -0
  164. package/dist/tools/__tests__/get-component-inputs.test.js +245 -0
  165. package/dist/tools/__tests__/get-component-inputs.test.js.map +1 -0
  166. package/dist/tools/__tests__/get-component-outputs.property.test.d.ts +2 -0
  167. package/dist/tools/__tests__/get-component-outputs.property.test.d.ts.map +1 -0
  168. package/dist/tools/__tests__/get-component-outputs.property.test.js +227 -0
  169. package/dist/tools/__tests__/get-component-outputs.property.test.js.map +1 -0
  170. package/dist/tools/__tests__/get-component-outputs.test.d.ts +2 -0
  171. package/dist/tools/__tests__/get-component-outputs.test.d.ts.map +1 -0
  172. package/dist/tools/__tests__/get-component-outputs.test.js +189 -0
  173. package/dist/tools/__tests__/get-component-outputs.test.js.map +1 -0
  174. package/dist/tools/__tests__/get-library-version.property.test.d.ts +2 -0
  175. package/dist/tools/__tests__/get-library-version.property.test.d.ts.map +1 -0
  176. package/dist/tools/__tests__/get-library-version.property.test.js +115 -0
  177. package/dist/tools/__tests__/get-library-version.property.test.js.map +1 -0
  178. package/dist/tools/__tests__/get-library-version.test.d.ts +2 -0
  179. package/dist/tools/__tests__/get-library-version.test.d.ts.map +1 -0
  180. package/dist/tools/__tests__/get-library-version.test.js +97 -0
  181. package/dist/tools/__tests__/get-library-version.test.js.map +1 -0
  182. package/dist/tools/__tests__/list-components.property.test.d.ts +2 -0
  183. package/dist/tools/__tests__/list-components.property.test.d.ts.map +1 -0
  184. package/dist/tools/__tests__/list-components.property.test.js +241 -0
  185. package/dist/tools/__tests__/list-components.property.test.js.map +1 -0
  186. package/dist/tools/__tests__/list-components.test.d.ts +2 -0
  187. package/dist/tools/__tests__/list-components.test.d.ts.map +1 -0
  188. package/dist/tools/__tests__/list-components.test.js +170 -0
  189. package/dist/tools/__tests__/list-components.test.js.map +1 -0
  190. package/dist/tools/__tests__/search-components.test.d.ts +2 -0
  191. package/dist/tools/__tests__/search-components.test.d.ts.map +1 -0
  192. package/dist/tools/__tests__/search-components.test.js +239 -0
  193. package/dist/tools/__tests__/search-components.test.js.map +1 -0
  194. package/dist/tools/get-deprecation-info.d.ts +42 -0
  195. package/dist/tools/get-deprecation-info.d.ts.map +1 -0
  196. package/dist/tools/get-deprecation-info.js +55 -0
  197. package/dist/tools/get-deprecation-info.js.map +1 -0
  198. package/dist/tools/get-library-version.d.ts +33 -0
  199. package/dist/tools/get-library-version.d.ts.map +1 -0
  200. package/dist/tools/get-library-version.js +62 -0
  201. package/dist/tools/get-library-version.js.map +1 -0
  202. package/dist/tools/index.d.ts +3 -0
  203. package/dist/tools/index.d.ts.map +1 -1
  204. package/dist/tools/index.js +3 -0
  205. package/dist/tools/index.js.map +1 -1
  206. package/dist/tools/list-deprecated.d.ts +47 -0
  207. package/dist/tools/list-deprecated.d.ts.map +1 -0
  208. package/dist/tools/list-deprecated.js +56 -0
  209. package/dist/tools/list-deprecated.js.map +1 -0
  210. package/dist/types/compodoc.d.ts +1 -0
  211. package/dist/types/compodoc.d.ts.map +1 -1
  212. package/dist/types/deprecation.d.ts +33 -0
  213. package/dist/types/deprecation.d.ts.map +1 -0
  214. package/dist/types/deprecation.js +5 -0
  215. package/dist/types/deprecation.js.map +1 -0
  216. package/dist/utils/__tests__/credential-masking.property.test.d.ts +2 -0
  217. package/dist/utils/__tests__/credential-masking.property.test.d.ts.map +1 -0
  218. package/dist/utils/__tests__/credential-masking.property.test.js +145 -0
  219. package/dist/utils/__tests__/credential-masking.property.test.js.map +1 -0
  220. package/dist/utils/__tests__/credential-masking.test.d.ts +2 -0
  221. package/dist/utils/__tests__/credential-masking.test.d.ts.map +1 -0
  222. package/dist/utils/__tests__/credential-masking.test.js +188 -0
  223. package/dist/utils/__tests__/credential-masking.test.js.map +1 -0
  224. package/dist/utils/__tests__/errors.test.d.ts +2 -0
  225. package/dist/utils/__tests__/errors.test.d.ts.map +1 -0
  226. package/dist/utils/__tests__/errors.test.js +110 -0
  227. package/dist/utils/__tests__/errors.test.js.map +1 -0
  228. package/dist/utils/__tests__/integration.test.d.ts +2 -0
  229. package/dist/utils/__tests__/integration.test.d.ts.map +1 -0
  230. package/dist/utils/__tests__/integration.test.js +142 -0
  231. package/dist/utils/__tests__/integration.test.js.map +1 -0
  232. package/dist/utils/__tests__/logger.test.d.ts +2 -0
  233. package/dist/utils/__tests__/logger.test.d.ts.map +1 -0
  234. package/dist/utils/__tests__/logger.test.js +119 -0
  235. package/dist/utils/__tests__/logger.test.js.map +1 -0
  236. package/dist/utils/__tests__/retry.test.d.ts +2 -0
  237. package/dist/utils/__tests__/retry.test.d.ts.map +1 -0
  238. package/dist/utils/__tests__/retry.test.js +84 -0
  239. package/dist/utils/__tests__/retry.test.js.map +1 -0
  240. package/dist/utils/credential-masking.js +4 -4
  241. package/dist/utils/credential-masking.js.map +1 -1
  242. package/dist/version/__tests__/changelog-commit-grouping.property.test.d.ts +2 -0
  243. package/dist/version/__tests__/changelog-commit-grouping.property.test.d.ts.map +1 -0
  244. package/dist/version/__tests__/changelog-commit-grouping.property.test.js +297 -0
  245. package/dist/version/__tests__/changelog-commit-grouping.property.test.js.map +1 -0
  246. package/dist/version/__tests__/changelog-commit-parsing.property.test.d.ts +2 -0
  247. package/dist/version/__tests__/changelog-commit-parsing.property.test.d.ts.map +1 -0
  248. package/dist/version/__tests__/changelog-commit-parsing.property.test.js +396 -0
  249. package/dist/version/__tests__/changelog-commit-parsing.property.test.js.map +1 -0
  250. package/dist/version/__tests__/changelog-file-updates.property.test.d.ts +11 -0
  251. package/dist/version/__tests__/changelog-file-updates.property.test.d.ts.map +1 -0
  252. package/dist/version/__tests__/changelog-file-updates.property.test.js +452 -0
  253. package/dist/version/__tests__/changelog-file-updates.property.test.js.map +1 -0
  254. package/dist/version/__tests__/dry-run-action.property.test.d.ts +8 -0
  255. package/dist/version/__tests__/dry-run-action.property.test.d.ts.map +1 -0
  256. package/dist/version/__tests__/dry-run-action.property.test.js +50 -0
  257. package/dist/version/__tests__/dry-run-action.property.test.js.map +1 -0
  258. package/dist/version/__tests__/dry-run-changelog.property.test.d.ts +8 -0
  259. package/dist/version/__tests__/dry-run-changelog.property.test.d.ts.map +1 -0
  260. package/dist/version/__tests__/dry-run-changelog.property.test.js +53 -0
  261. package/dist/version/__tests__/dry-run-changelog.property.test.js.map +1 -0
  262. package/dist/version/__tests__/dry-run-utils.test.d.ts +7 -0
  263. package/dist/version/__tests__/dry-run-utils.test.d.ts.map +1 -0
  264. package/dist/version/__tests__/dry-run-utils.test.js +205 -0
  265. package/dist/version/__tests__/dry-run-utils.test.js.map +1 -0
  266. package/dist/version/__tests__/dry-run-version.property.test.d.ts +8 -0
  267. package/dist/version/__tests__/dry-run-version.property.test.d.ts.map +1 -0
  268. package/dist/version/__tests__/dry-run-version.property.test.js +59 -0
  269. package/dist/version/__tests__/dry-run-version.property.test.js.map +1 -0
  270. package/dist/version/__tests__/git-tag-annotation.property.test.d.ts +11 -0
  271. package/dist/version/__tests__/git-tag-annotation.property.test.d.ts.map +1 -0
  272. package/dist/version/__tests__/git-tag-annotation.property.test.js +271 -0
  273. package/dist/version/__tests__/git-tag-annotation.property.test.js.map +1 -0
  274. package/dist/version/__tests__/git-tag-format.property.test.d.ts +11 -0
  275. package/dist/version/__tests__/git-tag-format.property.test.d.ts.map +1 -0
  276. package/dist/version/__tests__/git-tag-format.property.test.js +411 -0
  277. package/dist/version/__tests__/git-tag-format.property.test.js.map +1 -0
  278. package/dist/version/__tests__/git-tag-utils.test.d.ts +2 -0
  279. package/dist/version/__tests__/git-tag-utils.test.d.ts.map +1 -0
  280. package/dist/version/__tests__/git-tag-utils.test.js +142 -0
  281. package/dist/version/__tests__/git-tag-utils.test.js.map +1 -0
  282. package/dist/version/__tests__/npm-tag-selection.property.test.d.ts +2 -0
  283. package/dist/version/__tests__/npm-tag-selection.property.test.d.ts.map +1 -0
  284. package/dist/version/__tests__/npm-tag-selection.property.test.js +79 -0
  285. package/dist/version/__tests__/npm-tag-selection.property.test.js.map +1 -0
  286. package/dist/version/__tests__/release-title-format.property.test.d.ts +11 -0
  287. package/dist/version/__tests__/release-title-format.property.test.d.ts.map +1 -0
  288. package/dist/version/__tests__/release-title-format.property.test.js +422 -0
  289. package/dist/version/__tests__/release-title-format.property.test.js.map +1 -0
  290. package/dist/version/__tests__/release-utils.test.d.ts +7 -0
  291. package/dist/version/__tests__/release-utils.test.d.ts.map +1 -0
  292. package/dist/version/__tests__/release-utils.test.js +176 -0
  293. package/dist/version/__tests__/release-utils.test.js.map +1 -0
  294. package/dist/version/__tests__/rollback-changelog.property.test.d.ts +8 -0
  295. package/dist/version/__tests__/rollback-changelog.property.test.d.ts.map +1 -0
  296. package/dist/version/__tests__/rollback-changelog.property.test.js +61 -0
  297. package/dist/version/__tests__/rollback-changelog.property.test.js.map +1 -0
  298. package/dist/version/__tests__/rollback-utils.test.d.ts +7 -0
  299. package/dist/version/__tests__/rollback-utils.test.d.ts.map +1 -0
  300. package/dist/version/__tests__/rollback-utils.test.js +74 -0
  301. package/dist/version/__tests__/rollback-utils.test.js.map +1 -0
  302. package/dist/version/__tests__/version-manager.property.test.d.ts +2 -0
  303. package/dist/version/__tests__/version-manager.property.test.d.ts.map +1 -0
  304. package/dist/version/__tests__/version-manager.property.test.js +143 -0
  305. package/dist/version/__tests__/version-manager.property.test.js.map +1 -0
  306. package/dist/version/__tests__/version-manager.test.d.ts +2 -0
  307. package/dist/version/__tests__/version-manager.test.d.ts.map +1 -0
  308. package/dist/version/__tests__/version-manager.test.js +203 -0
  309. package/dist/version/__tests__/version-manager.test.js.map +1 -0
  310. package/dist/version/version-manager.d.ts.map +1 -1
  311. package/dist/version/version-manager.js +0 -4
  312. package/dist/version/version-manager.js.map +1 -1
  313. package/package.json +1 -1
  314. package/dist/test-error.ts +0 -1
@@ -0,0 +1,137 @@
1
+ /**
2
+ * Unit tests for GetComponentDocsTool
3
+ */
4
+ import { describe, it, expect, beforeEach } from '@jest/globals';
5
+ import { GetComponentDocsTool } from '../get-component-docs.js';
6
+ import { ComponentQuery } from '../../query/component-query.js';
7
+ import { ResultFormatter } from '../../query/result-formatter.js';
8
+ import { IndexBuilder } from '../../query/index-builder.js';
9
+ describe('GetComponentDocsTool', () => {
10
+ let tool;
11
+ let documentation;
12
+ beforeEach(() => {
13
+ // Create sample documentation
14
+ documentation = {
15
+ components: [
16
+ {
17
+ name: 'TestComponent',
18
+ id: 'test-component',
19
+ file: 'test.component.ts',
20
+ type: 'component',
21
+ selector: 'app-test',
22
+ description: 'A test component',
23
+ deprecated: false,
24
+ inputs: [
25
+ {
26
+ name: 'value',
27
+ type: 'string',
28
+ optional: false,
29
+ description: 'The value input',
30
+ deprecated: false,
31
+ defaultValue: 'default',
32
+ },
33
+ ],
34
+ outputs: [
35
+ {
36
+ name: 'change',
37
+ type: 'EventEmitter<string>',
38
+ optional: false,
39
+ description: 'Change event',
40
+ deprecated: false,
41
+ },
42
+ ],
43
+ examples: [
44
+ {
45
+ title: 'Basic usage',
46
+ description: 'How to use the component',
47
+ example: '<app-test [value]="myValue"></app-test>',
48
+ language: 'html',
49
+ },
50
+ ],
51
+ standalone: true,
52
+ imports: ['CommonModule'],
53
+ },
54
+ ],
55
+ directives: [],
56
+ pipes: [],
57
+ injectables: [],
58
+ interfaces: [],
59
+ classes: [],
60
+ modules: [],
61
+ };
62
+ // Build index and create tool
63
+ const builder = new IndexBuilder();
64
+ const index = builder.build(documentation);
65
+ const query = new ComponentQuery(index);
66
+ const formatter = new ResultFormatter();
67
+ tool = new GetComponentDocsTool(query, formatter);
68
+ });
69
+ describe('execute', () => {
70
+ it('should retrieve component documentation by name', () => {
71
+ const result = tool.execute({ name: 'TestComponent' });
72
+ expect(result.component).toBeDefined();
73
+ expect(result.component.name).toBe('TestComponent');
74
+ expect(result.component.selector).toBe('app-test');
75
+ expect(result.component.description).toBe('A test component');
76
+ });
77
+ it('should include inputs in the result', () => {
78
+ const result = tool.execute({ name: 'TestComponent' });
79
+ expect(result.component.inputs).toHaveLength(1);
80
+ expect(result.component.inputs[0].name).toBe('value');
81
+ expect(result.component.inputs[0].type).toBe('string');
82
+ expect(result.component.inputs[0].required).toBe(true);
83
+ expect(result.component.inputs[0].defaultValue).toBe('default');
84
+ });
85
+ it('should include outputs in the result', () => {
86
+ const result = tool.execute({ name: 'TestComponent' });
87
+ expect(result.component.outputs).toHaveLength(1);
88
+ expect(result.component.outputs[0].name).toBe('change');
89
+ expect(result.component.outputs[0].type).toBe('EventEmitter<string>');
90
+ });
91
+ it('should include examples in the result', () => {
92
+ const result = tool.execute({ name: 'TestComponent' });
93
+ expect(result.component.examples).toHaveLength(1);
94
+ expect(result.component.examples[0].title).toBe('Basic usage');
95
+ expect(result.component.examples[0].example).toContain('app-test');
96
+ });
97
+ it('should include standalone flag', () => {
98
+ const result = tool.execute({ name: 'TestComponent' });
99
+ expect(result.component.standalone).toBe(true);
100
+ });
101
+ it('should include imports', () => {
102
+ const result = tool.execute({ name: 'TestComponent' });
103
+ expect(result.component.imports).toEqual(['CommonModule']);
104
+ });
105
+ it('should throw error for non-existent component', () => {
106
+ expect(() => {
107
+ tool.execute({ name: 'NonExistentComponent' });
108
+ }).toThrow('Component "NonExistentComponent" not found in documentation');
109
+ });
110
+ it('should throw error for empty name', () => {
111
+ expect(() => {
112
+ tool.execute({ name: '' });
113
+ }).toThrow('Component name is required and must be a non-empty string');
114
+ });
115
+ it('should throw error for whitespace-only name', () => {
116
+ expect(() => {
117
+ tool.execute({ name: ' ' });
118
+ }).toThrow('Component name is required and must be a non-empty string');
119
+ });
120
+ it('should trim component name before lookup', () => {
121
+ const result = tool.execute({ name: ' TestComponent ' });
122
+ expect(result.component.name).toBe('TestComponent');
123
+ });
124
+ });
125
+ describe('getToolDefinition', () => {
126
+ it('should return valid tool definition', () => {
127
+ const definition = GetComponentDocsTool.getToolDefinition();
128
+ expect(definition.name).toBe('get-component-docs');
129
+ expect(definition.description).toBeDefined();
130
+ expect(definition.inputSchema).toBeDefined();
131
+ expect(definition.inputSchema.type).toBe('object');
132
+ expect(definition.inputSchema.properties).toBeDefined();
133
+ expect(definition.inputSchema.required).toContain('name');
134
+ });
135
+ });
136
+ });
137
+ //# sourceMappingURL=get-component-docs.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-docs.test.js","sourceRoot":"","sources":["../../../src/tools/__tests__/get-component-docs.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,IAAI,IAA0B,CAAC;IAC/B,IAAI,aAAoC,CAAC;IAEzC,UAAU,CAAC,GAAG,EAAE;QACd,8BAA8B;QAC9B,aAAa,GAAG;YACd,UAAU,EAAE;gBACV;oBACE,IAAI,EAAE,eAAe;oBACrB,EAAE,EAAE,gBAAgB;oBACpB,IAAI,EAAE,mBAAmB;oBACzB,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,UAAU;oBACpB,WAAW,EAAE,kBAAkB;oBAC/B,UAAU,E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U,GAAG,oBAAoB,CAAC,iBAAiB,EAAE,CAAC;YAE5D,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YACnD,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;YAC7C,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;YAC7C,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACnD,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC;YACxD,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-component-examples.property.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-examples.property.test.d.ts","sourceRoot":"","sources":["../../../src/tools/__tests__/get-component-examples.property.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,245 @@
1
+ /**
2
+ * Property-based tests for GetComponentExamplesTool
3
+ */
4
+ import { describe, it, expect } from '@jest/globals';
5
+ import * as fc from 'fast-check';
6
+ import { GetComponentExamplesTool } from '../get-component-examples.js';
7
+ import { ComponentQuery } from '../../query/component-query.js';
8
+ import { ResultFormatter } from '../../query/result-formatter.js';
9
+ import { IndexBuilder } from '../../query/index-builder.js';
10
+ // Arbitraries for generating test data
11
+ /**
12
+ * Generate an example with various formatting
13
+ */
14
+ const exampleArbitrary = fc.record({
15
+ title: fc.option(fc.string({ minLength: 1, maxLength: 100 }), { nil: undefined }),
16
+ description: fc.option(fc.string({ minLength: 1, maxLength: 200 }), { nil: undefined }),
17
+ example: fc.oneof(
18
+ // HTML examples with various formatting
19
+ fc.string({ minLength: 1, maxLength: 500 }).map(s => `<div>\n ${s}\n</div>`), fc.string({ minLength: 1, maxLength: 500 }).map(s => `<app-component>${s}</app-component>`),
20
+ // TypeScript examples with various formatting
21
+ fc.string({ minLength: 1, maxLength: 500 }).map(s => `function test() {\n ${s}\n}`), fc.string({ minLength: 1, maxLength: 500 }).map(s => `const x = ${s};`),
22
+ // Plain text
23
+ fc.string({ minLength: 1, maxLength: 500 }),
24
+ // Examples with special characters and whitespace
25
+ fc.string({ minLength: 1, maxLength: 500 }).map(s => ` ${s} \n\n ${s} `)),
26
+ language: fc.option(fc.oneof(fc.constant('html'), fc.constant('typescript'), fc.constant('javascript'), fc.constant('css'), fc.constant('json')), { nil: undefined }),
27
+ });
28
+ /**
29
+ * Generate a valid component with examples
30
+ */
31
+ const componentArbitrary = fc.record({
32
+ name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0 && s === s.trim()),
33
+ id: fc.string({ minLength: 1 }),
34
+ file: fc.string({ minLength: 1 }),
35
+ type: fc.constant('component'),
36
+ selector: fc.option(fc.string({ minLength: 1 }), { nil: undefined }),
37
+ description: fc.option(fc.string(), { nil: undefined }),
38
+ deprecated: fc.boolean(),
39
+ deprecationMessage: fc.option(fc.string(), { nil: undefined }),
40
+ examples: fc.option(fc.array(exampleArbitrary, { minLength: 0, maxLength: 10 }), { nil: undefined }),
41
+ });
42
+ /**
43
+ * Generate a valid directive (directives don't have examples in Compodoc)
44
+ */
45
+ const directiveArbitrary = fc.record({
46
+ name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0 && s === s.trim()),
47
+ id: fc.string({ minLength: 1 }),
48
+ file: fc.string({ minLength: 1 }),
49
+ type: fc.constant('directive'),
50
+ selector: fc.option(fc.string({ minLength: 1 }), { nil: undefined }),
51
+ description: fc.option(fc.string(), { nil: undefined }),
52
+ deprecated: fc.boolean(),
53
+ deprecationMessage: fc.option(fc.string(), { nil: undefined }),
54
+ });
55
+ /**
56
+ * Generate a valid pipe
57
+ */
58
+ const pipeArbitrary = fc.record({
59
+ name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0 && s === s.trim()),
60
+ id: fc.string({ minLength: 1 }),
61
+ file: fc.string({ minLength: 1 }),
62
+ type: fc.constant('pipe'),
63
+ description: fc.option(fc.string(), { nil: undefined }),
64
+ deprecated: fc.boolean(),
65
+ });
66
+ /**
67
+ * Generate a valid injectable (service)
68
+ */
69
+ const injectableArbitrary = fc.record({
70
+ name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0 && s === s.trim()),
71
+ id: fc.string({ minLength: 1 }),
72
+ file: fc.string({ minLength: 1 }),
73
+ type: fc.constant('injectable'),
74
+ description: fc.option(fc.string(), { nil: undefined }),
75
+ deprecated: fc.boolean(),
76
+ });
77
+ /**
78
+ * Generate valid Compodoc documentation with unique names
79
+ */
80
+ const documentationArbitrary = fc
81
+ .record({
82
+ components: fc.array(componentArbitrary, { maxLength: 20 }),
83
+ directives: fc.array(directiveArbitrary, { maxLength: 20 }),
84
+ pipes: fc.array(pipeArbitrary, { maxLength: 20 }),
85
+ injectables: fc.array(injectableArbitrary, { maxLength: 20 }),
86
+ interfaces: fc.constant([]),
87
+ classes: fc.constant([]),
88
+ modules: fc.constant([]),
89
+ })
90
+ .filter((doc) => {
91
+ // Ensure all names are unique across all types
92
+ const allNames = new Set();
93
+ const items = [
94
+ ...doc.components,
95
+ ...doc.directives,
96
+ ...doc.pipes,
97
+ ...doc.injectables,
98
+ ];
99
+ for (const item of items) {
100
+ if (allNames.has(item.name)) {
101
+ return false;
102
+ }
103
+ allNames.add(item.name);
104
+ }
105
+ return items.length > 0; // Ensure at least one item
106
+ });
107
+ describe('GetComponentExamplesTool Property Tests', () => {
108
+ describe('Property 16: Example completeness', () => {
109
+ /**
110
+ * Feature: eui-compodoc-mcp, Property 16: Example completeness
111
+ * Validates: Requirements 5.1, 5.5
112
+ *
113
+ * For any component with examples in the documentation, requesting examples
114
+ * should return all available examples.
115
+ */
116
+ it('should return all available examples for components', () => {
117
+ fc.assert(fc.property(documentationArbitrary, (documentation) => {
118
+ // Build index
119
+ const builder = new IndexBuilder();
120
+ const index = builder.build(documentation);
121
+ // Create tool
122
+ const query = new ComponentQuery(index);
123
+ const formatter = new ResultFormatter();
124
+ const tool = new GetComponentExamplesTool(query, formatter);
125
+ // Test components
126
+ for (const component of documentation.components) {
127
+ const result = tool.execute({ name: component.name });
128
+ // Verify result structure
129
+ expect(result.componentName).toBe(component.name);
130
+ expect(result.examples).toBeDefined();
131
+ expect(Array.isArray(result.examples)).toBe(true);
132
+ // Verify all examples are present
133
+ const expectedExampleCount = component.examples?.length || 0;
134
+ expect(result.examples.length).toBe(expectedExampleCount);
135
+ // If component has examples, verify each one is present
136
+ if (component.examples && component.examples.length > 0) {
137
+ for (let i = 0; i < component.examples.length; i++) {
138
+ const originalExample = component.examples[i];
139
+ const resultExample = result.examples[i];
140
+ // Verify the example is present
141
+ expect(resultExample).toBeDefined();
142
+ expect(resultExample.example).toBe(originalExample.example);
143
+ // Verify optional fields are preserved
144
+ if (originalExample.title !== undefined) {
145
+ expect(resultExample.title).toBe(originalExample.title);
146
+ }
147
+ if (originalExample.description !== undefined) {
148
+ expect(resultExample.description).toBe(originalExample.description);
149
+ }
150
+ if (originalExample.language !== undefined) {
151
+ expect(resultExample.language).toBe(originalExample.language);
152
+ }
153
+ }
154
+ }
155
+ }
156
+ // Test directives (directives don't have examples in Compodoc)
157
+ for (const directive of documentation.directives) {
158
+ const result = tool.execute({ name: directive.name });
159
+ // Verify result structure
160
+ expect(result.componentName).toBe(directive.name);
161
+ expect(result.examples).toBeDefined();
162
+ expect(Array.isArray(result.examples)).toBe(true);
163
+ // Directives don't have examples, so should return empty array
164
+ expect(result.examples.length).toBe(0);
165
+ }
166
+ // Test pipes and services (which don't have examples)
167
+ for (const pipe of documentation.pipes) {
168
+ const result = tool.execute({ name: pipe.name });
169
+ expect(result.examples).toEqual([]);
170
+ }
171
+ for (const service of documentation.injectables) {
172
+ const result = tool.execute({ name: service.name });
173
+ expect(result.examples).toEqual([]);
174
+ }
175
+ }), { numRuns: 100 });
176
+ });
177
+ });
178
+ describe('Property 7: Example format preservation', () => {
179
+ /**
180
+ * Feature: eui-compodoc-mcp, Property 7: Example format preservation
181
+ * Validates: Requirements 2.5, 5.2, 5.3
182
+ *
183
+ * For any component with code examples, retrieving the examples should
184
+ * preserve their formatting and structure.
185
+ */
186
+ it('should preserve formatting and structure of examples', () => {
187
+ fc.assert(fc.property(documentationArbitrary, (documentation) => {
188
+ // Build index
189
+ const builder = new IndexBuilder();
190
+ const index = builder.build(documentation);
191
+ // Create tool
192
+ const query = new ComponentQuery(index);
193
+ const formatter = new ResultFormatter();
194
+ const tool = new GetComponentExamplesTool(query, formatter);
195
+ // Test components with examples
196
+ for (const component of documentation.components) {
197
+ if (component.examples && component.examples.length > 0) {
198
+ const result = tool.execute({ name: component.name });
199
+ // Verify each example preserves its exact formatting
200
+ for (let i = 0; i < component.examples.length; i++) {
201
+ const originalExample = component.examples[i];
202
+ const resultExample = result.examples[i];
203
+ // The example text must be exactly the same (byte-for-byte)
204
+ expect(resultExample.example).toBe(originalExample.example);
205
+ // Verify whitespace is preserved
206
+ expect(resultExample.example.length).toBe(originalExample.example.length);
207
+ // Verify newlines are preserved
208
+ const originalNewlines = (originalExample.example.match(/\n/g) || []).length;
209
+ const resultNewlines = (resultExample.example.match(/\n/g) || []).length;
210
+ expect(resultNewlines).toBe(originalNewlines);
211
+ // Verify leading/trailing whitespace is preserved
212
+ if (originalExample.example.startsWith(' ') || originalExample.example.startsWith('\t')) {
213
+ expect(resultExample.example[0]).toBe(originalExample.example[0]);
214
+ }
215
+ if (originalExample.example.endsWith(' ') || originalExample.example.endsWith('\n')) {
216
+ expect(resultExample.example[resultExample.example.length - 1])
217
+ .toBe(originalExample.example[originalExample.example.length - 1]);
218
+ }
219
+ // Verify special characters are preserved
220
+ const specialChars = ['<', '>', '{', '}', '[', ']', '(', ')', '"', "'", '`', '\\'];
221
+ for (const char of specialChars) {
222
+ const originalCount = (originalExample.example.match(new RegExp(`\\${char}`, 'g')) || []).length;
223
+ const resultCount = (resultExample.example.match(new RegExp(`\\${char}`, 'g')) || []).length;
224
+ expect(resultCount).toBe(originalCount);
225
+ }
226
+ // Verify language field is preserved if present
227
+ if (originalExample.language !== undefined) {
228
+ expect(resultExample.language).toBe(originalExample.language);
229
+ }
230
+ // Verify title and description are preserved if present
231
+ if (originalExample.title !== undefined) {
232
+ expect(resultExample.title).toBe(originalExample.title);
233
+ }
234
+ if (originalExample.description !== undefined) {
235
+ expect(resultExample.description).toBe(originalExample.description);
236
+ }
237
+ }
238
+ }
239
+ }
240
+ // Note: Directives don't have examples in Compodoc, so we only test components
241
+ }), { numRuns: 100 });
242
+ });
243
+ });
244
+ });
245
+ //# sourceMappingURL=get-component-examples.property.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-examples.property.test.js","sourceRoot":"","sources":["../../../src/tools/__tests__/get-component-examples.property.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAU5D,uCAAuC;AAEvC;;GAEG;AACH,MAAM,gBAAgB,GAAG,EAAE,CAAC,MAAM,CAAC;IACjC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CA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KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;gCACjG,MAAM,WAAW,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;gCAC7F,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;4BAC1C,CAAC;4BAED,gDAAgD;4BAChD,IAAI,eAAe,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;gCAC3C,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;4BAChE,CAAC;4BAED,wDAAwD;4BACxD,IAAI,eAAe,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gCACxC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;4BAC1D,CAAC;4BACD,IAAI,eAAe,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;gCAC9C,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;4BACtE,CAAC;wBACH,CAAC;oBACH,CAAC;gBACH,CAAC;gBAED,+EAA+E;YACjF,CAAC,CAAC,EACF,EAAE,OAAO,EAAE,GAAG,EAAE,CACjB,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-component-examples.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-examples.test.d.ts","sourceRoot":"","sources":["../../../src/tools/__tests__/get-component-examples.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Unit tests for GetComponentExamplesTool
3
+ */
4
+ import { describe, it, expect, beforeEach } from '@jest/globals';
5
+ import { GetComponentExamplesTool } from '../get-component-examples.js';
6
+ import { ComponentQuery } from '../../query/component-query.js';
7
+ import { ResultFormatter } from '../../query/result-formatter.js';
8
+ import { IndexBuilder } from '../../query/index-builder.js';
9
+ describe('GetComponentExamplesTool', () => {
10
+ let tool;
11
+ let query;
12
+ let formatter;
13
+ const createDocumentation = (components) => ({
14
+ components,
15
+ directives: [],
16
+ pipes: [],
17
+ injectables: [],
18
+ interfaces: [],
19
+ classes: [],
20
+ modules: [],
21
+ });
22
+ beforeEach(() => {
23
+ const builder = new IndexBuilder();
24
+ const documentation = createDocumentation([
25
+ {
26
+ name: 'ButtonComponent',
27
+ id: 'button-1',
28
+ file: 'button.ts',
29
+ type: 'component',
30
+ selector: 'app-button',
31
+ description: 'A button component',
32
+ deprecated: false,
33
+ examples: [
34
+ {
35
+ title: 'Basic Usage',
36
+ description: 'Simple button example',
37
+ example: '<app-button>Click me</app-button>',
38
+ language: 'html',
39
+ },
40
+ {
41
+ title: 'With TypeScript',
42
+ description: 'Button with event handler',
43
+ example: 'this.button.click();',
44
+ language: 'typescript',
45
+ },
46
+ ],
47
+ },
48
+ {
49
+ name: 'InputComponent',
50
+ id: 'input-1',
51
+ file: 'input.ts',
52
+ type: 'component',
53
+ selector: 'app-input',
54
+ description: 'An input component',
55
+ deprecated: false,
56
+ examples: [],
57
+ },
58
+ {
59
+ name: 'CardComponent',
60
+ id: 'card-1',
61
+ file: 'card.ts',
62
+ type: 'component',
63
+ selector: 'app-card',
64
+ description: 'A card component',
65
+ deprecated: false,
66
+ // No examples field
67
+ },
68
+ ]);
69
+ const index = builder.build(documentation);
70
+ query = new ComponentQuery(index);
71
+ formatter = new ResultFormatter();
72
+ tool = new GetComponentExamplesTool(query, formatter);
73
+ });
74
+ describe('execute', () => {
75
+ it('should retrieve examples for a component with examples', () => {
76
+ const result = tool.execute({ name: 'ButtonComponent' });
77
+ expect(result.componentName).toBe('ButtonComponent');
78
+ expect(result.examples).toHaveLength(2);
79
+ expect(result.examples[0].title).toBe('Basic Usage');
80
+ expect(result.examples[0].example).toBe('<app-button>Click me</app-button>');
81
+ expect(result.examples[0].language).toBe('html');
82
+ expect(result.examples[1].title).toBe('With TypeScript');
83
+ expect(result.examples[1].language).toBe('typescript');
84
+ });
85
+ it('should return empty array for component with no examples', () => {
86
+ const result = tool.execute({ name: 'InputComponent' });
87
+ expect(result.componentName).toBe('InputComponent');
88
+ expect(result.examples).toEqual([]);
89
+ });
90
+ it('should return empty array for component without examples field', () => {
91
+ const result = tool.execute({ name: 'CardComponent' });
92
+ expect(result.componentName).toBe('CardComponent');
93
+ expect(result.examples).toEqual([]);
94
+ });
95
+ it('should throw error for non-existent component', () => {
96
+ expect(() => {
97
+ tool.execute({ name: 'NonExistentComponent' });
98
+ }).toThrow('Component "NonExistentComponent" not found in documentation');
99
+ });
100
+ it('should throw error for empty name', () => {
101
+ expect(() => {
102
+ tool.execute({ name: '' });
103
+ }).toThrow('Component name is required and must be a non-empty string');
104
+ });
105
+ it('should throw error for whitespace-only name', () => {
106
+ expect(() => {
107
+ tool.execute({ name: ' ' });
108
+ }).toThrow('Component name is required and must be a non-empty string');
109
+ });
110
+ it('should handle name with leading/trailing whitespace', () => {
111
+ const result = tool.execute({ name: ' ButtonComponent ' });
112
+ expect(result.componentName).toBe('ButtonComponent');
113
+ expect(result.examples).toHaveLength(2);
114
+ });
115
+ });
116
+ describe('getToolDefinition', () => {
117
+ it('should return valid tool definition', () => {
118
+ const definition = GetComponentExamplesTool.getToolDefinition();
119
+ expect(definition.name).toBe('get-component-examples');
120
+ expect(definition.description).toBeDefined();
121
+ expect(definition.inputSchema).toBeDefined();
122
+ expect(definition.inputSchema.type).toBe('object');
123
+ expect(definition.inputSchema.properties.name).toBeDefined();
124
+ expect(definition.inputSchema.required).toContain('name');
125
+ });
126
+ });
127
+ });
128
+ //# sourceMappingURL=get-component-examples.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-examples.test.js","sourceRoot":"","sources":["../../../src/tools/__tests__/get-component-examples.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,IAA8B,CAAC;IACnC,IAAI,KAAqB,CAAC;IAC1B,IAAI,SAA0B,CAAC;IAE/B,MAAM,mBAAmB,GAAG,CAAC,UAA0B,EAAyB,EAAE,CAAC,CAAC;QAClF,UAAU;QACV,UAAU,EAAE,EAAE;QACd,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACZ,CAAC,CAAC;IAEH,UAAU,CAAC,GAAG,EAAE;QACd,MAAM,OAAO,GAAG,IAAI,YAAY,EAAE,CAAC;QACnC,MAAM,aAAa,GAAG,mBAAmB,CAAC;YACxC;gBACE,IAAI,EAAE,iBAAiB;gBACvB,EAAE,EAAE,UAAU;gBACd,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,WAAW;gBACjB,QAAQ,EAAE,YAAY;gBACtB,WAAW,EAAE,oBAAoB;gBACjC,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE;oBACR;wBACE,KAAK,EAAE,aAAa;wBACpB,WAAW,EAAE,uBAAuB;wBACpC,OAAO,EAAE,mCAAmC;wBAC5C,QAAQ,EAA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AAU,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;YAC7C,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;YAC7C,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACnD,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;YAC7D,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-component-inputs.property.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-inputs.property.test.d.ts","sourceRoot":"","sources":["../../../src/tools/__tests__/get-component-inputs.property.test.ts"],"names":[],"mappings":""}