@aleph-alpha/lib-mcp 3.0.0 → 4.0.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "CkAgentMessage": {
3
- "description": "Layout for a single assistant (agent) turn in a conversation. Exposes `icon`, `header`, default content and `footer` slots for full control over each section while keeping consistent spacing and alignment.",
3
+ "description": "Layout for a single assistant (agent) turn in a conversation. Exposes a full-width `header`, default content and `footer` slots for full control over each section while keeping consistent spacing and alignment. The agent icon now lives inside the header (see `CkAgentMessageHeader`), so the `header` slot spans the entire width.",
4
4
  "category": "Messages",
5
5
  "useCases": [
6
6
  "render assistant reply",
@@ -20,16 +20,129 @@
20
20
  "related": [
21
21
  "CkUserMessage",
22
22
  "CkConversation",
23
+ "CkAgentMessageHeader",
23
24
  "CkMarkdownRenderer",
24
- "CkCopyMessageActionButton"
25
+ "CkCopyMessageButton"
26
+ ],
27
+ "props": [
28
+ "bottomSeparator"
25
29
  ],
26
- "props": [],
27
30
  "examples": [
28
31
  "Default",
32
+ "WithActivityHeader",
29
33
  "WithFooterActions",
30
- "WithRichContent",
31
- "WithCustomHeader",
32
- "WithoutIcon"
34
+ "WithoutHeader",
35
+ "WithoutBottomSeparator",
36
+ "WithCitations"
37
+ ],
38
+ "_autoGenerated": true
39
+ },
40
+ "CkAgentMessageHeader": {
41
+ "description": "Full-width header row for an assistant (agent) message. Owns the agent icon, a header text and an optional activity button, and is intended to be passed into the `header` slot of `CkAgentMessage`. It has two visual states, driven purely by whether the `activity` slot is provided: - **with `activity`** — vertical padding and a bottom border separate the header from the message body; - **without `activity`** — a compact icon + text row with no padding or border. Slots: `icon` (leading agent avatar/icon), default (header text, ellipsised on overflow), `activity` (typically a `CkHeaderActivityButton`).",
42
+ "category": "Messages",
43
+ "useCases": [
44
+ "agent message header",
45
+ "assistant turn header",
46
+ "chain-of-thought summary row",
47
+ "activity indicator row"
48
+ ],
49
+ "keywords": [
50
+ "agent",
51
+ "assistant",
52
+ "message",
53
+ "header",
54
+ "icon",
55
+ "activity",
56
+ "conversation"
57
+ ],
58
+ "related": [
59
+ "CkAgentMessage",
60
+ "CkHeaderActivityButton",
61
+ "CkConversation"
62
+ ],
63
+ "props": [],
64
+ "examples": [
65
+ "WithActivityButton",
66
+ "WithoutActivityButton"
67
+ ],
68
+ "_autoGenerated": true
69
+ },
70
+ "CkCitation": {
71
+ "description": "An inline citation marker — the numbered chip rendered in place of a `[n]` reference inside an assistant answer. On hover, or when activated by keyboard (Enter/Space) or click, it reveals a `CkCitationCard` describing the source. The marker shows the bare source number (no brackets). Activating the card's external-link action re-emits `open-source` so the host can open the (possibly auth-proxied) source URL.",
72
+ "category": "Data Display",
73
+ "useCases": [
74
+ "inline citation in assistant reply",
75
+ "numbered source reference",
76
+ "hover to preview the cited file/page"
77
+ ],
78
+ "keywords": [
79
+ "citation",
80
+ "source",
81
+ "reference",
82
+ "inline",
83
+ "marker",
84
+ "footnote",
85
+ "number",
86
+ "hover",
87
+ "popover"
88
+ ],
89
+ "related": [
90
+ "CkCitationCard",
91
+ "CkMarkdownRenderer",
92
+ "CkAgentMessage"
93
+ ],
94
+ "props": [],
95
+ "examples": [
96
+ "Default",
97
+ "Selected",
98
+ "InlineInText",
99
+ "MultiDigitIndex",
100
+ "WithoutLink",
101
+ "LongFileName",
102
+ "WithoutLocation",
103
+ "SourceTypes"
104
+ ],
105
+ "_autoGenerated": true
106
+ },
107
+ "CkCitationCard": {
108
+ "description": "The floating card that describes a single citation source: the source file, the cited excerpt, an optional location (e.g. page), and an optional external-link action. Rendered as the hover/focus content of `CkCitation`, but usable on its own wherever a source preview is needed. Purely presentational and prop-driven. The external-link action is exposed as an `open-source` event rather than a plain link, because the source URL is often auth-proxied and cannot be navigated to directly.",
109
+ "category": "Data Display",
110
+ "useCases": [
111
+ "citation source preview",
112
+ "hover card for an inline reference",
113
+ "show the cited file/page/excerpt"
114
+ ],
115
+ "keywords": [
116
+ "citation",
117
+ "source",
118
+ "card",
119
+ "popover",
120
+ "reference",
121
+ "file",
122
+ "page",
123
+ "excerpt",
124
+ "preview"
125
+ ],
126
+ "related": [
127
+ "CkCitation",
128
+ "CkMarkdownRenderer",
129
+ "CkAgentMessage"
130
+ ],
131
+ "props": [
132
+ "fileName",
133
+ "snippet",
134
+ "locationLabel",
135
+ "url",
136
+ "openSourceLabel"
137
+ ],
138
+ "examples": [
139
+ "Default",
140
+ "WithoutLink",
141
+ "WithoutLocation",
142
+ "MinimalSnippetOnly",
143
+ "LongFileName",
144
+ "LongSnippet",
145
+ "FileTypeVariants"
33
146
  ],
34
147
  "_autoGenerated": true
35
148
  },
@@ -66,7 +179,7 @@
66
179
  ],
