@action-state-group/capsule-viewer 0.1.0 → 0.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 (102) hide show
  1. package/README.md +74 -2
  2. package/dist/alias-interpreters.d.ts +18 -0
  3. package/dist/alias-interpreters.js +50 -0
  4. package/dist/alias-interpreters.js.map +1 -0
  5. package/dist/browser.d.ts +5 -2
  6. package/dist/browser.js +19 -5
  7. package/dist/browser.js.map +1 -1
  8. package/dist/builtin-manifests.d.ts +51 -0
  9. package/dist/builtin-manifests.js +196 -0
  10. package/dist/builtin-manifests.js.map +1 -0
  11. package/dist/chart-dataset.d.ts +23 -0
  12. package/dist/chart-dataset.js +191 -0
  13. package/dist/chart-dataset.js.map +1 -0
  14. package/dist/chart-spec.d.ts +130 -0
  15. package/dist/chart-spec.js +638 -0
  16. package/dist/chart-spec.js.map +1 -0
  17. package/dist/chart-view.d.ts +27 -0
  18. package/dist/chart-view.js +374 -0
  19. package/dist/chart-view.js.map +1 -0
  20. package/dist/compliance-styles.d.ts +1 -8
  21. package/dist/compliance-styles.js +40 -3
  22. package/dist/compliance-styles.js.map +1 -1
  23. package/dist/compliance-view.d.ts +41 -1
  24. package/dist/compliance-view.js +773 -303
  25. package/dist/compliance-view.js.map +1 -1
  26. package/dist/compliance.d.ts +33 -4
  27. package/dist/compliance.js +92 -13
  28. package/dist/compliance.js.map +1 -1
  29. package/dist/composed-styles.d.ts +12 -0
  30. package/dist/composed-styles.js +20 -0
  31. package/dist/composed-styles.js.map +1 -0
  32. package/dist/composed-view.d.ts +1 -1
  33. package/dist/composed-view.js +9 -2
  34. package/dist/composed-view.js.map +1 -1
  35. package/dist/contract-report-wording.d.ts +195 -0
  36. package/dist/contract-report-wording.js +1177 -0
  37. package/dist/contract-report-wording.js.map +1 -0
  38. package/dist/contract-report.d.ts +92 -0
  39. package/dist/contract-report.js +63 -0
  40. package/dist/contract-report.js.map +1 -0
  41. package/dist/core-strip.d.ts +38 -0
  42. package/dist/core-strip.js +183 -0
  43. package/dist/core-strip.js.map +1 -0
  44. package/dist/emitter-shell.html +181 -3
  45. package/dist/emitter.d.ts +36 -0
  46. package/dist/emitter.js +77 -4
  47. package/dist/emitter.js.map +1 -1
  48. package/dist/evidence-graph-view.d.ts +66 -7
  49. package/dist/evidence-graph-view.js +1483 -127
  50. package/dist/evidence-graph-view.js.map +1 -1
  51. package/dist/evidence-graph.iife.js +17741 -6812
  52. package/dist/frame-tokens.generated.d.ts +3 -0
  53. package/dist/frame-tokens.generated.js +5 -0
  54. package/dist/frame-tokens.generated.js.map +1 -0
  55. package/dist/index.d.ts +3 -0
  56. package/dist/index.js +5 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/outcome-report-presentation.d.ts +48 -0
  59. package/dist/outcome-report-presentation.js +90 -0
  60. package/dist/outcome-report-presentation.js.map +1 -0
  61. package/dist/outcome-report-styles.d.ts +1 -16
  62. package/dist/outcome-report-styles.js +48 -45
  63. package/dist/outcome-report-styles.js.map +1 -1
  64. package/dist/outcome-report-view.d.ts +75 -2
  65. package/dist/outcome-report-view.js +1063 -436
  66. package/dist/outcome-report-view.js.map +1 -1
  67. package/dist/presentation-builder.d.ts +70 -6
  68. package/dist/presentation-builder.js +198 -70
  69. package/dist/presentation-builder.js.map +1 -1
  70. package/dist/presentation-fragment.d.ts +129 -0
  71. package/dist/presentation-fragment.js +213 -0
  72. package/dist/presentation-fragment.js.map +1 -0
  73. package/dist/presentation-mount.d.ts +4 -2
  74. package/dist/presentation-mount.js +2 -1
  75. package/dist/presentation-mount.js.map +1 -1
  76. package/dist/presentation-registry.d.ts +277 -0
  77. package/dist/presentation-registry.js +416 -0
  78. package/dist/presentation-registry.js.map +1 -0
  79. package/dist/record-content.d.ts +68 -0
  80. package/dist/record-content.js +153 -0
  81. package/dist/record-content.js.map +1 -0
  82. package/dist/record-dating.d.ts +10 -0
  83. package/dist/record-dating.js +76 -0
  84. package/dist/record-dating.js.map +1 -0
  85. package/dist/report-front-styles.d.ts +9 -0
  86. package/dist/report-front-styles.js +43 -0
  87. package/dist/report-front-styles.js.map +1 -0
  88. package/dist/report-front.d.ts +56 -0
  89. package/dist/report-front.js +140 -0
  90. package/dist/report-front.js.map +1 -0
  91. package/dist/report-levels.d.ts +238 -0
  92. package/dist/report-levels.js +874 -0
  93. package/dist/report-levels.js.map +1 -0
  94. package/dist/report-provenance.d.ts +111 -0
  95. package/dist/report-provenance.js +535 -0
  96. package/dist/report-provenance.js.map +1 -0
  97. package/dist/viewer-build.d.ts +37 -0
  98. package/dist/viewer-build.js +29 -0
  99. package/dist/viewer-build.js.map +1 -0
  100. package/dist/wording/contract-report-eu-ai-act.en.json +319 -0
  101. package/dist/wording/contract-report-outcomes.en.json +418 -0
  102. package/package.json +6 -3
