mcp-react-toolkit 1.3.0 → 1.4.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 (268) hide show
  1. package/README.md +28 -28
  2. package/node_modules/@mcp-showcase/shared/build/McpServerBase.d.ts +13 -0
  3. package/node_modules/@mcp-showcase/shared/build/McpServerBase.d.ts.map +1 -1
  4. package/node_modules/@mcp-showcase/shared/build/McpServerBase.js +40 -0
  5. package/node_modules/@mcp-showcase/shared/build/McpServerBase.js.map +1 -1
  6. package/node_modules/@mcp-showcase/shared/build/types.d.ts +11 -0
  7. package/node_modules/@mcp-showcase/shared/build/types.d.ts.map +1 -1
  8. package/node_modules/@mcp-showcase/shared/src/McpServerBase.ts +45 -0
  9. package/node_modules/@mcp-showcase/shared/src/types.ts +12 -0
  10. package/node_modules/@mcp-showcase/ui-kit/README.md +30 -0
  11. package/node_modules/@mcp-showcase/ui-kit/build/components.d.ts +10 -0
  12. package/node_modules/@mcp-showcase/ui-kit/build/components.d.ts.map +1 -0
  13. package/node_modules/@mcp-showcase/ui-kit/build/components.js +177 -0
  14. package/node_modules/@mcp-showcase/ui-kit/build/components.js.map +1 -0
  15. package/node_modules/@mcp-showcase/ui-kit/build/escape.d.ts +3 -0
  16. package/node_modules/@mcp-showcase/ui-kit/build/escape.d.ts.map +1 -0
  17. package/node_modules/@mcp-showcase/ui-kit/build/escape.js +10 -0
  18. package/node_modules/@mcp-showcase/ui-kit/build/escape.js.map +1 -0
  19. package/node_modules/@mcp-showcase/ui-kit/build/fixture.d.ts +4 -0
  20. package/node_modules/@mcp-showcase/ui-kit/build/fixture.d.ts.map +1 -0
  21. package/node_modules/@mcp-showcase/ui-kit/build/fixture.js +52 -0
  22. package/node_modules/@mcp-showcase/ui-kit/build/fixture.js.map +1 -0
  23. package/node_modules/@mcp-showcase/ui-kit/build/generate-template.d.ts +2 -0
  24. package/node_modules/@mcp-showcase/ui-kit/build/generate-template.d.ts.map +1 -0
  25. package/node_modules/@mcp-showcase/ui-kit/build/generate-template.js +19 -0
  26. package/node_modules/@mcp-showcase/ui-kit/build/generate-template.js.map +1 -0
  27. package/node_modules/@mcp-showcase/ui-kit/build/index.d.ts +6 -0
  28. package/node_modules/@mcp-showcase/ui-kit/build/index.d.ts.map +1 -0
  29. package/node_modules/@mcp-showcase/ui-kit/build/index.js +7 -0
  30. package/node_modules/@mcp-showcase/ui-kit/build/index.js.map +1 -0
  31. package/node_modules/@mcp-showcase/ui-kit/build/render.d.ts +3 -0
  32. package/node_modules/@mcp-showcase/ui-kit/build/render.d.ts.map +1 -0
  33. package/node_modules/@mcp-showcase/ui-kit/build/render.js +38 -0
  34. package/node_modules/@mcp-showcase/ui-kit/build/render.js.map +1 -0
  35. package/node_modules/@mcp-showcase/ui-kit/build/result-components.d.ts +9 -0
  36. package/node_modules/@mcp-showcase/ui-kit/build/result-components.d.ts.map +1 -0
  37. package/node_modules/@mcp-showcase/ui-kit/build/result-components.js +105 -0
  38. package/node_modules/@mcp-showcase/ui-kit/build/result-components.js.map +1 -0
  39. package/node_modules/@mcp-showcase/ui-kit/build/result-fixture.d.ts +4 -0
  40. package/node_modules/@mcp-showcase/ui-kit/build/result-fixture.d.ts.map +1 -0
  41. package/node_modules/@mcp-showcase/ui-kit/build/result-fixture.js +39 -0
  42. package/node_modules/@mcp-showcase/ui-kit/build/result-fixture.js.map +1 -0
  43. package/node_modules/@mcp-showcase/ui-kit/build/result-render.d.ts +3 -0
  44. package/node_modules/@mcp-showcase/ui-kit/build/result-render.d.ts.map +1 -0
  45. package/node_modules/@mcp-showcase/ui-kit/build/result-render.js +37 -0
  46. package/node_modules/@mcp-showcase/ui-kit/build/result-render.js.map +1 -0
  47. package/node_modules/@mcp-showcase/ui-kit/build/result-runtime.d.ts +2 -0
  48. package/node_modules/@mcp-showcase/ui-kit/build/result-runtime.d.ts.map +1 -0
  49. package/node_modules/@mcp-showcase/ui-kit/build/result-runtime.js +72 -0
  50. package/node_modules/@mcp-showcase/ui-kit/build/result-runtime.js.map +1 -0
  51. package/node_modules/@mcp-showcase/ui-kit/build/runtime.d.ts +2 -0
  52. package/node_modules/@mcp-showcase/ui-kit/build/runtime.d.ts.map +1 -0
  53. package/node_modules/@mcp-showcase/ui-kit/build/runtime.js +221 -0
  54. package/node_modules/@mcp-showcase/ui-kit/build/runtime.js.map +1 -0
  55. package/node_modules/@mcp-showcase/ui-kit/build/theme.d.ts +2 -0
  56. package/node_modules/@mcp-showcase/ui-kit/build/theme.d.ts.map +1 -0
  57. package/node_modules/@mcp-showcase/ui-kit/build/theme.js +278 -0
  58. package/node_modules/@mcp-showcase/ui-kit/build/theme.js.map +1 -0
  59. package/node_modules/@mcp-showcase/ui-kit/build/types.d.ts +113 -0
  60. package/node_modules/@mcp-showcase/ui-kit/build/types.d.ts.map +1 -0
  61. package/node_modules/@mcp-showcase/ui-kit/build/types.js +35 -0
  62. package/node_modules/@mcp-showcase/ui-kit/build/types.js.map +1 -0
  63. package/node_modules/@mcp-showcase/ui-kit/demo/index.html +653 -0
  64. package/node_modules/@mcp-showcase/ui-kit/demo/result.html +445 -0
  65. package/node_modules/@mcp-showcase/ui-kit/package.json +19 -0
  66. package/node_modules/@mcp-showcase/ui-kit/src/components.ts +191 -0
  67. package/node_modules/@mcp-showcase/ui-kit/src/escape.ts +9 -0
  68. package/node_modules/@mcp-showcase/ui-kit/src/fixture.ts +53 -0
  69. package/node_modules/@mcp-showcase/ui-kit/src/generate-template.ts +21 -0
  70. package/node_modules/@mcp-showcase/ui-kit/src/index.test.ts +72 -0
  71. package/node_modules/@mcp-showcase/ui-kit/src/index.ts +6 -0
  72. package/node_modules/@mcp-showcase/ui-kit/src/render.ts +48 -0
  73. package/node_modules/@mcp-showcase/ui-kit/src/result-components.ts +112 -0
  74. package/node_modules/@mcp-showcase/ui-kit/src/result-fixture.ts +40 -0
  75. package/node_modules/@mcp-showcase/ui-kit/src/result-render.test.ts +47 -0
  76. package/node_modules/@mcp-showcase/ui-kit/src/result-render.ts +47 -0
  77. package/node_modules/@mcp-showcase/ui-kit/src/result-runtime.ts +72 -0
  78. package/node_modules/@mcp-showcase/ui-kit/src/runtime.smoke.test.ts +103 -0
  79. package/node_modules/@mcp-showcase/ui-kit/src/runtime.ts +221 -0
  80. package/node_modules/@mcp-showcase/ui-kit/src/theme.ts +278 -0
  81. package/node_modules/@mcp-showcase/ui-kit/src/types.ts +140 -0
  82. package/node_modules/@mcp-showcase/ui-kit/tsconfig.json +9 -0
  83. package/package.json +16 -5
  84. package/tools/accessibility-checker/build/health-report.d.ts +27 -0
  85. package/tools/accessibility-checker/build/health-report.d.ts.map +1 -0
  86. package/tools/accessibility-checker/build/health-report.js +140 -0
  87. package/tools/accessibility-checker/build/health-report.js.map +1 -0
  88. package/tools/accessibility-checker/build/index.js +7 -1
  89. package/tools/accessibility-checker/build/index.js.map +1 -1
  90. package/tools/accessibility-checker/package.json +1 -0
  91. package/tools/code-modernizer/build/index.js +60 -44
  92. package/tools/code-modernizer/build/index.js.map +1 -1
  93. package/tools/code-modernizer/build/result-report.d.ts +24 -0
  94. package/tools/code-modernizer/build/result-report.d.ts.map +1 -0
  95. package/tools/code-modernizer/build/result-report.js +101 -0
  96. package/tools/code-modernizer/build/result-report.js.map +1 -0
  97. package/tools/code-modernizer/package.json +2 -0
  98. package/tools/component-factory/build/index.js +7 -1
  99. package/tools/component-factory/build/index.js.map +1 -1
  100. package/tools/component-factory/build/result-report.d.ts +11 -0
  101. package/tools/component-factory/build/result-report.d.ts.map +1 -0
  102. package/tools/component-factory/build/result-report.js +104 -0
  103. package/tools/component-factory/build/result-report.js.map +1 -0
  104. package/tools/component-factory/package.json +1 -0
  105. package/tools/component-fixer/build/index.js +6 -6
  106. package/tools/component-fixer/build/index.js.map +1 -1
  107. package/tools/component-fixer/build/result-report.d.ts +37 -0
  108. package/tools/component-fixer/build/result-report.d.ts.map +1 -0
  109. package/tools/component-fixer/build/result-report.js +106 -0
  110. package/tools/component-fixer/build/result-report.js.map +1 -0
  111. package/tools/component-fixer/package.json +1 -0
  112. package/tools/component-reviewer/build/health-report.d.ts +37 -0
  113. package/tools/component-reviewer/build/health-report.d.ts.map +1 -0
  114. package/tools/component-reviewer/build/health-report.js +116 -0
  115. package/tools/component-reviewer/build/health-report.js.map +1 -0
  116. package/tools/component-reviewer/build/index.d.ts.map +1 -1
  117. package/tools/component-reviewer/build/index.js +7 -6
  118. package/tools/component-reviewer/build/index.js.map +1 -1
  119. package/tools/component-reviewer/package.json +1 -0
  120. package/tools/dep-auditor/build/health-report.d.ts +16 -0
  121. package/tools/dep-auditor/build/health-report.d.ts.map +1 -0
  122. package/tools/dep-auditor/build/health-report.js +187 -0
  123. package/tools/dep-auditor/build/health-report.js.map +1 -0
  124. package/tools/dep-auditor/build/index.d.ts.map +1 -1
  125. package/tools/dep-auditor/build/index.js +7 -1
  126. package/tools/dep-auditor/build/index.js.map +1 -1
  127. package/tools/dep-auditor/package.json +1 -0
  128. package/tools/generate-tests/build/index.js +8 -1
  129. package/tools/generate-tests/build/index.js.map +1 -1
  130. package/tools/generate-tests/build/result-report.d.ts +14 -0
  131. package/tools/generate-tests/build/result-report.d.ts.map +1 -0
  132. package/tools/generate-tests/build/result-report.js +124 -0
  133. package/tools/generate-tests/build/result-report.js.map +1 -0
  134. package/tools/generate-tests/package.json +1 -0
  135. package/tools/legacy-analyzer/build/health-report.d.ts +4 -0
  136. package/tools/legacy-analyzer/build/health-report.d.ts.map +1 -0
  137. package/tools/legacy-analyzer/build/health-report.js +164 -0
  138. package/tools/legacy-analyzer/build/health-report.js.map +1 -0
  139. package/tools/legacy-analyzer/build/index.js +15 -1
  140. package/tools/legacy-analyzer/build/index.js.map +1 -1
  141. package/tools/legacy-analyzer/build/tools/01-detect-project-tech.d.ts.map +1 -1
  142. package/tools/legacy-analyzer/build/tools/01-detect-project-tech.js +3 -8
  143. package/tools/legacy-analyzer/build/tools/01-detect-project-tech.js.map +1 -1
  144. package/tools/legacy-analyzer/build/tools/05-analyze-api-layer.d.ts.map +1 -1
  145. package/tools/legacy-analyzer/build/tools/05-analyze-api-layer.js +25 -3
  146. package/tools/legacy-analyzer/build/tools/05-analyze-api-layer.js.map +1 -1
  147. package/tools/legacy-analyzer/package.json +1 -0
  148. package/tools/lighthouse-runner/build/health-report.d.ts +14 -0
  149. package/tools/lighthouse-runner/build/health-report.d.ts.map +1 -0
  150. package/tools/lighthouse-runner/build/health-report.js +138 -0
  151. package/tools/lighthouse-runner/build/health-report.js.map +1 -0
  152. package/tools/lighthouse-runner/build/index.d.ts.map +1 -1
  153. package/tools/lighthouse-runner/build/index.js +7 -1
  154. package/tools/lighthouse-runner/build/index.js.map +1 -1
  155. package/tools/lighthouse-runner/package.json +1 -0
  156. package/tools/monorepo-manager/build/index.js +9 -1
  157. package/tools/monorepo-manager/build/index.js.map +1 -1
  158. package/tools/monorepo-manager/build/result-report.d.ts +20 -0
  159. package/tools/monorepo-manager/build/result-report.d.ts.map +1 -0
  160. package/tools/monorepo-manager/build/result-report.js +84 -0
  161. package/tools/monorepo-manager/build/result-report.js.map +1 -0
  162. package/tools/monorepo-manager/package.json +1 -0
  163. package/tools/performance-audit/build/health-report.d.ts +30 -0
  164. package/tools/performance-audit/build/health-report.d.ts.map +1 -0
  165. package/tools/performance-audit/build/health-report.js +152 -0
  166. package/tools/performance-audit/build/health-report.js.map +1 -0
  167. package/tools/performance-audit/build/index.d.ts.map +1 -1
  168. package/tools/performance-audit/build/index.js +7 -1
  169. package/tools/performance-audit/build/index.js.map +1 -1
  170. package/tools/performance-audit/package.json +1 -0
  171. package/tools/quality-pipeline/build/health-report.d.ts +11 -0
  172. package/tools/quality-pipeline/build/health-report.d.ts.map +1 -0
  173. package/tools/quality-pipeline/build/health-report.js +137 -0
  174. package/tools/quality-pipeline/build/health-report.js.map +1 -0
  175. package/tools/quality-pipeline/build/index.js +7 -1
  176. package/tools/quality-pipeline/build/index.js.map +1 -1
  177. package/tools/quality-pipeline/package.json +1 -0
  178. package/tools/render-analyzer/build/health-report.d.ts +33 -0
  179. package/tools/render-analyzer/build/health-report.d.ts.map +1 -0
  180. package/tools/render-analyzer/build/health-report.js +142 -0
  181. package/tools/render-analyzer/build/health-report.js.map +1 -0
  182. package/tools/render-analyzer/build/index.d.ts.map +1 -1
  183. package/tools/render-analyzer/build/index.js +7 -1
  184. package/tools/render-analyzer/build/index.js.map +1 -1
  185. package/tools/render-analyzer/package.json +1 -0
  186. package/tools/shared/build/McpServerBase.d.ts +13 -0
  187. package/tools/shared/build/McpServerBase.d.ts.map +1 -1
  188. package/tools/shared/build/McpServerBase.js +40 -0
  189. package/tools/shared/build/McpServerBase.js.map +1 -1
  190. package/tools/shared/build/types.d.ts +11 -0
  191. package/tools/shared/build/types.d.ts.map +1 -1
  192. package/tools/storybook-generator/build/index.d.ts.map +1 -1
  193. package/tools/storybook-generator/build/index.js +9 -1
  194. package/tools/storybook-generator/build/index.js.map +1 -1
  195. package/tools/storybook-generator/build/result-report.d.ts +22 -0
  196. package/tools/storybook-generator/build/result-report.d.ts.map +1 -0
  197. package/tools/storybook-generator/build/result-report.js +77 -0
  198. package/tools/storybook-generator/build/result-report.js.map +1 -0
  199. package/tools/storybook-generator/package.json +1 -0
  200. package/tools/test-gap-analyzer/build/health-report.d.ts +34 -0
  201. package/tools/test-gap-analyzer/build/health-report.d.ts.map +1 -0
  202. package/tools/test-gap-analyzer/build/health-report.js +190 -0
  203. package/tools/test-gap-analyzer/build/health-report.js.map +1 -0
  204. package/tools/test-gap-analyzer/build/index.d.ts.map +1 -1
  205. package/tools/test-gap-analyzer/build/index.js +7 -1
  206. package/tools/test-gap-analyzer/build/index.js.map +1 -1
  207. package/tools/test-gap-analyzer/package.json +1 -0
  208. package/tools/typescript-enforcer/build/health-report.d.ts +33 -0
  209. package/tools/typescript-enforcer/build/health-report.d.ts.map +1 -0
  210. package/tools/typescript-enforcer/build/health-report.js +143 -0
  211. package/tools/typescript-enforcer/build/health-report.js.map +1 -0
  212. package/tools/typescript-enforcer/build/index.js +6 -1
  213. package/tools/typescript-enforcer/build/index.js.map +1 -1
  214. package/tools/typescript-enforcer/package.json +1 -0
  215. package/tools/ui-kit/README.md +30 -0
  216. package/tools/ui-kit/build/components.d.ts +10 -0
  217. package/tools/ui-kit/build/components.d.ts.map +1 -0
  218. package/tools/ui-kit/build/components.js +177 -0
  219. package/tools/ui-kit/build/components.js.map +1 -0
  220. package/tools/ui-kit/build/escape.d.ts +3 -0
  221. package/tools/ui-kit/build/escape.d.ts.map +1 -0
  222. package/tools/ui-kit/build/escape.js +10 -0
  223. package/tools/ui-kit/build/escape.js.map +1 -0
  224. package/tools/ui-kit/build/fixture.d.ts +4 -0
  225. package/tools/ui-kit/build/fixture.d.ts.map +1 -0
  226. package/tools/ui-kit/build/fixture.js +52 -0
  227. package/tools/ui-kit/build/fixture.js.map +1 -0
  228. package/tools/ui-kit/build/generate-template.d.ts +2 -0
  229. package/tools/ui-kit/build/generate-template.d.ts.map +1 -0
  230. package/tools/ui-kit/build/generate-template.js +19 -0
  231. package/tools/ui-kit/build/generate-template.js.map +1 -0
  232. package/tools/ui-kit/build/index.d.ts +6 -0
  233. package/tools/ui-kit/build/index.d.ts.map +1 -0
  234. package/tools/ui-kit/build/index.js +7 -0
  235. package/tools/ui-kit/build/index.js.map +1 -0
  236. package/tools/ui-kit/build/render.d.ts +3 -0
  237. package/tools/ui-kit/build/render.d.ts.map +1 -0
  238. package/tools/ui-kit/build/render.js +38 -0
  239. package/tools/ui-kit/build/render.js.map +1 -0
  240. package/tools/ui-kit/build/result-components.d.ts +9 -0
  241. package/tools/ui-kit/build/result-components.d.ts.map +1 -0
  242. package/tools/ui-kit/build/result-components.js +105 -0
  243. package/tools/ui-kit/build/result-components.js.map +1 -0
  244. package/tools/ui-kit/build/result-fixture.d.ts +4 -0
  245. package/tools/ui-kit/build/result-fixture.d.ts.map +1 -0
  246. package/tools/ui-kit/build/result-fixture.js +39 -0
  247. package/tools/ui-kit/build/result-fixture.js.map +1 -0
  248. package/tools/ui-kit/build/result-render.d.ts +3 -0
  249. package/tools/ui-kit/build/result-render.d.ts.map +1 -0
  250. package/tools/ui-kit/build/result-render.js +37 -0
  251. package/tools/ui-kit/build/result-render.js.map +1 -0
  252. package/tools/ui-kit/build/result-runtime.d.ts +2 -0
  253. package/tools/ui-kit/build/result-runtime.d.ts.map +1 -0
  254. package/tools/ui-kit/build/result-runtime.js +72 -0
  255. package/tools/ui-kit/build/result-runtime.js.map +1 -0
  256. package/tools/ui-kit/build/runtime.d.ts +2 -0
  257. package/tools/ui-kit/build/runtime.d.ts.map +1 -0
  258. package/tools/ui-kit/build/runtime.js +221 -0
  259. package/tools/ui-kit/build/runtime.js.map +1 -0
  260. package/tools/ui-kit/build/theme.d.ts +2 -0
  261. package/tools/ui-kit/build/theme.d.ts.map +1 -0
  262. package/tools/ui-kit/build/theme.js +278 -0
  263. package/tools/ui-kit/build/theme.js.map +1 -0
  264. package/tools/ui-kit/build/types.d.ts +113 -0
  265. package/tools/ui-kit/build/types.d.ts.map +1 -0
  266. package/tools/ui-kit/build/types.js +35 -0
  267. package/tools/ui-kit/build/types.js.map +1 -0
  268. package/tools/ui-kit/package.json +19 -0