67
180
  "_autoGenerated": true
68
181
  },
69
- "CkCopyMessageActionButton": {
182
+ "CkCopyMessageButton": {
70
183
  "description": "Copy-to-clipboard action button for chat messages. Shows a check icon and announces success for assistive technologies, then reverts after a delay.",
71
184
  "category": "Actions",
72
185
  "useCases": [
@@ -85,7 +198,7 @@
85
198
  "feedback"
86
199
  ],
87
200
  "related": [
88
- "CkMessageActionButton",
201
+ "CkMessageButton",
89
202
  "CkAgentMessage",
90
203
  "CkConversation"
91
204
  ],
@@ -163,8 +276,8 @@
163
276
  "button"
164
277
  ],
165
278
  "related": [
166
- "CkMessageActionButton",
167
- "CkCopyMessageActionButton",
279
+ "CkMessageButton",
280
+ "CkCopyMessageButton",
168
281
  "CkAgentMessage",
169
282
  "CkConversation"
170
283
  ],
@@ -203,7 +316,7 @@
203
316
  ],
204
317
  "related": [
205
318
  "CkFeedbackButton",
206
- "CkMessageActionButton",
319
+ "CkMessageButton",
207
320
  "CkAgentMessage"
208
321
  ],
209
322
  "props": [
@@ -235,7 +348,7 @@
235
348
  "_autoGenerated": true
236
349
  },