@@ -30,9 +30,14 @@
30
30
  --aac-font: system-ui, sans-serif;
31
31
  --aac-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
32
32
  --aac-line-height: 1.5;
33
- --aac-page-width: none;
34
- --aac-gutter: 0;
33
+ --aac-page-width: 60rem;
34
+ --aac-gutter: 1rem;
35
+ --aac-page-pad-block: 1.5rem 2.5rem;
35
36
  --aac-radius: 10px;
37
+ /* A report's frame: the page colour behind its cards, and the one
38
+ inset every card's content starts at. */
39
+ --aac-page-bg: #eef0f3;
40
+ --aac-inset: clamp(20px, 5vw, 56px);
36
41
  }
37
42
  :where(html) {
38
43
  -webkit-text-size-adjust: 100%;
@@ -51,6 +56,175 @@
51
56
  max-width: var(--aac-page-width);
52
57
  margin-inline: auto;
53
58
  padding-inline: var(--aac-gutter);
59
+ padding-block: var(--aac-page-pad-block);
60
+ }
61
+ /* A module with its own frame (the outcome and compliance cards) keeps
62
+ it; a module's own .cv-page drops its width and padding here, so no
63
+ page is padded twice (capsule-viewer#60). These two rules use #app
64
+ so they win over a module's own stylesheet; a theme overrides them
65
+ with an #app selector of its own. */
66
+ #app.cv-shell-chrome {
67
+ max-width: none;
68
+ padding: 0 var(--aac-gutter);
69
+ }
70
+ :where(body:has(> #app.cv-shell-chrome)) {
71
+ background: var(--aac-page-bg);
72
+ }
73
+ #app .cv-page {
74
+ max-width: none;
75
+ margin: 0;
76
+ padding: 0;
77
+ }
78
+ :where(.cv-shell-bar) {
79
+ display: flex;
80
+ flex-wrap: wrap;
81
+ align-items: center;
82
+ justify-content: flex-end;
83
+ gap: 0.5rem;
84
+ margin: 0 0 0.75rem;
85
+ }
86
+ :where(.cv-pill) {
87
+ display: inline-block;
88
+ padding: 0.0625rem 0.625rem;
89
+ border: 1px solid currentColor;
90
+ border-radius: 999px;
91
+ font-size: 0.8125rem;
92
+ font-weight: 600;
93
+ line-height: 1.6;
94
+ }
95
+ :where(.cv-pill[data-verify="verified"]) {
96
+ color: var(--aac-ok);
97
+ background: var(--aac-ok-bg);
98
+ }
99
+ :where(.cv-pill[data-verify="failed"]) {
100
+ color: var(--aac-bad);
101
+ background: var(--aac-bad-bg);
102
+ }
103
+ :where(.cv-pill[data-verify="incomplete"]) {
104
+ color: var(--aac-warn);
105
+ background: var(--aac-warn-bg);
106
+ }
107
+ :where(.cv-pill[data-verify="checking"]) {
108
+ color: var(--aac-muted);
109
+ }
110
+ /* The details line under the bar: the findings behind an incomplete
111
+ or failed verdict, in the core's words. */
112
+ :where(.cv-banner-detail) {
113
+ margin: 0 0 0.75rem;
114
+ font-size: 0.8125rem;
115
+ color: var(--aac-muted);
116
+ }
117
+ :where(.cv-shell-note) {
118
+ font-size: 0.8125rem;
119
+ color: var(--aac-muted);
120
+ }
121
+ :where(.cv-shell-detail, .cv-shell-link) {
122
+ font-size: 0.8125rem;
123
+ color: var(--aac-muted);
124
+ }
125
+ :where(.cv-shell-detail:empty) {
126
+ display: none;
127
+ }
128
+ /* A report's frame: the bar becomes one full-width callout at the
129
+ top of the page, the verdict first, then the counts and the link.
130
+ It is green for a verified bundle; a report also renders when no
131
+ check failed but some were not run, or when a check failed and the
132
+ records are still shown, and the bar then takes that state's
133
+ colours (below). */
134
+ #app.cv-shell-chrome :where(.cv-shell-bar) {
135
+ max-width: 1080px;
136
+ box-sizing: border-box;
137
+ margin: 1rem auto 0;
138
+ /* The 6px left border is part of the inset: the text starts where
139
+ every card's content starts. */
140
+ padding: 0.75rem calc(var(--aac-inset) - 1px) 0.75rem
141
+ calc(var(--aac-inset) - 5px);
142
+ justify-content: flex-start;
143
+ gap: 0.375rem 0.75rem;
144
+ border: 1px solid var(--aac-ok);
145
+ border-left-width: 6px;
146
+ border-radius: 10px;
147
+ background: var(--aac-ok-bg);
148
+ }
149
+ #app.cv-shell-chrome :where(.cv-shell-bar.cv-incomplete) {
150
+ border-color: var(--aac-warn);
151
+ background: var(--aac-warn-bg);
152
+ }
153
+ #app.cv-shell-chrome :where(.cv-shell-bar.cv-failed) {
154
+ border-color: var(--aac-bad);
155
+ background: var(--aac-bad-bg);
156
+ }
157
+ #app.cv-shell-chrome :where(.cv-banner-detail) {
158
+ max-width: 1080px;
159
+ box-sizing: border-box;
160
+ margin: 0.375rem auto 0;
161
+ padding: 0 var(--aac-inset);
162
+ }
163
+ #app.cv-shell-chrome :where(.cv-pill) {
164
+ padding: 0;
165
+ border: 0;
166
+ background: transparent;
167
+ font-size: 1rem;
168
+ font-weight: 700;
169
+ }
170
+ #app.cv-shell-chrome :where(.cv-shell-detail) {
171
+ font-size: 0.875rem;
172
+ color: inherit;
173
+ }
174
+ #app.cv-shell-chrome :where(.cv-shell-link) {
175
+ margin-left: auto;
176
+ font-size: 0.875rem;
177
+ font-weight: 600;
178
+ }
179
+ /* A bundle with a failed check: on every page the core draws the
180
+ bar as a red callout, the verdict first, then the check section's
181
+ counts and the link to it. It does not wait for a report's frame:
182
+ no report renders on a bundle the page refuses. */
183
+ :where(.cv-shell-bar.cv-failed) {
184
+ box-sizing: border-box;
185
+ padding: 0.75rem 1rem;
186
+ justify-content: flex-start;
187
+ gap: 0.375rem 0.75rem;
188
+ border: 1px solid var(--aac-bad);
189
+ border-left-width: 6px;
190
+ border-radius: 10px;
191
+ background: var(--aac-bad-bg);
192
+ }
193
+ :where(.cv-shell-bar.cv-failed .cv-pill) {
194
+ padding: 0;
195
+ border: 0;
196
+ background: transparent;
197
+ font-size: 1rem;
198
+ font-weight: 700;
199
+ }
200
+ :where(.cv-shell-bar.cv-failed .cv-shell-detail) {
201
+ font-size: 0.875rem;
202
+ color: var(--aac-fg);
203
+ }
204
+ :where(.cv-shell-bar.cv-failed .cv-shell-link) {
205
+ margin-left: auto;
206
+ font-size: 0.875rem;
207
+ font-weight: 600;
208
+ }
209
+ :where(details.cv-checked) {
210
+ margin: 2rem 0 0;
211
+ padding: 0.75rem 0 0;
212
+ border-top: 1px solid var(--aac-line);
213
+ }
214
+ /* In a report's frame the check section is a card like the
215
+ report's own, folded to its one line until opened. */
216
+ #app.cv-shell-chrome :where(details.cv-checked) {
217
+ box-sizing: border-box;
218
+ max-width: 1080px;
219
+ margin: 0 auto 16px;
220
+ padding: 18px var(--aac-inset);
221
+ border: 1px solid var(--aac-line);
222
+ border-radius: 14px;
223
+ background: var(--aac-bg);
224
+ }
225
+ :where(details.cv-checked > summary) {
226
+ font-size: 0.875rem;
227
+ color: var(--aac-muted);
54
228
  }
