@action-state-group/capsule-viewer 0.18.3 → 0.19.1

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 (46) hide show
  1. package/dist/backfill-timeline.d.ts +66 -0
  2. package/dist/backfill-timeline.js +401 -0
  3. package/dist/backfill-timeline.js.map +1 -0
  4. package/dist/chart-dataset.d.ts +35 -0
  5. package/dist/chart-dataset.js +16 -1
  6. package/dist/chart-dataset.js.map +1 -1
  7. package/dist/compliance-view.js +41 -14
  8. package/dist/compliance-view.js.map +1 -1
  9. package/dist/contract-report-wording.d.ts +3 -1
  10. package/dist/contract-report-wording.js +18 -8
  11. package/dist/contract-report-wording.js.map +1 -1
  12. package/dist/core-strip.d.ts +19 -3
  13. package/dist/core-strip.js +76 -11
  14. package/dist/core-strip.js.map +1 -1
  15. package/dist/evidence-graph-view.js +2 -2
  16. package/dist/evidence-graph-view.js.map +1 -1
  17. package/dist/evidence-graph.iife.js +291 -104
  18. package/dist/history-view.d.ts +2 -2
  19. package/dist/history-view.iife.js +1 -0
  20. package/dist/history-view.iife.js.sha256 +1 -1
  21. package/dist/history-view.js +2 -1
  22. package/dist/history-view.js.map +1 -1
  23. package/dist/index.d.ts +4 -0
  24. package/dist/index.js +4 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/outcome-report-view.js +53 -2
  27. package/dist/outcome-report-view.js.map +1 -1
  28. package/dist/report-front.d.ts +2 -1
  29. package/dist/report-front.js.map +1 -1
  30. package/dist/studio-card.d.ts +79 -0
  31. package/dist/studio-card.js +383 -0
  32. package/dist/studio-card.js.map +1 -0
  33. package/dist/studio-pack.d.ts +10 -0
  34. package/dist/studio-pack.js +27 -0
  35. package/dist/studio-pack.js.map +1 -0
  36. package/dist/studio-view.d.ts +56 -0
  37. package/dist/studio-view.js +431 -0
  38. package/dist/studio-view.js.map +1 -0
  39. package/dist/viewer-build.js +2 -2
  40. package/dist/wording/backfill-timeline.en.json +52 -0
  41. package/dist/wording/contract-report-eu-ai-act.en.json +5 -4
  42. package/dist/wording/contract-report-generic.en.json +3 -4
  43. package/dist/wording/contract-report-outcomes.en.json +6 -4
  44. package/dist/wording/studio-card.en.json +66 -0
  45. package/dist/wording/studio-view.en.json +39 -0
  46. package/package.json +7 -2