237
350
  "CkFileItemsList": {
238
- "description": "Horizontal list of file attachments; collapses to a popover once the count exceeds `maxInline`.",
351
+ "description": "Horizontal list of file attachments. Renders as many items inline as fit the available width — each kept between `minItemWidth` and `maxItemWidth` wide — and collapses into a popover once they no longer fit.",
239
352
  "category": "Form Inputs",
240
353
  "useCases": [
241
354
  "user message attachments",
@@ -258,7 +371,8 @@
258
371
  ],
259
372
  "props": [
260
373
  "files",
261
- "maxInline",
374
+ "minItemWidth",
375
+ "maxItemWidth",
262
376
  "size",
263
377
  "isRemovable",
264
378
  "removeLabel",
@@ -276,6 +390,44 @@
276
390
  "Removable",
277
391
  "CustomItem",
278
392
  "Clickable",
393
+ "Disabled",
394
+ "Responsive"
395
+ ],
396
+ "_autoGenerated": true
397
+ },
398
+ "CkHeaderActivityButton": {
399
+ "description": "Compact, ghost-styled button shown on the right of an agent message header (see `CkAgentMessageHeader`). Renders a short label followed by a trailing icon (an arrow by default) and emits a generic `click` event — it performs no action of its own, leaving the consumer to decide what happens (e.g. open an activity / chain-of-thought panel).",
400
+ "category": "Actions",
401
+ "useCases": [
402
+ "agent message header action",
403
+ "open activity panel",
404
+ "chain-of-thought summary toggle",
405
+ "tool/source indicator"
406
+ ],
407
+ "keywords": [
408
+ "header",
409
+ "activity",
410
+ "action",
411
+ "button",
412
+ "ghost",
413
+ "arrow",
414
+ "agent",
415
+ "message"
416
+ ],
417
+ "related": [
418
+ "CkAgentMessageHeader",
419
+ "CkAgentMessage",
420
+ "CkConversation",
421
+ "CkMessageButton"
422
+ ],
423
+ "props": [
424
+ "disabled",
425
+ "ariaLabel",
426
+ "icon"
427
+ ],
428
+ "examples": [
429
+ "Default",
430
+ "WithoutIcon",
279
431
  "Disabled"
280
432
  ],
281
433
  "_autoGenerated": true
@@ -361,7 +513,8 @@
361
513
  "props": [
362
514
  "content",
363
515
  "classes",
364
- "plugins"
516
+ "plugins",
517
+ "citations"
365
518
  ],
366
519
  "examples": [
367
520
  "Default",
@@ -370,11 +523,14 @@
370
523
  "ComplexMarkdown",
371
524
  "WithCustomClasses",
372
525
  "GfmFeatures",
373
- "WithCustomPlugin"
526
+ "MathExpressions",
527
+ "WithCustomPlugin",
528
+ "WithCitations",
529
+ "WithUnsupportedAndCodeMarkers"
374
530
  ],
375
531
  "_autoGenerated": true
376
532
  },