55
229
  :where(img, svg, video, canvas) {
56
230
  max-width: 100%;
@@ -123,9 +297,13 @@
123
297
  <style>__THEME_SLOT__</style>
124
298
  </head>
125
299
  <body>
300
+ <!-- prettier-ignore -->
301
+ <noscript><p>This page needs scripts to show the report. A version without scripts can be built from the same bundle with render-report --format static.</p></noscript>
126
302
  <div id="app"></div>
127
303
  <!-- prettier-ignore -->
128
- <script>window.__BUNDLE__ = __BUNDLE_SLOT__;</script>
304
+ <script type="application/json">__BUNDLE_SLOT__</script>
305
+ <!-- prettier-ignore -->
306
+ <script>window.__BUNDLE__ = JSON.parse(document.currentScript.previousElementSibling.textContent);</script>
129
307
  <!-- prettier-ignore -->
130
308
  <script>__CORE_RUNTIME_SLOT__</script>
131
309
  <!-- prettier-ignore -->
package/dist/emitter.d.ts CHANGED
@@ -39,6 +39,40 @@ export declare function escapeJsonForHtmlScript(json: string): string;
39
39
  /** The CSP hash source for a lowercase hex SHA-256 digest (a `.sha256` pin). */
40
40
  export declare function cspHashSourceFromHex(hex: string): string;
41
41
  export declare function emitEvidenceGraphHtml(bundle: unknown, browserIIFE: string, options?: EmitterOptions): string;
42
+ /** The attribute that marks the host element of an embedded snippet. */
43
+ export declare const EMBEDDED_HOST_ATTRIBUTE = "data-aac-embedded";
44
+ export interface EmbeddedSnippetOptions {
45
+ /** Lowercase hex SHA-256 pin for the core runtime; checked when given. */
46
+ readonly coreRuntimeSha256?: string;
47
+ /** Zero or more digest-pinned module scripts, run after the core runtime. */
48
+ readonly modules?: readonly EmitterModule[];
49
+ /**
50
+ * The JCS text of the options the bootstrap passes to renderEvidenceGraph
51
+ * (the presentation builder's, the ones `mount` passes).
52
+ */
53
+ readonly renderOptions: string;
54
+ }
55
+ /** An embedded snippet and the CSP sources its host page must allow. */
56
+ export interface EmbeddedSnippet {
57
+ readonly html: string;
58
+ /** Hash sources of the snippet's inline scripts, for the host's `script-src`. */
59
+ readonly scriptSources: readonly string[];
60
+ /**
61
+ * Hash sources of the stylesheets the core runtime and the modules insert
62
+ * at render time, for the host's `style-src`.
63
+ */
64
+ readonly styleSources: readonly string[];
65
+ }
66
+ /**
67
+ * The embedded snippet (spec/presentation-builder-v0.md section 2.3) a host
68
+ * page inlines where the presentation goes: the core runtime and each
69
+ * module as inline scripts, the host element, the bundle as a JSON data
70
+ * element (read with JSON.parse, so every member stays data), and a
71
+ * bootstrap that renders into the host element. It carries no CSP; the
72
+ * host's must allow the returned sources. go/emitter's BuildEmbeddedHTML
73
+ * writes the same bytes.
74
+ */
75
+ export declare function emitEmbeddedHtml(bundle: unknown, browserIIFE: string, options: EmbeddedSnippetOptions): EmbeddedSnippet;
42
76
  /**
43
77
  * The stylesheet of the static page's notice (the statement that the page
44
78
  * is not self-verifying). Hashed into the static page's CSP like the shell's
@@ -49,6 +83,8 @@ export declare const STATIC_NOTICE_CSS = ":where(.aac-static-notice){display:blo
49
83
  export interface StaticPageInput {
50
84
  /** The rendered page: the children of `#app`, serialized as HTML. */
51
85
  readonly appHtml: string;
86
+ /** The classes the rendering put on its root (a module's own chrome). */
87
+ readonly appClass?: string;
52
88
  /** The text of every `<style>` element in `appHtml`. */
53
89
  readonly appStyles: readonly string[];
54
90
  /** The value of every `style` attribute in `appHtml`. */
package/dist/emitter.js CHANGED
@@ -2,8 +2,12 @@
2
2
  import { createHash } from "node:crypto";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { COMPLIANCE_CSS } from "./compliance-styles.js";
5
+ import { COMPOSED_CSS } from "./composed-styles.js";
6
+ import { CHART_CSS } from "./chart-view.js";
7
+ import { CORE_STRIP_CSS } from "./core-strip.js";
5
8
  import { jcs } from "@action-state-group/agent-action-capsule";
6
9
  import { OUTCOME_REPORT_CSS } from "./outcome-report-styles.js";
10
+ import { RECORD_CONTENT_CSS } from "./record-content.js";
7
11
  const cspSlot = "__CSP_SLOT__";
8
12
  const titleSlot = "__TITLE_SLOT__";
9
13
  const themeSlot = "__THEME_SLOT__";
@@ -33,6 +37,10 @@ export const DEFAULT_EVIDENCE_GRAPH_BOOTSTRAP = 'renderEvidenceGraph(window.__BU
33
37
  export const CORE_RUNTIME_STYLES = [
34
38
  OUTCOME_REPORT_CSS,
35
39
  COMPLIANCE_CSS,
40
+ RECORD_CONTENT_CSS,
41
+ COMPOSED_CSS,
42
+ CORE_STRIP_CSS,
43
+ CHART_CSS,
36
44
  ];
37
45
  const shell = readFileSync(new URL("./emitter-shell.html", import.meta.url), "utf8");
38
46
  function replaceSingle(template, placeholder, value) {
@@ -51,6 +59,13 @@ export function escapeJsonForHtmlScript(json) {
51
59
  .replaceAll("\u2028", "\\u2028")
52
60
  .replaceAll("\u2029", "\\u2029");
53
61
  }
62
+ /** A value for a double-quoted HTML attribute. */
63
+ function escapeAttribute(value) {
64
+ return value
65
+ .replaceAll("&", "&amp;")
66
+ .replaceAll('"', "&quot;")
67
+ .replaceAll("<", "&lt;");
68
+ }
54
69
  function escapeHtmlText(value) {
55
70
  return value
56
71
  .replaceAll("&", "&amp;")
@@ -84,9 +99,12 @@ function checkInline(name, value, endTag) {
84
99
  throw new Error(`${name} must not contain CR or NUL characters`);
85
100
  }
86
101
  }
87
- // Collect the text of every <script> and <style> element in document order.
88
- // The shell writes both start tags bare, and checkInline guarantees each
89
- // element's text runs to the first matching end tag.
102
+ // Collect the text of every bare <script> and <style> element in document
103
+ // order: the ones the CSP hashes. The shell writes their start tags bare, and
104
+ // checkInline guarantees each element's text runs to the first matching end
105
+ // tag. The bundle's <script type="application/json"> element is skipped on
106
+ // purpose: it is data the browser never runs, so it needs no hash, and
107
+ // hashing it would put a per-bundle source in script-src.
90
108
  function inlineElements(html) {
91
109
  const found = { script: [], style: [] };
92
110
  let offset = 0;
@@ -156,6 +174,9 @@ export function emitEvidenceGraphHtml(bundle, browserIIFE, options = {}) {
156
174
  }
157
175
  });
158
176
  });
