@kya-os/consent 0.4.0 → 0.4.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 (226) hide show
  1. package/README.md +182 -22
  2. package/dist/bundle/index.d.ts +4 -0
  3. package/dist/bundle/index.d.ts.map +1 -1
  4. package/dist/bundle/index.js +6 -0
  5. package/dist/bundle/index.js.map +1 -1
  6. package/dist/bundle/inline.d.ts.map +1 -1
  7. package/dist/bundle/inline.js +4 -4
  8. package/dist/bundle/inline.js.map +1 -1
  9. package/dist/cjs/bundle/index.js +15 -1
  10. package/dist/cjs/bundle/index.js.map +1 -1
  11. package/dist/cjs/bundle/inline.js +4 -4
  12. package/dist/cjs/bundle/inline.js.map +1 -1
  13. package/dist/cjs/components/consent-action-bar.js +97 -25
  14. package/dist/cjs/components/consent-action-bar.js.map +1 -1
  15. package/dist/cjs/components/consent-agent-header.js +7 -105
  16. package/dist/cjs/components/consent-agent-header.js.map +1 -1
  17. package/dist/cjs/components/consent-button.js +6 -1
  18. package/dist/cjs/components/consent-button.js.map +1 -1
  19. package/dist/cjs/components/consent-capabilities-screen.js +454 -68
  20. package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
  21. package/dist/cjs/components/consent-capability-card.js +131 -27
  22. package/dist/cjs/components/consent-capability-card.js.map +1 -1
  23. package/dist/cjs/components/consent-checkbox.js +7 -0
  24. package/dist/cjs/components/consent-checkbox.js.map +1 -1
  25. package/dist/cjs/components/consent-connector-header.js +206 -43
  26. package/dist/cjs/components/consent-connector-header.js.map +1 -1
  27. package/dist/cjs/components/consent-duration.js +1 -1
  28. package/dist/cjs/components/consent-footer.js +13 -12
  29. package/dist/cjs/components/consent-footer.js.map +1 -1
  30. package/dist/cjs/components/consent-headline.js +399 -33
  31. package/dist/cjs/components/consent-headline.js.map +1 -1
  32. package/dist/cjs/components/consent-oauth-button.js +71 -62
  33. package/dist/cjs/components/consent-oauth-button.js.map +1 -1
  34. package/dist/cjs/components/consent-otp-input.js +5 -0
  35. package/dist/cjs/components/consent-otp-input.js.map +1 -1
  36. package/dist/cjs/components/consent-phone-handoff.js +3 -3
  37. package/dist/cjs/components/consent-request-expiry.js +1 -1
  38. package/dist/cjs/components/consent-revocation-notice.js +4 -2
  39. package/dist/cjs/components/consent-revocation-notice.js.map +1 -1
  40. package/dist/cjs/components/consent-revoke.js +9 -4
  41. package/dist/cjs/components/consent-revoke.js.map +1 -1
  42. package/dist/cjs/components/consent-secured-by.js +106 -0
  43. package/dist/cjs/components/consent-secured-by.js.map +1 -0
  44. package/dist/cjs/components/consent-shell.js +1 -1
  45. package/dist/cjs/components/consent-terms.js +7 -0
  46. package/dist/cjs/components/consent-terms.js.map +1 -1
  47. package/dist/cjs/components/consent-wallet-check.js +1 -1
  48. package/dist/cjs/components/consent-wallet-notice.js +1 -1
  49. package/dist/cjs/components/consent-wallet-orb.js +1 -1
  50. package/dist/cjs/components/consent-wallet-signature.js +1 -1
  51. package/dist/cjs/components/decision-icons.js +33 -0
  52. package/dist/cjs/components/decision-icons.js.map +1 -0
  53. package/dist/cjs/components/edit-region.js +309 -0
  54. package/dist/cjs/components/edit-region.js.map +1 -0
  55. package/dist/cjs/components/grant-field-styles.js +2 -2
  56. package/dist/cjs/components/index.js +4 -1
  57. package/dist/cjs/components/index.js.map +1 -1
  58. package/dist/cjs/components/mcp-consent.js +81 -36
  59. package/dist/cjs/components/mcp-consent.js.map +1 -1
  60. package/dist/cjs/components/preview.js +67 -0
  61. package/dist/cjs/components/preview.js.map +1 -0
  62. package/dist/cjs/constants/capabilities.js +12 -2
  63. package/dist/cjs/constants/capabilities.js.map +1 -1
  64. package/dist/cjs/copy/tokens.js +60 -21
  65. package/dist/cjs/copy/tokens.js.map +1 -1
  66. package/dist/cjs/identity/agent-identity.js +3 -2
  67. package/dist/cjs/identity/agent-identity.js.map +1 -1
  68. package/dist/cjs/mcp-app/inline.js +2 -2
  69. package/dist/cjs/mcp-app/inline.js.map +1 -1
  70. package/dist/cjs/react/index.js +11 -2
  71. package/dist/cjs/react/index.js.map +1 -1
  72. package/dist/cjs/styles/brand.js +385 -0
  73. package/dist/cjs/styles/brand.js.map +1 -0
  74. package/dist/cjs/styles/index.js +1 -0
  75. package/dist/cjs/styles/index.js.map +1 -1
  76. package/dist/cjs/styles/theme.js +100 -30
  77. package/dist/cjs/styles/theme.js.map +1 -1
  78. package/dist/cjs/types/capabilities.types.js +1 -2
  79. package/dist/cjs/types/capabilities.types.js.map +1 -1
  80. package/dist/cjs/types/decision.types.js +13 -0
  81. package/dist/cjs/types/decision.types.js.map +1 -0
  82. package/dist/cjs/types/edit.types.js +80 -0
  83. package/dist/cjs/types/edit.types.js.map +1 -0
  84. package/dist/cjs/types/index.js +2 -0
  85. package/dist/cjs/types/index.js.map +1 -1
  86. package/dist/components/consent-action-bar.d.ts +20 -1
  87. package/dist/components/consent-action-bar.d.ts.map +1 -1
  88. package/dist/components/consent-action-bar.js +97 -25
  89. package/dist/components/consent-action-bar.js.map +1 -1
  90. package/dist/components/consent-agent-header.d.ts +4 -17
  91. package/dist/components/consent-agent-header.d.ts.map +1 -1
  92. package/dist/components/consent-agent-header.js +7 -105
  93. package/dist/components/consent-agent-header.js.map +1 -1
  94. package/dist/components/consent-button.d.ts +2 -0
  95. package/dist/components/consent-button.d.ts.map +1 -1
  96. package/dist/components/consent-button.js +6 -1
  97. package/dist/components/consent-button.js.map +1 -1
  98. package/dist/components/consent-capabilities-screen.d.ts +85 -17
  99. package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
  100. package/dist/components/consent-capabilities-screen.js +456 -70
  101. package/dist/components/consent-capabilities-screen.js.map +1 -1
  102. package/dist/components/consent-capability-card.d.ts +23 -3
  103. package/dist/components/consent-capability-card.d.ts.map +1 -1
  104. package/dist/components/consent-capability-card.js +131 -27
  105. package/dist/components/consent-capability-card.js.map +1 -1
  106. package/dist/components/consent-checkbox.d.ts +2 -0
  107. package/dist/components/consent-checkbox.d.ts.map +1 -1
  108. package/dist/components/consent-checkbox.js +7 -0
  109. package/dist/components/consent-checkbox.js.map +1 -1
  110. package/dist/components/consent-connector-header.d.ts +39 -7
  111. package/dist/components/consent-connector-header.d.ts.map +1 -1
  112. package/dist/components/consent-connector-header.js +206 -43
  113. package/dist/components/consent-connector-header.js.map +1 -1
  114. package/dist/components/consent-duration.js +1 -1
  115. package/dist/components/consent-footer.d.ts +6 -4
  116. package/dist/components/consent-footer.d.ts.map +1 -1
  117. package/dist/components/consent-footer.js +13 -12
  118. package/dist/components/consent-footer.js.map +1 -1
  119. package/dist/components/consent-headline.d.ts +55 -16
  120. package/dist/components/consent-headline.d.ts.map +1 -1
  121. package/dist/components/consent-headline.js +398 -34
  122. package/dist/components/consent-headline.js.map +1 -1
  123. package/dist/components/consent-oauth-button.d.ts +7 -3
  124. package/dist/components/consent-oauth-button.d.ts.map +1 -1
  125. package/dist/components/consent-oauth-button.js +74 -65
  126. package/dist/components/consent-oauth-button.js.map +1 -1
  127. package/dist/components/consent-otp-input.d.ts.map +1 -1
  128. package/dist/components/consent-otp-input.js +5 -0
  129. package/dist/components/consent-otp-input.js.map +1 -1
  130. package/dist/components/consent-passkey.d.ts +6 -0
  131. package/dist/components/consent-passkey.d.ts.map +1 -1
  132. package/dist/components/consent-passkey.js +67 -9
  133. package/dist/components/consent-passkey.js.map +1 -1
  134. package/dist/components/consent-phone-handoff.js +3 -3
  135. package/dist/components/consent-request-expiry.js +1 -1
  136. package/dist/components/consent-revocation-notice.d.ts.map +1 -1
  137. package/dist/components/consent-revocation-notice.js +4 -2
  138. package/dist/components/consent-revocation-notice.js.map +1 -1
  139. package/dist/components/consent-revoke.d.ts +2 -0
  140. package/dist/components/consent-revoke.d.ts.map +1 -1
  141. package/dist/components/consent-revoke.js +9 -4
  142. package/dist/components/consent-revoke.js.map +1 -1
  143. package/dist/components/consent-secured-by.d.ts +25 -0
  144. package/dist/components/consent-secured-by.d.ts.map +1 -0
  145. package/dist/components/consent-secured-by.js +103 -0
  146. package/dist/components/consent-secured-by.js.map +1 -0
  147. package/dist/components/consent-shell.js +1 -1
  148. package/dist/components/consent-terms.d.ts +2 -0
  149. package/dist/components/consent-terms.d.ts.map +1 -1
  150. package/dist/components/consent-terms.js +7 -0
  151. package/dist/components/consent-terms.js.map +1 -1
  152. package/dist/components/consent-wallet-check.js +1 -1
  153. package/dist/components/consent-wallet-notice.js +1 -1
  154. package/dist/components/consent-wallet-orb.js +1 -1
  155. package/dist/components/consent-wallet-signature.js +1 -1
  156. package/dist/components/decision-icons.d.ts +22 -0
  157. package/dist/components/decision-icons.d.ts.map +1 -0
  158. package/dist/components/decision-icons.js +30 -0
  159. package/dist/components/decision-icons.js.map +1 -0
  160. package/dist/components/edit-region.d.ts +50 -0
  161. package/dist/components/edit-region.d.ts.map +1 -0
  162. package/dist/components/edit-region.js +305 -0
  163. package/dist/components/edit-region.js.map +1 -0
  164. package/dist/components/grant-field-styles.js +2 -2
  165. package/dist/components/index.d.ts +2 -1
  166. package/dist/components/index.d.ts.map +1 -1
  167. package/dist/components/index.js +2 -1
  168. package/dist/components/index.js.map +1 -1
  169. package/dist/components/mcp-consent.d.ts +15 -0
  170. package/dist/components/mcp-consent.d.ts.map +1 -1
  171. package/dist/components/mcp-consent.js +81 -36
  172. package/dist/components/mcp-consent.js.map +1 -1
  173. package/dist/components/preview.d.ts +38 -0
  174. package/dist/components/preview.d.ts.map +1 -0
  175. package/dist/components/preview.js +61 -0
  176. package/dist/components/preview.js.map +1 -0
  177. package/dist/consent.js +2104 -389
  178. package/dist/consent.min.js +1289 -497
  179. package/dist/constants/capabilities.d.ts +12 -3
  180. package/dist/constants/capabilities.d.ts.map +1 -1
  181. package/dist/constants/capabilities.js +12 -2
  182. package/dist/constants/capabilities.js.map +1 -1
  183. package/dist/copy/tokens.d.ts +60 -21
  184. package/dist/copy/tokens.d.ts.map +1 -1
  185. package/dist/copy/tokens.js +60 -21
  186. package/dist/copy/tokens.js.map +1 -1
  187. package/dist/identity/agent-identity.d.ts +3 -2
  188. package/dist/identity/agent-identity.d.ts.map +1 -1
  189. package/dist/identity/agent-identity.js +3 -2
  190. package/dist/identity/agent-identity.js.map +1 -1
  191. package/dist/mcp-app/inline.d.ts.map +1 -1
  192. package/dist/mcp-app/inline.js +2 -2
  193. package/dist/mcp-app/inline.js.map +1 -1
  194. package/dist/react/index.d.ts +6 -1
  195. package/dist/react/index.d.ts.map +1 -1
  196. package/dist/react/index.js +10 -1
  197. package/dist/react/index.js.map +1 -1
  198. package/dist/styles/brand.d.ts +184 -0
  199. package/dist/styles/brand.d.ts.map +1 -0
  200. package/dist/styles/brand.js +372 -0
  201. package/dist/styles/brand.js.map +1 -0
  202. package/dist/styles/index.d.ts +1 -0
  203. package/dist/styles/index.d.ts.map +1 -1
  204. package/dist/styles/index.js +1 -0
  205. package/dist/styles/index.js.map +1 -1
  206. package/dist/styles/theme.d.ts +73 -13
  207. package/dist/styles/theme.d.ts.map +1 -1
  208. package/dist/styles/theme.js +96 -29
  209. package/dist/styles/theme.js.map +1 -1
  210. package/dist/types/capabilities.types.d.ts +12 -14
  211. package/dist/types/capabilities.types.d.ts.map +1 -1
  212. package/dist/types/capabilities.types.js +1 -2
  213. package/dist/types/capabilities.types.js.map +1 -1
  214. package/dist/types/decision.types.d.ts +57 -0
  215. package/dist/types/decision.types.d.ts.map +1 -0
  216. package/dist/types/decision.types.js +12 -0
  217. package/dist/types/decision.types.js.map +1 -0
  218. package/dist/types/edit.types.d.ts +73 -0
  219. package/dist/types/edit.types.d.ts.map +1 -0
  220. package/dist/types/edit.types.js +76 -0
  221. package/dist/types/edit.types.js.map +1 -0
  222. package/dist/types/index.d.ts +2 -0
  223. package/dist/types/index.d.ts.map +1 -1
  224. package/dist/types/index.js +2 -0
  225. package/dist/types/index.js.map +1 -1
  226. package/package.json +2 -2