377
- "CkMessageActionButton": {
533
+ "CkMessageButton": {
378
534
  "description": "Small icon-only action button used in the footer of chat messages. Acts as a ghost-styled wrapper around `UiButton` with consistent chat-kit tokens.",
379
535
  "category": "Actions",
380
536
  "useCases": [
@@ -393,7 +549,7 @@
393
549
  "button"
394
550
  ],
395
551
  "related": [
396
- "CkCopyMessageActionButton",
552
+ "CkCopyMessageButton",
397
553
  "CkAgentMessage",
398
554
  "CkConversation"
399
555
  ],
@@ -445,7 +601,7 @@
445
601
  "_autoGenerated": true
446
602
  },
447
603
  "CkPromptInput": {
448
- "description": "Low-level prompt input: an auto-growing textarea (1–6 lines, then internal scroll) with `toolbar-top` / `toolbar-left` / `toolbar-right` / `footer` slots and keyboard submission (Enter to submit, Shift+Enter for newline). The form layout adapts between a compact single-row variant (large 3xl radius) and a stacked multi-row variant (2xl radius) automatically — driven by content height and whether `toolbar-top` is filled. Use when you need full control over the prompt layout; for a turnkey chat input use `CkInput` instead.",
604
+ "description": "Low-level prompt input: an auto-growing textarea (1–6 lines, then internal scroll) with `toolbar-top` / `toolbar-left` / `toolbar-right` / `footer` slots and keyboard submission (Enter to submit, Shift+Enter for newline). The form layout adapts between a compact single-row variant (large 3xl radius) and a stacked multi-row variant (2xl radius) automatically — driven by content height and whether `toolbar-top` is filled. Compose it with `CkPromptSendButton`, `CkPromptStopButton`, and `CkPromptInputDisclaimer` to build a complete chat input.",
449
605
  "category": "Form Inputs",
450
606
  "useCases": [
451
607
  "raw chat prompt textarea",
@@ -468,7 +624,6 @@
468
624
  "toolbar"
469
625
  ],
470
626
  "related": [
471
- "CkInput",
472
627
  "CkPromptSendButton",
473
628
  "CkPromptStopButton",
474
629
  "CkPromptMenuButton",
@@ -514,8 +669,8 @@
514
669
  "input"
515
670
  ],
516
671
  "related": [
517
- "CkInput",
518
- "CkPromptInput"
672
+ "CkPromptInput",
673
+ "CkPromptSendButton"
519
674
  ],
520
675
  "props": [
521
676
  "text"
@@ -588,7 +743,6 @@
588
743
  "related": [
589
744
  "CkPromptInput",
590
745
  "CkPromptStopButton",
591
- "CkInput",
592
746
  "CkSendIcon"
593
747
  ],
594
748
  "props": [
@@ -627,7 +781,6 @@
627
781
  "CkPromptSendButton",
628
782
  "CkPromptMenuButton",
629
783
  "CkPromptInput",
630
- "CkInput",
631
784
  "CkStopIcon"
632
785
  ],
633
786
  "props": [
@@ -640,6 +793,40 @@
640
793
  ],
641
794
  "_autoGenerated": true
642
795
  },
796
+ "CkRegenerateMessageButton": {
797
+ "description": "Regenerate action button for chat messages. Lets the user request a new response for an assistant message. Renders an icon-only button with an accessible label and tooltip.",
798
+ "category": "Actions",
799
+ "useCases": [
800
+ "regenerate assistant reply",
801
+ "retry message",
802
+ "request new response",
803
+ "chat message action"
804
+ ],
805
+ "keywords": [
806
+ "regenerate",
807
+ "retry",
808
+ "repeat",
809
+ "action",
810
+ "message",
811
+ "button",
812
+ "icon"
813
+ ],
814
+ "related": [
815
+ "CkMessageButton",
816
+ "CkCopyMessageButton",
817
+ "CkAgentMessage",
818
+ "CkConversation"
819
+ ],
820
+ "props": [
821
+ "disabled",
822
+ "ariaLabel"
823
+ ],
824
+ "examples": [
825
+ "Default",
826
+ "Disabled"
827
+ ],
828
+ "_autoGenerated": true
829
+ },
643
830
  "CkUserMessage": {
644
831
  "description": "Layout for a single user turn in a conversation. Renders the message text right-aligned in the muted on-surface color with a max-width; supports a default slot for custom inline content. When `collapsedLines` is set, long messages are clamped with a fade and a \"Show more\" / \"Show less\" toggle.",
645
832
  "category": "Messages",
@@ -702,8 +889,8 @@
702
889
  "CkAgentMessage",
703
890
  "CkUserMessage",
704
891
  "CkMarkdownRenderer",
705
- "CkCopyMessageActionButton",
706
- "CkInput"
892
+ "CkCopyMessageButton",
893
+ "CkPromptInput"
707
894
  ],
708
895
  "props": [
709
896
  "messages",
@@ -772,52 +959,5 @@
772
959
  "NoCollapse"
773
960
  ],
774
961
  "_autoGenerated": true
775
- },
776
- "CkInput": {
777
- "description": "Drop-in chat input: combines `CkPromptInput`, a `CkPromptSendButton` send button, and a `CkPromptInputDisclaimer`. Supports `v-model`, loading and disabled states, and slots to customize the toolbar and footer.",
778
- "category": "Form Inputs",
779
- "useCases": [
780
- "chat compose input",
781
- "prompt box with send button",
782
- "llm input with disclaimer",
783
- "quick-start chat input",
784
- "turnkey chat input"
785
- ],
786
- "keywords": [
787
- "input",
788
- "prompt",
789
- "chat",
790
- "send",
791
- "compose",
792
- "disclaimer",
793
- "loading",
794
- "v-model",
795
- "textarea"
796
- ],
797
- "related": [
798
- "CkPromptInput",
799
- "CkPromptSendButton",
800
- "CkPromptInputDisclaimer",
801
- "CkConversation"
802
- ],
803
- "props": [
804
- "modelValue",
805
- "placeholder",
806
- "disabled",
807
- "loading",
808
- "ariaLabel",
809
- "stopAriaLabel",
810
- "disclaimer"
811
- ],
812
- "examples": [
813
- "Default",
814
- "WithModeToggle",
815
- "FullExample",
816
- "Disabled",
817
- "Loading",
818
- "WithLongText",
819
- "MobileWidth"
820
- ],
821
- "_autoGenerated": true
822
962
  }
823
963
  }
