@askviraj/linter 1.1.2 → 1.1.4

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 (651) hide show
  1. package/node_modules/{synckit → @astrojs/compiler-binding}/LICENSE +1 -1
  2. package/node_modules/@astrojs/compiler-binding/browser.js +1 -0
  3. package/node_modules/@astrojs/compiler-binding/index.d.ts +337 -0
  4. package/node_modules/@astrojs/compiler-binding/index.js +599 -0
  5. package/node_modules/@astrojs/compiler-binding/package.json +83 -0
  6. package/node_modules/@astrojs/compiler-binding/webcontainer-fallback.cjs +23 -0
  7. package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/README.md +3 -0
  8. package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/astro.linux-x64-gnu.node +0 -0
  9. package/node_modules/@astrojs/compiler-binding-linux-x64-gnu/package.json +40 -0
  10. package/node_modules/{parse5 → @astrojs/compiler-rs}/LICENSE +7 -5
  11. package/node_modules/@astrojs/compiler-rs/README.md +62 -0
  12. package/node_modules/@astrojs/compiler-rs/async.d.ts +1 -0
  13. package/node_modules/@astrojs/compiler-rs/dist/async.d.mts +9 -0
  14. package/node_modules/@astrojs/compiler-rs/dist/async.mjs +1 -0
  15. package/node_modules/@astrojs/compiler-rs/dist/index.d.mts +9 -0
  16. package/node_modules/@astrojs/compiler-rs/dist/index.mjs +1 -0
  17. package/node_modules/@astrojs/compiler-rs/dist/shared.d.mts +45 -0
  18. package/node_modules/@astrojs/compiler-rs/dist/shared.mjs +1 -0
  19. package/node_modules/@astrojs/compiler-rs/dist/types.d.mts +94 -0
  20. package/node_modules/@astrojs/compiler-rs/dist/types.mjs +1 -0
  21. package/node_modules/@astrojs/compiler-rs/dist/utils.d.mts +4 -0
  22. package/node_modules/@astrojs/compiler-rs/dist/utils.mjs +1 -0
  23. package/node_modules/@astrojs/compiler-rs/package.json +55 -0
  24. package/node_modules/@astrojs/compiler-rs/types.d.ts +1 -0
  25. package/node_modules/@eslint/config-helpers/README.md +2 -2
  26. package/node_modules/@eslint/config-helpers/dist/cjs/index.cjs +27 -26
  27. package/node_modules/@eslint/config-helpers/dist/cjs/index.d.cts +13 -12
  28. package/node_modules/@eslint/config-helpers/dist/cjs/types.cts +4 -2
  29. package/node_modules/@eslint/config-helpers/dist/esm/index.d.ts +13 -12
  30. package/node_modules/@eslint/config-helpers/dist/esm/index.js +27 -26
  31. package/node_modules/@eslint/config-helpers/dist/esm/types.d.ts +2 -0
  32. package/node_modules/@eslint/config-helpers/dist/esm/types.ts +4 -2
  33. package/node_modules/@eslint/config-helpers/package.json +1 -1
  34. package/node_modules/@eslint/css/README.md +2 -2
  35. package/node_modules/@eslint/css/dist/build/rules.d.ts +75 -21
  36. package/node_modules/@eslint/css/dist/build/rules.js +15 -15
  37. package/node_modules/@eslint/css/dist/data/baseline-data.js +256 -32
  38. package/node_modules/@eslint/css/dist/index.js +1 -1
  39. package/node_modules/@eslint/css/dist/rules/font-family-fallbacks.d.ts +15 -15
  40. package/node_modules/@eslint/css/dist/rules/font-family-fallbacks.js +2 -5
  41. package/node_modules/@eslint/css/dist/rules/no-duplicate-imports.d.ts +18 -18
  42. package/node_modules/@eslint/css/dist/rules/no-duplicate-imports.js +9 -12
  43. package/node_modules/@eslint/css/dist/rules/no-duplicate-keyframe-selectors.d.ts +14 -14
  44. package/node_modules/@eslint/css/dist/rules/no-duplicate-keyframe-selectors.js +2 -3
  45. package/node_modules/@eslint/css/dist/rules/no-empty-blocks.d.ts +14 -14
  46. package/node_modules/@eslint/css/dist/rules/no-empty-blocks.js +2 -3
  47. package/node_modules/@eslint/css/dist/rules/no-important.d.ts +16 -16
  48. package/node_modules/@eslint/css/dist/rules/no-important.js +2 -3
  49. package/node_modules/@eslint/css/dist/rules/no-invalid-at-rule-placement.d.ts +16 -16
  50. package/node_modules/@eslint/css/dist/rules/no-invalid-at-rule-placement.js +2 -3
  51. package/node_modules/@eslint/css/dist/rules/no-invalid-at-rules.d.ts +21 -21
  52. package/node_modules/@eslint/css/dist/rules/no-invalid-at-rules.js +2 -3
  53. package/node_modules/@eslint/css/dist/rules/no-invalid-named-grid-areas.d.ts +16 -16
  54. package/node_modules/@eslint/css/dist/rules/no-invalid-named-grid-areas.js +2 -3
  55. package/node_modules/@eslint/css/dist/rules/no-invalid-properties.d.ts +18 -18
  56. package/node_modules/@eslint/css/dist/rules/no-invalid-properties.js +2 -3
  57. package/node_modules/@eslint/css/dist/rules/no-unmatchable-selectors.d.ts +14 -14
  58. package/node_modules/@eslint/css/dist/rules/no-unmatchable-selectors.js +2 -3
  59. package/node_modules/@eslint/css/dist/rules/prefer-logical-properties.d.ts +22 -19
  60. package/node_modules/@eslint/css/dist/rules/prefer-logical-properties.js +66 -23
  61. package/node_modules/@eslint/css/dist/rules/relative-font-units.d.ts +16 -16
  62. package/node_modules/@eslint/css/dist/rules/relative-font-units.js +13 -7
  63. package/node_modules/@eslint/css/dist/rules/selector-complexity.d.ts +17 -17
  64. package/node_modules/@eslint/css/dist/rules/selector-complexity.js +2 -3
  65. package/node_modules/@eslint/css/dist/rules/use-baseline.d.ts +22 -22
  66. package/node_modules/@eslint/css/dist/rules/use-baseline.js +2 -3
  67. package/node_modules/@eslint/css/dist/rules/use-layers.d.ts +18 -18
  68. package/node_modules/@eslint/css/dist/rules/use-layers.js +3 -4
  69. package/node_modules/@eslint/css/package.json +7 -12
  70. package/node_modules/@eslint/css-tree/README.md +2 -2
  71. package/node_modules/@eslint/css-tree/dist/csstree.esm.js +1 -1
  72. package/node_modules/@eslint/css-tree/dist/csstree.js +1 -1
  73. package/node_modules/@eslint/css-tree/dist/data.cjs +4 -1
  74. package/node_modules/@eslint/css-tree/dist/data.js +4 -1
  75. package/node_modules/@eslint/css-tree/dist/version.cjs +1 -1
  76. package/node_modules/@eslint/css-tree/dist/version.js +1 -1
  77. package/node_modules/@eslint/css-tree/package.json +3 -3
  78. package/node_modules/@eslint/json/README.md +2 -2
  79. package/node_modules/@eslint/json/dist/index.js +1 -1
  80. package/node_modules/@eslint/json/package.json +4 -9
  81. package/node_modules/@eslint/markdown/README.md +3 -3
  82. package/node_modules/@eslint/markdown/dist/build/rules.d.ts +105 -27
  83. package/node_modules/@eslint/markdown/dist/build/rules.js +21 -21
  84. package/node_modules/@eslint/markdown/dist/index.d.ts +2 -2
  85. package/node_modules/@eslint/markdown/dist/index.js +4 -4
  86. package/node_modules/@eslint/markdown/dist/processor.d.ts +4 -9
  87. package/node_modules/@eslint/markdown/dist/processor.js +12 -15
  88. package/node_modules/@eslint/markdown/dist/rules/fenced-code-language.d.ts +17 -17
  89. package/node_modules/@eslint/markdown/dist/rules/fenced-code-language.js +2 -3
  90. package/node_modules/@eslint/markdown/dist/rules/fenced-code-meta.d.ts +17 -17
  91. package/node_modules/@eslint/markdown/dist/rules/fenced-code-meta.js +2 -3
  92. package/node_modules/@eslint/markdown/dist/rules/heading-increment.d.ts +16 -16
  93. package/node_modules/@eslint/markdown/dist/rules/heading-increment.js +2 -3
  94. package/node_modules/@eslint/markdown/dist/rules/no-bare-urls.d.ts +14 -14
  95. package/node_modules/@eslint/markdown/dist/rules/no-bare-urls.js +2 -3
  96. package/node_modules/@eslint/markdown/dist/rules/no-duplicate-definitions.d.ts +17 -17
  97. package/node_modules/@eslint/markdown/dist/rules/no-duplicate-definitions.js +2 -3
  98. package/node_modules/@eslint/markdown/dist/rules/no-duplicate-headings.d.ts +15 -15
  99. package/node_modules/@eslint/markdown/dist/rules/no-duplicate-headings.js +2 -3
  100. package/node_modules/@eslint/markdown/dist/rules/no-empty-definitions.d.ts +17 -17
  101. package/node_modules/@eslint/markdown/dist/rules/no-empty-definitions.js +2 -3
  102. package/node_modules/@eslint/markdown/dist/rules/no-empty-images.d.ts +14 -14
  103. package/node_modules/@eslint/markdown/dist/rules/no-empty-images.js +2 -3
  104. package/node_modules/@eslint/markdown/dist/rules/no-empty-links.d.ts +14 -14
  105. package/node_modules/@eslint/markdown/dist/rules/no-empty-links.js +2 -3
  106. package/node_modules/@eslint/markdown/dist/rules/no-html.d.ts +15 -15
  107. package/node_modules/@eslint/markdown/dist/rules/no-html.js +2 -3
  108. package/node_modules/@eslint/markdown/dist/rules/no-invalid-label-refs.d.ts +14 -14
  109. package/node_modules/@eslint/markdown/dist/rules/no-invalid-label-refs.js +2 -3
  110. package/node_modules/@eslint/markdown/dist/rules/no-missing-atx-heading-space.d.ts +17 -17
  111. package/node_modules/@eslint/markdown/dist/rules/no-missing-atx-heading-space.js +2 -3
  112. package/node_modules/@eslint/markdown/dist/rules/no-missing-label-refs.d.ts +16 -16
  113. package/node_modules/@eslint/markdown/dist/rules/no-missing-label-refs.js +2 -3
  114. package/node_modules/@eslint/markdown/dist/rules/no-missing-link-fragments.d.ts +16 -16
  115. package/node_modules/@eslint/markdown/dist/rules/no-missing-link-fragments.js +2 -3
  116. package/node_modules/@eslint/markdown/dist/rules/no-multiple-h1.d.ts +16 -16
  117. package/node_modules/@eslint/markdown/dist/rules/no-multiple-h1.js +2 -3
  118. package/node_modules/@eslint/markdown/dist/rules/no-reference-like-urls.d.ts +15 -15
  119. package/node_modules/@eslint/markdown/dist/rules/no-reference-like-urls.js +2 -3
  120. package/node_modules/@eslint/markdown/dist/rules/no-reversed-media-syntax.d.ts +15 -15
  121. package/node_modules/@eslint/markdown/dist/rules/no-reversed-media-syntax.js +2 -3
  122. package/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.d.ts +17 -17
  123. package/node_modules/@eslint/markdown/dist/rules/no-space-in-emphasis.js +2 -3
  124. package/node_modules/@eslint/markdown/dist/rules/no-unused-definitions.d.ts +17 -17
  125. package/node_modules/@eslint/markdown/dist/rules/no-unused-definitions.js +2 -3
  126. package/node_modules/@eslint/markdown/dist/rules/require-alt-text.d.ts +14 -14
  127. package/node_modules/@eslint/markdown/dist/rules/require-alt-text.js +2 -3
  128. package/node_modules/@eslint/markdown/dist/rules/table-column-count.d.ts +17 -17
  129. package/node_modules/@eslint/markdown/dist/rules/table-column-count.js +2 -3
  130. package/node_modules/@eslint/markdown/package.json +5 -10
  131. package/node_modules/@eslint-community/eslint-utils/index.js +1 -1
  132. package/node_modules/@eslint-community/eslint-utils/index.js.map +1 -1
  133. package/node_modules/@eslint-community/eslint-utils/index.mjs +1 -1
  134. package/node_modules/@eslint-community/eslint-utils/index.mjs.map +1 -1
  135. package/node_modules/@eslint-community/eslint-utils/package.json +12 -7
  136. package/node_modules/@html-eslint/core/dist/index.js +1 -0
  137. package/node_modules/@html-eslint/core/dist/index.js.map +1 -1
  138. package/node_modules/@html-eslint/core/dist/index.mjs +1 -0
  139. package/node_modules/@html-eslint/core/dist/index.mjs.map +1 -1
  140. package/node_modules/@html-eslint/core/package.json +3 -3
  141. package/node_modules/@html-eslint/eslint-plugin/lib/rules/require-content.js +20 -1
  142. package/node_modules/@html-eslint/eslint-plugin/lib/rules/require-input-label.js +110 -8
  143. package/node_modules/@html-eslint/eslint-plugin/lib/rules/utils/node.js +13 -0
  144. package/node_modules/@html-eslint/eslint-plugin/package.json +7 -7
  145. package/node_modules/@html-eslint/eslint-plugin/types/rules/require-content.d.ts.map +1 -1
  146. package/node_modules/@html-eslint/eslint-plugin/types/rules/require-input-label.d.ts.map +1 -1
  147. package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/node.d.ts +7 -0
  148. package/node_modules/@html-eslint/eslint-plugin/types/rules/utils/node.d.ts.map +1 -1
  149. package/node_modules/@html-eslint/parser/lib/parser.js +0 -1
  150. package/node_modules/@html-eslint/parser/package.json +4 -4
  151. package/node_modules/@html-eslint/parser/types/parser.d.ts.map +1 -1
  152. package/node_modules/@html-eslint/template-parser/package.json +3 -3
  153. package/node_modules/@html-eslint/template-syntax-parser/package.json +3 -3
  154. package/node_modules/@html-eslint/types/package.json +2 -2
  155. package/node_modules/@rviscomi/capo.js/README.md +4 -4
  156. package/node_modules/@rviscomi/capo.js/dist/adapters/adapter.cjs +7 -2
  157. package/node_modules/@rviscomi/capo.js/dist/adapters/browser.cjs +31 -3
  158. package/node_modules/@rviscomi/capo.js/dist/adapters/index.cjs +36 -4
  159. package/node_modules/@rviscomi/capo.js/dist/adapters/test-suite.cjs +6 -1
  160. package/node_modules/@rviscomi/capo.js/dist/analyzer.cjs +53 -24
  161. package/node_modules/@rviscomi/capo.js/dist/chrome/README.md +53 -0
  162. package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/capo.html +1 -1
  163. package/node_modules/@rviscomi/capo.js/dist/chrome/capo.js +3 -0
  164. package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/chrome.js +56 -18
  165. package/node_modules/@rviscomi/capo.js/dist/chrome/manifest.json +26 -0
  166. package/node_modules/@rviscomi/capo.js/dist/chrome/options/options.js +1 -0
  167. package/node_modules/@rviscomi/capo.js/dist/chrome.zip +0 -0
  168. package/node_modules/@rviscomi/capo.js/dist/firefox/README.md +53 -0
  169. package/node_modules/@rviscomi/capo.js/dist/firefox/background.js +7 -0
  170. package/node_modules/@rviscomi/capo.js/dist/firefox/capo.css +59 -0
  171. package/node_modules/@rviscomi/capo.js/dist/firefox/capo.html +12 -0
  172. package/node_modules/@rviscomi/capo.js/dist/firefox/capo.js +3 -0
  173. package/node_modules/@rviscomi/capo.js/dist/firefox/chrome.js +120 -0
  174. package/node_modules/@rviscomi/capo.js/dist/firefox/images/icon128.png +0 -0
  175. package/node_modules/@rviscomi/capo.js/dist/firefox/manifest.json +39 -0
  176. package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.css +81 -0
  177. package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.html +43 -0
  178. package/node_modules/@rviscomi/capo.js/dist/firefox/options/options.js +1 -0
  179. package/node_modules/@rviscomi/capo.js/dist/firefox/styles/open-props.css +291 -0
  180. package/node_modules/@rviscomi/capo.js/dist/firefox.zip +0 -0
  181. package/node_modules/@rviscomi/capo.js/dist/index.cjs +93 -33
  182. package/node_modules/@rviscomi/capo.js/dist/lib/colors.cjs +1 -0
  183. package/node_modules/@rviscomi/capo.js/dist/lib/io.cjs +137 -28
  184. package/node_modules/@rviscomi/capo.js/dist/lib/options.cjs +61 -0
  185. package/node_modules/@rviscomi/capo.js/dist/lib/rules.cjs +28 -13
  186. package/node_modules/@rviscomi/capo.js/dist/lib/validation.cjs +31 -16
  187. package/node_modules/@rviscomi/capo.js/dist/source.zip +0 -0
  188. package/node_modules/@rviscomi/capo.js/dist/types/adapters/adapter.d.ts +105 -0
  189. package/node_modules/@rviscomi/capo.js/dist/types/adapters/browser.d.ts +107 -0
  190. package/node_modules/@rviscomi/capo.js/dist/types/adapters/index.d.ts +7 -0
  191. package/node_modules/@rviscomi/capo.js/dist/types/adapters/test-suite.d.ts +52 -0
  192. package/node_modules/@rviscomi/capo.js/dist/types/analyzer.d.ts +195 -0
  193. package/node_modules/@rviscomi/capo.js/dist/types/index.d.ts +29 -0
  194. package/node_modules/@rviscomi/capo.js/dist/types/lib/colors.d.ts +20 -0
  195. package/node_modules/@rviscomi/capo.js/dist/types/lib/io.d.ts +166 -0
  196. package/node_modules/@rviscomi/capo.js/dist/types/lib/options.d.ts +114 -0
  197. package/node_modules/@rviscomi/capo.js/dist/types/lib/rules.d.ts +111 -0
  198. package/node_modules/@rviscomi/capo.js/dist/types/lib/validation.d.ts +61 -0
  199. package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/adapter.d.ts +105 -0
  200. package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/browser.d.ts +107 -0
  201. package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/index.d.ts +7 -0
  202. package/node_modules/@rviscomi/capo.js/dist/types/src/adapters/test-suite.d.ts +52 -0
  203. package/node_modules/@rviscomi/capo.js/dist/types/src/analyzer.d.ts +195 -0
  204. package/node_modules/@rviscomi/capo.js/dist/types/src/index.d.ts +13 -0
  205. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/colors.d.ts +20 -0
  206. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/io.d.ts +166 -0
  207. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/options.d.ts +114 -0
  208. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/rules.d.ts +111 -0
  209. package/node_modules/@rviscomi/capo.js/dist/types/src/lib/validation.d.ts +61 -0
  210. package/node_modules/@rviscomi/capo.js/package.json +34 -16
  211. package/node_modules/@rviscomi/capo.js/src/adapters/adapter.js +16 -5
  212. package/node_modules/@rviscomi/capo.js/src/adapters/browser.js +30 -4
  213. package/node_modules/@rviscomi/capo.js/src/adapters/test-suite.js +11 -10
  214. package/node_modules/@rviscomi/capo.js/src/analyzer.js +47 -25
  215. package/node_modules/@rviscomi/capo.js/src/extension/README.md +53 -0
  216. package/node_modules/@rviscomi/capo.js/src/extension/background.js +7 -0
  217. package/node_modules/@rviscomi/capo.js/src/extension/capo.css +59 -0
  218. package/node_modules/@rviscomi/capo.js/src/extension/capo.html +12 -0
  219. package/node_modules/@rviscomi/capo.js/src/extension/capo.js +93 -0
  220. package/node_modules/@rviscomi/capo.js/src/extension/chrome.js +120 -0
  221. package/node_modules/@rviscomi/capo.js/src/extension/images/icon128.png +0 -0
  222. package/node_modules/@rviscomi/capo.js/src/extension/images/icon256.png +0 -0
  223. package/node_modules/@rviscomi/capo.js/{crx → src/extension}/manifest.json +1 -1
  224. package/node_modules/@rviscomi/capo.js/src/extension/options/options.css +81 -0
  225. package/node_modules/@rviscomi/capo.js/src/extension/options/options.html +43 -0
  226. package/node_modules/@rviscomi/capo.js/src/extension/options.js +87 -0
  227. package/node_modules/@rviscomi/capo.js/src/extension/styles/open-props.css +291 -0
  228. package/node_modules/@rviscomi/capo.js/src/index.js +10 -0
  229. package/node_modules/@rviscomi/capo.js/src/lib/colors.js +14 -0
  230. package/node_modules/@rviscomi/capo.js/src/lib/io.js +171 -32
  231. package/node_modules/@rviscomi/capo.js/src/lib/options.js +82 -1
  232. package/node_modules/@rviscomi/capo.js/src/lib/rules.js +120 -43
  233. package/node_modules/@rviscomi/capo.js/src/lib/validation.js +211 -86
  234. package/node_modules/@rviscomi/capo.js/src/web/capo.js +5 -8
  235. package/node_modules/@types/hast/README.md +2 -2
  236. package/node_modules/@types/hast/index.d.ts +642 -0
  237. package/node_modules/@types/hast/package.json +9 -3
  238. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.d.ts +0 -4
  239. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +0 -4
  240. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.js +0 -4
  241. package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +0 -4
  242. package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +47 -0
  243. package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +0 -4
  244. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +4 -4
  245. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.d.ts +1 -1
  246. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +23 -10
  247. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +1 -1
  248. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +16 -2
  249. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +41 -3
  250. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +12 -0
  251. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.d.ts +1 -1
  252. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +5 -4
  253. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +1 -1
  254. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +1 -1
  255. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +2 -2
  256. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +5 -1
  257. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +1 -1
  258. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -1
  259. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +1 -1
  260. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +36 -9
  261. package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/index.js +11 -2
  262. package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/legacy.js +11 -2
  263. package/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore/package.json +1 -1
  264. package/node_modules/@typescript-eslint/eslint-plugin/package.json +22 -11
  265. package/node_modules/@typescript-eslint/parser/dist/index.js +47 -0
  266. package/node_modules/@typescript-eslint/parser/dist/parser.js +11 -6
  267. package/node_modules/@typescript-eslint/parser/package.json +9 -7
  268. package/node_modules/@typescript-eslint/project-service/package.json +7 -5
  269. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +2 -2
  270. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +1 -0
  271. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +1 -0
  272. package/node_modules/@typescript-eslint/scope-manager/package.json +8 -6
  273. package/node_modules/@typescript-eslint/tsconfig-utils/package.json +5 -3
  274. package/node_modules/@typescript-eslint/type-utils/package.json +9 -7
  275. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +10 -0
  276. package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +13 -0
  277. package/node_modules/@typescript-eslint/types/package.json +5 -3
  278. package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +22 -6
  279. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +5 -4
  280. package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.d.ts +4 -0
  281. package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.js +56 -0
  282. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +1 -1
  283. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +1 -1
  284. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +27 -18
  285. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +8 -0
  286. package/node_modules/@typescript-eslint/typescript-estree/package.json +9 -7
  287. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +1 -1
  288. package/node_modules/@typescript-eslint/utils/package.json +8 -6
  289. package/node_modules/@typescript-eslint/visitor-keys/package.json +6 -4
  290. package/node_modules/acorn/CHANGELOG.md +12 -0
  291. package/node_modules/acorn/README.md +5 -0
  292. package/node_modules/acorn/dist/acorn.d.mts +8 -0
  293. package/node_modules/acorn/dist/acorn.d.ts +8 -0
  294. package/node_modules/acorn/dist/acorn.js +16 -7
  295. package/node_modules/acorn/dist/acorn.mjs +16 -7
  296. package/node_modules/acorn/package.json +1 -1
  297. package/node_modules/astro-eslint-parser/lib/index.d.mts +113 -18
  298. package/node_modules/astro-eslint-parser/lib/index.mjs +871 -1172
  299. package/node_modules/astro-eslint-parser/package.json +7 -9
  300. package/node_modules/brace-expansion/README.md +11 -0
  301. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +2 -0
  302. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
  303. package/node_modules/brace-expansion/dist/commonjs/index.js +162 -84
  304. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
  305. package/node_modules/brace-expansion/dist/esm/index.d.ts +2 -0
  306. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
  307. package/node_modules/brace-expansion/dist/esm/index.js +161 -83
  308. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
  309. package/node_modules/brace-expansion/package.json +2 -2
  310. package/node_modules/eslint/README.md +2 -2
  311. package/node_modules/eslint/lib/cli-engine/formatters/html.js +1 -1
  312. package/node_modules/eslint/lib/languages/js/index.js +1 -1
  313. package/node_modules/eslint/lib/linter/code-path-analysis/debug-helpers.js +1 -1
  314. package/node_modules/eslint/lib/linter/vfile.js +1 -1
  315. package/node_modules/eslint/lib/rules/class-methods-use-this.js +6 -5
  316. package/node_modules/eslint/lib/rules/complexity.js +1 -1
  317. package/node_modules/eslint/lib/rules/eqeqeq.js +26 -6
  318. package/node_modules/eslint/lib/rules/func-name-matching.js +3 -3
  319. package/node_modules/eslint/lib/rules/generator-star-spacing.js +4 -6
  320. package/node_modules/eslint/lib/rules/indent.js +4 -6
  321. package/node_modules/eslint/lib/rules/key-spacing.js +5 -7
  322. package/node_modules/eslint/lib/rules/max-len.js +1 -1
  323. package/node_modules/eslint/lib/rules/max-nested-callbacks.js +11 -1
  324. package/node_modules/eslint/lib/rules/no-compare-neg-zero.js +91 -8
  325. package/node_modules/eslint/lib/rules/no-control-regex.js +3 -0
  326. package/node_modules/eslint/lib/rules/no-implicit-coercion.js +22 -8
  327. package/node_modules/eslint/lib/rules/no-invalid-regexp.js +3 -1
  328. package/node_modules/eslint/lib/rules/no-mixed-spaces-and-tabs.js +5 -7
  329. package/node_modules/eslint/lib/rules/no-promise-executor-return.js +5 -7
  330. package/node_modules/eslint/lib/rules/no-script-url.js +4 -6
  331. package/node_modules/eslint/lib/rules/no-shadow.js +14 -20
  332. package/node_modules/eslint/lib/rules/no-unreachable-loop.js +8 -4
  333. package/node_modules/eslint/lib/rules/prefer-numeric-literals.js +14 -6
  334. package/node_modules/eslint/lib/rules/prefer-object-has-own.js +4 -6
  335. package/node_modules/eslint/lib/rules/prefer-object-spread.js +9 -1
  336. package/node_modules/eslint/lib/rules/prefer-template.js +1 -1
  337. package/node_modules/eslint/lib/rules/preserve-caught-error.js +268 -116
  338. package/node_modules/eslint/lib/rules/quotes.js +1 -1
  339. package/node_modules/eslint/lib/rules/radix.js +58 -57
  340. package/node_modules/eslint/lib/rules/use-isnan.js +20 -12
  341. package/node_modules/eslint/lib/rules/utils/ast-utils.js +1 -1
  342. package/node_modules/eslint/lib/shared/serialization.js +1 -1
  343. package/node_modules/eslint/lib/shared/translate-cli-options.js +3 -3
  344. package/node_modules/eslint/lib/types/config-api.d.ts +8 -1
  345. package/node_modules/eslint/lib/types/index.d.ts +3 -6
  346. package/node_modules/eslint/lib/types/rules.d.ts +17 -9
  347. package/node_modules/eslint/package.json +7 -7
  348. package/node_modules/eslint-plugin-astro/README.md +10 -2
  349. package/node_modules/eslint-plugin-astro/lib/index.d.mts +0 -1
  350. package/node_modules/eslint-plugin-astro/lib/index.mjs +76 -637
  351. package/node_modules/eslint-plugin-astro/package.json +11 -11
  352. package/node_modules/eslint-plugin-toml/README.md +2 -0
  353. package/node_modules/eslint-plugin-toml/lib/index.d.mts +6 -5
  354. package/node_modules/eslint-plugin-toml/lib/index.mjs +32 -3
  355. package/node_modules/eslint-plugin-toml/package.json +7 -7
  356. package/node_modules/eslint-plugin-yml/README.md +1 -0
  357. package/node_modules/eslint-plugin-yml/lib/index.mjs +125 -21
  358. package/node_modules/eslint-plugin-yml/package.json +7 -7
  359. package/node_modules/flatted/golang/pkg/flatted/flatted.go +16 -14
  360. package/node_modules/flatted/package.json +10 -5
  361. package/node_modules/flatted/types/index.d.ts +1 -1
  362. package/node_modules/globals/globals.json +105 -33
  363. package/node_modules/globals/index.d.ts +105 -33
  364. package/node_modules/globals/package.json +2 -2
  365. package/node_modules/mdn-data/css/properties.json +64 -16
  366. package/node_modules/mdn-data/css/properties.schema.json +1 -7
  367. package/node_modules/mdn-data/css/syntaxes.json +1 -1
  368. package/node_modules/mdn-data/l10n/css.json +3 -62
  369. package/node_modules/mdn-data/package.json +1 -1
  370. package/node_modules/minimatch/package.json +9 -9
  371. package/node_modules/nanoid/non-secure/index.cjs +2 -2
  372. package/node_modules/nanoid/non-secure/index.js +2 -2
  373. package/node_modules/nanoid/package.json +1 -1
  374. package/node_modules/picomatch/README.md +15 -21
  375. package/node_modules/picomatch/lib/parse.js +39 -9
  376. package/node_modules/picomatch/lib/picomatch.js +14 -2
  377. package/node_modules/picomatch/package.json +3 -2
  378. package/node_modules/postcss/README.md +1 -2
  379. package/node_modules/postcss/lib/container.js +81 -34
  380. package/node_modules/postcss/lib/fromJSON.js +65 -26
  381. package/node_modules/postcss/lib/input.js +7 -1
  382. package/node_modules/postcss/lib/lazy-result.js +77 -14
  383. package/node_modules/postcss/lib/list.js +1 -0
  384. package/node_modules/postcss/lib/node.d.ts +2 -2
  385. package/node_modules/postcss/lib/node.js +90 -52
  386. package/node_modules/postcss/lib/postcss.d.ts +4 -1
  387. package/node_modules/postcss/lib/previous-map.js +6 -3
  388. package/node_modules/postcss/lib/processor.js +1 -1
  389. package/node_modules/postcss/lib/root.js +16 -1
  390. package/node_modules/postcss/lib/stringifier.js +112 -25
  391. package/node_modules/postcss/lib/warning.js +10 -0
  392. package/node_modules/postcss/package.json +2 -2
  393. package/node_modules/typescript-eslint/dist/index.js +47 -0
  394. package/node_modules/typescript-eslint/package.json +14 -6
  395. package/node_modules/yaml-eslint-parser/lib/chunk-CfYAbeIz.mjs +13 -0
  396. package/node_modules/yaml-eslint-parser/lib/index.d.mts +2 -2
  397. package/node_modules/yaml-eslint-parser/lib/index.mjs +164 -157
  398. package/node_modules/yaml-eslint-parser/package.json +17 -18
  399. package/package.json +23 -23
  400. package/node_modules/@astrojs/compiler/LICENSE +0 -53
  401. package/node_modules/@astrojs/compiler/README.md +0 -72
  402. package/node_modules/@astrojs/compiler/dist/astro.wasm +0 -0
  403. package/node_modules/@astrojs/compiler/dist/browser/index.cjs +0 -2
  404. package/node_modules/@astrojs/compiler/dist/browser/index.d.ts +0 -11
  405. package/node_modules/@astrojs/compiler/dist/browser/index.js +0 -1
  406. package/node_modules/@astrojs/compiler/dist/browser/utils.cjs +0 -3
  407. package/node_modules/@astrojs/compiler/dist/browser/utils.d.ts +0 -29
  408. package/node_modules/@astrojs/compiler/dist/browser/utils.js +0 -3
  409. package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.cjs +0 -2
  410. package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.d.ts +0 -37
  411. package/node_modules/@astrojs/compiler/dist/browser/wasm_exec.js +0 -1
  412. package/node_modules/@astrojs/compiler/dist/chunk-QR6QDSEV.js +0 -2
  413. package/node_modules/@astrojs/compiler/dist/chunk-W5DTLHV4.js +0 -1
  414. package/node_modules/@astrojs/compiler/dist/node/index.cjs +0 -1
  415. package/node_modules/@astrojs/compiler/dist/node/index.d.ts +0 -12
  416. package/node_modules/@astrojs/compiler/dist/node/index.js +0 -1
  417. package/node_modules/@astrojs/compiler/dist/node/sync.cjs +0 -1
  418. package/node_modules/@astrojs/compiler/dist/node/sync.d.ts +0 -16
  419. package/node_modules/@astrojs/compiler/dist/node/sync.js +0 -1
  420. package/node_modules/@astrojs/compiler/dist/node/utils.cjs +0 -3
  421. package/node_modules/@astrojs/compiler/dist/node/utils.d.ts +0 -29
  422. package/node_modules/@astrojs/compiler/dist/node/utils.js +0 -3
  423. package/node_modules/@astrojs/compiler/dist/node/wasm_exec.cjs +0 -1
  424. package/node_modules/@astrojs/compiler/dist/node/wasm_exec.d.ts +0 -37
  425. package/node_modules/@astrojs/compiler/dist/node/wasm_exec.js +0 -1
  426. package/node_modules/@astrojs/compiler/dist/shared/ast.cjs +0 -1
  427. package/node_modules/@astrojs/compiler/dist/shared/ast.d.ts +0 -74
  428. package/node_modules/@astrojs/compiler/dist/shared/ast.js +0 -0
  429. package/node_modules/@astrojs/compiler/dist/shared/diagnostics.cjs +0 -1
  430. package/node_modules/@astrojs/compiler/dist/shared/diagnostics.d.ts +0 -18
  431. package/node_modules/@astrojs/compiler/dist/shared/diagnostics.js +0 -1
  432. package/node_modules/@astrojs/compiler/dist/shared/types.cjs +0 -1
  433. package/node_modules/@astrojs/compiler/dist/shared/types.d.ts +0 -153
  434. package/node_modules/@astrojs/compiler/dist/shared/types.js +0 -1
  435. package/node_modules/@astrojs/compiler/package.json +0 -58
  436. package/node_modules/@astrojs/compiler/sync.d.ts +0 -1
  437. package/node_modules/@astrojs/compiler/types.d.ts +0 -1
  438. package/node_modules/@astrojs/compiler/utils.d.ts +0 -1
  439. package/node_modules/@pkgr/core/index.d.cts +0 -3
  440. package/node_modules/@pkgr/core/lib/constants.d.ts +0 -6
  441. package/node_modules/@pkgr/core/lib/constants.js +0 -9
  442. package/node_modules/@pkgr/core/lib/constants.js.map +0 -1
  443. package/node_modules/@pkgr/core/lib/helpers.d.ts +0 -19
  444. package/node_modules/@pkgr/core/lib/helpers.js +0 -67
  445. package/node_modules/@pkgr/core/lib/helpers.js.map +0 -1
  446. package/node_modules/@pkgr/core/lib/index.cjs +0 -91
  447. package/node_modules/@pkgr/core/lib/index.d.ts +0 -2
  448. package/node_modules/@pkgr/core/lib/index.js +0 -3
  449. package/node_modules/@pkgr/core/lib/index.js.map +0 -1
  450. package/node_modules/@pkgr/core/package.json +0 -38
  451. package/node_modules/@rviscomi/capo.js/crx/README.md +0 -10
  452. package/node_modules/@rviscomi/capo.js/crx/capo.js +0 -3
  453. package/node_modules/@rviscomi/capo.js/crx/options/options.js +0 -1
  454. package/node_modules/@rviscomi/capo.js/docs/.vscode/extensions.json +0 -4
  455. package/node_modules/@rviscomi/capo.js/docs/.vscode/launch.json +0 -11
  456. package/node_modules/@rviscomi/capo.js/docs/README.md +0 -51
  457. package/node_modules/@rviscomi/capo.js/docs/astro.config.mjs +0 -82
  458. package/node_modules/@rviscomi/capo.js/docs/package-lock.json +0 -7439
  459. package/node_modules/@rviscomi/capo.js/docs/package.json +0 -21
  460. package/node_modules/@rviscomi/capo.js/docs/public/capo-social-alt.webp +0 -0
  461. package/node_modules/@rviscomi/capo.js/docs/public/capo-social.png +0 -0
  462. package/node_modules/@rviscomi/capo.js/docs/public/capo-social.webp +0 -0
  463. package/node_modules/@rviscomi/capo.js/docs/public/favicon.svg +0 -13
  464. package/node_modules/@rviscomi/capo.js/docs/src/assets/bookmarklet-setup.png +0 -0
  465. package/node_modules/@rviscomi/capo.js/docs/src/assets/bookmarklet.png +0 -0
  466. package/node_modules/@rviscomi/capo.js/docs/src/assets/capo-chrome.png +0 -0
  467. package/node_modules/@rviscomi/capo.js/docs/src/assets/capo-extension.png +0 -0
  468. package/node_modules/@rviscomi/capo.js/docs/src/assets/capo800.png +0 -0
  469. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console-expanded.png +0 -0
  470. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console-interactive.png +0 -0
  471. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-console.png +0 -0
  472. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-hover-validation.png +0 -0
  473. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-menu.png +0 -0
  474. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-options-dark.png +0 -0
  475. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-options-light.png +0 -0
  476. package/node_modules/@rviscomi/capo.js/docs/src/assets/crx-store.png +0 -0
  477. package/node_modules/@rviscomi/capo.js/docs/src/assets/custom-palette.png +0 -0
  478. package/node_modules/@rviscomi/capo.js/docs/src/assets/developer-mode.png +0 -0
  479. package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-console.png +0 -0
  480. package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-snippet.png +0 -0
  481. package/node_modules/@rviscomi/capo.js/docs/src/assets/devtools-sources.png +0 -0
  482. package/node_modules/@rviscomi/capo.js/docs/src/assets/houston.webp +0 -0
  483. package/node_modules/@rviscomi/capo.js/docs/src/assets/load-unpacked.png +0 -0
  484. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-areas.png +0 -0
  485. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-base.png +0 -0
  486. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-crx-stripes.png +0 -0
  487. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-csp.png +0 -0
  488. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-invalid-element.png +0 -0
  489. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-origin-trial.png +0 -0
  490. package/node_modules/@rviscomi/capo.js/docs/src/assets/validation-title.png +0 -0
  491. package/node_modules/@rviscomi/capo.js/docs/src/components/CapoClient.astro +0 -165
  492. package/node_modules/@rviscomi/capo.js/docs/src/components/CapoOptions.astro +0 -10
  493. package/node_modules/@rviscomi/capo.js/docs/src/components/CapoPalette.astro +0 -26
  494. package/node_modules/@rviscomi/capo.js/docs/src/components/InlineCapoIcon.astro +0 -15
  495. package/node_modules/@rviscomi/capo.js/docs/src/components/InlineCapoWeightBars.astro +0 -39
  496. package/node_modules/@rviscomi/capo.js/docs/src/components/VirtualConsole.astro +0 -11
  497. package/node_modules/@rviscomi/capo.js/docs/src/content/config.ts +0 -7
  498. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/contributing.mdx +0 -8
  499. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/crx-local.mdx +0 -28
  500. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/developer/custom-adapters.mdx +0 -273
  501. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/index.mdx +0 -108
  502. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/migration-v2.mdx +0 -62
  503. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/actionability.mdx +0 -6
  504. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/assessment-mode.mdx +0 -29
  505. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/config.mdx +0 -195
  506. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/demo.mdx +0 -9
  507. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/extension.mdx +0 -116
  508. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/performance.mdx +0 -6
  509. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/quick-start.mdx +0 -26
  510. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/rules.mdx +0 -202
  511. package/node_modules/@rviscomi/capo.js/docs/src/content/docs/user/validation.mdx +0 -197
  512. package/node_modules/@rviscomi/capo.js/docs/src/env.d.ts +0 -2
  513. package/node_modules/@rviscomi/capo.js/docs/src/lib/VirtualConsole.js +0 -190
  514. package/node_modules/@rviscomi/capo.js/docs/src/lib/capo.js +0 -1533
  515. package/node_modules/@rviscomi/capo.js/docs/src/styles/custom.css +0 -7
  516. package/node_modules/@rviscomi/capo.js/docs/src/styles/virtual-console.css +0 -131
  517. package/node_modules/@rviscomi/capo.js/docs/tests/VirtualConsole.test.js +0 -108
  518. package/node_modules/@rviscomi/capo.js/docs/tsconfig.json +0 -3
  519. package/node_modules/@rviscomi/capo.js/src/crx/capo.js +0 -62
  520. package/node_modules/@rviscomi/capo.js/src/crx/options.js +0 -69
  521. package/node_modules/astrojs-compiler-sync/LICENSE +0 -53
  522. package/node_modules/astrojs-compiler-sync/README.md +0 -3
  523. package/node_modules/astrojs-compiler-sync/browser/index.d.ts +0 -6
  524. package/node_modules/astrojs-compiler-sync/browser/index.js +0 -76
  525. package/node_modules/astrojs-compiler-sync/browser/wasm_exec.js +0 -665
  526. package/node_modules/astrojs-compiler-sync/lib/astrojs-compiler-worker.js +0 -5
  527. package/node_modules/astrojs-compiler-sync/lib/compiler-sync.cjs +0 -31
  528. package/node_modules/astrojs-compiler-sync/lib/index.cjs +0 -30
  529. package/node_modules/astrojs-compiler-sync/lib/index.d.cts +0 -3
  530. package/node_modules/astrojs-compiler-sync/lib/index.d.ts +0 -14
  531. package/node_modules/astrojs-compiler-sync/lib/index.js +0 -18
  532. package/node_modules/astrojs-compiler-sync/package.json +0 -100
  533. package/node_modules/entities/LICENSE +0 -11
  534. package/node_modules/entities/dist/decode-codepoint.d.ts +0 -8
  535. package/node_modules/entities/dist/decode-codepoint.d.ts.map +0 -1
  536. package/node_modules/entities/dist/decode-codepoint.js +0 -46
  537. package/node_modules/entities/dist/decode-codepoint.js.map +0 -1
  538. package/node_modules/entities/dist/decode.d.ts +0 -194
  539. package/node_modules/entities/dist/decode.d.ts.map +0 -1
  540. package/node_modules/entities/dist/decode.js +0 -544
  541. package/node_modules/entities/dist/decode.js.map +0 -1
  542. package/node_modules/entities/dist/encode.d.ts +0 -24
  543. package/node_modules/entities/dist/encode.d.ts.map +0 -1
  544. package/node_modules/entities/dist/encode.js +0 -90
  545. package/node_modules/entities/dist/encode.js.map +0 -1
  546. package/node_modules/entities/dist/escape.d.ts +0 -48
  547. package/node_modules/entities/dist/escape.d.ts.map +0 -1
  548. package/node_modules/entities/dist/escape.js +0 -132
  549. package/node_modules/entities/dist/escape.js.map +0 -1
  550. package/node_modules/entities/dist/generated/decode-data-html.d.ts +0 -3
  551. package/node_modules/entities/dist/generated/decode-data-html.d.ts.map +0 -1
  552. package/node_modules/entities/dist/generated/decode-data-html.js +0 -5
  553. package/node_modules/entities/dist/generated/decode-data-html.js.map +0 -1
  554. package/node_modules/entities/dist/generated/decode-data-xml.d.ts +0 -3
  555. package/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +0 -1
  556. package/node_modules/entities/dist/generated/decode-data-xml.js +0 -5
  557. package/node_modules/entities/dist/generated/decode-data-xml.js.map +0 -1
  558. package/node_modules/entities/dist/generated/encode-html.d.ts +0 -5
  559. package/node_modules/entities/dist/generated/encode-html.d.ts.map +0 -1
  560. package/node_modules/entities/dist/generated/encode-html.js +0 -12
  561. package/node_modules/entities/dist/generated/encode-html.js.map +0 -1
  562. package/node_modules/entities/dist/index.d.ts +0 -89
  563. package/node_modules/entities/dist/index.d.ts.map +0 -1
  564. package/node_modules/entities/dist/index.js +0 -91
  565. package/node_modules/entities/dist/index.js.map +0 -1
  566. package/node_modules/entities/dist/internal/bin-trie-flags.d.ts +0 -17
  567. package/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +0 -1
  568. package/node_modules/entities/dist/internal/bin-trie-flags.js +0 -18
  569. package/node_modules/entities/dist/internal/bin-trie-flags.js.map +0 -1
  570. package/node_modules/entities/dist/internal/decode-shared.d.ts +0 -7
  571. package/node_modules/entities/dist/internal/decode-shared.d.ts.map +0 -1
  572. package/node_modules/entities/dist/internal/decode-shared.js +0 -17
  573. package/node_modules/entities/dist/internal/decode-shared.js.map +0 -1
  574. package/node_modules/entities/dist/internal/encode-shared.d.ts +0 -33
  575. package/node_modules/entities/dist/internal/encode-shared.d.ts.map +0 -1
  576. package/node_modules/entities/dist/internal/encode-shared.js +0 -93
  577. package/node_modules/entities/dist/internal/encode-shared.js.map +0 -1
  578. package/node_modules/entities/package.json +0 -83
  579. package/node_modules/entities/readme.md +0 -131
  580. package/node_modules/entities/src/decode-codepoint.ts +0 -50
  581. package/node_modules/entities/src/decode.ts +0 -671
  582. package/node_modules/entities/src/encode.ts +0 -95
  583. package/node_modules/entities/src/escape.ts +0 -160
  584. package/node_modules/entities/src/generated/decode-data-html.ts +0 -7
  585. package/node_modules/entities/src/generated/decode-data-xml.ts +0 -7
  586. package/node_modules/entities/src/generated/encode-html.ts +0 -18
  587. package/node_modules/entities/src/index.ts +0 -162
  588. package/node_modules/entities/src/internal/bin-trie-flags.ts +0 -16
  589. package/node_modules/entities/src/internal/decode-shared.ts +0 -18
  590. package/node_modules/entities/src/internal/encode-shared.ts +0 -123
  591. package/node_modules/parse5/README.md +0 -38
  592. package/node_modules/parse5/dist/common/doctype.d.ts +0 -4
  593. package/node_modules/parse5/dist/common/doctype.js +0 -114
  594. package/node_modules/parse5/dist/common/error-codes.d.ts +0 -67
  595. package/node_modules/parse5/dist/common/error-codes.js +0 -63
  596. package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -9
  597. package/node_modules/parse5/dist/common/foreign-content.js +0 -228
  598. package/node_modules/parse5/dist/common/html.d.ts +0 -289
  599. package/node_modules/parse5/dist/common/html.js +0 -523
  600. package/node_modules/parse5/dist/common/token.d.ts +0 -84
  601. package/node_modules/parse5/dist/common/token.js +0 -20
  602. package/node_modules/parse5/dist/common/unicode.d.ts +0 -42
  603. package/node_modules/parse5/dist/common/unicode.js +0 -62
  604. package/node_modules/parse5/dist/index.d.ts +0 -71
  605. package/node_modules/parse5/dist/index.js +0 -42
  606. package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -36
  607. package/node_modules/parse5/dist/parser/formatting-element-list.js +0 -110
  608. package/node_modules/parse5/dist/parser/index.d.ts +0 -221
  609. package/node_modules/parse5/dist/parser/index.js +0 -3245
  610. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +0 -53
  611. package/node_modules/parse5/dist/parser/open-element-stack.js +0 -324
  612. package/node_modules/parse5/dist/serializer/index.d.ts +0 -60
  613. package/node_modules/parse5/dist/serializer/index.js +0 -168
  614. package/node_modules/parse5/dist/tokenizer/index.d.ts +0 -247
  615. package/node_modules/parse5/dist/tokenizer/index.js +0 -2712
  616. package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +0 -36
  617. package/node_modules/parse5/dist/tokenizer/preprocessor.js +0 -196
  618. package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -84
  619. package/node_modules/parse5/dist/tree-adapters/default.js +0 -173
  620. package/node_modules/parse5/dist/tree-adapters/interface.d.ts +0 -255
  621. package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
  622. package/node_modules/parse5/package.json +0 -53
  623. package/node_modules/synckit/README.md +0 -256
  624. package/node_modules/synckit/lib/common.d.ts +0 -5
  625. package/node_modules/synckit/lib/common.js +0 -22
  626. package/node_modules/synckit/lib/common.js.map +0 -1
  627. package/node_modules/synckit/lib/constants.d.ts +0 -38
  628. package/node_modules/synckit/lib/constants.js +0 -54
  629. package/node_modules/synckit/lib/constants.js.map +0 -1
  630. package/node_modules/synckit/lib/helpers.d.ts +0 -27
  631. package/node_modules/synckit/lib/helpers.js +0 -411
  632. package/node_modules/synckit/lib/helpers.js.map +0 -1
  633. package/node_modules/synckit/lib/index.cjs +0 -588
  634. package/node_modules/synckit/lib/index.d.cts +0 -138
  635. package/node_modules/synckit/lib/index.d.ts +0 -7
  636. package/node_modules/synckit/lib/index.js +0 -68
  637. package/node_modules/synckit/lib/index.js.map +0 -1
  638. package/node_modules/synckit/lib/types.d.ts +0 -48
  639. package/node_modules/synckit/lib/types.js +0 -2
  640. package/node_modules/synckit/lib/types.js.map +0 -1
  641. package/node_modules/synckit/package.json +0 -45
  642. package/node_modules/yaml-eslint-parser/lib/chunk-15K8U1wQ.mjs +0 -18
  643. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/background.js +0 -0
  644. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/capo.css +0 -0
  645. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/images/icon128.png +0 -0
  646. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/images/icon256.png +0 -0
  647. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/options/options.css +0 -0
  648. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/options/options.html +0 -0
  649. /package/node_modules/@rviscomi/capo.js/{crx → dist/chrome}/styles/open-props.css +0 -0
  650. /package/node_modules/@rviscomi/capo.js/{docs/src/assets/capo256.png → dist/firefox/images/icon256.png} +0 -0
  651. /package/node_modules/eslint-plugin-toml/lib/{chunk-CfYAbeIz.mjs → rolldown-runtime-D7D4PA-g.mjs} +0 -0
