@action-state-group/capsule-viewer 0.7.0 → 0.9.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 (61) hide show
  1. package/README.md +6 -1
  2. package/dist/browser.d.ts +1 -0
  3. package/dist/browser.js +5 -0
  4. package/dist/browser.js.map +1 -1
  5. package/dist/compliance-styles.js +7 -0
  6. package/dist/compliance-styles.js.map +1 -1
  7. package/dist/compliance-view.d.ts +4 -3
  8. package/dist/compliance-view.js +145 -90
  9. package/dist/compliance-view.js.map +1 -1
  10. package/dist/contract-report-wording.d.ts +2 -1
  11. package/dist/contract-report-wording.js +41 -3
  12. package/dist/contract-report-wording.js.map +1 -1
  13. package/dist/contract-report.d.ts +16 -1
  14. package/dist/contract-report.js +31 -3
  15. package/dist/contract-report.js.map +1 -1
  16. package/dist/core-strip.d.ts +1 -1
  17. package/dist/core-strip.js +7 -4
  18. package/dist/core-strip.js.map +1 -1
  19. package/dist/emitter-shell.html +16 -0
  20. package/dist/evidence-contract.d.ts +61 -0
  21. package/dist/evidence-contract.js +83 -0
  22. package/dist/evidence-contract.js.map +1 -0
  23. package/dist/evidence-graph-view.d.ts +10 -0
  24. package/dist/evidence-graph-view.js +48 -26
  25. package/dist/evidence-graph-view.js.map +1 -1
  26. package/dist/evidence-graph.iife.js +2872 -1289
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +1 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/outcome-report-styles.js +9 -0
  31. package/dist/outcome-report-styles.js.map +1 -1
  32. package/dist/outcome-report-view.d.ts +21 -6
  33. package/dist/outcome-report-view.js +350 -154
  34. package/dist/outcome-report-view.js.map +1 -1
  35. package/dist/presentation-builder.d.ts +14 -0
  36. package/dist/presentation-builder.js +45 -1
  37. package/dist/presentation-builder.js.map +1 -1
  38. package/dist/presentation-fragment.d.ts +3 -0
  39. package/dist/presentation-fragment.js +9 -0
  40. package/dist/presentation-fragment.js.map +1 -1
  41. package/dist/presentation-mount.d.ts +3 -0
  42. package/dist/presentation-mount.js +2 -0
  43. package/dist/presentation-mount.js.map +1 -1
  44. package/dist/reader-witnesses.d.ts +39 -0
  45. package/dist/reader-witnesses.js +111 -0
  46. package/dist/reader-witnesses.js.map +1 -0
  47. package/dist/report-legend.d.ts +6 -7
  48. package/dist/report-legend.js +16 -9
  49. package/dist/report-legend.js.map +1 -1
  50. package/dist/report-levels.d.ts +11 -0
  51. package/dist/report-levels.js +24 -1
  52. package/dist/report-levels.js.map +1 -1
  53. package/dist/spot-check.js +10 -5
  54. package/dist/spot-check.js.map +1 -1
  55. package/dist/subject-history.d.ts +77 -0
  56. package/dist/subject-history.js +439 -0
  57. package/dist/subject-history.js.map +1 -0
  58. package/dist/viewer-build.js +2 -2
  59. package/dist/wording/contract-report-eu-ai-act.en.json +18 -1
  60. package/dist/wording/contract-report-outcomes.en.json +73 -6
  61. package/package.json +2 -2