177
+ // The shell carries the bundle in a JSON data element that a fixed script
178
+ // reads with JSON.parse, so every member, "__proto__" included, stays data
179
+ // (an object literal would make "__proto__" the object's prototype, #109).
159
180
  const embeddedBundleJson = escapeJsonForHtmlScript(bundleJson);
160
181
  let html = replaceSingle(shell, titleSlot, escapeHtmlText(title));
161
182
  html = replaceSingle(html, themeSlot, themeCss);
@@ -188,6 +209,58 @@ export function emitEvidenceGraphHtml(bundle, browserIIFE, options = {}) {
188
209
  }
189
210
  return html;
190
211
  }
212
+ /** The attribute that marks the host element of an embedded snippet. */
213
+ export const EMBEDDED_HOST_ATTRIBUTE = "data-aac-embedded";
214
+ /**
215
+ * The embedded snippet (spec/presentation-builder-v0.md section 2.3) a host
216
+ * page inlines where the presentation goes: the core runtime and each
217
+ * module as inline scripts, the host element, the bundle as a JSON data
218
+ * element (read with JSON.parse, so every member stays data), and a
219
+ * bootstrap that renders into the host element. It carries no CSP; the
220
+ * host's must allow the returned sources. go/emitter's BuildEmbeddedHTML
221
+ * writes the same bytes.
222
+ */
223
+ export function emitEmbeddedHtml(bundle, browserIIFE, options) {
224
+ const bundleJson = escapeJsonForHtmlScript(new TextDecoder().decode(jcs(bundle)));
225
+ const modules = options.modules ?? [];
226
+ const bootstrap = `(function (data) { renderEvidenceGraph(JSON.parse(data.textContent), data.previousElementSibling, undefined, ${escapeJsonForHtmlScript(options.renderOptions)}); })(document.currentScript.previousElementSibling);`;
227
+ checkInline("browser IIFE", browserIIFE, "</script");
228
+ checkInline("bundle JSON", bundleJson, "</script");
229
+ checkInline("bootstrap", bootstrap, "</script");
230
+ if (options.coreRuntimeSha256 !== undefined &&
231
+ cspHashSourceFromHex(options.coreRuntimeSha256) !==
232
+ cspHashSource(browserIIFE)) {
233
+ throw new Error("browser IIFE does not match its SHA-256 pin");
234
+ }
235
+ const styleSources = CORE_RUNTIME_STYLES.map(cspHashSource);
236
+ modules.forEach((module, index) => {
237
+ checkInline(`module ${index}`, module.code, "</script");
238
+ if (cspHashSourceFromHex(module.sha256) !== cspHashSource(module.code)) {
239
+ throw new Error(`module ${index} does not match its SHA-256 pin`);
240
+ }
241
+ (module.styleSha256 ?? []).forEach((pin, styleIndex) => {
242
+ try {
243
+ styleSources.push(cspHashSourceFromHex(pin));
244
+ }
245
+ catch (error) {
246
+ throw new Error(`module ${index} style ${styleIndex}: ${error.message}`);
247
+ }
248
+ });
249
+ });
250
+ const scripts = [browserIIFE, ...modules.map((m) => m.code)];
251
+ const html = [
252
+ ...scripts.map((script) => `<script>${script}</script>`),
253
+ `<div ${EMBEDDED_HOST_ATTRIBUTE}></div>`,
254
+ `<script type="application/json">${bundleJson}</script>`,
255
+ `<script>${bootstrap}</script>`,
256
+ "",
257
+ ].join("\n");
258
+ return {
259
+ html,
260
+ scriptSources: unique([...scripts, bootstrap].map(cspHashSource)),
261
+ styleSources: unique(styleSources),
262
+ };
263
+ }
191
264
  /**
192
265
  * The stylesheet of the static page's notice (the statement that the page
193
266
  * is not self-verifying). Hashed into the static page's CSP like the shell's
@@ -260,7 +333,7 @@ export function emitStaticEvidenceGraphHtml(input, options = {}) {
260
333
  throw new Error("emitter shell embed invariant failed");
261
334
  }
262
335
  const html = `${head}<body>\n ${input.noticeHtml}\n ` +
263
- `<div id="app">${input.appHtml}</div>\n ${page.slice(bodyEnd)}`;
336
+ `<div id="app"${input.appClass ? ` class="${escapeAttribute(input.appClass)}"` : ""}>${input.appHtml}</div>\n ${page.slice(bodyEnd)}`;
264
337
  return html;
265
338
  }
266
339
  //# sourceMappingURL=emitter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"emitter.js","sourceRoot":"","sources":["../src/emitter.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,OAAO,GAAG,cAAc,CAAC;AAC/B,MAAM,SAAS,GAAG,gBAAgB,CAAC;AACnC,MAAM,SAAS,GAAG,gBAAgB,CAAC;AACnC,MAAM,UAAU,GAAG,iBAAiB,CAAC;AACrC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAChD,MAAM,UAAU,GAAG,iBAAiB,CAAC;AACrC,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAC3C,MAAM,KAAK,GAAG;IACZ,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,eAAe;IACf,UAAU;IACV,aAAa;CACL,CAAC;AAEX,yDAAyD;AACzD,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC;AAC7D,+DAA+D;AAC/D,MAAM,CAAC,MAAM,gCAAgC,GAC3C,yEAAyE,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,CAAC,MAAM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AC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,CAAC,OAAO,aAAa,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;IACzI,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,10 +1,18 @@
1
1
  import { type VerifiedBundleContext } from "@action-state-group/agent-action-capsule";
2
+ import type { PresentationManifest } from "./presentation-registry.js";
2
3
  import { type CountersignerSource } from "@action-state-group/agent-action-capsule";
3
- import type { PresentationDepth, WordingPackInput } from "@action-state-group/agent-action-capsule";
4
- import { PresentationRegistry, type PresentationFormat, type PresentationModule, type PresentationRegistration, type PresentationResolution, type PresentationResolver, type PresentationRuntime } from "@action-state-group/agent-action-capsule";
4
+ import { type ContractReportInput } from "./contract-report.js";
5
+ import type { PresentationDepth, WordingPackInput } from "./presentation-fragment.js";
6
+ import { PresentationRegistry, type PresentationFormat, type PresentationModule, type PresentationRegistration, type PresentationResolution, type PresentationResolver, type PresentationRuntime } from "./presentation-registry.js";
7
+ /**
8
+ * Draw the `checking` state into `root`, replacing what it held: the
9
+ * banner alone, with no verdict and no row, until the checks finish
10
+ * (presentation contract section 6.2). Returns that banner's bar.
11
+ */
12
+ export declare function renderChecking(root: HTMLElement): HTMLElement;
5
13
  /** The words a page says when this viewer cannot verify the bundle at all. */