@@ -0,0 +1,431 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ /**
3
+ * The Studio home (docs/design/studio-page.md, capsule-viewer#291): the loop
4
+ * diagram, the readiness table (the desk), a term map of one pack on request,
5
+ * and the switch between packs' report pages, drawn from a `studio-view/v0`
6
+ * input the caller builds from the workspace files `terms` writes.
7
+ *
8
+ * The page is static HTML: no script, no network. It carries its input in a
9
+ * `<script type="application/json">` with that JSON's SHA-256 beside it and
10
+ * says the snapshot is workspace data, not sealed evidence. A page rebuilt
11
+ * from its own embedded JSON is byte-identical. Like the History view it
12
+ * draws and never fetches or verifies; unknown members are refused, and
13
+ * caller text is only ever text.
14
+ */
15
+ import { jcs, sha256Hex } from "@action-state-group/agent-action-capsule";
16
+ import { BackfillTimelineRefused, backfillTimelineHtml, checkBackfillTimeline, } from "./backfill-timeline.js";
17
+ import PACK from "./wording/studio-view.en.json" with { type: "json" };
18
+ export const STUDIO_VIEW = "studio-view/v0";
19
+ export const STUDIO_VIEW_WORDING = PACK;
20
+ /** The five readiness statuses (evidencebook-skills scripts/studio/readiness.py STATUSES). */
21
+ export const READINESS_STATUSES = [
22
+ "checkable now",
23
+ "needs examples",
24
+ "needs a field",
25
+ "needs the other side",
26
+ "not this pack's concern",
27
+ ];
28
+ /** The packagings that carry the bundle; `static` drops it and is not for sending. */
29
+ const PAGE_FORMATS = ["html", "embedded"];
30
+ export class StudioViewRefused extends Error {
31
+ reasons;
32
+ constructor(reasons) {
33
+ super(`studio-view refused: ${reasons.join("; ")}`);
34
+ this.name = "StudioViewRefused";
35
+ this.reasons = reasons;
36
+ }
37
+ }
38
+ const isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
39
+ class Reader {
40
+ /** A string that may be empty (a term's detail). */
41
+ text(v, path) {
42
+ if (typeof v !== "string" || v.length > 2000) {
43
+ this.refuse(path, "is not a string of at most 2000 characters");
44
+ return "";
45
+ }
46
+ return v;
47
+ }
48
+ reasons = [];
49
+ refuse(path, why) {
50
+ this.reasons.push(`${path}: ${why}`);
51
+ }
52
+ obj(v, path, allowed, required) {
53
+ if (!isObj(v)) {
54
+ this.refuse(path, "is not an object");
55
+ return null;
56
+ }
57
+ for (const k of Object.keys(v))
58
+ if (!allowed.includes(k))
59
+ this.refuse(`${path}.${k}`, "is not a member of studio-view/v0");
60
+ for (const k of required)
61
+ if (!(k in v))
62
+ this.refuse(`${path}.${k}`, "is missing");
63
+ return v;
64
+ }
65
+ str(v, path, max = 2000) {
66
+ if (typeof v !== "string" || v.length === 0 || v.length > max) {
67
+ this.refuse(path, `is not a string of 1 to ${max} characters`);
68
+ return "";
69
+ }
70
+ return v;
71
+ }
72
+ hex(v, path) {
73
+ if (typeof v !== "string" || !/^[0-9a-f]{64}$/u.test(v)) {
74
+ this.refuse(path, "is not 64 lowercase hex characters");
75
+ return "";
76
+ }
77
+ return v;
78
+ }
79
+ nat(v, path) {
80
+ if (typeof v !== "number" || !Number.isSafeInteger(v) || v < 0) {
81
+ this.refuse(path, "is not a count");
82
+ return 0;
83
+ }
84
+ return v;
85
+ }
86
+ strs(v, path) {
87
+ if (!Array.isArray(v)) {
88
+ this.refuse(path, "is not a list");
89
+ return [];
90
+ }
91
+ return v.map((x, i) => this.str(x, `${path}[${i}]`));
92
+ }
93
+ }
94
+ /** A relative path to a sibling page: no scheme, no leading slash, no `..`. */
95
+ const PAGE_PATH = /^[A-Za-z0-9_-][A-Za-z0-9._/-]*\.html$/u;
96
+ function read(input) {
97
+ const r = new Reader();
98
+ const top = r.obj(input, "input", ["schema", "active", "packs", "readiness", "history", "backfill"], ["schema", "active", "packs", "readiness", "history"]);
99
+ if (top === null)
100
+ throw new StudioViewRefused(r.reasons);
101
+ if (top["schema"] !== STUDIO_VIEW)
102
+ r.refuse("input.schema", `is not ${STUDIO_VIEW}`);
103
+ const packs = [];
104
+ if (!Array.isArray(top["packs"]) || top["packs"].length === 0)
105
+ r.refuse("input.packs", "is not a non-empty list");
106
+ else
107
+ top["packs"].forEach((raw, i) => {
108
+ const p = `input.packs[${i}]`;
109
+ const o = r.obj(raw, p, [
110
+ "pack_id",
111
+ "title",
112
+ "pack_digest",
113
+ "judge",
114
+ "page",
115
+ "format",
116
+ "bundle_digest",
117
+ "shared",
118
+ ], ["pack_id", "pack_digest", "page", "bundle_digest"]);
119
+ if (o === null)
120
+ return;
121
+ const page = r.str(o["page"], `${p}.page`, 200);
122
+ if (page !== "" && (!PAGE_PATH.test(page) || page.includes("..")))
123
+ r.refuse(`${p}.page`, "is not a relative .html path");
124
+ const format = "format" in o ? o["format"] : "html";
125
+ if (!PAGE_FORMATS.includes(format))
126
+ r.refuse(`${p}.format`, `is not one of ${PAGE_FORMATS.join(", ")} (a static page drops the bundle and is not offered for sending)`);
127
+ const shared = "shared" in o
128
+ ? r.obj(o["shared"], `${p}.shared`, ["dataset_ref", "plan_ref"], ["dataset_ref", "plan_ref"])
129
+ : null;
130
+ packs.push({
131
+ pack_id: r.str(o["pack_id"], `${p}.pack_id`, 200),
132
+ ...("title" in o
133
+ ? { title: r.str(o["title"], `${p}.title`, 200) }
134
+ : {}),
135
+ pack_digest: r.hex(o["pack_digest"], `${p}.pack_digest`),
136
+ ...("judge" in o
137
+ ? { judge: r.str(o["judge"], `${p}.judge`, 200) }
138
+ : {}),
139
+ page,
140
+ format: format,
141
+ bundle_digest: r.hex(o["bundle_digest"], `${p}.bundle_digest`),
142
+ ...(shared === null
143
+ ? {}
144
+ : {
145
+ shared: {
146
+ dataset_ref: r.hex(shared["dataset_ref"], `${p}.shared.dataset_ref`),
147
+ plan_ref: r.hex(shared["plan_ref"], `${p}.shared.plan_ref`),
148
+ },
149
+ }),
150
+ });
151
+ });
152
+ const ids = packs.map((p) => p.pack_id);
153
+ if (new Set(ids).size !== ids.length)
154
+ r.refuse("input.packs", "has a pack_id twice");
155
+ const active = r.str(top["active"], "input.active", 200);
156
+ if (packs.length > 0 && !packs.some((p) => p.pack_id === active))
157
+ r.refuse("input.active", "is not a pack_id in packs");
158
+ const ready = r.obj(top["readiness"], "input.readiness", ["pack_id", "pack_version", "records", "terms", "counts"], ["pack_id", "pack_version", "records", "terms", "counts"]);
159
+ const terms = [];
160
+ let counts = {};
161
+ if (ready !== null) {
162
+ if (ready["pack_id"] !== active)
163
+ r.refuse("input.readiness.pack_id", "is not the active pack");
164
+ if (!Array.isArray(ready["terms"]))
165
+ r.refuse("input.readiness.terms", "is not a list");
166
+ else
167
+ ready["terms"].forEach((raw, i) => {
168
+ const p = `input.readiness.terms[${i}]`;
169
+ const o = r.obj(raw, p, [
170
+ "term",
171
+ "statement",
172
+ "in_pack",
173
+ "status",
174
+ "detail",
175
+ "reads",
176
+ "missing_fields",
177
+ "filled_rate",
178
+ ], [
179
+ "term",
180
+ "statement",
181
+ "in_pack",
182
+ "status",
183
+ "detail",
184
+ "reads",
185
+ "missing_fields",
186
+ ]);
187
+ if (o === null)
188
+ return;
189
+ if (!READINESS_STATUSES.includes(o["status"]))
190
+ r.refuse(`${p}.status`, "is not one of the five readiness statuses");
191
+ if (typeof o["in_pack"] !== "boolean")
192
+ r.refuse(`${p}.in_pack`, "is not true or false");
193
+ terms.push({
194
+ term: r.str(o["term"], `${p}.term`, 200),
195
+ statement: r.str(o["statement"], `${p}.statement`),
196
+ in_pack: o["in_pack"] === true,
197
+ status: o["status"],
198
+ detail: r.text(o["detail"], `${p}.detail`),
199
+ reads: r.strs(o["reads"], `${p}.reads`),
200
+ missing_fields: r.strs(o["missing_fields"], `${p}.missing_fields`),
201
+ });
202
+ });
203
+ const c = r.obj(ready["counts"], "input.readiness.counts", READINESS_STATUSES, []);
204
+ if (c !== null)
205
+ counts = Object.fromEntries(Object.entries(c).map(([k, v]) => [
206
+ k,
207
+ r.nat(v, `input.readiness.counts.${k}`),
208
+ ]));
209
+ r.nat(ready["records"], "input.readiness.records");
210
+ for (const status of READINESS_STATUSES) {
211
+ const have = terms.filter((t) => t.status === status).length;
212
+ if (counts[status] !== have)
213
+ r.refuse(`input.readiness.counts.${status}`, `is ${String(counts[status])} but the terms hold ${String(have)}`);
214
+ }
215
+ }
216
+ const history = [];
217
+ if (!Array.isArray(top["history"]))
218
+ r.refuse("input.history", "is not a list");
219
+ else
220
+ top["history"].forEach((raw, i) => {
221
+ const p = `input.history[${i}]`;
222
+ const o = r.obj(raw, p, [
223
+ "digest",
224
+ "version",
225
+ "first_at",
226
+ "last_at",
227
+ "run",
228
+ "rehearsal",
229
+ "in_force",
230
+ "published",
231
+ ], ["digest", "version", "first_at", "last_at"]);
232
+ if (o === null)
233
+ return;
234
+ const rehearsal = (v, path) => {
235
+ if (v === undefined || v === null || typeof v === "boolean")
236
+ return v ?? null;
237
+ r.refuse(path, "is not true, false or null");
238
+ return null;
239
+ };
240
+ const opt = (k) => o[k] === null || o[k] === undefined ? null : r.str(o[k], `${p}.${k}`);
241
+ history.push({
242
+ digest: r.hex(o["digest"], `${p}.digest`),
243
+ version: r.str(o["version"], `${p}.version`, 200),
244
+ first_at: r.str(o["first_at"], `${p}.first_at`, 200),
245
+ last_at: r.str(o["last_at"], `${p}.last_at`, 200),
246
+ run: opt("run"),
247
+ rehearsal: rehearsal(o["rehearsal"], `${p}.rehearsal`),
248
+ in_force: rehearsal(o["in_force"], `${p}.in_force`),
249
+ published: opt("published"),
250
+ });
251
+ });
252
+ const backfill = [];
253
+ if (top["backfill"] !== undefined) {
254
+ if (!Array.isArray(top["backfill"]))
255
+ r.refuse("input.backfill", "is not a list");
256
+ else
257
+ top["backfill"].forEach((raw, i) => {
258
+ const p = `input.backfill[${i}]`;
259
+ const o = r.obj(raw, p, ["record", "checkpoints", "form"], ["record"]);
260
+ if (o === null)
261
+ return;
262
+ const form = "form" in o ? o["form"] : "record";
263
+ if (form !== "record" && form !== "rehearsal")
264
+ r.refuse(`${p}.form`, "is not record or rehearsal");
265
+ try {
266
+ checkBackfillTimeline(o["record"], o["checkpoints"]);
267
+ }
268
+ catch (e) {
269
+ if (!(e instanceof BackfillTimelineRefused))
270
+ throw e;
271
+ for (const why of e.reasons)
272
+ r.reasons.push(`${p}.${why}`);
273
+ }
274
+ backfill.push({
275
+ record: o["record"],
276
+ ...("checkpoints" in o ? { checkpoints: o["checkpoints"] } : {}),
277
+ form: form,
278
+ });
279
+ });
280
+ }
281
+ const packVersion = ready === null
282
+ ? ""
283
+ : r.str(ready["pack_version"], "input.readiness.pack_version", 200);
284
+ if (r.reasons.length > 0)
285
+ throw new StudioViewRefused(r.reasons);
286
+ return {
287
+ schema: STUDIO_VIEW,
288
+ active,
289
+ packs,
290
+ readiness: {
291
+ pack_id: ready["pack_id"],
292
+ pack_version: packVersion,
293
+ records: ready["records"],
294
+ terms,
295
+ counts,
296
+ },
297
+ history,
298
+ ...(backfill.length === 0 ? {} : { backfill }),
299
+ };
300
+ }
301
+ // --- writing the page ------------------------------------------------------
302
+ const W = PACK.entries;
303
+ const word = (key) => {
304
+ const w = W[key];
305
+ if (w === undefined)
306
+ throw new Error(`studio-view: no word ${key}`);
307
+ return w;
308
+ };
309
+ function esc(text) {
310
+ return text.replace(/[&<>"']/gu, (c) => c === "&"
311
+ ? "&amp;"
312
+ : c === "<"
313
+ ? "&lt;"
314
+ : c === ">"
315
+ ? "&gt;"
316
+ : c === '"'
317
+ ? "&quot;"
318
+ : "&#39;");
319
+ }
320
+ const STATUS_TOKEN = {
321
+ "checkable now": "checkable",
322
+ "needs examples": "examples",
323
+ "needs a field": "field",
324
+ "needs the other side": "other-side",
325
+ "not this pack's concern": "not-concern",
326
+ };
327
+ const STAGE_WORD = {
328
+ done: "loop.done",
329
+ "not-yet": "loop.not_yet",
330
+ "not-recorded": "loop.not_recorded",
331
+ };
332
+ function loop(input) {
333
+ // Only the lines for the digest the active pack has now: an edit makes a
334
+ // new digest, and the earlier digest's run says nothing about it.
335
+ const digest = input.packs.find((p) => p.pack_id === input.active).pack_digest;
336
+ const entries = input.history.filter((e) => e.digest === digest);
337
+ const tried = entries.some((e) => e.run !== null);
338
+ const published = entries.some((e) => e.published !== null);
339
+ // Publishing writes the pack out; the terms check actions only once they are
340
+ // installed on the profile (skills/terms-pack-author SKILL.md, `terms
341
+ // publish` answers `in_force: false`). The workspace does not record the
342
+ // install, so "switched on" is drawn only from a line that says so, and
343
+ // reads "not recorded" when no line does.
344
+ const forced = entries.filter((e) => e.in_force !== null);
345
+ const inForce = !published
346
+ ? "not-yet"
347
+ : forced.some((e) => e.in_force === true)
348
+ ? "done"
349
+ : forced.length > 0
350
+ ? "not-yet"
351
+ : "not-recorded";
352
+ const stages = [
353
+ [
354
+ "terms",
355
+ input.readiness.terms.some((t) => t.in_pack) ? "done" : "not-yet",
356
+ ],
357
+ ["tried", tried ? "done" : "not-yet"],
358
+ ["published", published ? "done" : "not-yet"],
359
+ ["switched_on", inForce],
360
+ ];
361
+ const items = stages
362
+ .map(([id, state]) => `<li data-stage="${id}" data-state="${state}"><strong>${esc(word(`loop.${id}`))}</strong> <span>${esc(word(STAGE_WORD[state]))}</span></li>`)
363
+ .join("");
364
+ const note = published && inForce !== "done"
365
+ ? `<p data-loop-note>${esc(word("loop.published_note"))}</p>`
366
+ : "";
367
+ return `<section data-view="loop"><h2>${esc(word("loop.title"))}</h2><ol class="cv-studio-loop">${items}</ol>${note}</section>`;
368
+ }
369
+ function desk(input) {
370
+ const { terms } = input.readiness;
371
+ const rows = terms
372
+ .map((t) => `<tr data-term="${esc(t.term)}" data-status="${STATUS_TOKEN[t.status]}" data-in-pack="${String(t.in_pack)}"><td>${esc(t.statement)}${t.in_pack ? "" : ` <em>${esc(word("desk.idea"))}</em>`}</td><td><span class="cv-chip">${esc(word(`status.${STATUS_TOKEN[t.status]}`))}</span></td><td>${esc(t.detail)}</td><td>${esc(t.reads.join(", "))}</td><td>${esc(t.missing_fields.join(", "))}</td></tr>`)
373
+ .join("");
374
+ const line = READINESS_STATUSES.map((s) => `${esc(word(`status.${STATUS_TOKEN[s]}`))} ${terms.filter((t) => t.status === s).length}`).join(" · ");
375
+ return `<section data-view="readiness"><h2>${esc(word("desk.title"))}</h2><p data-counts>${line}</p><div class="cv-scroll"><table><thead><tr><th>${esc(word("desk.term"))}</th><th>${esc(word("desk.status"))}</th><th>${esc(word("desk.detail"))}</th><th>${esc(word("desk.reads"))}</th><th>${esc(word("desk.lacks"))}</th></tr></thead><tbody>${rows}</tbody></table></div></section>`;
376
+ }
377
+ function termMap(input) {
378
+ const groups = READINESS_STATUSES.map((s) => {
379
+ const ts = input.readiness.terms.filter((t) => t.status === s);
380
+ if (ts.length === 0)
381
+ return "";
382
+ const items = ts
383
+ .map((t) => `<li data-term="${esc(t.term)}" data-in-pack="${String(t.in_pack)}">${esc(t.statement)}${t.in_pack ? "" : ` <em>${esc(word("desk.idea"))}</em>`} <small>${esc(word("map.reads"))} ${esc(t.reads.join(", "))}</small></li>`)
384
+ .join("");
385
+ return `<details data-status="${STATUS_TOKEN[s]}"><summary>${esc(word(`status.${STATUS_TOKEN[s]}`))} (${ts.length})</summary><ul>${items}</ul></details>`;
386
+ }).join("");
387
+ return `<section data-view="term-map" data-pack="${esc(input.active)}"><h2>${esc(word("map.title"))}</h2>${groups}</section>`;
388
+ }
389
+ function switcher(input) {
390
+ const items = input.packs
391
+ .map((p) => {
392
+ const here = p.pack_id === input.active;
393
+ const label = esc(p.title ?? p.pack_id);
394
+ const link = here
395
+ ? `<strong>${label}</strong>`
396
+ : `<a href="${esc(p.page)}">${label}</a>`;
397
+ return `<li data-pack="${esc(p.pack_id)}" data-format="${p.format}"${here ? ' aria-current="page"' : ""}>${link} <small>${esc(word("switch.pack_digest"))} <code>${p.pack_digest}</code> · ${esc(word("switch.bundle_digest"))} <code>${p.bundle_digest}</code>${p.judge === undefined ? "" : ` · ${esc(word("switch.judge"))} ${esc(p.judge)}`} ${p.shared === undefined
398
+ ? ""
399
+ : ` · ${esc(word("switch.dataset_ref"))} <code>${p.shared.dataset_ref}</code> · ${esc(word("switch.plan_ref"))} <code>${p.shared.plan_ref}</code>`}</small> <a href="${esc(p.page)}">${esc(word("switch.report"))}</a></li>`;
400
+ })
401
+ .join("");
402
+ return `<nav data-view="switch"><h2>${esc(word("switch.title"))}</h2><ul>${items}</ul></nav>`;
403
+ }
404
+ export const studioViewStyles = `.cv-studio{font:16px/1.45 system-ui,sans-serif;max-width:1120px;margin:0 auto;padding:16px;display:grid;gap:16px;color:#1f2733}
405
+ .cv-studio table{border-collapse:collapse;width:100%}.cv-studio td,.cv-studio th{border-bottom:1px solid #e3ded3;padding:6px 8px;text-align:left;vertical-align:top}
406
+ .cv-chip{display:inline-block;border:1px solid #e3ded3;border-radius:6px;padding:1px 8px;font-size:13px}
407
+ [data-status=checkable] .cv-chip{background:#e3f1ea}[data-status=field] .cv-chip{background:#fbefd9}
408
+ .cv-studio-loop{display:flex;flex-wrap:wrap;gap:16px;list-style:none;padding:0}.cv-studio-loop li{border:1px solid #e3ded3;border-radius:8px;padding:8px 12px}
409
+ .cv-studio-loop [data-state=not-yet]{color:#6b7482}.cv-snapshot{color:#6b7482;font-size:13px}
410
+ code{overflow-wrap:anywhere}.cv-snapshot{padding:0 16px 16px}.cv-scroll{overflow-x:auto}.cv-studio main,.cv-studio section,.cv-studio nav{min-width:0}
411
+ @media print{.cv-studio{max-width:none}.cv-scroll{overflow:visible}}
412
+ `;
413
+ /** The Studio home as an HTML fragment; throws StudioViewRefused on a refused input. */
414
+ export function studioViewHtml(input) {
415
+ const v = read(input);
416
+ return `<main class="cv-studio" data-studio="home">${loop(v)}${switcher(v)}${desk(v)}${termMap(v)}${(v.backfill ?? []).map((b) => backfillTimelineHtml(b.record, b.checkpoints, b.form)).join("")}</main>`;
417
+ }
418
+ /**
419
+ * A whole static page: the home, the input it was drawn from in a JSON
420
+ * script, and that JSON's SHA-256, labelled as workspace data that is not
421
+ * sealed evidence. Rebuilding from the embedded JSON gives the same bytes.
422
+ */
423
+ export async function studioViewDocument(input) {
424
+ const v = read(input);
425
+ const bytes = jcs(v);
426
+ const json = new TextDecoder().decode(bytes).replace(/</gu, "\\u003c");
427
+ const digest = await sha256Hex(new TextEncoder().encode(json));
428
+ const snapshot = `<footer class="cv-snapshot" data-snapshot><p>${esc(word("snapshot.label"))} <code data-snapshot-digest>${digest}</code></p><script type="application/json" data-studio-input>${json}</script></footer>`;
429
+ return `<!doctype html>\n<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${esc(word("page.title"))}</title><style>${studioViewStyles}</style></head><body>${studioViewHtml(v)}${snapshot}</body></html>\n`;
430
+ }
431
+ //# sourceMappingURL=studio-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studio-view.js","sourceRoot":"","sources":["../src/studio-view.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,GAEtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,IAAI,MAAM,+BAA+B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAC5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAExC,8FAA8F;AAC9F,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,sBAAsB;IACtB,yBAAyB;CACjB,CAAC;AAGX,sFAAsF;AACtF,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,UAAU,CAAU,CAAC;AAEnD,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IACjC,OAAO,CAAoB;IACpC,YAAY,OAA0B;QACpC,KAAK,CAAC,wBAAwB,OAAO,CAAC,I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,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC;AAC7M,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,KAAc;IACrD,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IACtB,MAAM,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IACrB,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IACvE,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,MAAM,QAAQ,GAAG,gDAAgD,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,+BAA+B,MAAM,gEAAgE,IAAI,oBAAoB,CAAC;IAC1N,OAAO,0IAA0I,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,kBAAkB,gBAAgB,wBAAwB,cAAc,CAAC,CAAC,CAAC,GAAG,QAAQ,kBAAkB,CAAC;AACnR,CAAC"}
@@ -19,10 +19,10 @@ 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.18.3",
22
+ viewerVersion: "0.19.1",
23
23
  verifier: "@action-state-group/agent-action-capsule",
24
24
  verifierVersion: "0.14.0",
25
- cllVersion: "0.3.0",
25
+ cllVersion: "0.4.0",
26
26
  ...(commit === undefined ? {} : { commit }),
27
27
  ...(unreleased ? { unreleased: true } : {}),
28
28
  };