@@ -0,0 +1,439 @@
1
+ import { levelToggle } from "./report-levels.js";
2
+ /**
3
+ * Same customer in this report (Terms Pack canvas, Outcomes frame 5,
4
+ * capsule-viewer#122). One customer handle across the conversations of the
5
+ * Result, each with its terms, request, band and outcome, drawn from the
6
+ * pack-namespaced member the producer writes on the day Result
7
+ * (`x-<pack>.subject_history`, evidencebook-skills#89 and #92: no AAC
8
+ * vocabulary).
9
+ *
10
+ * Two tiers (`handle_scope.tier`):
11
+ *
12
+ * operator the handle and `follow_up_of` are drawn: the slice of one
13
+ * customer, a timeline with the follow-up link, tiles. The page is
14
+ * the holder's own preview, so it speaks to "you".
15
+ * shared labels, band and halves only. No handle, no follow_up_of, so no
16
+ * page says which conversations are one customer; a shared copy's
17
+ * handle would let two receivers link the same customer until
18
+ * per-share salting exists (evidencebook-skills#93). The viewer
19
+ * ignores both fields at any tier but `operator`, whatever the
20
+ * document says.
21
+ *
22
+ * Read from the verified Result document, never invented: a field the
23
+ * document lacks is not drawn, and a count is never drawn without the number
24
+ * it is of. What the bundle does not carry is named in a locked line.
25
+ */
26
+ const HEX64 = /^[0-9a-f]{64}$/u;
27
+ const BAND = /^e\+(\d{1,2})$/u;
28
+ const MAX_LABELS = 8;
29
+ const MAX_LABEL = 60;
30
+ /** The member of a Result document that carries the slice: `x-<pack>`. */
31
+ const EXTENSION = /^x-[a-z0-9][a-z0-9._-]*$/u;
32
+ const isObj = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
33
+ function str(value, max) {
34
+ return typeof value === "string" && value.length > 0 && value.length <= max
35
+ ? value
36
+ : undefined;
37
+ }
38
+ function readScope(value) {
39
+ if (!isObj(value))
40
+ return undefined;
41
+ const pack = str(value.pack, 120);
42
+ const salting = str(value.salting, 60);
43
+ const saltId = str(value.salt_id, 120);
44
+ if (pack === undefined ||
45
+ salting === undefined ||
46
+ saltId === undefined ||
47
+ (value.tier !== "operator" && value.tier !== "shared"))
48
+ return undefined;
49
+ return { pack, tier: value.tier, salting, saltId };
50
+ }
51
+ function readEntry(value, operator) {
52
+ if (!isObj(value))
53
+ return undefined;
54
+ const labels = value.request_labels;
55
+ if (!Array.isArray(labels) ||
56
+ labels.length > MAX_LABELS ||
57
+ labels.some((l) => str(l, MAX_LABEL) === undefined))
58
+ return undefined;
59
+ let bandExponent;
60
+ if (value.usd_band !== undefined) {
61
+ const band = typeof value.usd_band === "string" ? BAND.exec(value.usd_band) : null;
62
+ if (band === null)
63
+ return undefined;
64
+ bandExponent = Number(band[1]);
65
+ }
66
+ let halves;
67
+ if (value.halves !== undefined) {
68
+ const h = value.halves;
69
+ if (!isObj(h) ||
70
+ !Number.isSafeInteger(h.present) ||
71
+ !Number.isSafeInteger(h.of) ||
72
+ h.present < 0 ||
73
+ h.of < 1 ||
74
+ h.present > h.of)
75
+ return undefined;
76
+ halves = { present: h.present, of: h.of };
77
+ }
78
+ let handle;
79
+ let followUpOf;
80
+ if (operator) {
81
+ if (value.customer_handle !== undefined) {
82
+ if (typeof value.customer_handle !== "string" ||
83
+ !HEX64.test(value.customer_handle))
84
+ return undefined;
85
+ handle = value.customer_handle;
86
+ }
87
+ if (value.follow_up_of !== undefined) {
88
+ followUpOf = str(value.follow_up_of, 200);
89
+ if (followUpOf === undefined)
90
+ return undefined;
91
+ }
92
+ }
93
+ return {
94
+ requestLabels: labels,
95
+ ...(bandExponent === undefined ? {} : { bandExponent }),
96
+ ...(halves === undefined ? {} : { halves }),
97
+ ...(handle === undefined ? {} : { handle }),
98
+ ...(followUpOf === undefined ? {} : { followUpOf }),
99
+ };
100
+ }
101
+ /**
102
+ * The slice a Result document carries, or undefined when it carries none or
103
+ * says it twice (two `x-` members with a `subject_history`: which is this
104
+ * report's is not the viewer's to guess). An entry that does not read whole
105
+ * is dropped whole. The handle and `follow_up_of` are read only when the
106
+ * document's own `handle_scope.tier` is `operator`.
107
+ */
108
+ export function readSubjectHistory(document) {
109
+ if (!isObj(document))
110
+ return undefined;
111
+ const found = Object.entries(document).filter(([key, member]) => EXTENSION.test(key) && isObj(member) && isObj(member.subject_history));
112
+ if (found.length !== 1)
113
+ return undefined;
114
+ const block = found[0][1].subject_history;
115
+ if (!isObj(block.conversations))
116
+ return undefined;
117
+ const scope = readScope(block.handle_scope);
118
+ const operator = scope?.tier === "operator";
119
+ const entries = new Map();
120
+ for (const [id, value] of Object.entries(block.conversations)) {
121
+ const entry = readEntry(value, operator);
122
+ if (entry !== undefined)
123
+ entries.set(id, entry);
124
+ }
125
+ if (entries.size === 0)
126
+ return undefined;
127
+ return {
128
+ tier: operator ? "operator" : "shared",
129
+ ...(operator && scope !== undefined ? { scope } : {}),
130
+ entries,
131
+ };
132
+ }
133
+ /** `10^n` to `10^(n+1) - 1`, as dollars: `e+1` is `$10-99`. */
134
+ export function usdRange(exponent) {
135
+ const low = 10n ** BigInt(exponent);
136
+ const high = 10n ** BigInt(exponent + 1) - 1n;
137
+ return `$${low.toLocaleString("en-US")}-${high.toLocaleString("en-US")}`;
138
+ }
139
+ function el(tag, className, text) {
140
+ const node = document.createElement(tag);
141
+ if (className !== "")
142
+ node.className = className;
143
+ if (text !== undefined)
144
+ node.textContent = text;
145
+ return node;
146
+ }
147
+ const fmt = (n) => n.toLocaleString("en-US");
148
+ function dayNumber(date) {
149
+ return Date.parse(`${date}T00:00:00Z`) / 86_400_000;
150
+ }
151
+ function dateWords(date, w) {
152
+ const m = /^(\d{4})-(\d{2})-(\d{2})$/u.exec(date);
153
+ if (m === null)
154
+ return date;
155
+ return `${w.t(`calendar.month.${Number(m[2])}`)} ${Number(m[3])}`;
156
+ }
157
+ const when = (c, w) => c.time === undefined
158
+ ? dateWords(c.date, w)
159
+ : `${dateWords(c.date, w)} · ${c.time}`;
160
+ const requestOf = (e, w) => e.requestLabels.length === 0
161
+ ? w.t("lines.subject.request.none")
162
+ : e.requestLabels.join(", ");
163
+ const bandOf = (e, w) => e.bandExponent === undefined
164
+ ? w.t("lines.subject.band.none")
165
+ : w.t("lines.subject.band", { range: usdRange(e.bandExponent) });
166
+ const halvesOf = (e, w) => e.halves === undefined
167
+ ? w.t("lines.subject.halves.none")
168
+ : w.t("lines.subject.halves", {
169
+ present: fmt(e.halves.present),
170
+ of: fmt(e.halves.of),
171
+ });
172
+ /** `3f9a1c…d21e`: the head and tail of the handle, enough to tell two apart on the line of identity; `data-handle` holds the whole operator-tier value. */
173
+ export const shortHandle = (handle) => `${handle.slice(0, 6)}…${handle.slice(-4)}`;
174
+ function squares(c) {
175
+ const box = el("span", "sh-sq");
176
+ for (const term of c.terms) {
177
+ const sq = el("i", `sq ${term.tone}`);
178
+ sq.dataset.term = term.ref;
179
+ sq.title = term.label;
180
+ box.append(sq);
181
+ }
182
+ return box;
183
+ }
184
+ function card(c, w) {
185
+ const body = el("div", "sh-card");
186
+ const happened = el("div", "sh-col");
187
+ happened.append(el("h5", "sh-h", w.t("lines.subject.card.happened")));
188
+ happened.append(el("p", "", c.turns === undefined || c.calls === undefined
189
+ ? w.t("lines.subject.card.no-transcript")
190
+ : w.t("lines.subject.card.counts", {
191
+ turns: w.p("spot.turns", c.turns, { n: fmt(c.turns) }),
192
+ calls: w.p("chat.calls", c.calls, { n: fmt(c.calls) }),
193
+ })));
194
+ const terms = el("div", "sh-col");
195
+ terms.append(el("h5", "sh-h", w.t("lines.subject.card.terms")));
196
+ if (c.open.length === 0)
197
+ terms.append(el("p", "", w.t("lines.subject.card.all-met")));
198
+ for (const o of c.open) {
199
+ terms.append(el("p", "sh-term", o.label));
200
+ if (o.wording !== "")
201
+ terms.append(el("p", "sh-sub", o.wording));
202
+ }
203
+ const verdict = el("div", "sh-col");
204
+ verdict.append(el("h5", "sh-h", w.t("lines.subject.card.verdict")));
205
+ if (c.open.length === 0)
206
+ verdict.append(el("p", "", c.outcome.word));
207
+ for (const o of c.open) {
208
+ const line = el("p", "");
209
+ line.append(el("span", `pill ${o.tone}`, o.verdict), " ", o.note);
210
+ verdict.append(line);
211
+ }
212
+ body.append(happened, terms, verdict);
213
+ return body;
214
+ }
215
+ function tile(className, big, caption) {
216
+ const box = el("div", `sh-tile ${className}`);
217
+ box.append(el("b", "", big), el("span", "", caption));
218
+ return box;
219
+ }
220
+ /** One customer's block: the line of identity, four tiles, the timeline, the table and its legend. */
221
+ function customerBlock(handle, rows, history, reportTotal, w) {
222
+ const block = el("article", "sh-cust");
223
+ block.dataset.handle = handle;
224
+ const n = rows.length;
225
+ const count = (s) => rows.filter((r) => r.status === s).length;
226
+ // The identity line: the handle, its scope, and the halves present, every
227
+ // count beside what it is of.
228
+ const core = el("p", "sh-core");
229
+ core.append(el("b", "", w.t("lines.subject.core.customer", { handle: shortHandle(handle) })));
230
+ const scope = history.scope;
231
+ if (scope !== undefined)
232
+ core.append(` · ${w.t("lines.subject.core.scope", {
233
+ pack: scope.pack,
234
+ tier: scope.tier,
235
+ salting: scope.salting,
236
+ salt: scope.saltId,
237
+ })}`);
238
+ const halves = rows.flatMap((r) => {
239
+ const h = history.entries.get(r.id)?.halves;
240
+ return h === undefined ? [] : [h];
241
+ });
242
+ if (halves.length > 0)
243
+ core.append(` · ${w.t("lines.subject.core.halves", {
244
+ present: fmt(halves.reduce((a, h) => a + h.present, 0)),
245
+ of: fmt(halves.reduce((a, h) => a + h.of, 0)),
246
+ k: fmt(halves.length),
247
+ n: fmt(n),
248
+ })}`);
249
+ block.append(core);
250
+ const dates = rows.map((r) => r.date).sort();
251
+ const tiles = el("div", "sh-tiles");
252
+ const of = (k) => w.t("lines.subject.share", { count: fmt(k), total: fmt(n) });
253
+ tiles.append(tile("all", fmt(n), w.t("lines.subject.tile.conversations", {
254
+ first: dateWords(dates[0], w),
255
+ last: dateWords(dates[dates.length - 1], w),
256
+ total: fmt(reportTotal),
257
+ })), tile("ok", of(count("resolved")), w.t("lines.subject.tile.resolved")), tile("bad", of(count("missed")), w.t("lines.subject.tile.missed")), tile("ne", of(count("undecided")), w.t("lines.subject.tile.undecided")));
258
+ block.append(tiles);
259
+ const unverified = count("unverified");
260
+ const nothing = count("nothing-applied");
261
+ if (unverified + nothing > 0) {
262
+ const rest = [
263
+ ...(unverified > 0
264
+ ? [
265
+ w.t("lines.subject.note.unverified", {
266
+ n: fmt(unverified),
267
+ total: fmt(n),
268
+ }),
269
+ ]
270
+ : []),
271
+ ...(nothing > 0
272
+ ? [
273
+ w.t("lines.subject.note.nothing-applied", {
274
+ n: fmt(nothing),
275
+ total: fmt(n),
276
+ }),
277
+ ]
278
+ : []),
279
+ ];
280
+ block.append(el("p", "sh-note", rest.join(" ")));
281
+ }
282
+ block.append(el("h3", "sh-head", w.t("lines.subject.headline", { n: fmt(n) })));
283
+ block.append(el("p", "sh-lede", w.t("lines.subject.explain", { n: fmt(n) })));
284
+ block.append(timeline(rows, history, w));
285
+ block.append(table(rows, history, w));
286
+ const legend = el("p", "sh-legend");
287
+ for (const [tone, key] of [
288
+ ["ok", "met"],
289
+ ["bad", "not-met"],
290
+ ["ne", "undecided"],
291
+ ]) {
292
+ const item = el("span", "sh-key");
293
+ item.append(el("i", `sq ${tone}`), w.t(`lines.subject.legend.${key}`));
294
+ legend.append(item);
295
+ }
296
+ legend.append(el("span", "sh-key", w.t("lines.subject.legend.order")));
297
+ block.append(legend);
298
+ return block;
299
+ }
300
+ function timeline(rows, history, w) {
301
+ const section = el("div", "sh-time");
302
+ section.append(el("h3", "sh-head", w.t("lines.subject.timeline.title")));
303
+ const first = dayNumber(rows[0].date);
304
+ const span = dayNumber(rows[rows.length - 1].date) - first;
305
+ const at = (c) => span <= 0 ? 50 : ((dayNumber(c.date) - first) / span) * 100;
306
+ const track = el("div", "sh-track");
307
+ const byId = new Map(rows.map((r) => [r.id, r]));
308
+ const list = el("ol", "sh-steps");
309
+ for (const c of rows) {
310
+ const dot = el("i", `sh-dot ${c.outcome.tone}`);
311
+ dot.style.setProperty("--at", `${at(c).toFixed(2)}%`);
312
+ dot.dataset.conversation = c.id;
313
+ track.append(dot);
314
+ const entry = history.entries.get(c.id);
315
+ const step = el("li", "", `${when(c, w)} · ${requestOf(entry, w)} · `);
316
+ step.append(el("span", `pill ${c.outcome.tone}`, c.outcome.word));
317
+ list.append(step);
318
+ }
319
+ // The dashed link joins a follow-up to the earlier conversation it cites,
320
+ // when both are this customer's and the earlier one is not later.
321
+ for (const c of rows) {
322
+ const target = byId.get(history.entries.get(c.id)?.followUpOf ?? "");
323
+ if (target === undefined || target.id === c.id || target.date > c.date)
324
+ continue;
325
+ const days = dayNumber(c.date) - dayNumber(target.date);
326
+ const link = el("span", "sh-link");
327
+ link.dataset.followUp = c.id;
328
+ link.dataset.of = target.id;
329
+ link.style.setProperty("--from", `${at(target).toFixed(2)}%`);
330
+ link.style.setProperty("--to", `${at(c).toFixed(2)}%`);
331
+ link.append(el("em", "", days === 0
332
+ ? w.t("lines.subject.follow.same-day")
333
+ : w.p("lines.subject.follow", days, { n: fmt(days) })));
334
+ track.append(link);
335
+ }
336
+ section.append(track, list, el("p", "sh-note", w.t("lines.subject.timeline.note")));
337
+ return section;
338
+ }
339
+ function table(rows, history, w) {
340
+ const section = el("div", "sh-table");
341
+ section.append(el("h3", "sh-head", w.t("lines.subject.table.title")));
342
+ const head = el("div", "sh-row sh-thead");
343
+ for (const key of ["when", "request", "terms", "band", "halves", "outcome"])
344
+ head.append(el("span", "", key === "terms"
345
+ ? w.t("lines.subject.col.terms", {
346
+ n: fmt(Math.max(...rows.map((r) => r.terms.length))),
347
+ })
348
+ : w.t(`lines.subject.col.${key}`)));
349
+ section.append(head);
350
+ for (const c of rows) {
351
+ const entry = history.entries.get(c.id);
352
+ const summary = el("span", "sh-row");
353
+ summary.append(el("span", "", when(c, w)), el("span", "", requestOf(entry, w)), squares(c), el("span", "sh-band", bandOf(entry, w)), el("span", "", halvesOf(entry, w)));
354
+ const outcome = el("span", `pill ${c.outcome.tone}`, c.outcome.word);
355
+ summary.append(outcome);
356
+ const row = levelToggle(2, summary, () => card(c, w), {
357
+ className: "sh-conv",
358
+ });
359
+ row.dataset.conversation = c.id;
360
+ section.append(row);
361
+ }
362
+ return section;
363
+ }
364
+ /**
365
+ * The section: the slice of every customer with two or more conversations at
366
+ * the operator tier, else (shared, or no handle) one table of each
367
+ * conversation's request, band and halves. Undefined when nothing is drawn.
368
+ * `rows` are the Result's conversations as the Outcomes grouping reads them;
369
+ * `reportTotal` is how many the Result holds, the denominator of every slice.
370
+ */
371
+ export function renderSubjectHistory(rows, history, reportTotal, w) {
372
+ const drawn = rows
373
+ .filter((r) => history.entries.has(r.id))
374
+ .sort((a, b) => a.date === b.date ? (a.id < b.id ? -1 : 1) : a.date < b.date ? -1 : 1);
375
+ if (drawn.length === 0)
376
+ return undefined;
377
+ const section = el("section", "sec sh");
378
+ section.dataset.section = "subject-history";
379
+ section.dataset.tier = history.tier;
380
+ section.append(el("h2", "sh-title", w.t("lines.subject.title")));
381
+ if (history.tier === "operator") {
382
+ const groups = new Map();
383
+ for (const r of drawn) {
384
+ const handle = history.entries.get(r.id)?.handle;
385
+ if (handle === undefined)
386
+ continue;
387
+ groups.set(handle, [...(groups.get(handle) ?? []), r]);
388
+ }
389
+ const repeat = [...groups].filter(([, list]) => list.length >= 2);
390
+ section.append(el("p", "sh-slice", w.t("lines.subject.slice.operator")));
391
+ if (repeat.length === 0)
392
+ section.append(el("p", "sh-lede", w.t("lines.subject.none")));
393
+ repeat.sort((a, b) => b[1].length - a[1].length || (a[0] < b[0] ? -1 : 1));
394
+ for (const [handle, list] of repeat)
395
+ section.append(customerBlock(handle, list, history, reportTotal, w));
396
+ }
397
+ else {
398
+ section.append(el("p", "sh-slice", w.t("lines.subject.slice.shared")));
399
+ section.append(table(drawn, history, w));
400
+ }
401
+ section.append(el("p", "sh-gap", w.t("lines.subject.gap")));
402
+ return section;
403
+ }
404
+ /** The section's stylesheet, part of the outcome report's. */
405
+ export const SUBJECT_HISTORY_CSS = `
406
+ .oi .sh{max-width:1080px;margin:16px auto;padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:var(--r)}
407
+ .oi .sh-title{font-family:Georgia,"Iowan Old Style",Cambria,serif;font-size:22px;margin:0 0 10px}
408
+ .oi .sh-slice{background:var(--gold-l);border:1px solid #F0D7A8;border-radius:8px;padding:8px 12px;font-size:13px;margin:0 0 14px}
409
+ .oi .sh-cust{margin:0 0 22px;padding:14px 0 0;border-top:1px solid var(--line)}
410
+ .oi .sh-core{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:var(--slate);margin:0 0 10px;overflow-wrap:anywhere}
411
+ .oi .sh-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 12px}
412
+ .oi .sh-tile{display:flex;flex-direction:column;gap:4px;background:var(--cream);border-radius:10px;padding:10px 14px}
413
+ .oi .sh-tile b{font-family:Georgia,"Iowan Old Style",Cambria,serif;font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}
414
+ .oi .sh-tile span{font-size:12.5px;color:var(--slate)}
415
+ .oi .sh-tile.ok b{color:var(--ok)}.oi .sh-tile.bad b{color:var(--bad)}
416
+ .oi .sh-head{font-family:Georgia,"Iowan Old Style",Cambria,serif;font-size:18px;margin:16px 0 8px}
417
+ .oi .sh-lede,.oi .sh-note,.oi .sh-gap{font-size:13px;color:var(--slate);margin:6px 0}
418
+ .oi .sh-track{position:relative;height:34px;margin:8px 12px 4px;border-bottom:2px solid var(--line)}
419
+ .oi .sh-dot{position:absolute;bottom:-7px;left:var(--at);width:12px;height:12px;margin-left:-6px;border-radius:50%;border:2px solid var(--slate);background:#fff}
420
+ .oi .sh-dot.ok{border-color:var(--ok)}.oi .sh-dot.bad{border-color:var(--bad)}
421
+ .oi .sh-link{position:absolute;bottom:2px;left:var(--from);width:calc(var(--to) - var(--from));border-top:2px dashed var(--bad);text-align:center}
422
+ .oi .sh-link em{position:relative;top:-20px;font-size:11px;font-style:normal;color:var(--slate);white-space:nowrap}
423
+ .oi .sh-steps{margin:10px 0 0;padding-left:18px;font-size:13px}
424
+ .oi .sh-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(110px,1.4fr) minmax(130px,2fr) minmax(70px,.8fr) minmax(60px,.7fr) minmax(80px,.8fr);gap:8px;align-items:center;font-size:13px}
425
+ .oi .sh-thead{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--slate);border-bottom:2px solid var(--ink);padding:6px 0}
426
+ .oi .sh-conv{border-bottom:1px solid var(--line)}
427
+ .oi .sh-conv>summary{padding:8px 0;cursor:pointer;list-style:none}
428
+ .oi .sh-sq{display:inline-flex;gap:3px;flex-wrap:wrap}
429
+ .oi .sq{display:inline-block;width:14px;height:14px;border:1px solid var(--slate);border-radius:3px;background:#fff}
430
+ .oi .sq.ok{background:var(--ok-l);border-color:var(--ok)}.oi .sq.bad{background:var(--bad-l);border-color:var(--bad)}.oi .sq.ne,.oi .sq.na{background:#ECEAE4}
431
+ .oi .sh-band{font-family:ui-monospace,Menlo,monospace}
432
+ .oi .sh-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:4px 0 10px;padding:12px 14px;background:var(--cream);border:1px solid var(--line);border-radius:8px;font-size:13px}
433
+ .oi .sh-h{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--slate);margin:0 0 6px}
434
+ .oi .sh-term{font-weight:600;margin:0}.oi .sh-sub{margin:0 0 6px;color:var(--slate)}
435
+ .oi .sh-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--slate);margin:10px 0 0}
436
+ .oi .sh-key{display:inline-flex;gap:6px;align-items:center}
437
+ @media (max-width:640px){.oi .sh{padding:16px}.oi .sh-row{grid-template-columns:1fr 1fr}.oi .sh-thead{display:none}}
438
+ `;
439
+ //# sourceMappingURL=subject-history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subject-history.js","sourceRoot":"","sources":["../src/subject-history.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAa,MAAM,oBAAoB,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,KAAK,GAAG,iBAAiB,CAAC;AAChC,MAAM,IAAI,GAAG,iBAAiB,CAAC;AAC/B,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,0EAA0E;AAC1E,MAAM,SAAS,GAAG,2BAA2B,CAAC;AA6B9C,MAAM,KAAK,GAAG,CAAC,CAAU,EAAY,EAAE,CACrC,CAAC,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAE3D,SAAS,GAAG,CAAC,KAAc,EAAE,GAAW;IACtC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,IAAI,GAAG;QACzE,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,SAAS,SAAS,CAAC,KAAc;IAC/B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACpC,MAAM,IAAI,GAAG,GAAG,CAA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AE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,KAAK,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,MAAM;YACjC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,CAAC;QACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC5D,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,8DAA8D;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClC,CAAC"}
@@ -19,9 +19,9 @@ const unreleased = typeof __CAPSULE_VIEWER_UNRELEASED__ === "boolean" &&
19
19
  __CAPSULE_VIEWER_UNRELEASED__;