@@ -0,0 +1,278 @@
1
+ // ============================================================================
2
+ // THEME — dual light (default) + dark, toggled at runtime via [data-theme].
3
+ // Grade accent is driven by [data-band="good|warn|bad"] on the root so a
4
+ // failing repo still *feels* urgent in either mode.
5
+ // Dependency-free: plain CSS custom properties, no Tailwind at runtime.
6
+ // ============================================================================
7
+ export const STYLES = /* css */ `
8
+ *,*::before,*::after{box-sizing:border-box}
9
+ html{-webkit-text-size-adjust:100%}
10
+ body{margin:0}
11
+
12
+ :root{
13
+ --font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
14
+ --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
15
+
16
+ /* light (default) */
17
+ --bg:#f7f7f6;
18
+ --surface:#ffffff;
19
+ --surface-2:#fbfbfa;
20
+ --text:#16161a;
21
+ --muted:#6b7280;
22
+ --faint:#9aa0aa;
23
+ --border:#ebe9e4;
24
+ --border-strong:#dedcd5;
25
+ --shadow:0 1px 2px rgba(16,16,20,.04),0 8px 24px -12px rgba(16,16,20,.10);
26
+ --ring:rgba(99,102,241,.45);
27
+
28
+ --good:#059669; --good-soft:#ecfdf5;
29
+ --warn:#d97706; --warn-soft:#fffbeb;
30
+ --bad:#e11d48; --bad-soft:#fff1f2;
31
+
32
+ --sev-critical:#e11d48; --sev-high:#ea580c; --sev-medium:#d97706; --sev-low:#64748b;
33
+ --sev-critical-soft:#fff1f2; --sev-high-soft:#fff7ed; --sev-medium-soft:#fffbeb; --sev-low-soft:#f1f5f9;
34
+
35
+ --accent:var(--good);
36
+ --accent-soft:var(--good-soft);
37
+ --radius:14px;
38
+ --radius-sm:10px;
39
+ }
40
+
41
+ [data-theme="dark"]{
42
+ --bg:#0a0b0d;
43
+ --surface:#141519;
44
+ --surface-2:#0f1013;
45
+ --text:#f3f4f6;
46
+ --muted:#9aa1ad;
47
+ --faint:#6b7280;
48
+ --border:rgba(255,255,255,.07);
49
+ --border-strong:rgba(255,255,255,.12);
50
+ --shadow:0 1px 2px rgba(0,0,0,.4),0 16px 40px -20px rgba(0,0,0,.7);
51
+ --ring:rgba(129,140,248,.55);
52
+
53
+ --good:#34d399; --good-soft:rgba(52,211,153,.12);
54
+ --warn:#fbbf24; --warn-soft:rgba(251,191,36,.12);
55
+ --bad:#fb7185; --bad-soft:rgba(251,113,133,.12);
56
+
57
+ --sev-critical:#fb7185; --sev-high:#fb923c; --sev-medium:#fbbf24; --sev-low:#94a3b8;
58
+ --sev-critical-soft:rgba(251,113,133,.12); --sev-high-soft:rgba(251,146,60,.12);
59
+ --sev-medium-soft:rgba(251,191,36,.12); --sev-low-soft:rgba(148,163,184,.12);
60
+ }
61
+
62
+ [data-band="good"]{--accent:var(--good);--accent-soft:var(--good-soft)}
63
+ [data-band="warn"]{--accent:var(--warn);--accent-soft:var(--warn-soft)}
64
+ [data-band="bad"]{--accent:var(--bad);--accent-soft:var(--bad-soft)}
65
+
66
+ body{
67
+ font-family:var(--font);
68
+ background:var(--bg);
69
+ color:var(--text);
70
+ font-size:14px;
71
+ line-height:1.5;
72
+ -webkit-font-smoothing:antialiased;
73
+ font-variant-numeric:tabular-nums;
74
+ }
75
+ .num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
76
+
77
+ .wrap{max-width:1040px;margin:0 auto;padding:28px 24px 64px}
78
+
79
+ /* header */
80
+ .hdr{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
81
+ .brand{display:flex;align-items:center;gap:11px;min-width:0}
82
+ .brand .dot{width:30px;height:30px;border-radius:9px;background:var(--accent-soft);color:var(--accent);
83
+ display:grid;place-items:center;flex:none;border:1px solid var(--border)}
84
+ .brand h1{font-size:15px;font-weight:650;margin:0;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
85
+ .brand .sub{font-size:12px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
86
+ .hdr-actions{display:flex;align-items:center;gap:8px;flex:none}
87
+
88
+ .btn{appearance:none;font-family:inherit;font-size:12.5px;font-weight:550;color:var(--text);
89
+ background:var(--surface);border:1px solid var(--border-strong);border-radius:9px;padding:7px 11px;
90
+ cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:.16s ease;line-height:1}
91
+ .btn:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-1px)}
92
+ .btn:active{transform:translateY(0)}
93
+ .btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--ring)}
94
+ .btn.icon{padding:7px;width:32px;height:32px;justify-content:center}
95
+ .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
96
+ [data-theme="dark"] .btn.primary{color:#0a0b0d}
97
+ .btn.primary:hover{filter:brightness(1.05);color:#fff}
98
+ [data-theme="dark"] .btn.primary:hover{color:#0a0b0d}
99
+
100
+ /* hero */
101
+ .hero{display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center;
102
+ background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
103
+ padding:26px 28px;box-shadow:var(--shadow);margin-bottom:18px}
104
+ .gauge{position:relative;width:148px;height:148px;flex:none}
105
+ .gauge svg{transform:rotate(-90deg)}
106
+ .gauge .track{stroke:var(--border-strong);fill:none}
107
+ .gauge .arc{stroke:var(--accent);fill:none;stroke-linecap:round;transition:stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1)}
108
+ .gauge .center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1}
109
+ .gauge .score{font-size:42px;font-weight:680;letter-spacing:-.03em;line-height:1}
110
+ .gauge .of{font-size:11px;color:var(--faint);margin-top:3px}
111
+ .hero-meta{min-width:0}
112
+ .grade-row{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}
113
+ .grade{font-size:13px;font-weight:650;color:var(--accent);background:var(--accent-soft);
114
+ border:1px solid var(--border);border-radius:7px;padding:3px 9px}
115
+ .verdict{font-size:18px;font-weight:620;letter-spacing:-.01em}
116
+ .hero p{color:var(--muted);margin:2px 0 14px;font-size:13px}
117
+ .chips{display:flex;flex-wrap:wrap;gap:7px}
118
+ .chip{font-size:12px;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);
119
+ border-radius:999px;padding:4px 10px;display:inline-flex;gap:5px}
120
+ .chip b{color:var(--text);font-weight:600}
121
+
122
+ /* section heading */
123
+ .sec{margin:26px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
124
+ .sec h2{font-size:13px;font-weight:620;letter-spacing:.02em;text-transform:uppercase;color:var(--muted);margin:0}
125
+ .sec .count{font-size:12px;color:var(--faint)}
126
+
127
+ /* category cards */
128
+ .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:12px}
129
+ .card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:15px 16px;
130
+ box-shadow:var(--shadow);transition:.16s ease;display:flex;flex-direction:column}
131
+ .card:hover{border-color:var(--border-strong);transform:translateY(-2px)}
132
+ .card .top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
133
+ .card .name{font-weight:600;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
134
+ .card .badge{font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;flex:none}
135
+ .badge.good{color:var(--good);background:var(--good-soft)}
136
+ .badge.warn{color:var(--warn);background:var(--warn-soft)}
137
+ .badge.bad{color:var(--bad);background:var(--bad-soft)}
138
+ .card .sum{color:var(--muted);font-size:12.5px;line-height:1.45;min-height:3.9em;
139
+ display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
140
+ .bar{height:5px;border-radius:999px;background:var(--border-strong);overflow:hidden;margin-top:11px}
141
+ .bar > i{display:block;height:100%;border-radius:999px;transition:width 1s cubic-bezier(.22,1,.36,1)}
142
+ .bar > i.good{background:var(--good)} .bar > i.warn{background:var(--warn)} .bar > i.bad{background:var(--bad)}
143
+ .card .foot{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font-size:11.5px;color:var(--faint)}
144
+
145
+ /* toolbar */
146
+ .toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
147
+ .search{flex:1;min-width:180px;position:relative}
148
+ .search input{width:100%;font-family:inherit;font-size:13px;color:var(--text);background:var(--surface);
149
+ border:1px solid var(--border-strong);border-radius:9px;padding:8px 11px 8px 32px}
150
+ .search input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}
151
+ .search svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--faint)}
152
+ .filter{display:flex;gap:4px;background:var(--surface-2);border:1px solid var(--border);border-radius:9px;padding:3px}
153
+ .filter button{appearance:none;font-family:inherit;font-size:12px;font-weight:550;color:var(--muted);
154
+ background:transparent;border:0;border-radius:6px;padding:5px 10px;cursor:pointer;transition:.14s}
155
+ .filter button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
156
+ .filter button:hover{color:var(--text)}
157
+
158
+ /* table */
159
+ .table-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
160
+ box-shadow:var(--shadow);overflow:hidden}
161
+ table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
162
+ thead th:nth-child(1),tbody td:nth-child(1){width:96px}
163
+ thead th:nth-child(3),tbody td:nth-child(3){width:120px}
164
+ thead th:nth-child(4),tbody td:nth-child(4){width:160px}
165
+ thead th{text-align:left;font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;
166
+ color:var(--faint);padding:11px 16px;border-bottom:1px solid var(--border);cursor:pointer;user-select:none;white-space:nowrap}
167
+ thead th .arr{opacity:.4;font-size:9px;margin-left:3px}
168
+ thead th[aria-sort] .arr{opacity:1;color:var(--accent)}
169
+ tbody tr{border-bottom:1px solid var(--border);cursor:pointer;transition:background .12s}
170
+ tbody tr:last-child{border-bottom:0}
171
+ tbody tr:hover{background:var(--surface-2)}
172
+ tbody td{padding:11px 16px;vertical-align:top}
173
+ .sev{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:12px;white-space:nowrap}
174
+ .sev .pip{width:7px;height:7px;border-radius:999px;flex:none}
175
+ .sev.critical{color:var(--sev-critical)} .sev.critical .pip{background:var(--sev-critical)}
176
+ .sev.high{color:var(--sev-high)} .sev.high .pip{background:var(--sev-high)}
177
+ .sev.medium{color:var(--sev-medium)} .sev.medium .pip{background:var(--sev-medium)}
178
+ .sev.low{color:var(--sev-low)} .sev.low .pip{background:var(--sev-low)}
179
+ .cell-title{font-weight:550;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
180
+ .cell-file{font-family:var(--mono);font-size:11.5px;color:var(--muted);overflow-wrap:anywhere;word-break:normal;max-width:200px}
181
+ .tag{font-size:11px;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);
182
+ border-radius:6px;padding:2px 7px;white-space:nowrap}
183
+ .empty{padding:40px 16px;text-align:center;color:var(--muted)}
184
+ .empty .big{font-size:15px;color:var(--text);font-weight:600;margin-bottom:4px}
185
+
186
+ /* drawer */
187
+ .scrim{position:fixed;inset:0;background:rgba(10,11,13,.42);opacity:0;pointer-events:none;transition:.2s;z-index:40}
188
+ .scrim.open{opacity:1;pointer-events:auto}
189
+ .drawer{position:fixed;top:0;right:0;height:100%;width:min(440px,92vw);background:var(--surface);
190
+ border-left:1px solid var(--border);box-shadow:-24px 0 60px -30px rgba(0,0,0,.5);
191
+ transform:translateX(100%);transition:transform .26s cubic-bezier(.22,1,.36,1);z-index:50;
192
+ display:flex;flex-direction:column}
193
+ .drawer.open{transform:translateX(0)}
194
+ .drawer header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
195
+ padding:20px 22px 16px;border-bottom:1px solid var(--border)}
196
+ .drawer header h3{margin:0;font-size:16px;font-weight:640;letter-spacing:-.01em;line-height:1.35}
197
+ .drawer .body{padding:18px 22px;overflow-y:auto;flex:1}
198
+ .drawer .field{margin-bottom:16px}
199
+ .drawer .field .k{font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--faint);margin-bottom:5px}
200
+ .drawer .field .v{font-size:13.5px;color:var(--text)}
201
+ .drawer .field .v.mono{font-family:var(--mono);font-size:12px;color:var(--muted);word-break:break-all}
202
+ .drawer .acts{padding:16px 22px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:8px}
203
+ .kv{display:flex;gap:8px;flex-wrap:wrap}
204
+ .kv .pair{font-size:12px;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);border-radius:7px;padding:4px 9px}
205
+ .kv .pair b{color:var(--text);font-weight:600}
206
+
207
+ /* fix-first */
208
+ .queue{display:flex;flex-direction:column;gap:8px}
209
+ .qitem{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);
210
+ border-radius:var(--radius-sm);padding:11px 14px;box-shadow:var(--shadow);cursor:pointer;transition:.14s}
211
+ .qitem:hover{border-color:var(--accent);transform:translateX(2px)}
212
+ .qitem .rank{width:22px;height:22px;border-radius:7px;background:var(--accent-soft);color:var(--accent);
213
+ font-size:12px;font-weight:680;display:grid;place-items:center;flex:none}
214
+ .qitem .qt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
215
+ .qitem .qt .t{display:block;font-weight:550;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
216
+ .qitem .qt .s{display:block;font-size:11.5px;color:var(--faint)}
217
+
218
+ /* toast */
219
+ .toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%) translateY(20px);opacity:0;
220
+ background:var(--text);color:var(--bg);font-size:13px;font-weight:550;padding:10px 16px;border-radius:10px;
221
+ box-shadow:var(--shadow);transition:.22s;z-index:60;pointer-events:none;max-width:90vw}
222
+ .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
223
+
224
+ .foot-note{margin-top:34px;text-align:center;font-size:11.5px;color:var(--faint)}
225
+ .foot-note a{color:var(--muted)}
226
+
227
+ @media (max-width:560px){
228
+ .hero{grid-template-columns:1fr;justify-items:center;text-align:center}
229
+ .hero-meta{text-align:center}.chips{justify-content:center}.grade-row{justify-content:center}
230
+ }
231
+ /* result view */
232
+ .result-hero{display:flex;align-items:center;gap:18px;flex-wrap:wrap;
233
+ background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
234
+ padding:22px 26px;box-shadow:var(--shadow);margin-bottom:18px}
235
+ .result-hero .glyph{width:52px;height:52px;border-radius:14px;background:var(--accent-soft);color:var(--accent);
236
+ display:grid;place-items:center;flex:none;border:1px solid var(--border)}
237
+ .result-hero .rh-main{min-width:0;flex:1}
238
+ .result-hero .rh-title{font-size:20px;font-weight:660;letter-spacing:-.02em;line-height:1.2}
239
+ .result-hero .rh-sub{color:var(--muted);font-size:13px;margin-top:3px}
240
+ .status-pill{font-size:12px;font-weight:650;padding:4px 10px;border-radius:999px;white-space:nowrap}
241
+ .status-pill.good{color:var(--good);background:var(--good-soft)}
242
+ .status-pill.warn{color:var(--warn);background:var(--warn-soft)}
243
+ .status-pill.bad{color:var(--bad);background:var(--bad-soft)}
244
+ .result-hero .chips{margin-top:0}
245
+
246
+ .changes{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
247
+ .change-row{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);transition:background .12s}
248
+ .change-row:last-child{border-bottom:0}
249
+ .change-row.clickable{cursor:pointer}
250
+ .change-row.clickable:hover{background:var(--surface-2)}
251
+ .kind{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:6px;flex:none;width:74px;text-align:center}
252
+ .kind.created{color:var(--good);background:var(--good-soft)}
253
+ .kind.modified{color:var(--warn);background:var(--warn-soft)}
254
+ .kind.deleted{color:var(--bad);background:var(--bad-soft)}
255
+ .kind.renamed{color:var(--sev-low);background:var(--sev-low-soft)}
256
+ .change-main{flex:1;min-width:0}
257
+ .change-path{font-family:var(--mono);font-size:12.5px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
258
+ .change-sum{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
259
+ .change-delta{font-family:var(--mono);font-size:11.5px;flex:none;white-space:nowrap}
260
+ .change-delta .add{color:var(--good)} .change-delta .del{color:var(--bad)}
261
+
262
+ .section{margin-top:10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
263
+ .section-item{display:flex;align-items:flex-start;gap:10px;padding:11px 16px;border-bottom:1px solid var(--border)}
264
+ .section-item:last-child{border-bottom:0}
265
+ .section-item .ip{width:7px;height:7px;border-radius:999px;margin-top:6px;flex:none;background:var(--faint)}
266
+ .section-item .ip.ok{background:var(--good)} .section-item .ip.warn{background:var(--warn)} .section-item .ip.error{background:var(--bad)}
267
+ .section-item .it{font-size:13px;font-weight:550}
268
+ .section-item .id{font-size:12px;color:var(--muted)}
269
+ .next-steps{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
270
+ .diff{font-family:var(--mono);font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-word;
271
+ background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px}
272
+ .diff .dl-add{color:var(--good)} .diff .dl-del{color:var(--bad)} .diff .dl-ctx{color:var(--muted)}
273
+
274
+ @media (prefers-reduced-motion:reduce){
275
+ *{transition:none!important;animation:none!important}
276
+ }
277
+ `;
278
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,4EAA4E;AAC5E,yEAAyE;AACzE,oDAAoD;AACpD,wEAAwE;AACxE,+EAA+E;AAE/E,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Q/B,CAAC"}
@@ -0,0 +1,113 @@
1
+ export type Severity = "critical" | "high" | "medium" | "low";
2
+ export type CategoryStatus = "good" | "warn" | "bad";
3
+ /** An agentic action a UI element can trigger back in the host (or fall back to in a browser). */
4
+ export type ReportAction = {
5
+ id: string;
6
+ label: string;
7
+ kind: "tool";
8
+ tool: string;
9
+ params?: Record<string, unknown>;
10
+ fallback: string;
11
+ } | {
12
+ id: string;
13
+ label: string;
14
+ kind: "prompt";
15
+ prompt: string;
16
+ fallback?: string;
17
+ } | {
18
+ id: string;
19
+ label: string;
20
+ kind: "link";
21
+ href: string;
22
+ };
23
+ export interface LabelValue {
24
+ label: string;
25
+ value: string;
26
+ }
27
+ export interface ReportCategory {
28
+ id: string;
29
+ name: string;
30
+ /** 0-100; omit when a numeric score is not meaningful. */
31
+ score?: number;
32
+ status: CategoryStatus;
33
+ summary: string;
34
+ issueCount: number;
35
+ details?: LabelValue[];
36
+ }
37
+ export interface ReportIssue {
38
+ id: string;
39
+ /** Matches a ReportCategory.id. */
40
+ category: string;
41
+ severity: Severity;
42
+ title: string;
43
+ description?: string;
44
+ file?: string;
45
+ meta?: LabelValue[];
46
+ actions?: ReportAction[];
47
+ }
48
+ export interface ReportMeta {
49
+ title: string;
50
+ subtitle?: string;
51
+ /** The thing being analysed (repo path, package name). */
52
+ target: string;
53
+ /** ISO date string. */
54
+ generatedAt: string;
55
+ /** Producing tool name, e.g. "legacy-analyzer". */
56
+ tool: string;
57
+ }
58
+ export interface HealthReport {
59
+ meta: ReportMeta;
60
+ /** 0-100 headline score. */
61
+ score: number;
62
+ totalIssues: number;
63
+ /** Tech/context chips shown in the hero. */
64
+ chips?: LabelValue[];
65
+ categories: ReportCategory[];
66
+ issues: ReportIssue[];
67
+ /** Top prioritised actions ("Fix-First Queue"). */
68
+ topActions?: ReportAction[];
69
+ }
70
+ export type Grade = "A+" | "A" | "B" | "C" | "D" | "F";
71
+ export declare function scoreToGrade(score: number): Grade;
72
+ /** Health band drives the accent colour in both themes. */
73
+ export declare function scoreToBand(score: number): CategoryStatus;
74
+ export type FileChangeKind = "created" | "modified" | "deleted" | "renamed";
75
+ export type ResultStatus = "success" | "partial" | "noop";
76
+ export type ItemStatus = "ok" | "warn" | "error";
77
+ export interface FileChange {
78
+ path: string;
79
+ kind: FileChangeKind;
80
+ /** One-line description of what changed. */
81
+ summary?: string;
82
+ additions?: number;
83
+ deletions?: number;
84
+ language?: string;
85
+ /** Optional unified-diff or code snippet shown in the detail drawer. */
86
+ diff?: string;
87
+ }
88
+ export interface ResultSectionItem {
89
+ title: string;
90
+ detail?: string;
91
+ status?: ItemStatus;
92
+ }
93
+ /** A grouped list — e.g. "Steps", "Workspaces", "Warnings". */
94
+ export interface ResultSection {
95
+ title: string;
96
+ items: ResultSectionItem[];
97
+ }
98
+ export interface ResultReport {
99
+ meta: ReportMeta;
100
+ /** Headline outcome, e.g. "Created 3 files", "Applied 7 fixes". */
101
+ headline: string;
102
+ status: ResultStatus;
103
+ /** Context metrics shown as chips in the hero. */
104
+ stats?: LabelValue[];
105
+ /** File-level changes — the main grid. */
106
+ changes?: FileChange[];
107
+ /** Optional grouped detail lists. */
108
+ sections?: ResultSection[];
109
+ /** Follow-up actions (review, run tests, open file). */
110
+ nextActions?: ReportAction[];
111
+ }
112
+ export declare function statusToBand(status: ResultStatus): CategoryStatus;
113
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,35 @@
1
+ // ============================================================================
2
+ // HEALTH REPORT SCHEMA — the generic, tool-agnostic contract.
3
+ // Any MCP tool that maps its output to this shape gets the full premium UI.
4
+ // legacy-analyzer is the flagship producer; component-reviewer, dep-auditor,
5
+ // quality-pipeline etc. can map into the same schema later.
6
+ // ============================================================================
7
+ export function scoreToGrade(score) {
8
+ if (score >= 95)
9
+ return "A+";
10
+ if (score >= 85)
11
+ return "A";
12
+ if (score >= 70)
13
+ return "B";
14
+ if (score >= 55)
15
+ return "C";
16
+ if (score >= 40)
17
+ return "D";
18
+ return "F";
19
+ }
20
+ /** Health band drives the accent colour in both themes. */
21
+ export function scoreToBand(score) {
22
+ if (score >= 70)
23
+ return "good";
24
+ if (score >= 45)
25
+ return "warn";
26
+ return "bad";
27
+ }
28
+ export function statusToBand(status) {
29
+ if (status === "success")
30
+ return "good";
31
+ if (status === "partial")
32
+ return "warn";
33
+ return "good";
34
+ }
35
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,8DAA8D;AAC9D,4EAA4E;AAC5E,6EAA6E;AAC7E,4DAA4D;AAC5D,+EAA+E;AAiE/E,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,IAAI,KAAK,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;IAC7B,IAAI,KAAK,IAAI,EAAE;QAAE,OAAO,GAAG,CAAC;IAC5B,IAAI,KAAK,IAAI,EAAE;QAAE,OAAO,GAAG,CAAC;IAC5B,IAAI,KAAK,IAAI,EAAE;QAAE,OAAO,GAAG,CAAC;IAC5B,IAAI,KAAK,IAAI,EAAE;QAAE,OAAO,GAAG,CAAC;IAC5B,OAAO,GAAG,CAAC;AACb,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,IAAI,KAAK,IAAI,EAAE;QAAE,OAAO,MAAM,CAAC;IAC/B,IAAI,KAAK,IAAI,EAAE;QAAE,OAAO,MAAM,CAAC;IAC/B,OAAO,KAAK,CAAC;AACf,CAAC;AAmDD,MAAM,UAAU,YAAY,CAAC,MAAoB;IAC/C,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@mcp-showcase/ui-kit",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "Reusable single-file HTML report UI for MCP tools — dependency-free, dual-theme, agentic. Flagship: Codebase Health Studio.",
6
+ "main": "./build/index.js",
7
+ "types": "./build/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsc && node build/generate-template.js",
10
+ "dev": "tsc --watch",
11
+ "test": "vitest run"
12
+ },
13
+ "devDependencies": {
14
+ "@types/node": "^20.0.0",
15
+ "jsdom": "^29.1.1",
16
+ "typescript": "^5.0.0",
17
+ "vitest": "^2.0.0"
18
+ }
19
+ }