@@ -0,0 +1,52 @@
1
+ {
2
+ "wording_pack_version": "0",
3
+ "id": "capsuleviewer.backfill-timeline.wording/v0",
4
+ "locale": "en",
5
+ "entries": {
6
+ "title": "Backfill: what the source says, and when it was imported",
7
+ "form.rehearsal": "Rehearsal",
8
+ "form.record": "On the record",
9
+ "imported_label": "Imported, not recorded as it happened",
10
+ "pass.imported_at": "Imported at",
11
+ "pass.batch": "Pass",
12
+ "pass.first": "First pass",
13
+ "pass.previous": "Previous pass",
14
+ "pass.span": "Source says the rows span",
15
+ "pass.rows_read": "Rows read",
16
+ "pass.limits": "Limits",
17
+ "rows.title": "Rows",
18
+ "rows.cursor": "Cursor",
19
+ "rows.id": "Row",
20
+ "rows.source_says": "Source says it happened at",
21
+ "rows.imported_at": "Imported at",
22
+ "rows.retained": "Kept as a record",
23
+ "horizon.limited": "the reader hit its row limit, so more rows wait for the next pass",
24
+ "kept.title": "Records kept from rows an earlier pass read",
25
+ "kept.retrospective": "kept in hindsight",
26
+ "notes.title": "Notes",
27
+ "cannot_see.title": "What this record cannot see",
28
+ "rows.yes": "yes",
29
+ "window.none": "none",
30
+ "gaps.to": "to",
31
+ "gaps.unknown": "unknown",
32
+ "rows.none": "This pass read no new rows.",
33
+ "window.title": "Cursors this pass covered",
34
+ "window.after": "after",
35
+ "window.through": "through",
36
+ "horizon.oldest": "oldest row the source still held",
37
+ "gaps.title": "Gaps",
38
+ "gaps.none": "No gap declared.",
39
+ "gaps.named": "Gap",
40
+ "gaps.cursors": "cursors",
41
+ "gaps.unread": "source not read",
42
+ "gaps.note": "A gap does not stop the page; it is named here.",
43
+ "late.title": "Late pass",
44
+ "anomalies.title": "Rows older than where an earlier pass had reached",
45
+ "anomalies.passed": "earlier pass had reached",
46
+ "refused.title": "Refused rows",
47
+ "checkpoints.title": "Checkpoints given as covering this pass",
48
+ "checkpoints.none": "No checkpoint covers this pass yet.",
49
+ "checkpoints.size": "size",
50
+ "checkpoints.cut_at": "cut at"
51
+ }
52
+ }
@@ -309,6 +309,7 @@
309
309
  "card.wording.refused.fit": "it does not fit this card's words",
