@aleph-alpha/lib-mcp 5.2.0 → 5.4.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.
@@ -131,6 +131,7 @@
131
131
  ],
132
132
  "props": [
133
133
  "fileName",
134
+ "icon",
134
135
  "snippet",
135
136
  "locationLabel",
136
137
  "collectionName",
@@ -191,7 +192,7 @@
191
192
  "_autoGenerated": true
192
193
  },
193
194
  "CkCodeEditor": {
194
- "description": "Single-document code editor built on [CodeMirror 6](https://codemirror.net/). Its surface is the one `UiCodeBlock` renders for fenced code inside {@link CkMarkdownRenderer}: the same bordered, rounded panel, the same muted header carrying the language and a copy button, the same monospace metrics, and syntax colours approximating Shiki's `github-light` / `github-dark`. A snippet therefore looks the same whether it is being read in a reply or edited here. Use it wherever a whole document *is* code — a snippet field, a config or template editor, a \"create skill\" form. For prose that merely contains code, use {@link CkMilkdownEditor}, whose fenced blocks share this same theme. Grammars load on demand from CodeMirror's language data, so only the languages actually opened are fetched, and the editor itself loads lazily on mount so importing the component costs nothing until one is shown.",
195
+ "description": "Single-document code editor built on [CodeMirror 6](https://codemirror.net/). It shares `UiCodeBlock`'s muted header, carrying the language and a copy button, and its syntax colours approximating Shiki's `github-light` / `github-dark`, so highlighted code keeps its colours between a reply and the editor. The body follows the design-system input field: body text on the input surface, with muted monospace line numbers. Use it wherever a whole document *is* code — a snippet field, a config or template editor, a \"create skill\" form. For prose that merely contains code, use {@link CkMilkdownEditor}, whose fenced blocks share this same theme. Grammars load on demand from CodeMirror's language data, so only the languages actually opened are fetched, and the editor itself loads lazily on mount so importing the component costs nothing until one is shown.",
195
196
  "category": "Form Inputs",
196
197
  "useCases": [
197
198
  "edit a code snippet",
@@ -226,7 +227,11 @@
226
227
  "showLineNumbers",
227
228
  "lineWrapping",
228
229
  "maxHeight",
230
+ "scrollFade",
231
+ "fadeTopBackground",
232
+ "fadeBottomBackground",
229
233
  "autofocus",
234
+ "badge",
230
235
  "writeToClipboard"
231
236
  ],
232
237
  "examples": [
@@ -236,6 +241,7 @@
236
241
  "Readonly",
237
242
  "WithoutHeader",
238
243
  "ScrollingAndWrapping",
244
+ "WithBadges",
239
245
  "MatchesTheRenderer"
240
246
  ],
241
247
  "_autoGenerated": true
@@ -474,6 +480,7 @@
474
480
  "OptionalInput",
475
481
  "Submitting",
476
482
  "LongResponse",
483
+ "WithFooter",
477
484
  "WithFeedbackButton"
478
485
  ],
479
486
  "_autoGenerated": true
@@ -644,6 +651,7 @@
644
651
  "props": [
645
652
  "content",
646
653
  "classes",
654
+ "breaks",
647
655
  "plugins",
648
656
  "citations"
649
657
  ],
@@ -657,7 +665,8 @@
657
665
  "MathExpressions",
658
666
  "WithCustomPlugin",
659
667
  "WithCitations",
660
- "WithUnsupportedAndCodeMarkers"
668
+ "WithUnsupportedAndCodeMarkers",
669
+ "WithLineBreaks"
661
670
  ],
662
671
  "_autoGenerated": true
663
672
  },
@@ -1005,6 +1014,54 @@
1005
1014
  ],
1006
1015
  "_autoGenerated": true
1007
1016
  },
1017
+ "CkToolApproval": {
1018
+ "description": "Asks the user to allow or deny a tool call the agent paused on, then collapses to a one-line result once decided. Shows the call's arguments as JSON unless the host registers a custom body for that connector and tool. Purely presentational: the host owns the request, sends the decision to its backend and passes the resulting `status` back in. Emits `allow` or `deny` with the request id, then locks both buttons until `status` changes or the host calls the exposed `unlock()`.",
1019
+ "category": "Feedback",
1020
+ "useCases": [
1021
+ "human in the loop approval",
1022
+ "confirm a tool call before it runs",
1023
+ "show the outcome of a tool call"
1024
+ ],
1025
+ "keywords": [
1026
+ "approval",
1027
+ "hitl",
1028
+ "human in the loop",
1029
+ "tool call",
1030
+ "confirm",
1031
+ "allow",
1032
+ "deny",
1033
+ "permission",
1034
+ "mcp",
1035
+ "tool"
1036
+ ],
1037
+ "related": [
1038
+ "CkAgentMessage",
1039
+ "CkConversation"
1040
+ ],
1041
+ "props": [
1042
+ "request",
1043
+ "status",
1044
+ "summary",
1045
+ "bodyComponents"
1046
+ ],
1047
+ "examples": [
1048
+ "Pending",
1049
+ "Allowed",
1050
+ "Denied",
1051
+ "Failed",
1052
+ "Skipped",
1053
+ "WithoutConnectorLabel",
1054
+ "OtherConnector",
1055
+ "CustomBody",
1056
+ "KeyboardNavigation",
1057
+ "ScreenReader",
1058
+ "ZoomMagnification",
1059
+ "MobileBreakpoint",
1060
+ "FocusAfterSlowDecision",
1061
+ "LongConnectorLabel"
1062
+ ],
1063
+ "_autoGenerated": true
1064
+ },
1008
1065
  "CkUserMessage": {
1009
1066
  "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. For an editable variant (hover/focus edit toolbar), see {@link CkEditableUserMessage}, which wraps this component.",
1010
1067
  "category": "Messages",
@@ -25,8 +25,16 @@
25
25
  "Default",
26
26
  "Multiple",
27
27
  "NonCollapsible",
28
+ "Disabled",
28
29
  "WithDisabledItem",
29
- "Controlled"
30
+ "Horizontal",
31
+ "Controlled",
32
+ "Accessibility",
33
+ "ExpandCollapseBehavior",
34
+ "KeyboardNavigation",
35
+ "ScreenReader",
36
+ "ZoomMagnification",
37
+ "MobileBreakpoint"
30
38
  ],
