@action-state-group/capsule-viewer 0.25.0 → 0.26.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.
@@ -17865,13 +17865,13 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
17865
17865
  }
17866
17866
  function builtCommit() {
17867
17867
  if (false) return void 0;
17868
- return commitPrefix("89b75d6ab5f34bada727082758562071d494ce0b");
17868
+ return commitPrefix("b21b993bca899fa69a4311c406ba86f442b50b2a");
17869
17869
  }
17870
17870
  var commit = builtCommit();
17871
17871
  var unreleased = false;
17872
17872
  var VIEWER_BUILD = {
17873
17873
  viewer: "@action-state-group/capsule-viewer",
17874
- viewerVersion: "0.25.0",
17874
+ viewerVersion: "0.26.1",
17875
17875
  verifier: "@action-state-group/agent-action-capsule",
17876
17876
  verifierVersion: "0.16.0",
17877
17877
  cllVersion: "0.4.0",
@@ -28800,9 +28800,14 @@ ${pad.repeat(depth)}`;
28800
28800
  var SETTLE_MS = 100;
28801
28801
  var checkingRenders = /* @__PURE__ */ new WeakMap();
28802
28802
  var RECEIPT_MODULE_IDS = /* @__PURE__ */ new Set([
28803
+ "capsuleviewer.receipt.unilateral/v0",
28804
+ "capsuleviewer.receipt.seller/v0",
28805
+ "capsuleviewer.receipt.bilateral/v0",
28806
+ "capsuleviewer.receipt.deal/v1",
28803
28807
  "capsulectl.deal-view/v0",
28804
28808
  "capsulectl.deal-view-composed/v0"
28805
28809
  ]);
28810
+ var RECEIPT_CARRIER_ATTRIBUTE = "data-receipt-carrier";
28806
28811
  async function openReceipt(text2, panel, options) {
28807
28812
  let bundle;
28808
28813
  try {
@@ -28819,6 +28824,7 @@ ${pad.repeat(depth)}`;
28819
28824
  );
28820
28825
  if (resolution.kind !== "module" || !RECEIPT_MODULE_IDS.has(resolution.module.manifest.id))
28821
28826
  return bundleVerified(context.verification) ? "no-module" : "unverified";
28827
+ panel.setAttribute(RECEIPT_CARRIER_ATTRIBUTE, "report");
28822
28828
  await renderEvidenceGraph(context, panel, void 0, {
28823
28829
  audience: DEFAULT_AUDIENCE,
28824
28830
  format: DEFAULT_FORMAT,
@@ -0,0 +1,109 @@
1
+ /** The receipt script's API (CapsuleViewerReceipt), from a private root. */
2
+ export declare const RECEIPT_CORE: any;
3
+ /** The receipt modules' manifests, by kind, as go/receipt ships them. */
4
+ export declare const RECEIPT_MANIFESTS: {
5
+ unilateral: {
6
+ spec_version: string;
7
+ id: string;
8
+ presentation_api: string;
9
+ runtime_min: string;
10
+ trust_class: string;
11
+ requires: {
12
+ bundle_kind: string;
13
+ extensions: {
14
+ required: string[];
15
+ };
16
+ };
17
+ forbids: {
18
+ profiles: string[];
19
+ extensions: string[];
20
+ };
21
+ audiences: string[];
22
+ formats: string[];
23
+ fallback: boolean;
24
+ priority: number;
25
+ executable: {
26
+ carrier: string;
27
+ script_sha256: string;
28
+ style_sha256: string[];
29
+ };
30
+ };
31
+ seller: {
32
+ spec_version: string;
33
+ id: string;
34
+ presentation_api: string;
35
+ runtime_min: string;
36
+ trust_class: string;
37
+ requires: {
38
+ bundle_kind: string;
39
+ extensions: {
40
+ required: string[];
41
+ };
42
+ };
43
+ forbids: {
44
+ profiles: string[];
45
+ extensions: string[];
46
+ };
47
+ audiences: string[];
48
+ formats: string[];
49
+ fallback: boolean;
50
+ priority: number;
51
+ executable: {
52
+ carrier: string;
53
+ script_sha256: string;
54
+ style_sha256: string[];
55
+ };
56
+ };
57
+ bilateral: {
58
+ spec_version: string;
59
+ id: string;
60
+ presentation_api: string;
61
+ runtime_min: string;
62
+ trust_class: string;
63
+ requires: {
64
+ bundle_kind: string;
65
+ extensions: {
66
+ required: string[];
67
+ };
68
+ };
69
+ forbids: {
70
+ profiles: string[];
71
+ extensions: string[];
72
+ };
73
+ audiences: string[];
74
+ formats: string[];
75
+ fallback: boolean;
76
+ priority: number;
77
+ executable: {
78
+ carrier: string;
79
+ script_sha256: string;
80
+ style_sha256: string[];
81
+ };
82
+ };
83
+ deal: {
84
+ spec_version: string;
85
+ id: string;
86
+ presentation_api: string;
87
+ runtime_min: string;
88
+ trust_class: string;
89
+ requires: {
90
+ bundle_kind: string;
91
+ extensions: {
92
+ required: string[];
93
+ };
94
+ };
95
+ forbids: {
96
+ profiles: string[];
97
+ extensions: string[];
98
+ };
99
+ audiences: string[];
100
+ formats: string[];
101
+ fallback: boolean;
102
+ priority: number;
103
+ executable: {
104
+ carrier: string;
105
+ script_sha256: string;
106
+ style_sha256: string[];
107
+ };
108
+ };
109
+ };