310
310
  "front.mock": "Verdicts are from a mock judge and are placeholders.",
311
311
  "front.agg.evaluated": "{evaluations} of {requirements}",
312
+ "front.agg.imported": "Imported: the records behind this result were all backfilled after the fact; none was recorded at the time.",
312
313
  "front.agg.evaluations.one": "{n} evaluation",
313
314
  "front.agg.evaluations.other": "{n} evaluations",
314
315
  "front.agg.requirements.one": "{n} requirement",
@@ -320,10 +321,10 @@
320
321
  "front.agg.later.one": "{n} evaluation not yet in force",
321
322
  "front.agg.later.other": "{n} evaluations not yet in force",
322
323
  "front.agg.mismatch": "count mismatch: the claims give {recomputed}",
323
- "front.agg.as-of": "In force as of {date}.",
324
- "front.agg.copied.both": "The dates and the out-of-scope switch are copied from the contract, not re-checked here.",
325
- "front.agg.copied.dates": "The dates are copied from the contract, not re-checked here.",
326
- "front.agg.copied.switch": "The out-of-scope switch is copied from the contract, not re-checked here.",
324
+ "applicability.as_of": "In force as of {date}.",
325
+ "applicability.not_yet_in_force.title": "Not yet in force",
326
+ "applicability.not_yet_in_force.note": "Readiness only: these requirements apply from a later date, which the producer copied from the contract. They are in none of the met, not met or could not decide counts above, and a result here is never a violation.",
327
+ "contract_fact.note": "Dates and the out-of-scope switch are the producer's copy of the contract, not re-checked by this page.",
327
328
  "prov.brief.judge.partial": "judge pinned for some results",