@@ -0,0 +1,105 @@
1
+ /**
2
+ * @file Base adapter interface for HTML tree operations
3
+ *
4
+ * This file defines the contract that all adapters must implement.
5
+ * Adapters abstract away environment-specific operations (browser DOM vs AST nodes)
6
+ * to make capo.js core logic reusable across different contexts.
7
+ */
8
+ export type SourceLocation = {
9
+ line: number;
10
+ column: number;
11
+ endLine?: number;
12
+ endColumn?: number;
13
+ };
14
+ /**
15
+ * Base adapter interface
16
+ *
17
+ * Actual adapters should implement all these methods.
18
+ * This serves as both documentation and a reference implementation.
19
+ *
20
+ * @example
21
+ * import { BrowserAdapter } from './browser.js';
22
+ * import { ParserAdapter } from './parser.js';
23
+ *
24
+ * // For browser DOM:
25
+ * const adapter = new BrowserAdapter();
26
+ *
27
+ * // For ESLint HTML parser AST:
28
+ * const adapter = new ParserAdapter();
29
+ */
30
+ export declare class AdapterInterface {
31
+ /**
32
+ * Check if node is an Element (not text, comment, etc.)
33
+ * @param {any} node - The node to check
34
+ * @returns {boolean}
35
+ */
36
+ isElement(node: any): boolean;
37
+ /**
38
+ * Get the tag name of an element (lowercase)
39
+ * @param {any} node - Element node
40
+ * @returns {string} - Tag name like 'meta', 'link', 'script'
41
+ */
42
+ getTagName(node: any): string;
43
+ /**
44
+ * Get attribute value from element
45
+ * @param {any} node - Element node
46
+ * @param {string} attrName - Attribute name (case-insensitive)
47
+ * @returns {string | null} - Attribute value or null if not found
48
+ */
49
+ getAttribute(node: any, attrName: string): string | null;
50
+ /**
51
+ * Check if element has a specific attribute
52
+ * @param {any} node - Element node
53
+ * @param {string} attrName - Attribute name (case-insensitive)
54
+ * @returns {boolean} - True if attribute exists
55
+ */
56
+ hasAttribute(node: any, attrName: string): boolean;
57
+ /**
58
+ * Get all attribute names for an element
59
+ * @param {any} node - Element node
60
+ * @returns {string[]} - Array of attribute names
61
+ */
62
+ getAttributeNames(node: any): string[];
63
+ /**
64
+ * Get text content of a node (for inline scripts/styles)
65
+ * @param {any} node - Element node
66
+ * @returns {string} - Text content
67
+ */
68
+ getTextContent(node: any): string;
69
+ /**
70
+ * Get child elements of a node
71
+ * @param {any} node - Parent node
72
+ * @returns {any[]} - Array of child element nodes (excluding text/comment nodes)
73
+ */
74
+ getChildren(node: any): any[];
75
+ /**
76
+ * Get parent element of a node
77
+ * @param {any} node - Child node
78
+ * @returns {any | null} - Parent element node, or null if no parent
79
+ */
80
+ getParent(node: any): any | null;
81
+ /**
82
+ * Get sibling elements of a node
83
+ * @param {any} node - Element node
84
+ * @returns {any[]} - Array of sibling element nodes (excluding the node itself)
85
+ */
86
+ getSiblings(node: any): any[];
87
+ /**
88
+ * Get source location for a node (optional, for linting)
89
+ * @param {any} node - Element node
90
+ * @returns {SourceLocation | null}
91
+ */
92
+ getLocation(node: any): SourceLocation | null;
93
+ /**
94
+ * Stringify element for logging/debugging
95
+ * @param {any} node - Element node
96
+ * @returns {string} - String representation like "<meta charset='utf-8'>"
97
+ */
98
+ stringify(node: any): string;
99
+ }
100
+ /**
101
+ * Validate that an object implements the HTMLAdapter interface
102
+ * @param {any} adapter - The adapter to validate
103
+ * @throws {Error} If adapter is missing required methods
104
+ */
105
+ export declare function validateAdapter(adapter: any): void;
@@ -0,0 +1,107 @@
1
+ /**
2
+ * @file Browser DOM adapter
3
+ *
4
+ * Wraps native DOM Element APIs to implement the HTMLAdapter interface.
5
+ * This adapter is used in browser environments where capo.js operates
6
+ * on actual DOM elements.
7
+ */
8
+ import { AdapterInterface } from './adapter.js';
9
+ /**
10
+ * Browser DOM adapter
11
+ *
12
+ * Wraps native DOM Element APIs for use with capo.js core logic.
13
+ *
14
+ * @extends AdapterInterface
15
+ * @example
16
+ * import { BrowserAdapter } from './adapters/browser.js';
17
+ * import { analyzeHead } from '../analyzer.js';
18
+ *
19
+ * const adapter = new BrowserAdapter();
20
+ * const head = document.querySelector('head');
21
+ * const result = analyzeHead(head, adapter);
22
+ */
23
+ export declare class BrowserAdapter extends AdapterInterface {
24
+ /**
25
+ * Check if node is an Element (not text, comment, etc.)
26
+ * @override
27
+ * @param {any} node - The node to check
28
+ * @returns {boolean}
29
+ */
30
+ isElement(node: any): boolean;
31
+ /**
32
+ * Get the tag name of an element (lowercase)
33
+ * @override
34
+ * @param {any} node - Element node
35
+ * @returns {string} - Tag name like 'meta', 'link', 'script'
36
+ */
37
+ getTagName(node: any): string;
38
+ /**
39
+ * Get attribute value from element
40
+ * @override
41
+ * @param {any} node - Element node
42
+ * @param {string} attrName - Attribute name (case-insensitive)
43
+ * @returns {string | null} - Attribute value or null if not found
44
+ */
45
+ getAttribute(node: any, attrName: string): string | null;
46
+ /**
47
+ * Check if element has a specific attribute
48
+ * @override
49
+ * @param {any} node - Element node
50
+ * @param {string} attrName - Attribute name (case-insensitive)
51
+ * @returns {boolean} - True if attribute exists
52
+ */
53
+ hasAttribute(node: any, attrName: string): boolean;
54
+ /**
55
+ * Get all attribute names for an element
56
+ * @override
57
+ * @param {any} node - Element node
58
+ * @returns {string[]} - Array of attribute names
59
+ */
60
+ getAttributeNames(node: any): string[];
61
+ /**
62
+ * Get text content of a node (for inline scripts/styles)
63
+ * @override
64
+ * @param {any} node - Element node
65
+ * @returns {string} - Text content
66
+ */
67
+ getTextContent(node: any): string;
68
+ /**
69
+ * Get child elements of a node
70
+ * @override
71
+ * @param {any} node - Parent node
72
+ * @returns {any[]} - Array of child element nodes (excluding text/comment nodes)
73
+ */
74
+ getChildren(node: any): any[];
75
+ /**
76
+ * Get parent element of a node
77
+ * @override
78
+ * @param {any} node - Child node
79
+ * @returns {any | null} - Parent element node, or null if no parent
80
+ */
81
+ getParent(node: any): any | null;
82
+ /**
83
+ * Get sibling elements of a node
84
+ * @override
85
+ * @param {any} node - Element node
86
+ * @returns {any[]} - Array of sibling element nodes (excluding the node itself)
87
+ */
88
+ getSiblings(node: any): any[];
89
+ /**
90
+ * Get source location for a node (optional, for linting)
91
+ *
92
+ * Browser DOM elements don't have source location information,
93
+ * so this always returns null.
94
+ *
95
+ * @override
96
+ * @param {any} node - Element node
97
+ * @returns {null}
98
+ */
99
+ getLocation(node: any): null;
100
+ /**
101
+ * Stringify element for logging/debugging
102
+ * @override
103
+ * @param {any} node - Element node
104
+ * @returns {string} - String representation like "<meta charset='utf-8'>"
105
+ */
106
+ stringify(node: any): string;
107
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file Adapter exports
3
+ *
4
+ * Central export point for all HTML adapters.
5
+ */
6
+ export { AdapterInterface, validateAdapter } from './adapter.js';
7
+ export { BrowserAdapter } from './browser.js';
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Reusable test suite for adapter validation
3
+ *
4
+ * This module provides a standard test suite that can be used to validate
5
+ * any custom adapter implementation. Consumers can import this and run it
6
+ * against their own adapters to ensure compliance with the AdapterInterface.
7
+ *
8
+ * @example
9
+ * import { describe } from 'node:test';
10
+ * import { runAdapterTestSuite } from '@rviscomi/capo.js/adapters/test-suite';
11
+ * import { MyCustomAdapter } from './my-adapter.js';
12
+ *
13
+ * describe('MyCustomAdapter', () => {
14
+ * runAdapterTestSuite(MyCustomAdapter, {
15
+ * createElement: (html) => {
16
+ * // Return a node compatible with your adapter
17
+ * return parseHtml(html);
18
+ * }
19
+ * });
20
+ * });
21
+ */
22
+ export type AdapterTestSuiteOptions = {
23
+ /**
24
+ * - Function that creates test nodes from HTML strings
25
+ */
26
+ createElement: (html: string) => any;
27
+ /**
28
+ * - Whether adapter supports getLocation()
29
+ */
30
+ supportsLocation?: boolean;
31
+ };
32
+ /**
33
+ * @typedef {Object} AdapterTestSuiteOptions
34
+ * @property {(html: string) => any} createElement - Function that creates test nodes from HTML strings
35
+ * @property {boolean} [supportsLocation=false] - Whether adapter supports getLocation()
36
+ */
37
+ /**
38
+ * Run the standard adapter test suite
39
+ *
40
+ * @param {new () => any} AdapterClass - The adapter class to test
41
+ * @param {AdapterTestSuiteOptions} options - Test configuration
42
+ */
43
+ export declare function runAdapterTestSuite(AdapterClass: new () => any, options: AdapterTestSuiteOptions): void;
44
+ /**
45
+ * Create a minimal compliance test
46
+ *
47
+ * This is a lighter-weight alternative that just checks the adapter
48
+ * implements all required methods without full behavior testing.
49
+ *
50
+ * @param {new () => any} AdapterClass - The adapter class to test
51
+ */
52
+ export declare function testAdapterCompliance(AdapterClass: new () => any): void;
@@ -0,0 +1,195 @@
1
+ /**
2
+ * Core DOM-agnostic analyzer for capo.js
3
+ * Provides single-pass analysis of HTML <head> elements
4
+ *
5
+ * @module analyzer
6
+ */
7
+ export type AdapterInterface = import('./adapters/adapter.js').AdapterInterface;
8
+ export type WeightInfo = {
9
+ /**
10
+ * - The DOM/AST element
11
+ */
12
+ element: any;
13
+ /**
14
+ * - Computed weight (0-10)
15
+ */
16
+ weight: number;
17
+ };
18
+ export type ValidationWarning = {
19
+ /**
20
+ * - The rule identifier
21
+ */
22
+ ruleId?: string;
23
+ /**
24
+ * - Warning message
25
+ */
26
+ warning: string;
27
+ /**
28
+ * - Associated element
29
+ */
30
+ element?: any;
31
+ /**
32
+ * - Associated elements array
33
+ */
34
+ elements?: Array<any>;
35
+ };
36
+ export type CustomValidation = {
37
+ /**
38
+ * - The rule identifier
39
+ */
40
+ ruleId?: string;
41
+ /**
42
+ * - The element with validation issues
43
+ */
44
+ element: any;
45
+ /**
46
+ * - Validation warning messages
47
+ */
48
+ warnings: Array<string>;
49
+ /**
50
+ * - Extra diagnostic payload
51
+ */
52
+ payload?: any;
53
+ };
54
+ export type AnalysisResult = {
55
+ /**
56
+ * - Weight information for each element
57
+ */
58
+ weights: Array<WeightInfo>;
59
+ /**
60
+ * - Document-level validation warnings
61
+ */
62
+ validationWarnings: Array<ValidationWarning>;
63
+ /**
64
+ * - Element-level validation warnings
65
+ */
66
+ customValidations: Array<CustomValidation>;
67
+ /**
68
+ * - Reference to the analyzed head element
69
+ */
70
+ headElement: any;
71
+ };
72
+ export type OrderingViolation = {
73
+ index: number;
74
+ currentElement: any;
75
+ nextElement: any;
76
+ currentWeight: number;
77
+ nextWeight: number;
78
+ currentCategory: string;
79
+ nextCategory: string;
80
+ message: string;
81
+ };
82
+ export type AnalysisResultWithOrdering = AnalysisResult & {
83
+ orderingViolations: Array<OrderingViolation>;
84
+ };
85
+ export type AnalyzeHeadOptions = {
86
+ /**
87
+ * - Whether to include document-level validation warnings
88
+ */
89
+ includeValidation?: boolean;
90
+ /**
91
+ * - Whether to include element-level custom validations
92
+ */
93
+ includeCustomValidations?: boolean;
94
+ };
95
+ /**
96
+ * @typedef {import('./adapters/adapter.js').AdapterInterface} AdapterInterface
97
+ *
98
+ * @typedef {Object} WeightInfo
99
+ * @property {any} element - The DOM/AST element
100
+ * @property {number} weight - Computed weight (0-10)
101
+ */
102
+ /**
103
+ * @typedef {Object} ValidationWarning
104
+ * @property {string} [ruleId] - The rule identifier
105
+ * @property {string} warning - Warning message
106
+ * @property {any} [element] - Associated element
107
+ * @property {Array<any>} [elements] - Associated elements array
108
+ */
109
+ /**
110
+ * @typedef {Object} CustomValidation
111
+ * @property {string} [ruleId] - The rule identifier
112
+ * @property {any} element - The element with validation issues
113
+ * @property {Array<string>} warnings - Validation warning messages
114
+ * @property {any} [payload] - Extra diagnostic payload
115
+ */
116
+ /**
117
+ * @typedef {Object} AnalysisResult
118
+ * @property {Array<WeightInfo>} weights - Weight information for each element
119
+ * @property {Array<ValidationWarning>} validationWarnings - Document-level validation warnings
120
+ * @property {Array<CustomValidation>} customValidations - Element-level validation warnings
121
+ * @property {any} headElement - Reference to the analyzed head element
122
+ */
123
+ /**
124
+ * @typedef {Object} OrderingViolation
125
+ * @property {number} index
126
+ * @property {any} currentElement
127
+ * @property {any} nextElement
128
+ * @property {number} currentWeight
129
+ * @property {number} nextWeight
130
+ * @property {string} currentCategory
131
+ * @property {string} nextCategory
132
+ * @property {string} message
133
+ */
134
+ /**
135
+ * @typedef {AnalysisResult & { orderingViolations: Array<OrderingViolation> }} AnalysisResultWithOrdering
136
+ */
137
+ /**
138
+ * @typedef {Object} AnalyzeHeadOptions
139
+ * @property {boolean} [includeValidation=true] - Whether to include document-level validation warnings
140
+ * @property {boolean} [includeCustomValidations=true] - Whether to include element-level custom validations
141
+ */
142
+ /**
143
+ * Analyze the head element and return element weights, validation warnings, and custom validations.
144
+ *
145
+ * @param {any} headNode - The head element to analyze
146
+ * @param {AdapterInterface} adapter - Adapter for element operations
147
+ * @param {AnalyzeHeadOptions} [options={}] - Analysis options
148
+ * @returns {AnalysisResult} Analysis results
149
+ *
150
+ * @example
151
+ * const adapter = new BrowserAdapter();
152
+ * const results = analyzeHead(head, adapter);
153
+ *
154
+ * console.log(`Found ${results.weights.length} elements`);
155
+ * console.log(`${results.validationWarnings.length} document warnings`);
156
+ */
157
+ export declare function analyzeHead(headNode: any, adapter: AdapterInterface, options?: AnalyzeHeadOptions): AnalysisResult;
158
+ /**
159
+ * Get weight category name from weight value
160
+ *
161
+ * @param {number} weight - Weight value (0-10)
162
+ * @returns {string} Category name
163
+ *
164
+ * @example
165
+ * getWeightCategory(10); // 'META'
166
+ * getWeightCategory(9); // 'TITLE'
167
+ * getWeightCategory(0); // 'OTHER'
168
+ */
169
+ export declare function getWeightCategory(weight: number): string;
170
+ /**
171
+ * Check if elements are in optimal order
172
+ *
173
+ * @param {Array<WeightInfo>} weights - Weight information array
174
+ * @returns {Array<OrderingViolation>} Array of ordering violations
175
+ *
176
+ * @example
177
+ * const weights = analyzeHead(head, adapter).weights;
178
+ * const violations = checkOrdering(weights);
179
+ * console.log(`${violations.length} ordering issues found`);
180
+ */
181
+ export declare function checkOrdering(weights: Array<WeightInfo>): Array<OrderingViolation>;
182
+ /**
183
+ * Analyze and return both weights and ordering violations
184
+ * Convenience function that combines analyzeHead() and checkOrdering()
185
+ *
186
+ * @param {any} headNode - The <head> element
187
+ * @param {AdapterInterface} adapter - HTMLAdapter implementation
188
+ * @param {AnalyzeHeadOptions} [options={}] - Analysis options
189
+ * @returns {AnalysisResultWithOrdering} Combined analysis with weights, violations, and validations
190
+ *
191
+ * @example
192
+ * const analysis = analyzeHeadWithOrdering(head, adapter);
193
+ * console.log(`${analysis.orderingViolations.length} ordering issues`);
194
+ */
195
+ export declare function analyzeHeadWithOrdering(headNode: any, adapter: AdapterInterface, options?: AnalyzeHeadOptions): AnalysisResultWithOrdering;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Capo.js v2 - DOM-agnostic HTML <head> analyzer
3
+ *
4
+ * Main entry point for programmatic usage.
5
+ * Exports both the core analyzer API and adapter implementations.
6
+ *
7
+ * @module capo
8
+ */
9
+ export { analyzeHead, analyzeHeadWithOrdering, checkOrdering, getWeightCategory } from './analyzer.js';
10
+ export type AnalysisResult = import('./analyzer.js').AnalysisResult;
11
+ export type WeightInfo = import('./analyzer.js').WeightInfo;
12
+ export type ValidationWarning = import('./analyzer.js').ValidationWarning;
13
+ export type CustomValidation = import('./analyzer.js').CustomValidation;
14
+ export type OrderingViolation = import('./analyzer.js').OrderingViolation;
15
+ export type AnalysisResultWithOrdering = import('./analyzer.js').AnalysisResultWithOrdering;
16
+ export type AnalyzeHeadOptions = import('./analyzer.js').AnalyzeHeadOptions;
17
+ /**
18
+ * @typedef {import('./analyzer.js').AnalysisResult} AnalysisResult
19
+ * @typedef {import('./analyzer.js').WeightInfo} WeightInfo
20
+ * @typedef {import('./analyzer.js').ValidationWarning} ValidationWarning
21
+ * @typedef {import('./analyzer.js').CustomValidation} CustomValidation
22
+ * @typedef {import('./analyzer.js').OrderingViolation} OrderingViolation
23
+ * @typedef {import('./analyzer.js').AnalysisResultWithOrdering} AnalysisResultWithOrdering
24
+ * @typedef {import('./analyzer.js').AnalyzeHeadOptions} AnalyzeHeadOptions
25
+ */
26
+ export { ElementWeights, getWeight, getHeadWeights, isMeta, isTitle, isPreconnect, isAsyncScript, isImportStyles, isSyncScript, isSyncStyles, isPreload, isDeferScript, isPrefetchPrerender, isOriginTrial, isMetaCSP } from './lib/rules.js';
27
+ export { VALID_HEAD_ELEMENTS, isValidElement, hasValidationWarning, getValidationWarnings, getCustomValidations } from './lib/validation.js';
28
+ export { BrowserAdapter } from './adapters/browser.js';
29
+ export { AdapterInterface, validateAdapter } from './adapters/adapter.js';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generate color swatches for a given hue
3
+ * @param {number} hue
4
+ * @returns {string[]}
5
+ */
6
+ export declare function generateSwatches(hue: number): string[];
7
+ /** @type {string[]} */
8
+ export declare const DEFAULT: string[];
9
+ /** @type {string[]} */
10
+ export declare const PINK: string[];
11
+ /** @type {string[]} */
12
+ export declare const BLUE: string[];
13
+ /** @type {Record<string, string[]>} */
14
+ export declare const Palettes: Record<string, string[]>;
15
+ /**
16
+ * Get striped background gradient for invalid element visualization
17
+ * @param {string} elementColor
18
+ * @returns {string}
19
+ */
20
+ export declare function getInvalidBackgroundColor(elementColor: string): string;
@@ -0,0 +1,166 @@
1
+ export type Options = import('./options.js').Options;
2
+ export type AnalysisResult = import('../analyzer.js').AnalysisResult;
3
+ export type ConsoleOutput = {
4
+ log: (...args: any[]) => void;
5
+ warn: (...args: any[]) => void;
6
+ error: (...args: any[]) => void;
7
+ groupCollapsed: (...args: any[]) => void;
8
+ groupEnd: () => void;
9
+ };
10
+ export type HeadWeightInfo = {
11
+ element?: any;
12
+ weight: number;
13
+ isValid?: boolean;
14
+ customValidations?: Record<string, any>;
15
+ };
16
+ export type ElementVisualization = {
17
+ visual: string;
18
+ style: string;
19
+ };
20
+ export type HeadVisualization = {
21
+ visual: string;
22
+ styles: string[];
23
+ };
24
+ /**
25
+ * @typedef {import('./options.js').Options} Options
26
+ * @typedef {import('../analyzer.js').AnalysisResult} AnalysisResult
27
+ *
28
+ * @typedef {Object} ConsoleOutput
29
+ * @property {(...args: any[]) => void} log
30
+ * @property {(...args: any[]) => void} warn
31
+ * @property {(...args: any[]) => void} error
32
+ * @property {(...args: any[]) => void} groupCollapsed
33
+ * @property {() => void} groupEnd
34
+ *
35
+ * @typedef {Object} HeadWeightInfo
36
+ * @property {any} [element]
37
+ * @property {number} weight
38
+ * @property {boolean} [isValid]
39
+ * @property {Record<string, any>} [customValidations]
40
+ *
41
+ * @typedef {Object} ElementVisualization
42
+ * @property {string} visual
43
+ * @property {string} style
44
+ *
45
+ * @typedef {Object} HeadVisualization
46
+ * @property {string} visual
47
+ * @property {string[]} styles
48
+ */
49
+ export declare class IO {
50
+ document: Document | null;
51
+ options: import("./options.js").Options;
52
+ console: any;
53
+ isStaticHead: boolean;
54
+ /** @type {any} */
55
+ head: any;
56
+ /**
57
+ * @param {Document|null} document
58
+ * @param {Options} options
59
+ * @param {ConsoleOutput|any} [output=window.console]
60
+ */
61
+ constructor(document: Document | null, options: Options, output?: ConsoleOutput | any);
62
+ /**
63
+ * @param {string} html
64
+ * @returns {string}
65
+ */
66
+ static formatStaticHeadHTML(html: string): string;
67
+ /**
68
+ * @param {any} head
69
+ */
70
+ initFromStaticHead(head: any): void;
71
+ /**
72
+ * @param {string} html
73
+ */
74
+ initFromHTML(html: string): void;
75
+ /**
76
+ * @returns {Promise<void>}
77
+ */
78
+ init(): Promise<void>;
79
+ /**
80
+ * @returns {Promise<string>}
81
+ */
82
+ getStaticHTML(): Promise<string>;
83
+ /**
84
+ * @returns {any}
85
+ */
86
+ getHead(): any;
87
+ /**
88
+ * @param {any} element
89
+ * @returns {string}
90
+ */
91
+ stringifyElement(element: any): string;
92
+ /**
93
+ * @param {any} element
94
+ * @returns {any}
95
+ */
96
+ getLoggableElement(element: any): any;
97
+ /**
98
+ * Create an element from a CSS selector
99
+ * @param {string} selector
100
+ * @returns {any}
101
+ */
102
+ createElementFromSelector(selector: string): any;
103
+ /**
104
+ * @param {AnalysisResult} result
105
+ * @returns {HeadWeightInfo[]}
106
+ */
107
+ logAnalysis(result: AnalysisResult): HeadWeightInfo[];
108
+ /**
109
+ * @param {Object} params
110
+ * @param {number|string} params.weight
111
+ * @param {string} params.selector
112
+ * @param {string} params.html
113
+ * @param {boolean} [params.isValid]
114
+ * @param {Record<string, any>} [params.customValidations]
115
+ */
116
+ logElementFromSelector({ weight, selector, html, isValid, customValidations }: {
117
+ weight: number | string;
118
+ selector: string;
119
+ html: string;
120
+ isValid?: boolean;
121
+ customValidations?: Record<string, any>;
122
+ }): void;
123
+ /**
124
+ * @param {Object} params
125
+ * @param {ElementVisualization} params.viz
126
+ * @param {number} params.weight
127
+ * @param {any} params.element
128
+ * @param {boolean} [params.isValid]
129
+ * @param {Record<string, any>} [params.customValidations]
130
+ * @param {boolean} [params.omitPrefix]
131
+ */
132
+ logElement({ viz, weight, element, isValid, customValidations, omitPrefix }: {
133
+ viz: ElementVisualization;
134
+ weight: number;
135
+ element: any;
136
+ isValid?: boolean;
137
+ customValidations?: Record<string, any>;
138
+ omitPrefix?: boolean;
139
+ }): void;
140
+ /**
141
+ * @param {Array<import('../analyzer.js').ValidationWarning>} warnings
142
+ */
143
+ logValidationWarnings(warnings: Array<import('../analyzer.js').ValidationWarning>): void;
144
+ /**
145
+ * @param {number} weight
146
+ * @returns {string}
147
+ */
148
+ getColor(weight: number): string;
149
+ /**
150
+ * @param {HeadWeightInfo[]} elements
151
+ * @returns {HeadVisualization}
152
+ */
153
+ getHeadVisualization(elements: HeadWeightInfo[]): HeadVisualization;
154
+ /**
155
+ * @param {number} weight
156
+ * @param {boolean} [isValid=true]
157
+ * @returns {ElementVisualization}
158
+ */
159
+ getElementVisualization(weight: number, isValid?: boolean): ElementVisualization;
160
+ /**
161
+ * @param {string} groupName
162
+ * @param {any} headElement
163
+ * @param {HeadWeightInfo[]} headWeights
164
+ */
165
+ visualizeHead(groupName: string, headElement: any, headWeights: HeadWeightInfo[]): void;
166
+ }