20
20
  export const VIEWER_BUILD = {
21
21
  viewer: "@action-state-group/capsule-viewer",
22
- viewerVersion: "0.7.0",
22
+ viewerVersion: "0.9.0",
23
23
  verifier: "@action-state-group/agent-action-capsule",
24
- verifierVersion: "0.10.0",
24
+ verifierVersion: "0.13.0",
25
25
  cllVersion: "0.3.0",
26
26
  ...(commit === undefined ? {} : { commit }),
27
27
  ...(unreleased ? { unreleased: true } : {}),
@@ -4,6 +4,13 @@
4
4
  "locale": "en",
5
5
  "entries": {
6
6
  "layout.grouping": "groups",
7
+ "groups.rtier.must_have.title": "Must-have tests · {n}",
8
+ "groups.rtier.must_have.note": "These count in the answer.",
9
+ "groups.rtier.informational.title": "Informational tests · {n}",
10
+ "groups.rtier.informational.note": "Reported, never in the answer: a test not met here changes nothing above it.",
11
+ "groups.rtier.unstated.title": "Tests with no stated tier · {n}",
12
+ "groups.rtier.unstated.note": "The contract given for this page states no tier for these, so they stay in the answer.",
13
+ "groups.rtier.sealed-note": "The sealed result counts informational tests too; the lines this report derives leave them out.",
7
14
  "groups.producer.title": "The producer's mapping, not a sealed record",
8
15
  "groups.count.obligation.one": "{n} obligation",
9
16
  "groups.count.obligation.other": "{n} obligations",
@@ -136,7 +143,6 @@
136
143
  "spot.term.unstated": "The rule's wording is not in this bundle: no report in it states the wording.",
137
144
  "spot.term.mixed": "The rule's wording is not shown: the reports in this bundle state different wordings.",
138
145
  "spot.says": "The judge's words",
139
- "spot.pin": "judge pin {digest}",
140
146
  "spot.confidence": "confidence {c}",
141
147
  "spot.gap.produced": "Who produced each message (model, tools used, effects) is not in this bundle: a message here carries only who spoke, what was said and the tool calls.",
142
148
  "spot.gap.when": "This report states only each rule's wording, not when it counts as met or when it cannot be decided.",
@@ -277,8 +283,13 @@
277
283
  "status.contradicted": "contradicted",
278
284
  "status.not_applicable": "not applicable",
279
285
  "status.unknown": "unknown",
286
+ "requirement_tier.must_have": "Must-have",
287
+ "requirement_tier.informational": "Informational",
288
+ "requirement_tier.unstated": "Tier not stated",
280
289
  "card.pf.assurance": "Assurance (as sealed on the claim)",
281
290
  "card.pf.assurance.line": "tier {tier} · grade {grade} · sufficiency {sufficiency} · carrier status {status}",
291
+ "card.mark.withheld": "Withheld by the holder",
292
+ "card.mark.withheld.cited": "Withheld by the holder · cites {digests}",
282
293
  "card.wording.refused": "The wording pack supplied with this page was refused, so this card is drawn with the viewer's built-in words only.",
283
294
  "card.pf.wording.refused": "a wording pack supplied with the page (wording_sha256 {sha256}) was refused: {reason}. Only the built-in {baseId} (wording_sha256 {baseSha256}) was applied.",
284
295
  "card.wording.refused.digest": "its bytes do not hash to its wording_sha256",
@@ -406,6 +417,12 @@
406
417
  "legend.toggle.core": "no toggle, the core always draws it",
407
418
  "legend.toggle.note": "Every toggle's glyph sits at the left edge of the line it opens. Opening is a click; the page records nothing about it.",
408
419
  "legend.src.lead": "Where every word comes from",
420
+ "legend.src.core": "core",
421
+ "legend.src.core.is": "the viewer's own words",
422
+ "legend.src.pack": "wording pack",
423
+ "legend.src.pack.is": "the report's words",
424
+ "legend.src.field": "capsule field",
425
+ "legend.src.field.is": "a field as recorded, with its path",
409
426
  "legend.src.payload": "payload",
410
427
  "legend.src.payload.is": "the record's content",
411
428
  "legend.src.producer": "producer",