328
329
  "front.agg.excluded": "{excluded} excluded as not applicable",
329
330
  "front.agg.bucket.met": "Met",
@@ -180,6 +180,7 @@
180
180
  "card.wording.refused.fit": "it does not fit this card's words",
181
181
  "front.mock": "Verdicts are from a mock judge and are placeholders.",
182
182
  "front.agg.evaluated": "{evaluations} of {requirements}",
183
+ "front.agg.imported": "Imported: the records behind this result were all backfilled after the fact; none was recorded at the time.",
183
184
  "front.agg.evaluations.one": "{n} evaluation",
184
185
  "front.agg.evaluations.other": "{n} evaluations",
185
186
  "front.agg.requirements.one": "{n} requirement",
@@ -191,10 +192,8 @@
191
192
  "front.agg.later.one": "{n} evaluation not yet in force",
192
193
  "front.agg.later.other": "{n} evaluations not yet in force",
193
194
  "front.agg.mismatch": "count mismatch: the claims give {recomputed}",
194
- "front.agg.as-of": "In force as of {date}.",
195
- "front.agg.copied.both": "The dates and the out-of-scope switch are copied from the contract, not re-checked here.",
196
- "front.agg.copied.dates": "The dates are copied from the contract, not re-checked here.",
197
- "front.agg.copied.switch": "The out-of-scope switch is copied from the contract, not re-checked here.",
195
+ "applicability.as_of": "In force as of {date}.",
196
+ "contract_fact.note": "Dates and the out-of-scope switch are the producer's copy of the contract, not re-checked by this page.",
198
197
  "prov.brief.judge.partial": "judge pinned for some results",
