@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,258 @@
1
+ /**
2
+ * Property-based tests for documentation loader
3
+ * Feature: eui-compodoc-mcp, Property 17: Invalid JSON error reporting
4
+ * Validates: Requirements 6.2
5
+ */
6
+ import { describe, it, expect, beforeEach, afterEach } from '@jest/globals';
7
+ import * as fc from 'fast-check';
8
+ import * as fs from 'fs';
9
+ import * as path from 'path';
10
+ import * as os from 'os';
11
+ import { DocumentationLoader, loadDocumentation } from '../documentation-loader.js';
12
+ describe('Documentation Loader Property Tests', () => {
13
+ let tempDir;
14
+ let tempFile;
15
+ beforeEach(() => {
16
+ // Create a temporary directory for test files
17
+ tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'compodoc-test-'));
18
+ tempFile = path.join(tempDir, 'documentation.json');
19
+ });
20
+ afterEach(async () => {
21
+ // Clean up temporary files
22
+ if (fs.existsSync(tempDir)) {
23
+ fs.rmSync(tempDir, { recursive: true, force: true });
24
+ }
25
+ });
26
+ describe('Property 17: Invalid JSON error reporting', () => {
27
+ it('should produce clear error messages for malformed JSON', async () => {
28
+ await fc.assert(fc.asyncProperty(
29
+ // Generate invalid JSON strings
30
+ fc.oneof(fc.constant('{ invalid json }'), fc.constant('{ "key": }'), fc.constant('{ "key": "value"'), fc.constant('not json at all'), fc.constant('[1, 2, 3,]'), fc.constant('{ "key": undefined }')), async (invalidJson) => {
31
+ // Write invalid JSON to file
32
+ fs.writeFileSync(tempFile, invalidJson, 'utf-8');
33
+ // When attempting to load invalid JSON
34
+ const result = await loadDocumentation(tempFile);
35
+ // Then it should fail
36
+ expect(result.success).toBe(false);
37
+ // And provide a clear error message
38
+ expect(result.error).toBeDefined();
39
+ expect(typeof result.error).toBe('string');
40
+ expect(result.error.length).toBeGreaterThan(0);
41
+ expect(result.error).toContain('parse');
42
+ }), { numRuns: 100 });
43
+ });
44
+ it('should produce clear error messages for invalid documentation structure', async () => {
45
+ await fc.assert(fc.asyncProperty(
46
+ // Generate JSON with invalid structure
47
+ fc.oneof(
48
+ // components is not an array
49
+ fc.constant({ components: 'not an array', pipes: [], directives: [] }),
50
+ // pipes is not an array
51
+ fc.constant({ components: [], pipes: { invalid: true }, directives: [] }),
52
+ // directives is not an array
53
+ fc.constant({ components: [], pipes: [], directives: 'string' })), async (invalidStructure) => {
54
+ // Write invalid structure to file
55
+ fs.writeFileSync(tempFile, JSON.stringify(invalidStructure), 'utf-8');
56
+ // When attempting to load invalid structure
57
+ const result = await loadDocumentation(tempFile);
58
+ // Then it should fail
59
+ expect(result.success).toBe(false);
60
+ // And provide a clear error message about the structure
61
+ expect(result.error).toBeDefined();
62
+ expect(typeof result.error).toBe('string');
63
+ expect(result.error.length).toBeGreaterThan(0);
64
+ expect(result.error).toMatch(/must be an array/i);
65
+ }), { numRuns: 100 });
66
+ });
67
+ it('should successfully load valid documentation structures', async () => {
68
+ await fc.assert(fc.asyncProperty(
69
+ // Generate valid documentation structures
70
+ fc.record({
71
+ pipes: fc.array(fc.record({
72
+ name: fc.string({ minLength: 1 }),
73
+ id: fc.string(),
74
+ file: fc.string(),
75
+ type: fc.constant('pipe'),
76
+ deprecated: fc.boolean(),
77
+ deprecationMessage: fc.string(),
78
+ })),
79
+ components: fc.array(fc.record({
80
+ name: fc.string({ minLength: 1 }),
81
+ id: fc.string(),
82
+ file: fc.string(),
83
+ type: fc.constant('component'),
84
+ selector: fc.string(),
85
+ deprecated: fc.boolean(),
86
+ deprecationMessage: fc.string(),
87
+ })),
88
+ directives: fc.array(fc.record({
89
+ name: fc.string({ minLength: 1 }),
90
+ id: fc.string(),
91
+ file: fc.string(),
92
+ type: fc.constant('directive'),
93
+ deprecated: fc.boolean(),
94
+ deprecationMessage: fc.string(),
95
+ })),
96
+ injectables: fc.array(fc.record({
97
+ name: fc.string({ minLength: 1 }),
98
+ id: fc.string(),
99
+ file: fc.string(),
100
+ type: fc.constant('injectable'),
101
+ deprecated: fc.boolean(),
102
+ deprecationMessage: fc.string(),
103
+ })),
104
+ interfaces: fc.constant([]),
105
+ classes: fc.constant([]),
106
+ modules: fc.constant([]),
107
+ }), async (validDoc) => {
108
+ // Write valid documentation to file
109
+ fs.writeFileSync(tempFile, JSON.stringify(validDoc), 'utf-8');
110
+ // When loading valid documentation
111
+ const result = await loadDocumentation(tempFile);
112
+ // Then it should succeed
113
+ expect(result.success).toBe(true);
114
+ expect(result.data).toBeDefined();
115
+ // And preserve all the data
116
+ if (result.data) {
117
+ expect(result.data.pipes).toHaveLength(validDoc.pipes.length);
118
+ expect(result.data.components).toHaveLength(validDoc.components.length);
119
+ expect(result.data.directives).toHaveLength(validDoc.directives.length);
120
+ expect(result.data.injectables).toHaveLength(validDoc.injectables.length);
121
+ }
122
+ }), { numRuns: 100 });
123
+ });
124
+ it('should handle file not found errors gracefully', async () => {
125
+ await fc.assert(fc.asyncProperty(
126
+ // Generate random non-existent file paths
127
+ fc.string({ minLength: 1 }).map((s) => path.join(tempDir, `nonexistent-${s}.json`)), async (nonExistentPath) => {
128
+ // When attempting to load non-existent file
129
+ const result = await loadDocumentation(nonExistentPath);
130
+ // Then it should fail
131
+ expect(result.success).toBe(false);
132
+ // And provide a clear error message
133
+ expect(result.error).toBeDefined();
134
+ expect(result.error).toContain('not found');
135
+ }), { numRuns: 100 });
136
+ });
137
+ it('should handle empty files gracefully', async () => {
138
+ // Write empty file
139
+ fs.writeFileSync(tempFile, '', 'utf-8');
140
+ // When attempting to load empty file
141
+ const result = await loadDocumentation(tempFile);
142
+ // Then it should fail with parse error
143
+ expect(result.success).toBe(false);
144
+ expect(result.error).toBeDefined();
145
+ expect(result.error).toContain('parse');
146
+ });
147
+ it('should preserve all component data through load cycle', async () => {
148
+ await fc.assert(fc.asyncProperty(
149
+ // Generate a component with various properties
150
+ fc.record({
151
+ name: fc.string({ minLength: 1 }),
152
+ id: fc.string(),
153
+ file: fc.string(),
154
+ type: fc.constant('component'),
155
+ selector: fc.string(),
156
+ deprecated: fc.boolean(),
157
+ deprecationMessage: fc.string(),
158
+ description: fc.string(),
159
+ standalone: fc.boolean(),
160
+ inputs: fc.array(fc.record({
161
+ name: fc.string({ minLength: 1 }),
162
+ type: fc.string(),
163
+ optional: fc.boolean(),
164
+ deprecated: fc.boolean(),
165
+ deprecationMessage: fc.string(),
166
+ })),
167
+ outputs: fc.array(fc.record({
168
+ name: fc.string({ minLength: 1 }),
169
+ type: fc.string(),
170
+ deprecated: fc.boolean(),
171
+ deprecationMessage: fc.string(),
172
+ })),
173
+ }), async (component) => {
174
+ // Create documentation with this component
175
+ const doc = {
176
+ pipes: [],
177
+ components: [component],
178
+ directives: [],
179
+ injectables: [],
180
+ interfaces: [],
181
+ classes: [],
182
+ modules: [],
183
+ };
184
+ // Write to file
185
+ fs.writeFileSync(tempFile, JSON.stringify(doc), 'utf-8');
186
+ // Load it back
187
+ const result = await loadDocumentation(tempFile);
188
+ // Verify all data is preserved
189
+ expect(result.success).toBe(true);
190
+ expect(result.data).toBeDefined();
191
+ if (result.data) {
192
+ expect(result.data.components).toHaveLength(1);
193
+ const loadedComponent = result.data.components[0];
194
+ expect(loadedComponent.name).toBe(component.name);
195
+ expect(loadedComponent.selector).toBe(component.selector);
196
+ expect(loadedComponent.deprecated).toBe(component.deprecated);
197
+ expect(loadedComponent.standalone).toBe(component.standalone);
198
+ expect(loadedComponent.inputs).toHaveLength(component.inputs.length);
199
+ expect(loadedComponent.outputs).toHaveLength(component.outputs.length);
200
+ }
201
+ }), { numRuns: 100 });
202
+ });
203
+ });
204
+ describe('File watching', () => {
205
+ it.skip('should detect file changes when watching is enabled', async () => {
206
+ // Create initial valid documentation
207
+ const initialDoc = {
208
+ pipes: [],
209
+ components: [],
210
+ directives: [],
211
+ injectables: [],
212
+ interfaces: [],
213
+ classes: [],
214
+ modules: [],
215
+ };
216
+ fs.writeFileSync(tempFile, JSON.stringify(initialDoc), 'utf-8');
217
+ // Track reload calls
218
+ let reloadCount = 0;
219
+ let lastReloadedData;
220
+ const loader = new DocumentationLoader({
221
+ path: tempFile,
222
+ watchForChanges: true,
223
+ reloadDebounce: 100,
224
+ onReload: (data) => {
225
+ reloadCount++;
226
+ lastReloadedData = data;
227
+ },
228
+ });
229
+ // Load initial
230
+ const initialResult = await loader.load();
231
+ expect(initialResult.success).toBe(true);
232
+ // Modify the file
233
+ const updatedDoc = {
234
+ ...initialDoc,
235
+ components: [
236
+ {
237
+ name: 'TestComponent',
238
+ id: 'test-id',
239
+ file: 'test.ts',
240
+ type: 'component',
241
+ deprecated: false,
242
+ deprecationMessage: '',
243
+ },
244
+ ],
245
+ };
246
+ fs.writeFileSync(tempFile, JSON.stringify(updatedDoc), 'utf-8');
247
+ // Wait for debounce and reload (increased timeout for CI environments)
248
+ await new Promise((resolve) => setTimeout(resolve, 1500));
249
+ // Verify reload was triggered
250
+ expect(reloadCount).toBeGreaterThan(0);
251
+ expect(lastReloadedData).toBeDefined();
252
+ expect(lastReloadedData?.components).toHaveLength(1);
253
+ // Clean up
254
+ await loader.dispose();
255
+ }, 10000);
256
+ });
257
+ });
258
+ //# sourceMappingURL=documentation-loader.property.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentation-loader.property.test.js","sourceRoot":"","sources":["../../../src/loader/__tests__/documentation-loader.property.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;A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AC,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEzC,kBAAkB;YAClB,MAAM,UAAU,GAA0B;gBACxC,GAAG,UAAU;gBACb,UAAU,EAAE;oBACV;wBACE,IAAI,EAAE,eAAe;wBACrB,EAAE,EAAE,SAAS;wBACb,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,WAAW;wBACjB,UAAU,EAAE,KAAK;wBACjB,kBAAkB,EAAE,EAAE;qBACvB;iBACF;aACF,CAAC;YAEF,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC;YAEhE,uEAAuE;YACvE,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;YAE1D,8BAA8B;YAC9B,MAAM,CAAC,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YACvC,MAAM,CAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC;YACvC,MAAM,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YAErD,WAAW;YACX,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=errors.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.test.d.ts","sourceRoot":"","sources":["../../../src/loader/__tests__/errors.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,132 @@
1
+ /**
2
+ * Unit tests for loader error classes
3
+ */
4
+ import { describe, it, expect } from '@jest/globals';
5
+ import { NetworkError, TimeoutError, HttpError, ParseError, } from '../errors.js';
6
+ describe('Loader Error Classes', () => {
7
+ describe('NetworkError', () => {
8
+ it('should create a NetworkError with message and URL', () => {
9
+ const error = new NetworkError('Connection failed', 'https://example.com');
10
+ expect(error.message).toBe('Connection failed');
11
+ expect(error.url).toBe('https://example.com');
12
+ expect(error.name).toBe('NetworkError');
13
+ expect(error.cause).toBeUndefined();
14
+ expect(error).toBeInstanceOf(Error);
15
+ expect(error).toBeInstanceOf(NetworkError);
16
+ });
17
+ it('should create a NetworkError with a cause', () => {
18
+ const cause = new Error('DNS resolution failed');
19
+ const error = new NetworkError('Connection failed', 'https://example.com', cause);
20
+ expect(error.message).toBe('Connection failed');
21
+ expect(error.url).toBe('https://example.com');
22
+ expect(error.cause).toBe(cause);
23
+ expect(error.name).toBe('NetworkError');
24
+ });
25
+ it('should maintain proper stack trace', () => {
26
+ const error = new NetworkError('Test error', 'https://example.com');
27
+ expect(error.stack).toBeDefined();
28
+ expect(error.stack).toContain('NetworkError');
29
+ });
30
+ });
31
+ describe('TimeoutError', () => {
32
+ it('should create a TimeoutError with URL and timeout', () => {
33
+ const error = new TimeoutError('https://example.com', 5000);
34
+ expect(error.message).toBe('Request timeout after 5000ms');
35
+ expect(error.url).toBe('https://example.com');
36
+ expect(error.timeout).toBe(5000);
37
+ expect(error.name).toBe('TimeoutError');
38
+ expect(error).toBeInstanceOf(Error);
39
+ expect(error).toBeInstanceOf(NetworkError);
40
+ expect(error).toBeInstanceOf(TimeoutError);
41
+ });
42
+ it('should format timeout message correctly for different durations', () => {
43
+ const error1 = new TimeoutError('https://example.com', 1000);
44
+ const error2 = new TimeoutError('https://example.com', 30000);
45
+ expect(error1.message).toBe('Request timeout after 1000ms');
46
+ expect(error2.message).toBe('Request timeout after 30000ms');
47
+ });
48
+ it('should maintain proper stack trace', () => {
49
+ const error = new TimeoutError('https://example.com', 5000);
50
+ expect(error.stack).toBeDefined();
51
+ expect(error.stack).toContain('TimeoutError');
52
+ });
53
+ });
54
+ describe('HttpError', () => {
55
+ it('should create an HttpError with all properties', () => {
56
+ const error = new HttpError('Server error', 'https://example.com', 500, 'Internal Server Error');
57
+ expect(error.message).toBe('Server error');
58
+ expect(error.url).toBe('https://example.com');
59
+ expect(error.statusCode).toBe(500);
60
+ expect(error.statusText).toBe('Internal Server Error');
61
+ expect(error.name).toBe('HttpError');
62
+ expect(error).toBeInstanceOf(Error);
63
+ expect(error).toBeInstanceOf(NetworkError);
64
+ expect(error).toBeInstanceOf(HttpError);
65
+ });
66
+ it('should handle different HTTP status codes', () => {
67
+ const error404 = new HttpError('Not found', 'https://example.com', 404, 'Not Found');
68
+ const error503 = new HttpError('Service unavailable', 'https://example.com', 503, 'Service Unavailable');
69
+ expect(error404.statusCode).toBe(404);
70
+ expect(error404.statusText).toBe('Not Found');
71
+ expect(error503.statusCode).toBe(503);
72
+ expect(error503.statusText).toBe('Service Unavailable');
73
+ });
74
+ it('should maintain proper stack trace', () => {
75
+ const error = new HttpError('Test error', 'https://example.com', 500, 'Internal Server Error');
76
+ expect(error.stack).toBeDefined();
77
+ expect(error.stack).toContain('HttpError');
78
+ });
79
+ });
80
+ describe('ParseError', () => {
81
+ it('should create a ParseError with message and content', () => {
82
+ const content = '{ invalid json }';
83
+ const error = new ParseError('Failed to parse JSON', content);
84
+ expect(error.message).toBe('Failed to parse JSON');
85
+ expect(error.content).toBe(content);
86
+ expect(error.name).toBe('ParseError');
87
+ expect(error).toBeInstanceOf(Error);
88
+ expect(error).toBeInstanceOf(ParseError);
89
+ });
90
+ it('should handle different content types', () => {
91
+ const htmlContent = '<html><body>Not JSON</body></html>';
92
+ const emptyContent = '';
93
+ const malformedJson = '{"key": value}';
94
+ const error1 = new ParseError('Expected JSON', htmlContent);
95
+ const error2 = new ParseError('Empty response', emptyContent);
96
+ const error3 = new ParseError('Invalid JSON syntax', malformedJson);
97
+ expect(error1.content).toBe(htmlContent);
98
+ expect(error2.content).toBe(emptyContent);
99
+ expect(error3.content).toBe(malformedJson);
100
+ });
101
+ it('should maintain proper stack trace', () => {
102
+ const error = new ParseError('Test error', 'content');
103
+ expect(error.stack).toBeDefined();
104
+ expect(error.stack).toContain('ParseError');
105
+ });
106
+ });
107
+ describe('Error inheritance', () => {
108
+ it('should maintain proper inheritance chain for TimeoutError', () => {
109
+ const error = new TimeoutError('https://example.com', 5000);
110
+ expect(error instanceof Error).toBe(true);
111
+ expect(error instanceof NetworkError).toBe(true);
112
+ expect(error instanceof TimeoutError).toBe(true);
113
+ expect(error instanceof HttpError).toBe(false);
114
+ expect(error instanceof ParseError).toBe(false);
115
+ });
116
+ it('should maintain proper inheritance chain for HttpError', () => {
117
+ const error = new HttpError('Error', 'https://example.com', 500, 'Server Error');
118
+ expect(error instanceof Error).toBe(true);
119
+ expect(error instanceof NetworkError).toBe(true);
120
+ expect(error instanceof HttpError).toBe(true);
121
+ expect(error instanceof TimeoutError).toBe(false);
122
+ expect(error instanceof ParseError).toBe(false);
123
+ });
124
+ it('should maintain proper inheritance chain for ParseError', () => {
125
+ const error = new ParseError('Error', 'content');
126
+ expect(error instanceof Error).toBe(true);
127
+ expect(error instanceof ParseError).toBe(true);
128
+ expect(error instanceof NetworkError).toBe(false);
129
+ });
130
+ });
131
+ });
132
+ //# sourceMappingURL=errors.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.test.js","sourceRoot":"","sources":["../../../src/loader/__tests__/errors.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;QAC5B,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;YAC3D,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;YAE3E,MAAM,CAAC,KAAK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AAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/C,MAAM,CAAC,KAAK,YAAY,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=http-client.property.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-client.property.test.d.ts","sourceRoot":"","sources":["../../../src/loader/__tests__/http-client.property.test.ts"],"names":[],"mappings":""}