repometry 0.4.1 → 0.5.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 (190) hide show
  1. package/README.md +4 -0
  2. package/package.json +1 -1
  3. package/target/main/resources/report/json/report-v2.schema.json +13 -1
  4. package/target/main/resources/viewer/files.css +7 -3
  5. package/target/main/resources/viewer/styles.css +2 -2
  6. package/target/main/ts/api/git/git.d.ts +1 -0
  7. package/target/main/ts/api/git/git.js +12 -0
  8. package/target/main/ts/api/git/inspection-source.js +2 -8
  9. package/target/main/ts/api/git/local.d.ts +1 -1
  10. package/target/main/ts/api/git/local.js +39 -5
  11. package/target/main/ts/api/process/docker-tool-runner.d.ts +13 -0
  12. package/target/main/ts/api/process/docker-tool-runner.js +108 -0
  13. package/target/main/ts/api/process/failure.d.ts +1 -0
  14. package/target/main/ts/api/process/failure.js +12 -0
  15. package/target/main/ts/api/process/plugin.d.ts +10 -0
  16. package/target/main/ts/api/process/plugin.js +96 -0
  17. package/target/main/ts/compose/analyze-snapshot.d.ts +3 -2
  18. package/target/main/ts/compose/analyze-snapshot.js +82 -29
  19. package/target/main/ts/compose/inspect.d.ts +5 -0
  20. package/target/main/ts/compose/inspect.js +10 -6
  21. package/target/main/ts/core/engine/execute.d.ts +3 -1
  22. package/target/main/ts/core/engine/execute.js +14 -2
  23. package/target/main/ts/core/engine/operation-cache.d.ts +14 -0
  24. package/target/main/ts/core/engine/operation-cache.js +66 -0
  25. package/target/main/ts/core/engine/plan.d.ts +1 -0
  26. package/target/main/ts/core/engine/plan.js +22 -3
  27. package/target/main/ts/core/engine/plugin.d.ts +8 -1
  28. package/target/main/ts/core/engine/plugin.js +1 -3
  29. package/target/main/ts/core/engine/report-products.js +2 -13
  30. package/target/main/ts/core/model/clone-source.js +1 -1
  31. package/target/main/ts/core/model/code-structure.d.ts +3 -0
  32. package/target/main/ts/core/model/code-structure.js +4 -1
  33. package/target/main/ts/core/model/finding-ignore.js +1 -1
  34. package/target/main/ts/core/model/finding.js +1 -1
  35. package/target/main/ts/core/model/line-coverage.d.ts +5 -1
  36. package/target/main/ts/core/model/line-coverage.js +14 -11
  37. package/target/main/ts/core/model/measurement.js +1 -1
  38. package/target/main/ts/core/model/plugin-data.d.ts +2 -0
  39. package/target/main/ts/core/model/plugin-data.js +15 -1
  40. package/target/main/ts/core/model/quality-summary.js +1 -1
  41. package/target/main/ts/core/model/scanner-import.js +1 -1
  42. package/target/main/ts/core/model/snapshot.d.ts +1 -0
  43. package/target/main/ts/core/model/snapshot.js +5 -1
  44. package/target/main/ts/core/model/source.d.ts +3 -0
  45. package/target/main/ts/core/model/source.js +15 -0
  46. package/target/main/ts/core/ports/tool-runner.d.ts +18 -0
  47. package/target/main/ts/core/ports/tool-runner.js +2 -0
  48. package/target/main/ts/plugin.d.ts +7 -1
  49. package/target/main/ts/plugin.js +3 -1
  50. package/target/main/ts/plugins/coverage/coverage.d.ts +5 -2
  51. package/target/main/ts/plugins/coverage/coverage.js +35 -10
  52. package/target/main/ts/plugins/language-js/function-facts.d.ts +1 -0
  53. package/target/main/ts/plugins/language-js/function-facts.js +30 -4
  54. package/target/main/ts/report/html/app/viewer-chart-bars.d.ts +11 -0
  55. package/target/main/ts/report/html/app/viewer-chart-bars.js +54 -0
  56. package/target/main/ts/report/html/app/viewer-chart-label.d.ts +15 -0
  57. package/target/main/ts/report/html/app/viewer-chart-label.js +43 -0
  58. package/target/main/ts/report/html/app/viewer-chart-line.d.ts +24 -0
  59. package/target/main/ts/report/html/app/viewer-chart-line.js +89 -0
  60. package/target/main/ts/report/html/app/viewer-chart-points.d.ts +49 -0
  61. package/target/main/ts/report/html/app/viewer-chart-points.js +74 -0
  62. package/target/main/ts/report/html/app/viewer-chart-scale.d.ts +21 -0
  63. package/target/main/ts/report/html/app/viewer-chart-scale.js +93 -0
  64. package/target/main/ts/report/html/app/viewer-chart-svg.d.ts +28 -0
  65. package/target/main/ts/report/html/app/viewer-chart-svg.js +41 -0
  66. package/target/main/ts/report/html/app/viewer-chart-time.d.ts +26 -0
  67. package/target/main/ts/report/html/app/viewer-chart-time.js +150 -0
  68. package/target/main/ts/report/html/app/viewer-chart-tip.d.ts +4 -0
  69. package/target/main/ts/report/html/app/viewer-chart-tip.js +210 -0
  70. package/target/main/ts/report/html/app/viewer-chart-x.d.ts +12 -0
  71. package/target/main/ts/report/html/app/viewer-chart-x.js +50 -0
  72. package/target/main/ts/report/html/app/viewer-chart.d.ts +4 -98
  73. package/target/main/ts/report/html/app/viewer-chart.js +16 -677
  74. package/target/main/ts/report/html/app/viewer-code-map.d.ts +27 -0
  75. package/target/main/ts/report/html/app/viewer-code-map.js +175 -0
  76. package/target/main/ts/report/html/app/viewer-columns.d.ts +38 -0
  77. package/target/main/ts/report/html/app/viewer-columns.js +92 -0
  78. package/target/main/ts/report/html/app/viewer-commit-picker.d.ts +12 -0
  79. package/target/main/ts/report/html/app/viewer-commit-picker.js +229 -0
  80. package/target/main/ts/report/html/app/viewer-commits.d.ts +5 -9
  81. package/target/main/ts/report/html/app/viewer-commits.js +17 -216
  82. package/target/main/ts/report/html/app/viewer-controls.d.ts +43 -0
  83. package/target/main/ts/report/html/app/viewer-controls.js +141 -0
  84. package/target/main/ts/report/html/app/viewer-copy.d.ts +17 -0
  85. package/target/main/ts/report/html/app/viewer-copy.js +64 -0
  86. package/target/main/ts/report/html/app/viewer-diagnostics.d.ts +4 -0
  87. package/target/main/ts/report/html/app/viewer-diagnostics.js +60 -0
  88. package/target/main/ts/report/html/app/viewer-dom.d.ts +27 -0
  89. package/target/main/ts/report/html/app/viewer-dom.js +99 -0
  90. package/target/main/ts/report/html/app/viewer-file-aside.d.ts +19 -0
  91. package/target/main/ts/report/html/app/viewer-file-aside.js +124 -0
  92. package/target/main/ts/report/html/app/viewer-file-figures.d.ts +15 -0
  93. package/target/main/ts/report/html/app/viewer-file-figures.js +60 -0
  94. package/target/main/ts/report/html/app/viewer-file-source.d.ts +7 -0
  95. package/target/main/ts/report/html/app/viewer-file-source.js +119 -0
  96. package/target/main/ts/report/html/app/viewer-files.d.ts +2 -118
  97. package/target/main/ts/report/html/app/viewer-files.js +24 -2184
  98. package/target/main/ts/report/html/app/viewer-filter.d.ts +3 -51
  99. package/target/main/ts/report/html/app/viewer-filter.js +111 -450
  100. package/target/main/ts/report/html/app/viewer-hotspots.d.ts +4 -0
  101. package/target/main/ts/report/html/app/viewer-hotspots.js +131 -0
  102. package/target/main/ts/report/html/app/viewer-inspection.d.ts +69 -0
  103. package/target/main/ts/report/html/app/viewer-inspection.js +36 -0
  104. package/target/main/ts/report/html/app/viewer-issue-group.d.ts +27 -0
  105. package/target/main/ts/report/html/app/viewer-issue-group.js +174 -0
  106. package/target/main/ts/report/html/app/viewer-issues.d.ts +4 -0
  107. package/target/main/ts/report/html/app/viewer-issues.js +173 -0
  108. package/target/main/ts/report/html/app/viewer-language-bar.d.ts +9 -0
  109. package/target/main/ts/report/html/app/viewer-language-bar.js +72 -0
  110. package/target/main/ts/report/html/app/viewer-languages.d.ts +27 -0
  111. package/target/main/ts/report/html/app/viewer-languages.js +93 -0
  112. package/target/main/ts/report/html/app/viewer-layout.d.ts +14 -0
  113. package/target/main/ts/report/html/app/viewer-layout.js +134 -0
  114. package/target/main/ts/report/html/app/viewer-line-coverage.d.ts +47 -0
  115. package/target/main/ts/report/html/app/viewer-line-coverage.js +121 -0
  116. package/target/main/ts/report/html/app/viewer-locations.d.ts +16 -0
  117. package/target/main/ts/report/html/app/viewer-locations.js +31 -0
  118. package/target/main/ts/report/html/app/viewer-map-scale.d.ts +26 -0
  119. package/target/main/ts/report/html/app/viewer-map-scale.js +147 -0
  120. package/target/main/ts/report/html/app/viewer-map-shape.d.ts +42 -0
  121. package/target/main/ts/report/html/app/viewer-map-shape.js +102 -0
  122. package/target/main/ts/report/html/app/viewer-metric-format.d.ts +23 -0
  123. package/target/main/ts/report/html/app/viewer-metric-format.js +93 -0
  124. package/target/main/ts/report/html/app/viewer-metric-registry.d.ts +0 -20
  125. package/target/main/ts/report/html/app/viewer-metric-registry.js +0 -77
  126. package/target/main/ts/report/html/app/viewer-metrics-view.d.ts +4 -0
  127. package/target/main/ts/report/html/app/viewer-metrics-view.js +162 -0
  128. package/target/main/ts/report/html/app/viewer-metrics.d.ts +6 -1
  129. package/target/main/ts/report/html/app/viewer-metrics.js +53 -35
  130. package/target/main/ts/report/html/app/viewer-overview-cards.d.ts +12 -0
  131. package/target/main/ts/report/html/app/viewer-overview-cards.js +112 -0
  132. package/target/main/ts/report/html/app/viewer-overview-hotspots.d.ts +9 -0
  133. package/target/main/ts/report/html/app/viewer-overview-hotspots.js +173 -0
  134. package/target/main/ts/report/html/app/viewer-overview-lead.d.ts +12 -0
  135. package/target/main/ts/report/html/app/viewer-overview-lead.js +116 -0
  136. package/target/main/ts/report/html/app/viewer-profile-badges.d.ts +11 -0
  137. package/target/main/ts/report/html/app/viewer-profile-badges.js +119 -0
  138. package/target/main/ts/report/html/app/viewer-profile-table.d.ts +29 -0
  139. package/target/main/ts/report/html/app/viewer-profile-table.js +124 -0
  140. package/target/main/ts/report/html/app/viewer-profile.d.ts +2 -6
  141. package/target/main/ts/report/html/app/viewer-profile.js +6 -248
  142. package/target/main/ts/report/html/app/viewer-pull-sections.d.ts +4 -0
  143. package/target/main/ts/report/html/app/viewer-pull-sections.js +118 -0
  144. package/target/main/ts/report/html/app/viewer-pull-trend.d.ts +5 -0
  145. package/target/main/ts/report/html/app/viewer-pull-trend.js +63 -0
  146. package/target/main/ts/report/html/app/viewer-pulls.d.ts +0 -1
  147. package/target/main/ts/report/html/app/viewer-pulls.js +28 -178
  148. package/target/main/ts/report/html/app/viewer-query-field.d.ts +19 -0
  149. package/target/main/ts/report/html/app/viewer-query-field.js +203 -0
  150. package/target/main/ts/report/html/app/viewer-route.d.ts +34 -0
  151. package/target/main/ts/report/html/app/viewer-route.js +55 -0
  152. package/target/main/ts/report/html/app/viewer-shell.d.ts +20 -0
  153. package/target/main/ts/report/html/app/viewer-shell.js +116 -0
  154. package/target/main/ts/report/html/app/viewer-source-view.d.ts +49 -0
  155. package/target/main/ts/report/html/app/viewer-source-view.js +150 -0
  156. package/target/main/ts/report/html/app/viewer-source.d.ts +0 -84
  157. package/target/main/ts/report/html/app/viewer-source.js +7 -363
  158. package/target/main/ts/report/html/app/viewer-suggest.d.ts +13 -0
  159. package/target/main/ts/report/html/app/viewer-suggest.js +91 -0
  160. package/target/main/ts/report/html/app/viewer-sunburst.d.ts +5 -0
  161. package/target/main/ts/report/html/app/viewer-sunburst.js +40 -0
  162. package/target/main/ts/report/html/app/viewer-table-cells.d.ts +25 -0
  163. package/target/main/ts/report/html/app/viewer-table-cells.js +129 -0
  164. package/target/main/ts/report/html/app/viewer-table-rows.d.ts +54 -0
  165. package/target/main/ts/report/html/app/viewer-table-rows.js +95 -0
  166. package/target/main/ts/report/html/app/viewer-tokenizer.d.ts +16 -0
  167. package/target/main/ts/report/html/app/viewer-tokenizer.js +192 -0
  168. package/target/main/ts/report/html/app/viewer-totals.d.ts +14 -0
  169. package/target/main/ts/report/html/app/viewer-totals.js +89 -0
  170. package/target/main/ts/report/html/app/viewer-treemap.d.ts +24 -0
  171. package/target/main/ts/report/html/app/viewer-treemap.js +112 -0
  172. package/target/main/ts/report/html/app/viewer-trend-data.d.ts +49 -0
  173. package/target/main/ts/report/html/app/viewer-trend-data.js +105 -0
  174. package/target/main/ts/report/html/app/viewer-trend-nav.d.ts +5 -0
  175. package/target/main/ts/report/html/app/viewer-trend-nav.js +85 -0
  176. package/target/main/ts/report/html/app/viewer-trend-points.d.ts +30 -0
  177. package/target/main/ts/report/html/app/viewer-trend-points.js +128 -0
  178. package/target/main/ts/report/html/app/viewer-trend-series.d.ts +26 -0
  179. package/target/main/ts/report/html/app/viewer-trend-series.js +98 -0
  180. package/target/main/ts/report/html/app/viewer-trends.d.ts +2 -70
  181. package/target/main/ts/report/html/app/viewer-trends.js +41 -392
  182. package/target/main/ts/report/html/app/viewer.js +152 -663
  183. package/target/main/ts/report/html/site/badges.js +41 -18
  184. package/target/main/ts/report/json/store/local-store.js +2 -12
  185. package/target/main/ts/report/json/store/operation-cache.d.ts +8 -0
  186. package/target/main/ts/report/json/store/operation-cache.js +32 -0
  187. package/target/main/ts/report/json/store/replace-file.d.ts +1 -0
  188. package/target/main/ts/report/json/store/replace-file.js +14 -0
  189. package/target/main/ts/report.d.ts +1 -0
  190. package/target/main/ts/report.js +1 -0