199
198
  "front.agg.excluded": "{excluded} excluded as not applicable",
200
199
  "front.agg.bucket.met": "Met",
@@ -415,6 +415,7 @@
415
415
  "card.wording.refused.fit": "it does not fit this card's words",
416
416
  "front.mock": "Verdicts are from a mock judge and are placeholders.",
417
417
  "front.agg.evaluated": "{evaluations} of {requirements}",
418
+ "front.agg.imported": "Imported: the records behind this result were all backfilled after the fact; none was recorded at the time.",
418
419
  "front.agg.evaluations.one": "{n} evaluation",
419
420
  "front.agg.evaluations.other": "{n} evaluations",
420
421
  "front.agg.requirements.one": "{n} requirement",
@@ -426,10 +427,11 @@
426
427
  "front.agg.later.one": "{n} evaluation not yet in force",
427
428
  "front.agg.later.other": "{n} evaluations not yet in force",
428
429
  "front.agg.mismatch": "count mismatch: the claims give {recomputed}",
429
- "front.agg.as-of": "In force as of {date}.",
430
- "front.agg.copied.both": "The dates and the out-of-scope switch are copied from the contract, not re-checked here.",
431
- "front.agg.copied.dates": "The dates are copied from the contract, not re-checked here.",
432
- "front.agg.copied.switch": "The out-of-scope switch is copied from the contract, not re-checked here.",
430
+ "lines.later.readiness": "readiness only",
431
+ "applicability.as_of": "In force as of {date}.",
432
+ "applicability.not_yet_in_force.title": "Not yet in force",
433
+ "applicability.not_yet_in_force.note": "Readiness only: these requirements apply from a later date, which the producer copied from the contract. They are in none of the met, not met or could not decide counts above, and a result here is never a violation.",
434
+ "contract_fact.note": "Dates and the out-of-scope switch are the producer's copy of the contract, not re-checked by this page.",
433
435
  "prov.brief.judge.partial": "judge pinned for some results",
434
436
  "front.agg.excluded": "{excluded} excluded as not applicable",
435
437
  "front.agg.bucket.met": "Met",