31
39
  "_autoGenerated": true
32
40
  },
@@ -310,6 +318,7 @@
310
318
  "Destructive",
311
319
  "Link",
312
320
  "Sizes",
321
+ "IconSizes",
313
322
  "IconUsage",
314
323
  "Loading",
315
324
  "LoadingWithBothIcons",
@@ -545,7 +554,7 @@
545
554
  "_autoGenerated": true
546
555
  },
547
556
  "UiCodeBlock": {
548
- "description": "A code block component for displaying source code with syntax highlighting, line numbers, and copy-to-clipboard functionality. Powered by Shiki.",
557
+ "description": "A code block component for displaying source code with syntax highlighting, line numbers, and copy-to-clipboard functionality. Powered by Shiki. The header (language label + copy button) can be recolored from the outside with CSS custom properties, set on the code block or on any ancestor. Use them when the block sits on a surface the default muted header clashes with: - `--ui-code-block-header-surface` — header background - `--ui-code-block-header-content` — label and copy-icon color - `--ui-code-block-header-border` — divider under the header Each takes a full CSS color (`#0d1117`, `oklch(var(--background-surface-primary))`) and falls back to the design token it used before when unset.",
549
558
  "category": "Content",
550
559
  "useCases": [
551
560
  "code display",
@@ -583,6 +592,7 @@
583
592
  "WithLineNumbers",
584
593
  "WithMaxHeight",
585
594
  "WithoutCopyButton",
595
+ "HeaderColors",
586
596
  "PlainText",
587
597
  "HtmlWithLineNumbers",
588
598
  "Streaming"
@@ -620,6 +630,7 @@
620
630
  "WithForm",
621
631
  "Accessibility",
622
632
  "PointerInteraction",
633
+ "CloseButtonPlacement",
623
634
  "KeyboardNavigation",
624
635
  "ScreenReader",
625
636
  "ZoomMagnification",
@@ -1049,6 +1060,62 @@
1049
1060
  ],
1050
1061
  "_autoGenerated": true
1051
1062
  },
1063
+ "UiInputGroup": {
1064
+ "description": "Attaches addons — icons, text affixes, keyboard shortcuts, buttons, or status — to an input or textarea inside one shared field boundary. The group renders a `role=\"group\"` container that carries the border, focus ring, and error ring for the control inside it, so the field and its addons read as a single control.",
1065
+ "category": "Form Inputs",
1066
+ "useCases": [
1067
+ "search field with shortcut",
1068
+ "currency input",
1069
+ "url input with prefix",
1070
+ "input with copy button",
1071
+ "chat textarea with actions",
1072
+ "loading input"
1073
+ ],
1074
+ "keywords": [
1075
+ "input group",
1076
+ "addon",
1077
+ "prefix",
1078
+ "suffix",
1079
+ "affix",
1080
+ "adornment",
1081
+ "input actions",
1082
+ "field",
1083
+ "input",
1084
+ "group"
1085
+ ],
1086
+ "related": [
1087
+ "UiInput",
1088
+ "UiTextarea",
1089
+ "UiButtonGroup",
1090
+ "UiField"
1091
+ ],
1092
+ "props": [
1093
+ "type"
1094
+ ],
1095
+ "examples": [
1096
+ "Default",
1097
+ "Icon",
1098
+ "Text",
1099
+ "Button",
1100
+ "ButtonSizes",
1101
+ "ButtonVariants",
1102
+ "Tooltip",
1103
+ "AllTypes",
1104
+ "Spinner",
1105
+ "ErrorState",
1106
+ "Label",
1107
+ "Dropdown",
1108
+ "ButtonGroup",
1109
+ "CustomInput",
1110
+ "Accessibility",
1111
+ "AddonInteraction",
1112
+ "KeyboardNavigation",
1113
+ "ScreenReader",
1114
+ "ZoomMagnification",
1115
+ "MobileBreakpoint"
1116
+ ],
1117
+ "_autoGenerated": true
1118
+ },
1052
1119
  "UiItem": {
1053
1120
  "description": "A versatile component that you can use to display any content. The Item component is a straightforward flex container that can house nearly any type of content. Use it to display a title, description, and actions. Group it with the ItemGroup component to create a list of items.",
1054
1121
  "category": "Layout",
@@ -1164,7 +1231,8 @@
1164
1231
  "UiRadioGroup"
1165
1232
  ],
1166
1233
  "props": [
1167
- "for"
1234
+ "for",
1235
+ "error"
1168
1236
  ],
1169
1237
  "examples": [
1170
1238
  "Default",
@@ -2422,6 +2490,7 @@
2422
2490
  "examples": [
2423
2491
  "Default",
2424
2492
  "ControlledOpenState",
2493
+ "CollapsedStartAction",
2425
2494
  "Resizable",
2426
2495
  "RightSide",
2427
2496
  "KeyboardNavigation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleph-alpha/lib-mcp",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/server.js",