6
14
  export declare const UNABLE_TO_VERIFY_LINES: {
7
- readonly banner: "Unable to verify in this viewer";
15
+ readonly banner: "Couldn't check this page here: check it with a full verifier";
8
16
  readonly reason: "This viewer cannot compute the SHA-256 digests the checks need, so nothing was checked and no records are shown. This is not a failed check: the file may well be valid.";
9
17
  readonly command: "To check this file, run:";
10
18
  readonly noCommand: "To check this file, open it from a secure (https) page, or check it with a verifier outside this viewer.";
@@ -20,9 +28,52 @@ export declare const UNABLE_TO_VERIFY_LINES: {
20
28
  export declare function renderUnableToVerify(root: HTMLElement, options?: {
21
29
  readonly verifyCommand?: string;
22
30
  }): void;
23
- /** The six built-in modules, registered by default. */
31
+ /**
32
+ * The one line a closed "How this page was checked" section shows, so what
33
+ * this page did not check stays in view with it folded: how many of the
34
+ * checks passed (or failed), how many records the file carries, and the
35
+ * signatures or other checks this page did not run.
36
+ */
37
+ export declare function checkedSummaryLine(verified: boolean, model: {
38
+ readonly checks: readonly {
39
+ readonly status: string;
40
+ }[];
41
+ readonly records: readonly unknown[];
42
+ readonly checkLists: {
43
+ readonly failed: readonly string[];
44
+ readonly notChecked: readonly string[];
45
+ };
46
+ }): string;
47
+ /** The summary's lead for a bundle that failed outside every counted check. */
48
+ export declare const SUMMARY_NOT_VERIFIED = "the bundle did not verify";
49
+ /** The folded verification section's heading. */
50
+ export declare const CHECKED_SECTION_TITLE = "How this page was checked";
51
+ /** Said above the generic Result page when a Result opted into a card whose layout cannot hold its claims (`claimsFitCard`). */
52
+ export declare const CARD_UNFIT_NOTE = "This Result's claims don't fit the report layout, so every claim is listed below instead.";
53
+ /**
54
+ * The contract-report module's manifest (agent-action-capsule
55
+ * spec/contract-report-v1.md section 4): the same match as
56
+ * `aac.builtin.result-contract-report/v0`, which it replaces in this
57
+ * registry. Registering both would be an ambiguity error (presentation
58
+ * contract section 4.5). It carries no `executable.wording_sha256`: the pack
59
+ * is a builder input, recorded as provenance.
60
+ */
61
+ export declare const CONTRACT_REPORT_MANIFEST: PresentationManifest;
62
+ /**
63
+ * The data a contract report draws from, beside the empty
64
+ * `contract-report/v1` block: an earlier kind's block, read by its own
65
+ * reader (section 5), the outcome block first, as the built-in manifests'
66
+ * precedence has it (the compliance card forbids `outcome-report/v1`).
67
+ */
68
+ /** The grouping the contract-report module draws for `bundle`, or undefined when it draws the generic Result page. */
69
+ export declare function contractReportGroupingOf(bundle: unknown): ContractReportInput["grouping"] | undefined;
70
+ /**
71
+ * The seven built-in modules, registered by default: agent-action-capsule's
72
+ * seven built-in shapes, with the contract-report module in place of
73
+ * `aac.builtin.result-contract-report/v0` (contract-report/v1 section 4).
74
+ */
24
75
  export declare const BUILTIN_PRESENTATIONS: readonly PresentationModule[];
25
- /** A fresh registry holding the six built-in modules. */
76
+ /** A fresh registry holding the seven built-in modules. */
26
77
  export declare function createPresentationRegistry(): PresentationRegistry;
27
78
  /**
28
79
  * The built-in sections: modules resolved after the page module, in their
@@ -55,14 +106,22 @@ export interface RenderEvidenceGraphOptions {
55
106
  readonly sections?: PresentationResolver;
56
107
  readonly audience?: string;
57
108
  readonly format?: PresentationFormat;
58
- /** The opening depth handed to the module's host; "L2" when omitted. */
109
+ /** The opening depth handed to the module's host; "L0" when omitted. */
59
110
  readonly depth?: PresentationDepth;
60
111
  /**
61
112
  * The wording pack the page was built with, carried so the page holds
62
113
  * the exact words it was built with (presentation only; contract I3).
63
- * The built-in modules use the core's own labels and do not read it.
114
+ * The contract-report module (the outcome and EU AI Act reports) draws
115
+ * its words from it, over its default pack; the other built-in modules
116
+ * use the core's own labels and do not read it.
64
117
  */
65
118
  readonly wording?: WordingPackInput;
119
+ /**
120
+ * Chart specs (docs/design/chart-spec.md), drawn in L1 in this order. Each
121
+ * is checked against the dataset the Result names before it is drawn; a
122
+ * spec that fails is replaced by the core's notice, never drawn.
123
+ */
124
+ readonly charts?: readonly unknown[];
66
125
  /**
67
126
  * The exact command that checks this file outside the page, shown when
68
127
  * this viewer cannot verify it (see {@link renderUnableToVerify}).