@@ -1439,11 +1439,10 @@
1439
1439
  "_autoGenerated": true
1440
1440
  },
1441
1441
  "UiSnackbar": {
1442
- "description": "Toast notification container (Sonner). Place once near the app root, then call `toast()` (or `toast.success()`, `toast.error()`, etc.) from anywhere to display a non-blocking notification.",
1442
+ "description": "Toast notification container. Place once near the app root, then call `showSnackbar()` or `toast()` from anywhere to display a non-blocking notification with a title and optional description. This component is currently experimental. Its API and behavior may still change before it is considered stable.",
1443
1443
  "category": "Feedback",
1444
1444
  "useCases": [
1445
- "success confirmation",
1446
- "error notice",
1445
+ "confirmation",
1447
1446
  "undo action",
1448
1447
  "async progress",
1449
1448
  "background updates"
@@ -1451,30 +1450,25 @@
1451
1450
  "keywords": [
1452
1451
  "snackbar",
1453
1452
  "toast",
1454
- "sonner",
1455
1453
  "notification",
1456
1454
  "alert",
1457
1455
  "message",
1458
1456
  "banner",
1459
- "undo"
1457
+ "undo",
1458
+ "experimental"
1460
1459
  ],
1461
1460
  "related": [
1462
1461
  "UiAlert",
1463
- "UiAlertDialog"
1462
+ "UiAlertDialog",
1463
+ "UiSnackbarContent"
1464
1464
  ],
1465
1465
  "props": [],
1466
1466
  "examples": [
1467
- "SuccessHigh",
1468
- "SuccessLow",
1469
- "InfoHigh",
1470
- "InfoLow",
1471
- "WarningHigh",
1472
- "WarningLow",
1473
- "ErrorHigh",
1474
- "ErrorLow",
1475
- "AllVariants",
1476
1467
  "Default",
1477
1468
  "WithDescription",
1469
+ "IconModes",
1470
+ "ActionModes",
1471
+ "WithAction",
1478
1472
  "PromiseSnackbar",
1479
1473
  "WithDialog"
1480
1474
  ],
package/dist/cli.js CHANGED
@@ -22214,6 +22214,7 @@ function getChatKitComponentDocs(componentName) {
22214
22214
  return {
22215
22215
  name,
22216
22216
  description,
22217
+ labels: [],
22217
22218
  props,
22218
22219
  examples,
22219
22220
  usageGuidance: [...new Set(usageGuidance)],
package/dist/server.js CHANGED
@@ -22102,6 +22102,7 @@ function getChatKitComponentDocs(componentName) {
22102
22102
  return {
22103
22103
  name,
22104
22104
  description,
22105
+ labels: [],
22105
22106
  props,
22106
22107
  examples,
22107
22108
  usageGuidance: [...new Set(usageGuidance)],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleph-alpha/lib-mcp",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/server.js",
@@ -32,12 +32,12 @@
32
32
  "devDependencies": {
33
33
  "esbuild": "^0.24.0",
34
34
  "typescript": "^5.2.2",
35
- "vitest": "^3.0.0",
35
+ "vitest": "^3.2.6",
36
36
  "@aleph-alpha/tsconfig-frontend": "0.7.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@aleph-alpha/ui-library": "3.0.0",
40
- "@aleph-alpha/chat-kit": "3.0.0"
39
+ "@aleph-alpha/ui-library": "5.0.0",
40
+ "@aleph-alpha/chat-kit": "5.0.0"
41
41
  },
42
42
  "homepage": "https://docs.aleph-alpha.com",
43
43
  "scripts": {