@action-state-group/capsule-viewer 0.1.0 → 0.3.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 (90) hide show
  1. package/README.md +73 -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/compliance-styles.d.ts +1 -8
  12. package/dist/compliance-styles.js +41 -3
  13. package/dist/compliance-styles.js.map +1 -1
  14. package/dist/compliance-view.d.ts +41 -1
  15. package/dist/compliance-view.js +737 -303
  16. package/dist/compliance-view.js.map +1 -1
  17. package/dist/compliance.d.ts +33 -4
  18. package/dist/compliance.js +92 -13
  19. package/dist/compliance.js.map +1 -1
  20. package/dist/composed-styles.d.ts +12 -0
  21. package/dist/composed-styles.js +20 -0
  22. package/dist/composed-styles.js.map +1 -0
  23. package/dist/composed-view.d.ts +1 -1
  24. package/dist/composed-view.js +9 -2
  25. package/dist/composed-view.js.map +1 -1
  26. package/dist/contract-report-wording.d.ts +195 -0
  27. package/dist/contract-report-wording.js +1141 -0
  28. package/dist/contract-report-wording.js.map +1 -0
  29. package/dist/contract-report.d.ts +92 -0
  30. package/dist/contract-report.js +63 -0
  31. package/dist/contract-report.js.map +1 -0
  32. package/dist/emitter-shell.html +176 -2
  33. package/dist/emitter.d.ts +36 -0
  34. package/dist/emitter.js +64 -1
  35. package/dist/emitter.js.map +1 -1
  36. package/dist/evidence-graph-view.d.ts +60 -7
  37. package/dist/evidence-graph-view.js +1344 -106
  38. package/dist/evidence-graph-view.js.map +1 -1
  39. package/dist/evidence-graph.iife.js +12410 -5624
  40. package/dist/frame-tokens.generated.d.ts +3 -0
  41. package/dist/frame-tokens.generated.js +5 -0
  42. package/dist/frame-tokens.generated.js.map +1 -0
  43. package/dist/index.d.ts +3 -0
  44. package/dist/index.js +5 -0
  45. package/dist/index.js.map +1 -1
  46. package/dist/outcome-report-presentation.d.ts +48 -0
  47. package/dist/outcome-report-presentation.js +90 -0
  48. package/dist/outcome-report-presentation.js.map +1 -0
  49. package/dist/outcome-report-styles.d.ts +1 -16
  50. package/dist/outcome-report-styles.js +48 -45
  51. package/dist/outcome-report-styles.js.map +1 -1
  52. package/dist/outcome-report-view.d.ts +75 -2
  53. package/dist/outcome-report-view.js +1039 -436
  54. package/dist/outcome-report-view.js.map +1 -1
  55. package/dist/presentation-builder.d.ts +55 -6
  56. package/dist/presentation-builder.js +163 -69
  57. package/dist/presentation-builder.js.map +1 -1
  58. package/dist/presentation-fragment.d.ts +129 -0
  59. package/dist/presentation-fragment.js +213 -0
  60. package/dist/presentation-fragment.js.map +1 -0
  61. package/dist/presentation-mount.d.ts +2 -2
  62. package/dist/presentation-mount.js +1 -1
  63. package/dist/presentation-mount.js.map +1 -1
  64. package/dist/presentation-registry.d.ts +277 -0
  65. package/dist/presentation-registry.js +416 -0
  66. package/dist/presentation-registry.js.map +1 -0
  67. package/dist/record-content.d.ts +68 -0
  68. package/dist/record-content.js +153 -0
  69. package/dist/record-content.js.map +1 -0
  70. package/dist/record-dating.d.ts +10 -0
  71. package/dist/record-dating.js +76 -0
  72. package/dist/record-dating.js.map +1 -0
  73. package/dist/report-front-styles.d.ts +9 -0
  74. package/dist/report-front-styles.js +55 -0
  75. package/dist/report-front-styles.js.map +1 -0
  76. package/dist/report-front.d.ts +78 -0
  77. package/dist/report-front.js +274 -0
  78. package/dist/report-front.js.map +1 -0
  79. package/dist/report-levels.d.ts +206 -0
  80. package/dist/report-levels.js +739 -0
  81. package/dist/report-levels.js.map +1 -0
  82. package/dist/report-provenance.d.ts +111 -0
  83. package/dist/report-provenance.js +535 -0
  84. package/dist/report-provenance.js.map +1 -0
  85. package/dist/viewer-build.d.ts +37 -0
  86. package/dist/viewer-build.js +29 -0
  87. package/dist/viewer-build.js.map +1 -0
  88. package/dist/wording/contract-report-eu-ai-act.en.json +295 -0
  89. package/dist/wording/contract-report-outcomes.en.json +394 -0
  90. package/package.json +3 -2