package/README.md CHANGED
@@ -17,8 +17,7 @@ It also works with KYA-OS, an open protocol, and Vouched KYA runs both for you a
17
17
  - [Vouched KYA](https://kya.vouched.id/docs/govern/consent) is the hosted, commercial service.
18
18
  It serves a consent page built on this package, stores the delegations it creates, verifies agent requests against them, and keeps the audit trail.
19
19
 
20
- The screen's default footer says "Protected by Checkpoint".
21
- Checkpoint is Vouched KYA's former name, and its hosted page relies on that default.
20
+ Under its card the screen draws "Secured by" and the Vouched lockup, and the hosted page relies on that default.
22
21
  When you host the screen yourself, put your own footer in the `footer` slot.
23
22
 
24
23
  ## Install
@@ -250,48 +249,183 @@ No other entry point imports either one.
250
249
  `<consent-passkey>` has its own component, `ConsentPasskeyReact`, in `@kya-os/consent/passkey/react` (see [Passkey mode](#passkey-mode)).
251
250
  Slotted parts are children, as in `<ConsentGrantTermsReact slot="details" chained />` inside the screen.
252
251
 
252
+ ## The decision page
253
+
254
+ The capabilities screen draws the consent page Checkpoint serves.
255
+ Top to bottom: the connector, then a card with the eyebrow, the headline, the subhead (only when you set `description`), a warning for an agent that registered itself, who is signing in, the permission rows, the "Permission details" box, and Allow and Deny; under the card, "Secured by" and the Vouched lockup, then your legal links.
256
+
257
+ ```js
258
+ screen.agentMetadata = {
259
+ name: "Claude",
260
+ did: "did:web:claude.ai",
261
+ verification: "unverified",
262
+ };
263
+ screen.approver = { identifier: "alice@example.com" };
264
+ screen.grantDetails = {
265
+ resource: "https://shop.example.com/mcp",
266
+ duration: {
267
+ values: ["1 hour, until 2:38 AM"],
268
+ note: "Permissions expire 1 hour after approval.",
269
+ },
270
+ amountLimits: { values: ["Up to €50.00 per call for orders:place"] },
271
+ };
272
+ ```
273
+
274
+ - **The headline** reads "{Agent} is requesting permission on your behalf", or "{Agent} would like to {verb} on your behalf" with `headlineVerb`.
275
+ The agent's name is a button that opens what is known about it: its logo or initial, how its name was checked, and its ID.
276
+ A domain-bound agent's name is followed by a chip naming the host that vouches for it.
277
+ - **An unverified agent** gets "Unverified agent: it registered itself, so the name it gives is not checked. Allow only if you asked it to." under the headline.
278
+ A `domain` or `verified` agent gets no warning, and nothing on the screen says "Verified".
279
+ - **`approver`** draws who is signing in, with their initial, and each check they passed (`checks: [{ label, summary, source }]`).
280
+ With neither an identifier nor a check, as for a confirmation without sign-in, no box is drawn.
281
+ - **`grantDetails`** draws the "Permission details" box: "Connects to" (`orgName` over `resource`), "Duration", "Budget", "Amount limits" and "Already granted", in that order, leaving out a row with nothing in it.
282
+ You word every value, so times, amounts and your own rules (such as leaving out a budget beside a per-call limit) stay yours.
283
+ Without `grantDetails` the screen draws its revocation notice instead.
284
+ - **Rows** are the label over its description, the "HIGHER RISK" chip at the label's right, and each scope as a code badge.
285
+ They draw no icon; set `show-icons` to draw each row's icon tile.
286
+
253
287
  ## Host content and styling
254
288
 
255
289
  Named slots place host content in the existing screen layout:
256
290
 
257
- - `identity`: before the agent identity tile.
291
+ - `recovery`: after the headline, such as an error.
292
+ - `identity`: after the unverified-agent warning, before who is signing in.
258
293
  - `auth`: after the capability rows, preserving the existing credential form integration.
259
294
  - `details`: after the authentication slot.
260
- - `notice`: replaces the default revocation and inactivity notice.
261
- - `footer`: replaces the default Checkpoint footer.
295
+ - `notice`: replaces the revocation and inactivity notice, which the screen draws when you give no `grantDetails`.
296
+ - `footer`: under the card, in place of "Secured by" and the Vouched lockup.
297
+ - `legal`: under the footer, such as Terms and Privacy links. With none, a "How does this work?" link shows there when `how-it-works-url` is set.
262
298
  - `headline`: the headline's words in place of the standard line, such as the agent's name as a button that opens its details. Your content is your own markup, so render an agent-chosen name as text.
263
299
  - `capability-<capability id>`: content shown inside that capability's row, under its scopes, such as a check the row needs. A click anywhere in it does not toggle the row, nor does a `capability-toggle` event sent from it, and it is not part of the row's accessible name. `capabilitySlotName(id)` from `@kya-os/consent/components` returns the slot's name.
264
300
 
265
301
  Use the `notice` slot whenever the host has different expiry or revocation behavior.
266
302
  An omitted slot preserves the existing Cedar screen's default content.
267
- The public parts are `connector`, `card`, `eyebrow`, `headline`, `subhead`, `agent`, `permissions`, `section-header` (the line above the rows), `actions`, `submit`, and `cancel`.
268
- Each row's parts are forwarded with a `capability-` prefix: `capability-row`, `capability-checkbox`, `capability-check` (the mark in a ticked box), `capability-icon`, `capability-body`, `capability-label-row` (the label, description and risk chip), `capability-label-text` (the label and description), `capability-label`, `capability-description`, `capability-risk`, `capability-scopes`, `capability-scope`, and `capability-policy`.
269
- Without host CSS the rows look as before.
270
- Public CSS variables include `--cs-screen-max-width`, `--cs-card-padding`, `--cs-card-padding-mobile`, `--cs-card-gap`, `--cs-headline-font-size`, `--cs-subhead-font-size`, `--cs-scope-font-size`, `--cs-action-font-size`, and `--cs-action-min-height`.
303
+ The public parts are `connector`, `card`, `eyebrow`, `headline`, `agent-name`, `host` (a domain-bound agent's chip), `subhead`, `agent-details` (what the name opens), `unverified`, `approver`, `permissions`, `grant-details`, `actions`, `submit`, `cancel`, and `below` (under the card).
304
+ Each row's parts are forwarded with a `capability-` prefix: `capability-row`, `capability-checkbox`, `capability-check` (the mark in a ticked box), `capability-icon` (with `show-icons`), `capability-body`, `capability-label-row` (the label, description and risk chip), `capability-label-text` (the label and description), `capability-label`, `capability-description`, `capability-risk`, `capability-scopes`, `capability-scope`, and `capability-policy`.
305
+
306
+ ### Theming from the page
307
+
308
+ Set any `--cs-*` property on the screen or on any element above it, and the screen draws it instead of its theme's own.
309
+ It reaches every part inside: the card, the rows, the notice, the connector and the buttons.
310
+ A property the page does not set keeps the theme's value.
311
+
312
+ ```css
313
+ main {
314
+ --cs-surface-card: #faf8f0;
315
+ --cs-text-primary: #141e28;
316
+ --cs-card-radius: 12px;
317
+ --cs-action-radius: 8px;
318
+ --cs-headline-font: "Instrument Serif", Georgia, serif;
319
+ --cs-headline-weight: 600;
320
+ }
321
+ ```
322
+
323
+ The theme's colors are `--cs-surface-bg`, `--cs-surface-card`, `--cs-surface-border`, `--cs-surface-inset` (the panel inside the card), `--cs-text-primary`, `--cs-text-secondary`, `--cs-text-tertiary`, `--cs-surface-accent` and `--cs-surface-accent-text` (the primary action and ticked boxes), `--cs-focus-ring`, the risk chip colors, and `--cs-card-shadow`.
324
+ Six more are made from those unless the page sets them: `--cs-tint` and `--cs-tint-line` (a wash of the text over the card, for tinted boxes such as who is signing in and "Permission details"), `--cs-mark` (marks such as a shield and the details' icons), `--cs-action` (words in the brand, such as the agent's name), `--cs-warning-text` (the unverified-agent warning; amber in both themes) and `--cs-lockup` (the Vouched lockup; Vouched blue in the light theme, the text color in the dark one).
325
+ `--cs-icon` colors the row and notice icons; unset, they keep the text colors.
326
+ `--cs-card-radius` (default `12px`) rounds the card, `--cs-action-radius` (default `6px`) rounds Allow, Deny, the passkey button and the revoke buttons, and `--cs-headline-font`, `--cs-headline-weight` and `--cs-headline-font-size` (default `"Instrument Serif", Georgia, serif` at 600 and 32px) set the headline's face; the page loads Instrument Serif if it wants it.
327
+ `--cs-scope-border` and `--cs-scope-bg` draw each scope's badge.
328
+
329
+ ### The connector
330
+
331
+ The connector above the card shows the agent's mark, a bridge with a shield, and the org's logo.
332
+ The bridge, the default, draws dashed lines through a shield in `--cs-tint`, edged in `--cs-tint-line` and drawn in `--cs-mark`, so it follows a brand; set `connector-variant="dots"` on the screen or on `<mcp-consent>` (or `variant="dots"` on `<consent-connector-header>`) for the dotted lines and green shield.
333
+ Logos are contained, never cropped: a square logo sits at the mark's height in a square tile, and a wordmark widens its tile up to 126px and is contained past that.
334
+ Where a row is short of room, the bridge gives way first, then the logo's tile, down to square.
335
+ A broken logo shows the name's first letter, and a new logo URL is tried again.
336
+ `--cs-tile-radius` (default `14px`) rounds both tiles.
337
+ The connector names no one but the agent and the org: set `via` (on the screen or `<mcp-consent>`) to say who carries the connection (read out as "Atlas is connecting to Northwind via Your product", and shown on the shield).
338
+
339
+ The light theme's quietest text (`#5D6C82`) reads at 4.5:1 on the cream panel as well as the card, and its focus ring (`#0F172A`) at 3:1 on both.
340
+
341
+ Public CSS variables also include `--cs-screen-max-width`, `--cs-card-padding`, `--cs-card-padding-mobile`, `--cs-card-gap`, `--cs-headline-font-size`, `--cs-subhead-font-size`, `--cs-scope-font-size`, `--cs-action-font-size`, and `--cs-action-min-height`.
271
342
  Set the mobile padding variable separately when overriding padding below 480px.
272
343
  `--cs-agent-tile-bg` sets the agent logo tile background (default `#FFFFFF` in both themes).
273
344
  `--cs-agent-tile-border` sets the agent logo tile border color (default `rgba(15, 23, 42, 0.08)` in both themes).
274
345
  `--cs-agent-tile-text` sets the agent monogram color shown when there is no logo (default `#0F172A` in both themes).
275
346
  These hooks style the actual components without reaching into their shadow roots.
276
347
 
277
- ## The agent pill
278
-
279
- `agentMetadata.verification` picks the pill beside the agent's name:
280
-
281
- - `verified`: proven by a verified Entity Card. The pill says Verified.
282
- - `domain`: bound to the https host that served the client's metadata (a CIMD client). Set `domain` to that host, such as `chatgpt.com`; the pill shows it and never says Verified, and the agent stays capped at probe.
283
- - `unverified`: self-asserted, such as a dynamically registered client. The pill says UNVERIFIED.
348
+ ## Preview and edit mode
349
+
350
+ A dashboard that shows a customer their consent screen sets `preview`.
351
+ The screen draws exactly as it would live and acts on nothing: Allow and Deny send no decision, no link goes anywhere, no form is submitted, and no request is made.
352
+ Rows still tick, so a person can try it.
353
+ Set it on the outermost element (`<consent-capabilities-screen>` or `<mcp-consent>`); every part inside gets it, and each element that acts takes it on its own too.
354
+
355
+ Add `editable` and the screen's words become regions a person types into: the subhead (starting from the standard line when you set no `description`), the organization's name under "Connects to" (when you give `grantDetails`), each permission's name and description, and the Allow and Deny labels.
356
+ In edit mode the rows stop toggling, and Allow and Deny draw as boxes of the same size with the same parts, so no region sits inside a button.
357
+ Each change sends `consent-edit` with `{ key, value }`.
358
+ Write the value back to your own data and pass the result to the screen, as you would for any change: the region a person is typing in is never redrawn under them, so the caret stays put, and everywhere else the words appear follows at once.
359
+ `editable` without `preview` is ignored, with a console warning, so a live page is never edited.
360
+
361
+ ```js
362
+ import { parseConsentEditKey } from "@kya-os/consent/types";
363
+
364
+ screen.preview = true;
365
+ screen.editable = true;
366
+ // What a person edits where it differs from what the screen draws.
367
+ screen.editSource = { description: "Pick what {Agent} is allowed to do." };
368
+
369
+ screen.addEventListener("consent-edit", (event) => {
370
+ const { key, value } = event.detail;
371
+ const target = parseConsentEditKey(key);
372
+ if (target?.kind === "org-name") screen.orgName = value;
373
+ if (target?.kind === "description") {
374
+ screen.editSource = { ...screen.editSource, description: value };
375
+ screen.description = value.replaceAll("{Agent}", "Atlas");
376
+ }
377
+ if (target?.kind === "capability-label") {
378
+ screen.capabilities = screen.capabilities.map((capability) =>
379
+ capability.id === target.capabilityId
380
+ ? { ...capability, label: value }
381
+ : capability
382
+ );
383
+ }
384
+ if (target?.kind === "capability-description") {
385
+ screen.capabilities = screen.capabilities.map((capability) =>
386
+ capability.id === target.capabilityId
387
+ ? { ...capability, description: value }
388
+ : capability
389
+ );
390
+ }
391
+ });
392
+ ```
284
393
 
394
+ | Key (`CONSENT_EDIT_KEYS`) | Region |
395
+ | --------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
396
+ | `description` | The subhead |
397
+ | `org-name` | The organization's name under "Connects to" |
398
+ | `capability:<id>:label` | A permission's name |
399
+ | `capability:<id>:description` | A permission's description |
400
+ | `submit-label`, `cancel-label` | The Allow and Deny labels |
401
+ | `headline`, `terminal:title`, `terminal:body` | For a host that draws these itself: a headline in the `headline` slot, and the page after the decision |
402
+
403
+ While a region has focus it shows its raw text from `editSource`, such as a template with placeholders, and the drawn text again when it is left.
404
+ A click on text that is its own raw text keeps the caret where it landed; anywhere else focus puts the caret at the end.
405
+ Enter and Escape leave a region, and every key typed in one stays there, so no shortcut on your page and no row toggle sees it.
406
+ Paste inserts plain text on one line, and a drop into a region is ignored.
407
+ Leaving a region you changed sends `consent-edit-end` with the same detail, for grouping undo; visiting one without a change sends nothing.
408
+ Replace objects and arrays to change them (`capabilities`, `editSource`): a change made inside the same object is not seen.
409
+ `--cs-edit-hover-ring`, `--cs-edit-focus-ring` and `--cs-edit-wash` style the regions, and default to the text's own color, so they read on the card and on the Allow button alike.
410
+
411
+ ## Agent verification
412
+
413
+ `agentMetadata.verification` says how the agent's identity is established:
414
+
415
+ - `verified`: proven by a verified Entity Card.
416
+ - `domain`: bound to the https host that served the client's metadata (a CIMD client). Set `domain` to that host, such as `chatgpt.com`.
417
+ - `unverified`: self-asserted, such as a dynamically registered client.
418
+
419
+ The screen draws no "Verified" badge for any of them. An `unverified` agent gets a warning under the headline, a `domain` agent's name is followed by the host that vouches for it, and the name opens what is known about the agent (see [The decision page](#the-decision-page)).
420
+ The verification decides what a grant may reach instead: `isCappedAtProbe` caps any agent that isn't `verified`, or has no `connectedAt`, at probe, and `compileCapabilitiesToCedar` holds to that cap.
285
421
  The deprecated `verified` boolean is read only when `verification` is absent.
286
- The domain pill is tinted from `--consent-primary` and takes the theme's text color; `--cs-pill-domain-bg`, `--cs-pill-domain-border`, and `--cs-pill-domain-text` override it.
287
422
 
288
423
  ## Agent identity: Entity Cards
289
424
 
290
425
  Instead of `agentMetadata`, a host can hand the screen the agent as a KYA-OS Entity Card plus what its verifier established: `agentIdentity` on `<consent-capabilities-screen>` and `<mcp-consent>`, the `agent-identity` attribute, or `agentIdentity` in `generateConsentShell`.
291
- The screen picks the pill from the verification, bound to the card.
292
- A `verified` result counts only when it names the card's own DID, and a `domain` result only when it names the card's own domain; anything else shows UNVERIFIED.
293
- When `agentIdentity` is set it is the only source for the agent tile: one that doesn't validate shows no tile, and never falls back to `agentMetadata`.
294
- On `<mcp-consent>`, the card must name the `agent-did` the grant is for, or no tile shows.
426
+ The verification is bound to the card: a `verified` result counts only when it names the card's own DID, and a `domain` result only when it names the card's own domain; anything else reads as `unverified`.
427
+ When `agentIdentity` is set it is the only source for the agent the screen names: one that doesn't validate names no agent, and never falls back to `agentMetadata`.
428
+ On `<mcp-consent>`, the card must name the `agent-did` the grant is for, or no agent is named.
295
429
 
296
430
  The screen never verifies anything; the host does, before it renders the page.
297
431
  `@kya-os/consent/identity` reads what agents already publish into the card shape:
@@ -303,7 +437,7 @@ The screen never verifies anything; the host does, before it renders the page.
303
437
 
304
438
  `resolveAgentIdentity(document, { verifier, context })` reads the document, runs the verifier, binds its result to the card, and returns the `AgentIdentity` to render.
305
439
  A verifier that throws or returns something malformed leaves the identity unverified.
306
- A `verified` result must come with the verifier's own card for the document's DID, and the identity shows that card, so the name next to Verified is one the verifier checked.
440
+ A `verified` result must come with the verifier's own card for the document's DID, and the identity shows that card, so a verified agent's tile shows a name the verifier checked.
307
441
  Without a valid one, the identity is unverified.
308
442
  Three verifiers fit:
309
443
 
@@ -359,10 +493,35 @@ Text drawn on or in a brand color reads its own variable, so it reaches WCAG AA
359
493
  `<mcp-consent>` and `<consent-shell>` set them along with the brand colors they apply.
360
494
  A host that sets `--consent-primary` itself should set them too; `generateCSSVariables(branding)` returns all of them.
361
495
 
496
+ `brandTokens(brand)` from `@kya-os/consent/styles` turns a brand into the `--cs-*` properties the screens read, each checked so it reads; `brandStyle(brand)` returns the same as a style attribute.
497
+ Set them on any element above the screens.
498
+
499
+ ```ts
500
+ import { brandStyle } from "@kya-os/consent/styles";
501
+
502
+ const style = brandStyle({
503
+ primaryColor: "#1e3a5f",
504
+ secondaryColor: "#b08d57",
505
+ });
506
+ // <main style="${style}"> ... <consent-capabilities-screen> ... </main>
507
+ ```
508
+
509
+ - The brand fills the primary action and ticked boxes, with black or white on it, whichever reads (`onPrimaryFor`).
510
+ - `--cs-tint` and `--cs-tint-line` are the brand at 7% and 18% over the card.
511
+ - Marks (`markColorFor`, 3:1), words (`actionColorFor`, 4.5:1) and the focus ring (`focusRingFor`, 3:1) are in the brand where it reads on the card and its tint, else in the text color.
512
+ - Icons are in the secondary, made darker or lighter, whichever is nearer, only as far as they must be to show at 3:1 (`iconColorFor`), so a dark palette gets light icons.
513
+ - A brand may also choose the page's colors (`PALETTE_FIELDS`: `surfaceColor`, `panelColor`, `borderColor`, `textColor`, `mutedTextColor`, `focusColor`). `paletteFailures(palette)` lists each pair that would not read, for an editor to refuse; `brandTokens` draws only what `drawablePalette` keeps.
514
+
515
+ Every color is `#rrggbb`; anything else throws, so nothing unchecked reaches a style attribute.
516
+ Unless a brand chooses its own page colors, the helpers judge against the light theme's surfaces.
517
+ Importing `@kya-os/consent/styles` defines no element, so a server can use it.
518
+
362
519
  `CONSENT_CAPABILITIES_FEATURES` is exported from the package root, constants entry point, and browser bundle.
363
520
  `ConsentCapabilitiesScreen.features` exposes the same versioned object for hosts loading a script dynamically.
364
521
  Version 1 supports scope-only rows and the `identity`, `details`, `notice`, and `footer` slots.
365
522
  Version 2 adds the `headline` slot, a slot per row (`capabilitySlotPrefix` plus the capability's id), and the row parts.
523
+ Version 3 lets the page theme the screen from any ancestor, and adds the card, action and headline tokens and the tint, mark and action colors.
524
+ Version 4 draws the decision page by default (`approver`, `grantDetails`, `show-icons`, the unverified-agent warning and the agent's details), moves the `footer` slot under the card, and adds the `legal` slot.
366
525
 
367
526
  ## Main consent component selection
368
527
 
@@ -496,6 +655,7 @@ Run `pnpm test` and `pnpm build` for the package suite and all bundle formats.
496
655
  The build also verifies that the browser, ESM, CJS, and MCP App inline bundles contain the same UI.
497
656
  Run `pnpm test:browser` in a Python environment with Playwright installed for real Chromium tests of the public component contract.
498
657
  Set `CHROMIUM` to use an existing Chromium executable; otherwise Playwright's installed Chromium is used.
658
+ The edit-mode test also runs in Firefox and WebKit, where caret placement and contenteditable differ: `BROWSERS` picks the engines (default `chromium,firefox,webkit`), and `FIREFOX` and `WEBKIT` select executables the way `CHROMIUM` does.
499
659
  The browser suite covers scope-only and Cedar rendering, custom content, mobile layout, empty and disabled approval, frozen scope selection while loading, actual main-component form submission, scope mismatch refusal, fixed-grant authentication gates, and the grant terms and revoke panel: form association, keyboard order, Allow carrying the terms, and the fit at 320px.
500
660
  It also runs `<consent-passkey>` against a CDP virtual authenticator: passkey registration and a user-verified assertion, a failed user verification, and a browser without WebAuthn.
501
661
 
@@ -34,6 +34,7 @@ import "../components/consent-headline.js";
34
34
  import "../components/consent-capability-card.js";
35
35
  import "../components/consent-action-bar.js";
36
36
  import "../components/consent-footer.js";
37
+ import "../components/consent-secured-by.js";
37
38
  import "../components/consent-revocation-notice.js";
38
39
  import "../components/consent-connector-header.js";
39
40
  import "../components/consent-capabilities-screen.js";
@@ -66,7 +67,10 @@ export { ConsentRevocationNotice } from "../components/consent-revocation-notice
66
67
  export { ConsentConnectorHeader } from "../components/consent-connector-header.js";
67
68
  export { ConsentCapabilitiesScreen } from "../components/consent-capabilities-screen.js";
68
69
  export { CONSENT_CAPABILITIES_FEATURES } from "../constants/capabilities.js";
70
+ export { brandStyle, brandTokens, drawablePalette, paletteFailures, PALETTE_FIELDS, } from "../styles/brand.js";
71
+ export { CONSENT_EDIT_EVENTS, CONSENT_EDIT_KEYS, parseConsentEditKey, } from "../types/edit.types.js";
69
72
  export type { ConsentConfig, ResolvedConsentConfig, } from "../types/config.types.js";
70
73
  export type { OAuthIdentity } from "../types/api.types.js";
71
74
  export type { ConsentScopeCapability } from "../types/capabilities.types.js";
75
+ export type { ConsentEditDetail, ConsentEditKey, ConsentEditSource, } from "../types/edit.types.js";
72
76
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AACxC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,gCAAgC,CAAC;AACxC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,0CAA0C,CAAC;AAClD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,iCAAiC,CAAC;AACzC,OAAO,4CAA4C,CAAC;AACpD,OAAO,2CAA2C,CAAC;AACnD,OAAO,8CAA8C,CAAC;AACtD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,sCAAsC,CAAC;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AAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAI7E,OAAO,EACL,UAAU,EACV,WAAW,EACX,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAGhC,YAAY,EACV,aAAa,EACb,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,iBAAiB,GAClB,MAAM,wBAAwB,CAAC"}
@@ -35,6 +35,7 @@ import "../components/consent-headline.js";
35
35
  import "../components/consent-capability-card.js";
36
36
  import "../components/consent-action-bar.js";
37
37
  import "../components/consent-footer.js";
38
+ import "../components/consent-secured-by.js";
38
39
  import "../components/consent-revocation-notice.js";
39
40
  import "../components/consent-connector-header.js";
40
41
  import "../components/consent-capabilities-screen.js";
@@ -69,4 +70,9 @@ export { ConsentRevocationNotice } from "../components/consent-revocation-notice
69
70
  export { ConsentConnectorHeader } from "../components/consent-connector-header.js";
70
71
  export { ConsentCapabilitiesScreen } from "../components/consent-capabilities-screen.js";
71
72
  export { CONSENT_CAPABILITIES_FEATURES } from "../constants/capabilities.js";
73
+ // The brand helpers, for a page with no build step: pure functions that turn
74
+ // a brand into the --cs-* properties to set above the screens.
75
+ export { brandStyle, brandTokens, drawablePalette, paletteFailures, PALETTE_FIELDS, } from "../styles/brand.js";
76
+ // Edit mode, for a host that writes edits back with no build step.
77
+ export { CONSENT_EDIT_EVENTS, CONSENT_EDIT_KEYS, parseConsentEditKey, } from "../types/edit.types.js";
72
78
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,iEAAiE;AACjE,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AACxC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,gCAAgC,CAAC;AACxC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,oCAAoC,CAAC;AAC5C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,0CAA0C,CAAC;AAClD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,iCAAiC,CAAC;AACzC,OAAO,4CAA4C,CAAC;AACpD,OAAO,2CAA2C,CAAC;AACnD,OAAO,8CAA8C,CAAC;AACtD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,sCAAsC,CAAC;AAC9C,OAAO,iCAAiC,CAAC;AACzC,OAAO,qCAAq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C;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAE7E,6EAA6E;AAC7E,+DAA+D;AAC/D,OAAO,EACL,UAAU,EACV,WAAW,EACX,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,mEAAmE;AACnE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAsgqW,CAAC;AAEpiqW;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAe,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAuC,CAAC"}
1
+ {"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAy45Y,CAAC;AAEv65Y;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAe,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAuC,CAAC"}