@@ -1,6 +1,5 @@
1
1
  import { coverageGrade, securityGrade } from '../../../core/model/quality-summary.js';
2
- /** The report's own grade colours, so a badge in a README reads as the report does. */
3
- const colors = { A: '#1f9d5a', B: '#74a83a', C: '#d9a400', D: '#ec8a2c', F: '#db4a3f' };
2
+ const colors = { A: '#5ec269', B: '#74a83a', C: '#d9a400', D: '#ec8a2c', F: '#db4a3f' };
4
3
  const unavailable = '#6b7684';
5
4
  /** The README badges. Security is available when the inspection recorded scanner counts. */
6
5
  export function badges(report, quality, security) {
@@ -20,30 +19,54 @@ export function badges(report, quality, security) {
20
19
  }
21
20
  function badge(name, value, grade) {
22
21
  const fill = grade ? colors[grade] : unavailable;
23
- const labelWidth = Math.max(11, name.length * 7) + 12;
24
- const valueWidth = Math.max(11, value.length * 7) + 12;
22
+ const labelTextWidth = Math.round(textWidth(name));
23
+ const valueTextWidth = Math.round(textWidth(value) * 1.12);
24
+ const padding = 7;
25
+ const labelWidth = labelTextWidth + 2 * padding;
26
+ const valueWidth = valueTextWidth + 2 * padding;
25
27
  const width = labelWidth + valueWidth;
26
- const labelCenter = labelWidth / 2;
27
- const valueCenter = labelWidth + valueWidth / 2;
28
+ const clipId = `${name}-clip`;
29
+ const labelId = `${name}-label`;
30
+ const valueId = `${name}-value`;
28
31
  return Buffer.from(`<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="20" viewBox="0 0 ${width} 20" role="img" aria-label="${name}: ${value}">
29
32
  <defs>
30
- <clipPath id="badge"><rect width="${width}" height="20" rx="3"/></clipPath>
31
- <linearGradient id="shade" x2="0" y2="100%">
32
- <stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
33
- <stop offset="1" stop-color="#000" stop-opacity=".1"/>
33
+ <clipPath id="${clipId}"><rect width="${width}" height="20" rx="3"/></clipPath>
34
+ <linearGradient id="${labelId}" x2="0" y2="100%">
35
+ <stop stop-color="#475265"/>
36
+ <stop offset="1" stop-color="#3a4557"/>
37
+ </linearGradient>
38
+ <linearGradient id="${valueId}" x2="0" y2="100%">
39
+ <stop stop-color="#fff" stop-opacity=".06"/>
40
+ <stop offset="1" stop-color="#000" stop-opacity=".06"/>
34
41
  </linearGradient>
35
42
  </defs>
36
- <g clip-path="url(#badge)">
37
- <rect width="${labelWidth}" height="20" fill="#555"/>
43
+ <g clip-path="url(#${clipId})">
44
+ <rect width="${labelWidth}" height="20" fill="url(#${labelId})"/>
38
45
  <rect x="${labelWidth}" width="${valueWidth}" height="20" fill="${fill}"/>
39
- <rect width="${width}" height="20" fill="url(#shade)"/>
46
+ <rect x="${labelWidth}" width="${valueWidth}" height="20" fill="url(#${valueId})"/>
40
47
  </g>
41
- <g aria-hidden="true" fill="#fff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">
42
- <text x="${labelCenter}" y="15" fill="#010101" fill-opacity=".3">${name}</text>
43
- <text x="${valueCenter}" y="15" fill="#010101" fill-opacity=".3">${value}</text>
44
- <text x="${labelCenter}" y="14">${name}</text>
45
- <text x="${valueCenter}" y="14">${value}</text>
48
+ <g aria-hidden="true" fill="#fff" font-family="-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans',Helvetica,Arial,sans-serif" font-size="11">
49
+ <text x="${padding}" y="14" font-weight="400" textLength="${labelTextWidth}" lengthAdjust="spacingAndGlyphs">${name}</text>
50
+ <text x="${labelWidth + padding}" y="14" font-weight="700" textLength="${valueTextWidth}" lengthAdjust="spacingAndGlyphs">${value}</text>
46
51
  </g>
47
52
  </svg>\n`);
48
53
  }
54
+ function textWidth(text) {
55
+ let width = 0;
56
+ for (const character of text) {
57
+ if (/[ijl]/.test(character))
58
+ width += 3.4;
59
+ else if (/[mwMW]/.test(character))
60
+ width += 7.6;
61
+ else if (/[A-Z]/.test(character))
62
+ width += 7.4;
63
+ else if (/[0-9%]/.test(character))
64
+ width += 6.6;
65
+ else if (character === '—')
66
+ width += 11;
67
+ else
68
+ width += 6.2;
69
+ }
70
+ return width;
71
+ }
49
72
  //# sourceMappingURL=badges.js.map
@@ -1,5 +1,4 @@
1
- import { randomUUID } from 'node:crypto';
2
- import { lstat, mkdir, open, readFile, readdir, rename, rm, writeFile } from 'node:fs/promises';
1
+ import { lstat, mkdir, open, readFile, readdir } from 'node:fs/promises';
3
2
  import { join } from 'node:path';
4
3
  import { isDeepStrictEqual } from 'node:util';
5
4
  import { isRecord } from '../../../core/engine/plugin.js';
@@ -8,6 +7,7 @@ import { summarySchema } from '../wire/summary-model.js';
8
7
  import { compactJsonSchema, packJson } from '../wire/compact-json.js';
9
8
  import { compareReports, readReport, readReportText, validSubjectId } from '../validation/report.js';
10
9
  import { validateSummaryRow } from '../validation/summary-validation.js';
10
+ import { replaceFile } from './replace-file.js';
11
11
  const packedHeader = `{"schema":"${compactJsonSchema}","summary":`;
12
12
  export class LocalReportStore {
13
13
  directory;
@@ -147,16 +147,6 @@ async function readSummaryHeader(path, sha) {
147
147
  await file.close();
148
148
  }
149
149
  }
150
- async function replaceFile(directory, name, contents) {
151
- const temporary = join(directory, `.repometry-${randomUUID()}.tmp`);
152
- try {
153
- await writeFile(temporary, contents, { flag: 'wx', mode: 0o600 });
154
- await rename(temporary, join(directory, name));
155
- }
156
- finally {
157
- await rm(temporary, { force: true });
158
- }
159
- }
160
150
  function subjectFolder(kind) {
161
151
  return kind === 'commit' ? 'commits' : 'working-trees';
162
152
  }
@@ -0,0 +1,8 @@
1
+ import type { OperationCache } from '../../../core/engine/operation-cache.js';
2
+ export declare class LocalOperationCache implements OperationCache {
3
+ private readonly directory;
4
+ constructor(directory: string);
5
+ read(key: string): Promise<Uint8Array | undefined>;
6
+ write(key: string, bytes: Uint8Array): Promise<void>;
7
+ private folder;
8
+ }
@@ -0,0 +1,32 @@
1
+ import { lstat, mkdir, readFile } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import { replaceFile } from './replace-file.js';
4
+ const digestPattern = /^[a-f0-9]{64}$/;
5
+ export class LocalOperationCache {
6
+ directory;
7
+ constructor(directory) {
8
+ this.directory = directory;
9
+ }
10
+ async read(key) {
11
+ const path = join(this.folder(key), key);
12
+ try {
13
+ return (await lstat(path)).isFile() ? await readFile(path) : undefined;
14
+ }
15
+ catch (error) {
16
+ if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
17
+ return undefined;
18
+ throw error;
19
+ }
20
+ }
21
+ async write(key, bytes) {
22
+ const folder = this.folder(key);
23
+ await mkdir(folder, { recursive: true, mode: 0o700 });
24
+ await replaceFile(folder, key, bytes);
25
+ }
26
+ folder(key) {
27
+ if (!digestPattern.test(key))
28
+ throw new Error('Invalid operation cache key');
29
+ return join(this.directory, key.slice(0, 2));
30
+ }
31
+ }
32
+ //# sourceMappingURL=operation-cache.js.map
@@ -0,0 +1 @@
1
+ export declare function replaceFile(directory: string, name: string, contents: string | Uint8Array): Promise<void>;
@@ -0,0 +1,14 @@
1
+ import { randomUUID } from 'node:crypto';
2
+ import { rename, rm, writeFile } from 'node:fs/promises';
3
+ import { join } from 'node:path';
4
+ export async function replaceFile(directory, name, contents) {
5
+ const temporary = join(directory, `.repometry-${randomUUID()}.tmp`);
6
+ try {
7
+ await writeFile(temporary, contents, { flag: 'wx', mode: 0o600 });
8
+ await rename(temporary, join(directory, name));
9
+ }
10
+ finally {
11
+ await rm(temporary, { force: true });
12
+ }
13
+ }
14
+ //# sourceMappingURL=replace-file.js.map
@@ -1,6 +1,7 @@
1
1
  export { legacyReportSchema, readReport, reportSchema } from './report/json/validation/report.js';
2
2
  export type { Diagnostic, Report, ReportReader, ReportStore } from './report/json/validation/report.js';
3
3
  export type { ReportWriter } from './core/ports/report.js';
4
+ export { LocalOperationCache } from './report/json/store/operation-cache.js';
4
5
  export { validateSummary } from './report/json/validation/summary-validation.js';
5
6
  export { historySchema } from './report/json/wire/public-history-model.js';
6
7
  export type { PublicHistory, PublicHistoryEntry, QualityHistory } from './report/json/wire/public-history-model.js';
@@ -1,4 +1,5 @@
1
1
  export { legacyReportSchema, readReport, reportSchema } from './report/json/validation/report.js';
2
+ export { LocalOperationCache } from './report/json/store/operation-cache.js';
2
3
  export { validateSummary } from './report/json/validation/summary-validation.js';
3
4
  export { historySchema } from './report/json/wire/public-history-model.js';
4
5
  export { summarySchema } from './report/json/wire/summary-model.js';