package/README.md CHANGED
@@ -15,11 +15,82 @@ import {
15
15
  ```
16
16
 
17
17
  The in-browser renderer (`renderEvidenceGraph`) ships bundled as
18
- `dist/evidence-graph.iife.js`, for a page's core runtime slot. Bundle verification comes from
19
- `@action-state-group/agent-action-capsule`.
18
+ `dist/evidence-graph.iife.js`, for a page's core runtime slot, and the Go
19
+ module ships the same build as `go/pageruntime`. Bundle verification comes from
20
+ `@action-state-group/agent-action-capsule`. Besides `registerPresentation`,
21
+ the runtime's global `EvidenceGraph` carries the verifier functions a
22
+ presentation module may call: `disclosureOf`, `ed25519Available`,
23
+ `verifiedPayload`, `verifyDisclosureEnvelope` and `verifyProducerEnvelope`.
20
24
 
21
25
  The code moved here from agent-action-capsule (agent-action-capsule#281) and
22
26
  keeps its BSD-3-Clause license (`LICENSE-BSD-3-Clause`); the rest of the
23
27
  package is Apache-2.0 (`LICENSE`).
24
28
 
29
+ ## Tuning the contract-report module's words
30
+
31
+ The contract-report module (`src/contract-report.ts`) resolves on
32
+ `contract-report/v1` (agent-action-capsule spec/contract-report-v1.md),
33
+ registered in place of `aac.builtin.result-contract-report/v0`. It draws
34
+ one of two layouts -- `lines` (the Outcomes report) or `groups` (the EU AI
35
+ Act Results) -- each with its own bundled default wording pack
36
+ (`src/wording/contract-report-outcomes.en.json`,
37
+ `src/wording/contract-report-eu-ai-act.en.json`). A host passes its own
38
+ pack as the page's `wording`; its entries replace the default pack's,
39
+ entry by entry.
40
+
41
+ **The module's own keys** sit under `card.*` (shared by both layouts: the
42
+ front block, dating, the proofs), `lines.*` (the Outcomes report only) and
43
+ `groups.*` (the EU AI Act Results only) -- plus the shared `prov.*`,
44
+ `chat.*`, `case.*` and `judge.*` prefixes. These are never contract-report/v1
45
+ section 3 keys: a pack cannot use them to set something section 3 owns, and
46
+ the module never uses a section 3 prefix for its own concepts. `card.pf.*`
47
+ is the per-claim proofs line (`card.pf.assurance`, `card.pf.assurance.line`,
48
+ `card.pf.wording`, `card.pf.wording.refused`, ...); `card.wording.refused` is
49
+ the visible notice a refused host layer draws.
50
+
51
+ **The section 3 keys this module reads**, and where each shows:
52
+
53
+ | Key | Shows |
54
+ | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
55
+ | `report.title` | The card's heading (aliased onto `lines.title` / `groups.kicker`). |
56
+ | `report.summary` | One line under the title, drawn only when set (`reportSummary`, `report-levels.ts`). |
57
+ | `group.<segment>.title` | A group's heading -- the part of a row's `requirement_ref` before its first `.` (EU AI Act obligation headings; the Outcomes report's check groups). |
58
+ | `row.<requirement_ref>.label` | A row's name, in place of the producer's label or the id made readable. |
59
+ | `row.<requirement_ref>.detail` | A row's explanation, drawn beside its name when set. |
60
+ | `row.<requirement_ref>.not_evaluable` | The note shown when a row's claims are not evaluable, in place of the module's own note. |
61
+ | `verdict.met`, `.not_met`, `.not_evaluable`, `.out_of_scope` | Aliased onto the layout's own verdict words (`lines.verdict.*` / `groups.verdict.*`, and the Outcomes proofs' `lines.pf.verdict.*`): every pill and cell that draws that verdict. |
62
+ | `tier.recomputed`, `.judged` | Aliased onto the layout's own tier badge words. |
63
+ | `grade.self-attested`, `.witnessed`, `.countersigned` | Each claim's assurance line in its proofs (`assuranceRow`); locked, like `sufficiency.*` and `status.*`. |
64
+ | `sufficiency.satisfied`, `.gap`, `.insufficient`, `.unknown` | The same assurance line. |
65
+ | `status.<value>` | The same assurance line (the claim's carrier status, lowercased). |
66
+
67
+ A word with no entry, in any layer, is shown as its raw token or
68
+ identifier -- nothing is guessed. The default layer always words the
69
+ title (`lines.title` / `groups.kicker`, which `report.title` aliases). Until
70
+ the default EU pack carries `group.*` and `row.*` words, the EU card names
71
+ obligations and tests with the producer's labels, in italics as the
72
+ producer's text.
73
+
74
+ A Result whose claims the card cannot place one by one (a requirement
75
+ judged more than once in one conversation, claims under more than one
76
+ contract, claims of another type or id shape) is drawn as the generic
77
+ Result page, with a note, so no claim is merged or left out.
78
+
79
+ **The single-contract rule.** `row.*` and `group.*` apply only when every
80
+ claim in the Result cites the same `contract_ref` (`citesOneContract`,
81
+ contract-report.ts): a pack is written for one contract, and two contracts
82
+ can reuse one `requirement_ref` for different requirements. A Result that
83
+ cites more than one contract is drawn as the generic Result page (see
84
+ above), so the rule is a second guard for callers that draw a card directly.
85
+
86
+ **The refused-layer rule.** Each wording layer is checked on its own
87
+ (digest, shape, then fit against this module's words). A layer that does
88
+ not check is refused: it contributes no words, and the card draws with the
89
+ default layer alone, a visible `card.wording.refused` line
90
+ (`data-wording="refused"`) naming the reason, and a `card.pf.wording.refused`
91
+ proofs line naming the refused digest and the base layer that was applied
92
+ instead. The presentation builder (`buildPresentation`,
93
+ `presentation-builder.ts`) still refuses to _write_ a page whose pack does
94
+ not fit -- the graceful degrade above is only the live renderer's behaviour.
95
+
25
96
  Releases follow [RELEASING.md](https://github.com/action-state-group/capsule-viewer/blob/main/RELEASING.md).
@@ -0,0 +1,18 @@
1
+ import { type ExtensionInterpreterId, type ExtensionRow } from "@action-state-group/agent-action-capsule";
2
+ /** The interpreters of the two deprecated cards, as AAC 0.7.0 named them. */
3
+ export type AliasInterpreterId = "outcome-report-card" | "compliance-card";
4
+ /** An interpreter a page of this viewer can run. */
5
+ export type PageInterpreterId = ExtensionInterpreterId | AliasInterpreterId;
6
+ /** AAC's extension row, with the alias interpreters as possible values. */
7
+ export interface PageExtensionRow extends Omit<ExtensionRow, "interpreter"> {
8
+ readonly interpreter?: PageInterpreterId;
9
+ }
10
+ /**
11
+ * AAC's extension rows, with a deprecated card's block shown as AAC 0.7.0
12
+ * showed it: interpreted by its card when that card's reader accepts the
13
+ * block and the card ran on this page (`applied`). Every other row is
14
+ * returned unchanged.
15
+ */
16
+ export declare function aliasExtensionRows(bundle: unknown, rows: readonly ExtensionRow[], applied: ReadonlySet<PageInterpreterId>): readonly PageExtensionRow[];
17
+ /** The interpreters in `applied` that AAC itself names. */
18
+ export declare function aacInterpreters(applied: ReadonlySet<PageInterpreterId>): ReadonlySet<ExtensionInterpreterId>;
@@ -0,0 +1,50 @@
1
+ // SPDX-License-Identifier: BSD-3-Clause
2
+ // The extension interpreters of the two deprecated aliases of
3
+ // contract-report/v1, defined here so the verification page reads as it did
4
+ // with agent-action-capsule 0.7.0. AAC 0.8.0 removed `outcome-report-card`
5
+ // and `compliance-card` from its `ExtensionInterpreterId` and reports an
6
+ // `outcome-report/v1` or `eu-ai-act-compliance/v1` block as uninterpreted
7
+ // (its spec/REGISTRY.md section 14). Removed with the alias path in the
8
+ // follow-up (agent-action-capsule#379, PR C2).
9
+ import { EXTENSION_SHOWN, } from "@action-state-group/agent-action-capsule";
10
+ import { readCompliancePresentation } from "./compliance-presentation.js";
11
+ import { readOutcomeReportPresentation } from "./outcome-report-presentation.js";
12
+ // AAC 0.7.0 extension-interpreters.ts, the two removed entries.
13
+ const ALIAS_INTERPRETERS = Object.freeze({
14
+ "outcome-report/v1": {
15
+ id: "outcome-report-card",
16
+ accepts: (bundle) => readOutcomeReportPresentation(bundle) !== undefined,
17
+ },
18
+ "eu-ai-act-compliance/v1": {
19
+ id: "compliance-card",
20
+ accepts: (bundle) => readCompliancePresentation(bundle) !== undefined,
21
+ },
22
+ });
23
+ /**
24
+ * AAC's extension rows, with a deprecated card's block shown as AAC 0.7.0
25
+ * showed it: interpreted by its card when that card's reader accepts the
26
+ * block and the card ran on this page (`applied`). Every other row is
27
+ * returned unchanged.
28
+ */
29
+ export function aliasExtensionRows(bundle, rows, applied) {
30
+ return rows.map((row) => {
31
+ if (row.interpreter !== undefined ||
32
+ !Object.hasOwn(ALIAS_INTERPRETERS, row.id))
33
+ return row;
34
+ const interpreter = ALIAS_INTERPRETERS[row.id];
35
+ if (!interpreter.accepts(bundle) || !applied.has(interpreter.id))
36
+ return row;
37
+ return {
38
+ id: row.id,
39
+ integrity: row.integrity,
40
+ interpreter: interpreter.id,
41
+ semantics: EXTENSION_SHOWN[row.integrity === "covered" ? "covered" : "notCovered"],
42
+ };
43
+ });
44
+ }
45
+ const isAlias = (id) => id === "outcome-report-card" || id === "compliance-card";
46
+ /** The interpreters in `applied` that AAC itself names. */
47
+ export function aacInterpreters(applied) {
48
+ return new Set([...applied].filter((id) => !isAlias(id)));
49
+ }
50
+ //# sourceMappingURL=alias-interpreters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alias-interpreters.js","sourceRoot":"","sources":["../src/alias-interpreters.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,8DAA8D;AAC9D,4EAA4E;AAC5E,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,wEAAwE;AACxE,+CAA+C;AAC/C,OAAO,EACL,eAAe,GAGhB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAajF,gEAAgE;AAChE,MAAM,kBAAkB,GAKpB,MAAM,CAAC,MAAM,CAAC;IAChB,mBAAmB,EAAE;QACnB,EAAE,EAAE,qBAAqB;QACzB,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,6BAA6B,CAAC,MAAM,CAAC,KAAK,SAAS;KACzE;IACD,yBAAyB,EAAE;QACzB,EAAE,EAAE,iBAAiB;QACrB,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,0BAA0B,CAAC,MAAM,CAAC,KAAK,SAAS;KACtE;CACF,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAe,EACf,IAA6B,EAC7B,OAAuC;IAEvC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAoB,EAAE;QACxC,IACE,GAAG,CAAC,WAAW,KAAK,SAAS;YAC7B,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,EAAE,GAAG,CAAC,EAAE,CAAC;YAE1C,OAAO,GAAG,CAAC;QACb,MAAM,WAAW,GAAG,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAE,CAAC;QAChD,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YAC9D,OAAO,GAAG,CAAC;QACb,OAAO;YACL,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,WAAW,EAAE,WAAW,CAAC,EAAE;YAC3B,SAAS,EACP,eAAe,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC;SAC1E,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,OAAO,GAAG,CAAC,EAAqB,EAA4B,EAAE,CAClE,EAAE,KAAK,qBAAqB,IAAI,EAAE,KAAK,iBAAiB,CAAC;AAE3D,2DAA2D;AAC3D,MAAM,UAAU,eAAe,CAC7B,OAAuC;IAEvC,OAAO,IAAI,GAAG,CACZ,CAAC,GAAG,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAgC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CACxE,CAAC;AACJ,CAAC"}
package/dist/browser.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  export * from "./evidence-graph-view.js";
2
- export * from "./outcome-report-view.js";
3
- export * from "./compliance-view.js";
2
+ export * from "./contract-report.js";
3
+ export * from "./contract-report-wording.js";
4
+ export { conversationStatus } from "./outcome-report-view.js";
5
+ export { obligationStatus, rowStatus } from "./compliance-view.js";
4
6
  export * from "./presentation-mount.js";
7
+ export { buildResultRoot, disclosureOf, ed25519Available, verifiedPayload, verifyDisclosureEnvelope, verifyProducerEnvelope, } from "@action-state-group/agent-action-capsule";
package/dist/browser.js CHANGED
@@ -1,11 +1,25 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  // The in-browser renderer the emitted page runs. It is published only as
3
3
  // dist/evidence-graph.iife.js (`npm run emitter:iife`), which exposes
4
- // renderEvidenceGraph, and not as a package export: under the browser
5
- // condition @action-state-group/agent-action-capsule 0.1.1 lacks modules it
6
- // imports, which only the bundling plugin (scripts/aac-browser.mjs) supplies.
4
+ // renderEvidenceGraph, and not as a package export. It bundles
5
+ // @action-state-group/agent-action-capsule (0.8.0 or later) through that
6
+ // package's own browser entry, by plain package resolution. The Go module
7
+ // ships the build as go/pageruntime.
7
8
  export * from "./evidence-graph-view.js";
8
- export * from "./outcome-report-view.js";
9
- export * from "./compliance-view.js";
9
+ export * from "./contract-report.js";
10
+ export * from "./contract-report-wording.js";
11
+ export { conversationStatus } from "./outcome-report-view.js";
12
+ export { obligationStatus, rowStatus } from "./compliance-view.js";
10
13
  export * from "./presentation-mount.js";
14
+ // The verifier functions a presentation module may call on the runtime's
15
+ // global (EvidenceGraph), beside registerPresentation: agent-action-capsule's
16
+ // own functions, re-exported by name and unchanged, so a module verifies with
17
+ // the same verifier the page does (ed25519Available is its check that the
18
+ // browser can verify Ed25519 signatures; buildResultRoot is its Result
19
+ // reader, which the Show-evidence component, static/show_evidence.js, draws
20
+ // from). This list is the runtime's contract
21
+ // with presentation modules: a name is added here only from
22
+ // agent-action-capsule's verifier, and removing one breaks the modules that
23
+ // call it.
24
+ export { buildResultRoot, disclosureOf, ed25519Available, verifiedPayload, verifyDisclosureEnvelope, verifyProducerEnvelope, } from "@action-state-group/agent-action-capsule";
11
25
  //# sourceMappingURL=browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,sEAAsE;AACtE,sEAAsE;AACtE,4EAA4E;AAC5E,8EAA8E;AAC9E,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,yEAAyE;AACzE,sEAAsE;AACtE,+DAA+D;AAC/D,yEAAyE;AACzE,0EAA0E;AAC1E,qCAAqC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACnE,cAAc,yBAAyB,CAAC;AAExC,yEAAyE;AACzE,8EAA8E;AAC9E,8EAA8E;AAC9E,0EAA0E;AAC1E,uEAAuE;AACvE,4EAA4E;AAC5E,6CAA6C;AAC7C,4DAA4D;AAC5D,4EAA4E;AAC5E,WAAW;AACX,OAAO,EACL,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,0CAA0C,CAAC"}
@@ -0,0 +1,51 @@
1
+ import type { PresentationManifest } from "./presentation-registry.js";
2
+ /**
3
+ * The seven built-in manifests of spec/presentation-contract-v0.md appendix A,
4
+ * as values. Each equals the JSON file of the same name under
5
+ * schemas/examples/presentation-manifest-v0/ (test/builtin-manifests.test.ts
6
+ * compares them when those files are present). The precedence between the
7
+ * built-in page shapes is stated here, in `forbids`, and nowhere in code:
8
+ *
9
+ * - rows first: every Result manifest forbids `spec_version:report/v1`;
10
+ * - the contract-report kind first among Result pages: the two cards and the
11
+ * generic Result page forbid `contract-report/v1`;
12
+ * - compliance only when outcome-report is not engaged: the compliance
13
+ * manifest forbids `outcome-report/v1`;
14
+ * - the generic Result page only when no card is engaged;
15
+ * - Result before graph: the graph forbids the Result profile;
16
+ * - the no-aggregate note is the one fallback.
17
+ */
18
+ export declare const BUILTIN_MANIFEST_REPORT_ROWS: PresentationManifest;
19
+ /**
20
+ * A Result root that opts into the contract-report view
21
+ * (spec/contract-report-v1.md). The core runtime ships no contract-report
22
+ * module, so this manifest draws the generic Result page. A registry that
23
+ * brings a contract-report module registers it in place of this manifest,
24
+ * never beside it (the two match the same descriptors).
25
+ */
26
+ export declare const BUILTIN_MANIFEST_RESULT_CONTRACT_REPORT: PresentationManifest;
27
+ export declare const BUILTIN_MANIFEST_RESULT_OUTCOME_REPORT: PresentationManifest;
28
+ export declare const BUILTIN_MANIFEST_RESULT_COMPLIANCE: PresentationManifest;
29
+ export declare const BUILTIN_MANIFEST_RESULT: PresentationManifest;
30
+ export declare const BUILTIN_MANIFEST_EVALUATION_SUMMARY_GRAPH: PresentationManifest;
31
+ export declare const BUILTIN_MANIFEST_NO_AGGREGATE: PresentationManifest;
32
+ /** All seven, in appendix A's table order (an order that decides nothing). */
33
+ export declare const BUILTIN_MANIFESTS: readonly PresentationManifest[];
34
+ /**
35
+ * The composition section: the generic view of a `composed/v1` block
36
+ * (members, observers, joins, composition closure, composed digest, and
37
+ * same-custody agreement shown as redundant, not corroborating). A specific
38
+ * module selected by the engaged extension alone.
39
+ *
40
+ * It is NOT one of the page manifests above, and must not be: one
41
+ * descriptor matches it together with each of the six specific page
42
+ * manifests (a Result root that also carries composed/v1, say), so the
43
+ * registration test of contract section 4.5 refuses it in that set, and it
44
+ * would equally refuse every composition-aware page module (appendix B,
45
+ * `org.example.composition-aware/v0`) that it is meant to sit beneath. It is
46
+ * resolved in the core's section registry instead, by the same algorithm,
47
+ * and renders after whichever page module the page registry selected.
48
+ */
49
+ export declare const BUILTIN_MANIFEST_COMPOSED: PresentationManifest;
50
+ /** The built-in section manifests (one today). */
51
+ export declare const BUILTIN_SECTION_MANIFESTS: readonly PresentationManifest[];
@@ -0,0 +1,196 @@
1
+ /**
2
+ * The seven built-in manifests of spec/presentation-contract-v0.md appendix A,
3
+ * as values. Each equals the JSON file of the same name under
4
+ * schemas/examples/presentation-manifest-v0/ (test/builtin-manifests.test.ts
5
+ * compares them when those files are present). The precedence between the
6
+ * built-in page shapes is stated here, in `forbids`, and nowhere in code:
7
+ *
8
+ * - rows first: every Result manifest forbids `spec_version:report/v1`;
9
+ * - the contract-report kind first among Result pages: the two cards and the
10
+ * generic Result page forbid `contract-report/v1`;
11
+ * - compliance only when outcome-report is not engaged: the compliance
12
+ * manifest forbids `outcome-report/v1`;
13
+ * - the generic Result page only when no card is engaged;
14
+ * - Result before graph: the graph forbids the Result profile;
15
+ * - the no-aggregate note is the one fallback.
16
+ */
17
+ export const BUILTIN_MANIFEST_REPORT_ROWS = Object.freeze({
18
+ spec_version: "aac.presentation-manifest/v0",
19
+ id: "aac.builtin.report-rows/v0",
20
+ presentation_api: "aac.presentation-api/v0",
21
+ runtime_min: "0.1.0",
22
+ trust_class: "trusted-executable",
23
+ requires: {
24
+ bundle_kind: "evidence-bundle/v2",
25
+ profiles: ["spec_version:report/v1"],
26
+ },
27
+ audiences: ["*"],
28
+ formats: ["html", "fragment", "embedded"],
29
+ fallback: false,
30
+ priority: 1,
31
+ executable: { carrier: "core-runtime" },
32
+ });
33
+ /**
34
+ * A Result root that opts into the contract-report view
35
+ * (spec/contract-report-v1.md). The core runtime ships no contract-report
36
+ * module, so this manifest draws the generic Result page. A registry that
37
+ * brings a contract-report module registers it in place of this manifest,
38
+ * never beside it (the two match the same descriptors).
39
+ */
40
+ export const BUILTIN_MANIFEST_RESULT_CONTRACT_REPORT = Object.freeze({
41
+ spec_version: "aac.presentation-manifest/v0",
42
+ id: "aac.builtin.result-contract-report/v0",
43
+ presentation_api: "aac.presentation-api/v0",
44
+ runtime_min: "0.1.0",
45
+ trust_class: "trusted-executable",
46
+ requires: {
47
+ bundle_kind: "evidence-bundle/v2",
48
+ profiles: ["result_version:evidence-result-v0"],
49
+ extensions: { required: ["contract-report/v1"] },
50
+ },
51
+ forbids: { profiles: ["spec_version:report/v1"] },
52
+ audiences: ["*"],
53
+ formats: ["html", "fragment", "embedded"],
54
+ fallback: false,
55
+ priority: 1,
56
+ executable: { carrier: "core-runtime" },
57
+ });
58
+ export const BUILTIN_MANIFEST_RESULT_OUTCOME_REPORT = Object.freeze({
59
+ spec_version: "aac.presentation-manifest/v0",
60
+ id: "aac.builtin.result-outcome-report/v0",
61
+ presentation_api: "aac.presentation-api/v0",
62
+ runtime_min: "0.1.0",
63
+ trust_class: "trusted-executable",
64
+ requires: {
65
+ bundle_kind: "evidence-bundle/v2",
66
+ profiles: ["result_version:evidence-result-v0"],
67
+ extensions: { required: ["outcome-report/v1"] },
68
+ },
69
+ forbids: {
70
+ profiles: ["spec_version:report/v1"],
71
+ extensions: ["contract-report/v1"],
72
+ },
73
+ audiences: ["*"],
74
+ formats: ["html", "fragment", "embedded"],
75
+ fallback: false,
76
+ priority: 1,
77
+ executable: { carrier: "core-runtime" },
78
+ });
79
+ export const BUILTIN_MANIFEST_RESULT_COMPLIANCE = Object.freeze({
80
+ spec_version: "aac.presentation-manifest/v0",
81
+ id: "aac.builtin.result-compliance/v0",
82
+ presentation_api: "aac.presentation-api/v0",
83
+ runtime_min: "0.1.0",
84
+ trust_class: "trusted-executable",
85
+ requires: {
86
+ bundle_kind: "evidence-bundle/v2",
87
+ profiles: ["result_version:evidence-result-v0"],
88
+ extensions: { required: ["eu-ai-act-compliance/v1"] },
89
+ },
90
+ forbids: {
91
+ profiles: ["spec_version:report/v1"],
92
+ extensions: ["contract-report/v1", "outcome-report/v1"],
93
+ },
94
+ audiences: ["*"],
95
+ formats: ["html", "fragment", "embedded"],
96
+ fallback: false,
97
+ priority: 1,
98
+ executable: { carrier: "core-runtime" },
99
+ });
100
+ export const BUILTIN_MANIFEST_RESULT = Object.freeze({
101
+ spec_version: "aac.presentation-manifest/v0",
102
+ id: "aac.builtin.result/v0",
103
+ presentation_api: "aac.presentation-api/v0",
104
+ runtime_min: "0.1.0",
105
+ trust_class: "trusted-executable",
106
+ requires: {
107
+ bundle_kind: "evidence-bundle/v2",
108
+ profiles: ["result_version:evidence-result-v0"],
109
+ },
110
+ forbids: {
111
+ profiles: ["spec_version:report/v1"],
112
+ extensions: [
113
+ "contract-report/v1",
114
+ "outcome-report/v1",
115
+ "eu-ai-act-compliance/v1",
116
+ ],
117
+ },
118
+ audiences: ["*"],
119
+ formats: ["html", "fragment", "embedded"],
120
+ fallback: false,
121
+ priority: 1,
122
+ executable: { carrier: "core-runtime" },
123
+ });
124
+ export const BUILTIN_MANIFEST_EVALUATION_SUMMARY_GRAPH = Object.freeze({
125
+ spec_version: "aac.presentation-manifest/v0",
126
+ id: "aac.builtin.evaluation-summary-graph/v0",
127
+ presentation_api: "aac.presentation-api/v0",
128
+ runtime_min: "0.1.0",
129
+ trust_class: "trusted-executable",
130
+ requires: {
131
+ bundle_kind: "evidence-bundle/v2",
132
+ profiles: ["spec_version:evaluation-summary/v1"],
133
+ },
134
+ forbids: { profiles: ["result_version:evidence-result-v0"] },
135
+ audiences: ["*"],
136
+ formats: ["html", "fragment", "embedded"],
137
+ fallback: false,
138
+ priority: 1,
139
+ executable: { carrier: "core-runtime" },
140
+ });
141
+ export const BUILTIN_MANIFEST_NO_AGGREGATE = Object.freeze({
142
+ spec_version: "aac.presentation-manifest/v0",
143
+ id: "aac.builtin.no-aggregate/v0",
144
+ presentation_api: "aac.presentation-api/v0",
145
+ runtime_min: "0.1.0",
146
+ trust_class: "trusted-executable",
147
+ requires: { bundle_kind: "evidence-bundle/v2" },
148
+ audiences: ["*"],
149
+ formats: ["html", "fragment", "embedded"],
150
+ fallback: true,
151
+ executable: { carrier: "core-runtime" },
152
+ });
153
+ /** All seven, in appendix A's table order (an order that decides nothing). */
154
+ export const BUILTIN_MANIFESTS = Object.freeze([
155
+ BUILTIN_MANIFEST_REPORT_ROWS,
156
+ BUILTIN_MANIFEST_RESULT_CONTRACT_REPORT,
157
+ BUILTIN_MANIFEST_RESULT_OUTCOME_REPORT,
158
+ BUILTIN_MANIFEST_RESULT_COMPLIANCE,
159
+ BUILTIN_MANIFEST_RESULT,
160
+ BUILTIN_MANIFEST_EVALUATION_SUMMARY_GRAPH,
161
+ BUILTIN_MANIFEST_NO_AGGREGATE,
162
+ ]);
163
+ /**
164
+ * The composition section: the generic view of a `composed/v1` block
165
+ * (members, observers, joins, composition closure, composed digest, and
166
+ * same-custody agreement shown as redundant, not corroborating). A specific
167
+ * module selected by the engaged extension alone.
168
+ *
169
+ * It is NOT one of the page manifests above, and must not be: one
170
+ * descriptor matches it together with each of the six specific page
171
+ * manifests (a Result root that also carries composed/v1, say), so the
172
+ * registration test of contract section 4.5 refuses it in that set, and it
173
+ * would equally refuse every composition-aware page module (appendix B,
174
+ * `org.example.composition-aware/v0`) that it is meant to sit beneath. It is
175
+ * resolved in the core's section registry instead, by the same algorithm,
176
+ * and renders after whichever page module the page registry selected.
177
+ */
178
+ export const BUILTIN_MANIFEST_COMPOSED = Object.freeze({
179
+ spec_version: "aac.presentation-manifest/v0",
180
+ id: "aac.builtin.composed/v0",
181
+ presentation_api: "aac.presentation-api/v0",
182
+ runtime_min: "0.1.0",
183
+ trust_class: "trusted-executable",
184
+ requires: {
185
+ bundle_kind: "evidence-bundle/v2",
186
+ extensions: { required: ["composed/v1"] },
187
+ },
188
+ audiences: ["*"],
189
+ formats: ["html", "fragment", "embedded"],
190
+ fallback: false,
191
+ priority: 1,
192
+ executable: { carrier: "core-runtime" },
193
+ });
194
+ /** The built-in section manifests (one today). */
195
+ export const BUILTIN_SECTION_MANIFESTS = Object.freeze([BUILTIN_MANIFEST_COMPOSED]);
196
+ //# sourceMappingURL=builtin-manifests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtin-manifests.js","sourceRoot":"","sources":["../src/builtin-manifests.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAyB,MAAM,CAAC,MAAM,CAC7E;IACE,YAAY,EAAE,8B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2
- * The compliance card's own stylesheet, trimmed to the sections this card
3
- * renders (summary, test results, findings, sessions drill-down via native
4
- * `<details>`, quality protocol, run info) and scoped under `.cc` on every
5
- * selector, so it can never leak onto, or be affected by, the verification
6
- * page or any other card on the same document.
7
- */
8
- export declare const COMPLIANCE_CSS = "\n.cc{--navy:#232F42;--gold:#E8A33D;--gold-l:#FBEFD9;--cream:#F6F2EA;--line:#E3DED3;--slate:#6B7482;--ink:#1F2733;--ok:#2E7D5B;--ok-l:#E3F1EA;--bad:#B5462F;--bad-l:#F8E6E1;--person:#5B4BA0;--person-l:#ECE8F7;--r:14px;\n font:16px/1.5 -apple-system,BlinkMacSystemFont,\"Segoe UI\",Inter,Helvetica,Arial,sans-serif;color:var(--ink);background:#fff;display:block;max-width:1080px;margin:26px auto;padding:0 28px}\n.cc *{box-sizing:border-box}\n.cc h1,.cc h2,.cc h3{font-family:Georgia,\"Iowan Old Style\",Cambria,serif;color:var(--navy);margin:0}\n.cc a{color:var(--navy);cursor:pointer}\n.cc .hd{background:var(--navy);color:#fff;padding:28px 32px;border-radius:var(--r) var(--r) 0 0;margin-top:20px}\n.cc .hd .kicker{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#C9CED6}\n.cc .hd h1{color:#fff;font-size:28px;margin:6px 0 4px}\n.cc .hd .sub{color:#DDE1E7;font-size:15px}\n.cc section{padding:28px 32px;border:1px solid var(--line);border-top:0}\n.cc section h2{font-size:21px;margin-bottom:10px}\n.cc .lede{color:var(--slate);margin:0 0 16px;max-width:760px}\n.cc table.grid{width:100%;border-collapse:collapse;font-size:14.5px}\n.cc table.grid th{text-align:left;font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--slate);border-bottom:2px solid var(--navy);padding:8px 10px}\n.cc table.grid td{border-bottom:1px solid var(--line);padding:10px;vertical-align:top}\n.cc table.grid td.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}\n.cc .kind{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;text-transform:uppercase;letter-spacing:.03em}\n.cc .kind.judged{background:var(--person-l);color:var(--person)}\n.cc .kind.recomputed{background:#E6EEF6;color:#2B5A85}\n.cc .kind.unstated{background:var(--cream);color:var(--slate)}\n.cc .tx{margin:8px 0 4px;font-size:13px}\n.cc .tx .turn{padding:3px 0;border-top:1px solid var(--line);white-space:pre-wrap}\n.cc .tx code{font-size:12px;color:var(--slate)}\n.cc .hd .na{color:var(--ink)}\n.cc .st{font-weight:700;font-size:13px}\n.cc .st.ok{color:var(--ok)}.cc .st.exc{color:var(--bad)}.cc .st.ne{color:#8A93A6}.cc .st.future{color:var(--gold)}\n.cc .fnd{border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin-bottom:12px}\n.cc .fnd .fh{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}\n.cc .fnd .fh b{color:var(--navy)}\n.cc .sev{font-size:11px;font-weight:700;padding:2px 9px;border-radius:99px;text-transform:uppercase}\n.cc .sev.high{background:var(--bad-l);color:var(--bad)}\n.cc .sev.medium{background:var(--gold-l);color:#8A6A2F}\n.cc .sev.low{background:var(--ok-l);color:var(--ok)}\n.cc .fnd table.fk{width:100%;font-size:14px}\n.cc .fnd table.fk th{text-align:left;color:var(--slate);font-weight:600;width:140px;vertical-align:top;padding:4px 0}\n.cc .fnd table.fk td{padding:4px 0}\n.cc details{margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:8px 14px}\n.cc details > summary{cursor:pointer;color:var(--navy);font-weight:600;font-size:14px}\n.cc details.session{margin:8px 0 0 16px}\n.cc .sessrow{display:flex;gap:10px;align-items:center;padding:6px 0;font-size:14px}\n.cc .sessrow code{font-size:12px;color:var(--slate)}\n.cc .tk{display:inline-block;width:20px;height:20px;border-radius:6px;text-align:center;line-height:20px;font-size:12px;margin-left:3px}\n.cc .tk.y{background:var(--ok-l);color:var(--ok)}.cc .tk.n{background:var(--bad-l);color:var(--bad)}.cc .tk.ne{background:#EDEFF2;color:#8A93A6}\n.cc .ck{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:8px 0;font-size:14px}\n.cc .ck .h{display:flex;gap:8px;align-items:center;font-weight:700;color:var(--navy)}\n.cc .ck .why{margin-top:4px;color:var(--ink)}\n.cc .ck .ev{margin-top:4px;font-size:12px;color:var(--slate)}\n.cc .ck .ev code{background:var(--cream);padding:1px 6px;border-radius:5px;margin-right:4px}\n.cc .na{margin-top:16px;font-size:13px;color:var(--slate);background:var(--cream);border-radius:10px;padding:10px 14px}\n.cc .ran{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}\n.cc .ran .it{background:var(--cream);border-radius:10px;padding:10px 12px}\n.cc .ran .k{font-size:12.5px;color:var(--slate)}\n.cc .ran .v{font-weight:600;color:var(--navy);word-break:break-word;font-size:13.5px}\n.cc .applic{font-size:13px;color:var(--slate)}\n@media (max-width:760px){.cc .ran{grid-template-columns:1fr}}\n";
1
+ export declare const COMPLIANCE_CSS: string;
@@ -6,14 +6,18 @@
6
6
  * selector, so it can never leak onto, or be affected by, the verification
7
7
  * page or any other card on the same document.
8
8
  */
9
+ import { levelCss } from "./report-levels.js";
10
+ import { COMPLIANCE_FRAME_VARS } from "./frame-tokens.generated.js";
11
+ import { frontCss } from "./report-front-styles.js";
9
12
  export const COMPLIANCE_CSS = `
10
- .cc{--navy:#232F42;--gold:#E8A33D;--gold-l:#FBEFD9;--cream:#F6F2EA;--line:#E3DED3;--slate:#6B7482;--ink:#1F2733;--ok:#2E7D5B;--ok-l:#E3F1EA;--bad:#B5462F;--bad-l:#F8E6E1;--person:#5B4BA0;--person-l:#ECE8F7;--r:14px;
13
+ .cc{${COMPLIANCE_FRAME_VARS}
11
14
  font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif;color:var(--ink);background:#fff;display:block;max-width:1080px;margin:26px auto;padding:0 28px}
12
15
  .cc *{box-sizing:border-box}
13
16
  .cc h1,.cc h2,.cc h3{font-family:Georgia,"Iowan Old Style",Cambria,serif;color:var(--navy);margin:0}
14
17
  .cc a{color:var(--navy);cursor:pointer}
15
18
  .cc .hd{background:var(--navy);color:#fff;padding:28px 32px;border-radius:var(--r) var(--r) 0 0;margin-top:20px}
16
19
  .cc .hd .kicker{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#C9CED6}
20
+ .cc p.kicker[data-regulation]{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--slate);margin:0 0 6px}
17
21
  .cc .hd h1{color:#fff;font-size:28px;margin:6px 0 4px}
18
22
  .cc .hd .sub{color:#DDE1E7;font-size:15px}
19
23
  .cc section{padding:28px 32px;border:1px solid var(--line);border-top:0}
@@ -32,7 +36,7 @@ export const COMPLIANCE_CSS = `
32
36
  .cc .tx code{font-size:12px;color:var(--slate)}
33
37
  .cc .hd .na{color:var(--ink)}
34
38
  .cc .st{font-weight:700;font-size:13px}
35
- .cc .st.ok{color:var(--ok)}.cc .st.exc{color:var(--bad)}.cc .st.ne{color:#8A93A6}.cc .st.future{color:var(--gold)}
39
+ .cc .st.ok{color:var(--ok)}.cc .st.exc{color:var(--bad)}.cc .st.ne{color:#8A93A6}
36
40
  .cc .fnd{border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin-bottom:12px}
37
41
  .cc .fnd .fh{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
38
42
  .cc .fnd .fh b{color:var(--navy)}
@@ -45,7 +49,6 @@ export const COMPLIANCE_CSS = `
45
49
  .cc .fnd table.fk td{padding:4px 0}
46
50
  .cc details{margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:8px 14px}
47
51
  .cc details > summary{cursor:pointer;color:var(--navy);font-weight:600;font-size:14px}
48
- .cc details.session{margin:8px 0 0 16px}
49
52
  .cc .sessrow{display:flex;gap:10px;align-items:center;padding:6px 0;font-size:14px}
50
53
  .cc .sessrow code{font-size:12px;color:var(--slate)}
51
54
  .cc .tk{display:inline-block;width:20px;height:20px;border-radius:6px;text-align:center;line-height:20px;font-size:12px;margin-left:3px}
@@ -61,6 +64,41 @@ export const COMPLIANCE_CSS = `
61
64
  .cc .ran .k{font-size:12.5px;color:var(--slate)}
62
65
  .cc .ran .v{font-weight:600;color:var(--navy);word-break:break-word;font-size:13.5px}
63
66
  .cc .applic{font-size:13px;color:var(--slate)}
67
+ .cc table.sum tbody tr.ob td{background:var(--cream);border-top:2px solid var(--navy);padding:12px 10px}
68
+ .cc table.sum .obn{font-size:16px;color:var(--navy)}
69
+ .cc table.sum .obn .art{font-family:Georgia,Cambria,serif}
70
+ .cc table.sum .plain{font-size:13.5px;color:var(--ink);margin-top:4px;max-width:720px}
71
+ .cc table.sum tr.test td.tn{padding-left:22px}
72
+ .cc table.sum .tnh{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
73
+ .cc table.sum .tnh b{color:var(--navy)}
74
+ .cc table.sum td .applic{margin-top:4px}
75
+ .cc .fnd{margin:8px 0 0;padding:8px 12px;border-color:var(--bad-l);background:#FDF8F6}
76
+ .cc .fnd .fh{margin-bottom:4px}
77
+ .cc .fnd .rec{font-size:13.5px}
78
+ .cc .fnd .own{font-size:12.5px;color:var(--slate);margin-top:2px}
79
+ .cc .ck .h .tname{color:var(--navy)}
80
+ .cc .ck .h .applic{font-weight:400}
81
+ .cc .rp-s{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}
82
+ .cc .rp-s h3{font-size:17px;margin:0 0 8px}
83
+ .cc .pf-b .ev{font-size:12px;color:var(--slate);margin:4px 0;word-break:break-all}
84
+ .cc .pf-b .ev code{background:var(--cream);padding:1px 6px;border-radius:5px;margin-right:4px;font-size:11.5px}
85
+ .cc .obd{margin:10px 0 16px}
64
86
  @media (max-width:760px){.cc .ran{grid-template-columns:1fr}}
87
+ ` +
88
+ levelCss("cc") +
89
+ frontCss(".cc") +
90
+ // The page layout (one left edge, bordered cards 16px apart, the header
91
+ // on white like the Outcomes report's): last, so it wins over the rules
92
+ // above. The page colour is the shell's (emitter-shell.html).
93
+ `
94
+ .cc{background:transparent;padding:0;margin:0 auto;display:flow-root}
95
+ .cc .l0-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:40px var(--inset);margin:16px 0}
96
+ .cc .l0-card .hd{background:transparent;color:var(--ink);padding:0;margin:0 0 24px;border-radius:0}
97
+ .cc .l0-card .hd h1{color:var(--navy);font-size:30px;margin:0}
98
+ .cc .l0-card .hd .sub{color:var(--slate);margin-top:8px}
99
+ .cc .l0-card section.agg{border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:0}
100
+ .cc > section{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:32px var(--inset);margin:0 0 16px}
101
+ .cc > section.findings{padding:32px calc(var(--inset) - 3px)}
102
+ @media (min-width:821px){.cc table.grid th{white-space:nowrap}}
65
103
  `;
66
104
  //# sourceMappingURL=compliance-styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compliance-styles.js","sourceRoot":"","sources":["../src/compliance-styles.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD7B,CAAC"}
1
+ {"version":3,"file":"compliance-styles.js","sourceRoot":"","sources":["../src/compliance-styles.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC;;;;;;GAMG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,CAAC,MAAM,cAAc,GACzB;MACI,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0E1B;IACC,QAAQ,CAAC,IAAI,CAAC;IACd,QAAQ,CAAC,KAAK,CAAC;IACf,wEAAwE;IACxE,wEAAwE;IACxE,8DAA8D;IAC9D;;;;;;;;;;CAUD,CAAC"}
@@ -1,6 +1,46 @@
1
1
  import type { BundleVerificationResult } from "@action-state-group/agent-action-capsule";
2
2
  import { type ComplianceModel, type ComplianceFindingModel, type ObligationModel, type ObligationRowModel, type Session, type SessionTest } from "./compliance.js";
3
3
  import type { CompliancePresentation } from "./compliance-presentation.js";
4
+ import { type Words } from "./contract-report-wording.js";
4
5
  import type { ResultRoot } from "@action-state-group/agent-action-capsule";
5
- export declare function renderCompliancePage(result: ResultRoot, presentation: CompliancePresentation, _bundle: unknown, _verified: BundleVerificationResult, root: HTMLElement): void;
6
+ /**
7
+ * An obligation's status, from the sealed counts alone. Its applicability
8
+ * (in force, or from a later date) is the producer's mapping: it is never
9
+ * drawn in this pill, which speaks only for the records, and is shown
10
+ * instead in the producer's own italic line beside the title.
11
+ *
12
+ * "No exceptions", in the ok tone, only when every one of its tests was met
13
+ * by at least one session and no session's result for it was not met: an
14
+ * obligation one of whose tests no session met (every result undecided,
15
+ * unverified or absent) does not read clean. When none of its tests could
16
+ * be checked it reads "Could not be checked"; when some could not, the pill
17
+ * is neutral and says how many.
18
+ */
19
+ export declare function obligationStatus(obligation: ObligationModel, w?: Words): {
20
+ cls: string;
21
+ text: string;
22
+ };
23
+ /** A test's result in the summary: a status, and an optional note under it. */
24
+ export declare function rowStatus(row: ObligationRowModel, w?: Words): {
25
+ cls: string;
26
+ text: string;
27
+ note?: string;
28
+ producerNote?: true;
29
+ };
30
+ /** The `groups` grouping's page wrapper: its element, class, page name and stylesheet. */
31
+ export declare const GROUPS_FRAME: {
32
+ readonly tag: "div";
33
+ readonly className: "cc";
34
+ readonly page: "compliance";
35
+ readonly css: string;
36
+ };
37
+ /**
38
+ * Draw the `groups` grouping into `wrapper` (contract-report.ts made it and
39
+ * put its stylesheet in it). Every word is `w`'s.
40
+ */
41
+ export declare function drawGroups(levels: {
42
+ readonly L0: HTMLElement;
43
+ readonly L1: HTMLElement;
44
+ readonly L2: HTMLElement;
45
+ }, result: ResultRoot, presentation: CompliancePresentation, bundle: unknown, verified: BundleVerificationResult, w: Words): Promise<void>;
6
46
  export type { ComplianceModel, ComplianceFindingModel, ObligationModel, ObligationRowModel, Session, SessionTest, };