@aleph-alpha/lib-mcp 4.0.0 → 4.1.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.
@@ -175,6 +175,7 @@
175
175
  "examples": [
176
176
  "Default",
177
177
  "StreamingSimulation",
178
+ "ScrollToMessage",
178
179
  "Empty"
179
180
  ],
180
181
  "_autoGenerated": true
@@ -254,6 +255,38 @@
254
255
  ],
255
256
  "_autoGenerated": true
256
257
  },
258
+ "CkEditableUserMessage": {
259
+ "description": "Editable variant of {@link CkUserMessage}. Wraps the plain user message in a floating actions toolbar (via `UiFloatActions`) that reveals an edit button on hover and keyboard focus. Activating it emits the `edit` event; the consumer owns the actual editing flow (e.g. swapping in an inline editor). Use this instead of `CkUserMessage` only when a turn needs the edit affordance — plain, non-interactive turns should keep using `CkUserMessage`.",
260
+ "category": "Messages",
261
+ "useCases": [
262
+ "edit user message",
263
+ "revise prompt",
264
+ "editable conversation turn",
265
+ "message hover actions"
266
+ ],
267
+ "keywords": [
268
+ "user",
269
+ "message",
270
+ "edit",
271
+ "editable",
272
+ "chat",
273
+ "conversation",
274
+ "turn"
275
+ ],
276
+ "related": [
277
+ "CkUserMessage",
278
+ "CkAgentMessage",
279
+ "CkConversation"
280
+ ],
281
+ "props": [
282
+ "message",
283
+ "collapsedLines"
284
+ ],
285
+ "examples": [
286
+ "Default"
287
+ ],
288
+ "_autoGenerated": true
289
+ },
257
290
  "CkFeedbackButton": {
258
291
  "description": "Binary thumbs up / thumbs down feedback control for assistant messages. Fully prop-driven: the host application owns the selection and lock state and decides when (or if) to persist it to a backend. Labels default to those provided by `useChatKitLabels` (which can be translated via `provideChatKitLabels`). The `ariaLabel*` props override the injected labels on a per-instance basis when set.",
259
292
  "category": "Feedback",
@@ -325,6 +358,7 @@
325
358
  "responseText",
326
359
  "reasons",
327
360
  "maxFreeTextLength",
361
+ "reasonRequired",
328
362
  "submitting",
329
363
  "disabled",
330
364
  "titlePositive",
@@ -341,6 +375,7 @@
341
375
  "Positive",
342
376
  "Negative",
343
377
  "NoResponseColumn",
378
+ "OptionalInput",
344
379
  "Submitting",
345
380
  "LongResponse",
346
381
  "WithFeedbackButton"
@@ -596,7 +631,8 @@
596
631
  "examples": [
597
632
  "Default",
598
633
  "Placeholder",
599
- "Disabled"
634
+ "Disabled",
635
+ "WithSublabels"
600
636
  ],
601
637
  "_autoGenerated": true
602
638
  },
@@ -828,7 +864,7 @@
828
864
  "_autoGenerated": true
829
865
  },
830
866
  "CkUserMessage": {
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.",
867
+ "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.",
832
868
  "category": "Messages",
833
869
  "useCases": [
834
870
  "render user message",
@@ -847,6 +883,7 @@
847
883
  "show more"
848
884
  ],
849
885
  "related": [
886
+ "CkEditableUserMessage",
850
887
  "CkAgentMessage",
851
888
  "CkConversation"
852
889
  ],
@@ -901,17 +938,20 @@
901
938
  ],
902
939
  "examples": [
903
940
  "Default",
904
- "ChainOfThought",
941
+ "SlotAnatomy",
905
942
  "WithIcon",
906
943
  "WithCustomAvatarFallback",
907
944
  "NoIcon",
908
945
  "WithCustomIcon",
946
+ "WithLoadingIcon",
909
947
  "WithFooterActions",
910
948
  "WithCustomUserContent",
911
949
  "WithCustomAgentContent",
912
950
  "StreamingSimulation",
913
951
  "WithCustomMarkdownClasses",
952
+ "DefaultCodeBlock",
914
953
  "WithCustomCodeBlock",
954
+ "ScrollToMessage",
915
955
  "Empty"
916
956
  ],
917
957
  "_autoGenerated": true
@@ -947,7 +987,8 @@
947
987
  "showActionOnHover",
948
988
  "timeFormatter",
949
989
  "collapsedLimit",
950
- "maxHeight"
990
+ "maxHeight",
991
+ "contentClass"
951
992
  ],
952
993
  "examples": [
953
994
  "Default",
@@ -116,10 +116,17 @@
116
116
  "examples": [
117
117
  "Default",
118
118
  "Multiple",
119
+ "States",
119
120
  "WithSlots",
120
121
  "WithBadges",
121
122
  "WithCheckboxes",
122
- "WithExternalItems"
123
+ "WithExternalItems",
124
+ "Accessibility",
125
+ "FilterAndSelect",
126
+ "KeyboardNavigation",
127
+ "ScreenReader",
128
+ "ZoomMagnification",
129
+ "MobileBreakpoint"
123
130
  ],
124
131
  "_autoGenerated": true
125
132
  },
@@ -239,6 +246,11 @@
239
246
  "Default",
240
247
  "DesignNotes",
241
248
  "Accessibility",
249
+ "KeyboardNavigation",
250
+ "KeyboardGroupNavigation",
251
+ "ZoomMagnification",
252
+ "ScreenReader",
253
+ "MobileBreakpoint",
242
254
  "Outline",
243
255
  "Secondary",
244
256
  "Ghost",
@@ -250,11 +262,51 @@
250
262
  "LoadingWithBothIcons",
251
263
  "AsChild",
252
264
  "AllVariants",
253
- "DisabledHoverBleed",
265
+ "Disabled",
254
266
  "AllVariantsAndSizes"
255
267
  ],
256
268
  "_autoGenerated": true
257
269
  },
270
+ "UiButtonGroup": {
271
+ "description": "Visually joins a set of related actions (and inputs) into a single, connected control. Renders a `role=\"group\"` container and merges the borders and radii of its children so they read as one unit.",
272
+ "category": "Actions",
273
+ "useCases": [
274
+ "toolbar",
275
+ "segmented actions",
276
+ "split button",
277
+ "input with buttons",
278
+ "pagination controls"
279
+ ],
280
+ "keywords": [
281
+ "button group",
282
+ "group",
283
+ "toolbar",
284
+ "segmented",
285
+ "joined",
286
+ "split button",
287
+ "button"
288
+ ],
289
+ "related": [
290
+ "UiButton",
291
+ "UiInput"
292
+ ],
293
+ "props": [
294
+ "orientation"
295
+ ],
296
+ "examples": [
297
+ "Default",
298
+ "Vertical",
299
+ "WithInput",
300
+ "Variants",
301
+ "Sizes",
302
+ "Accessibility",
303
+ "KeyboardNavigation",
304
+ "ScreenReader",
305
+ "ZoomMagnification",
306
+ "MobileBreakpoint"
307
+ ],
308
+ "_autoGenerated": true
309
+ },
258
310
  "UiCalendar": {
259
311
  "description": "A date picker calendar for selecting single or multiple dates. Use for booking forms, event scheduling, or any date selection needs.",
260
312
  "category": "Form Inputs",
@@ -383,7 +435,13 @@
383
435
  "Accessibility",
384
436
  "WithDescription",
385
437
  "Disabled",
386
- "Card"
438
+ "WithField",
439
+ "Indeterminate",
440
+ "ToggleBehavior",
441
+ "KeyboardNavigation",
442
+ "ScreenReader",
443
+ "ZoomMagnification",
444
+ "MobileBreakpoint"
387
445
  ],
388
446
  "_autoGenerated": true
389
447
  },
@@ -666,7 +724,11 @@
666
724
  "ResponsiveProfileForm",
667
725
  "PaymentMethodForm",
668
726
  "ProfileSettingsForm",
669
- "PersonalInformationForm"
727
+ "PersonalInformationForm",
728
+ "DescriptionCheckboxInteraction",
729
+ "KeyboardNavigation",
730
+ "FormKeyboardFlow",
731
+ "MobileBreakpoint"
670
732
  ],
671
733
  "_autoGenerated": true
672
734
  },
@@ -865,7 +927,12 @@
865
927
  "WithLabel",
866
928
  "Disabled",
867
929
  "WithButton",
868
- "File"
930
+ "File",
931
+ "TextEntry",
932
+ "FileUpload",
933
+ "DesignNotes",
934
+ "Accessibility",
935
+ "MobileBreakpoint"
869
936
  ],
870
937
  "_autoGenerated": true
871
938
  },
@@ -917,7 +984,10 @@
917
984
  "Media",
918
985
  "Group",
919
986
  "AsLink",
920
- "AllVariants"
987
+ "KeyboardNavigation",
988
+ "ListSemantics",
989
+ "AllVariants",
990
+ "MobileBreakpoint"
921
991
  ],
922
992
  "_autoGenerated": true
923
993
  },
@@ -1159,7 +1229,14 @@
1159
1229
  "Default",
1160
1230
  "Disabled",
1161
1231
  "HorizontalOrientation",
1162
- "AsChild"
1232
+ "AsChild",
1233
+ "WithField",
1234
+ "Accessibility",
1235
+ "SelectionBehavior",
1236
+ "KeyboardNavigation",
1237
+ "ScreenReader",
1238
+ "ZoomMagnification",
1239
+ "MobileBreakpoint"
1163
1240
  ],
1164
1241
  "_autoGenerated": true
1165
1242
  },
@@ -1284,9 +1361,16 @@
1284
1361
  "WithDisabledItems",
1285
1362
  "WithIcons",
1286
1363
  "Disabled",
1364
+ "States",
1287
1365
  "Multiple",
1288
1366
  "MultipleWithDefaultValue",
1289
- "WithDefaultValue"
1367
+ "WithDefaultValue",
1368
+ "Accessibility",
1369
+ "OpenSelectClose",
1370
+ "KeyboardNavigation",
1371
+ "ScreenReader",
1372
+ "ZoomMagnification",
1373
+ "MobileBreakpoint"
1290
1374
  ],
1291
1375
  "_autoGenerated": true
1292
1376
  },
@@ -1805,7 +1889,8 @@
1805
1889
  "align",
1806
1890
  "class",
1807
1891
  "delayDuration",
1808
- "disabled"
1892
+ "disabled",
1893
+ "to"
1809
1894
  ],
1810
1895
  "examples": [
1811
1896
  "Default",
@@ -1863,7 +1948,14 @@
1863
1948
  "WithMinHeightSmallDataset",
1864
1949
  "WithRowActions",
1865
1950
  "WithCellFormatting",
1866
- "WithRowClick"
1951
+ "WithRowClick",
1952
+ "WithFilterMenu",
1953
+ "Accessibility",
1954
+ "KeyboardNavigation",
1955
+ "RowSelectionInteraction",
1956
+ "ScreenReader",
1957
+ "ZoomMagnification",
1958
+ "MobileBreakpoint"
1867
1959
  ],
1868
1960
  "_autoGenerated": true
1869
1961
  },
@@ -1972,6 +2064,62 @@
1972
2064
  ],
1973
2065
  "_autoGenerated": true
1974
2066
  },
2067
+ "UiFloatActions": {
2068
+ "description": "Anchors floating action content to a trigger element on hover, focus, or click. Use for contextual toolbars, quick actions, and inline controls. For rich panels or forms, prefer `UiPopover`. This component is currently experimental. Its API and behavior may still change before it is considered stable.",
2069
+ "category": "Overlays",
2070
+ "useCases": [
2071
+ "contextual toolbar",
2072
+ "inline actions",
2073
+ "hover controls",
2074
+ "keyboard toolbar"
2075
+ ],
2076
+ "keywords": [
2077
+ "float",
2078
+ "anchor",
2079
+ "floating",
2080
+ "toolbar",
2081
+ "hover",
2082
+ "focus",
2083
+ "contextual",
2084
+ "experimental",
2085
+ "actions"
2086
+ ],
2087
+ "related": [
2088
+ "UiFloatActionItems",
2089
+ "UiPopover",
2090
+ "UiTooltip",
2091
+ "useAnchorFloat"
2092
+ ],
2093
+ "props": [
2094
+ "trigger",
2095
+ "placement",
2096
+ "offset",
2097
+ "open",
2098
+ "openDelay",
2099
+ "closeDelay",
2100
+ "dismissOnOutsideClick",
2101
+ "dismissOnEscape",
2102
+ "ariaLabel"
2103
+ ],
2104
+ "examples": [
2105
+ "ShowModes",
2106
+ "Examples",
2107
+ "IconOnlyWithTooltip",
2108
+ "ButtonWithText",
2109
+ "Orientation",
2110
+ "ItemTypes",
2111
+ "AllStates",
2112
+ "Composable",
2113
+ "Accessibility",
2114
+ "FocusTriggerKeyboard",
2115
+ "HoverTriggerKeyboard",
2116
+ "ClickTriggerKeyboard",
2117
+ "ToolbarKeyboard",
2118
+ "ZoomMagnification",
2119
+ "MobileBreakpoint"
2120
+ ],
2121
+ "_autoGenerated": true
2122
+ },
1975
2123
  "UiPlaceholder": {
1976
2124
  "description": "Placeholder for foundation components (internal development use).",
1977
2125
  "category": "Foundations",
package/dist/cli.js CHANGED
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ try {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ } catch (e) {
12
+ throw mod = 0, e;
13
+ }
10
14
  };
11
15
  var __export = (target, all) => {
12
16
  for (var name in all)
@@ -10779,7 +10783,7 @@ ZodNaN.create = (params) => {
10779
10783
  ...processCreateParams(params)
10780
10784
  });
10781
10785
  };
10782
- var BRAND = Symbol("zod_brand");
10786
+ var BRAND = /* @__PURE__ */ Symbol("zod_brand");
10783
10787
  var ZodBranded = class extends ZodType {
10784
10788
  _parse(input) {
10785
10789
  const { ctx } = this._processInputParams(input);
@@ -11039,7 +11043,6 @@ function $constructor(name, initializer3, params) {
11039
11043
  Object.defineProperty(_, "name", { value: name });
11040
11044
  return _;
11041
11045
  }
11042
- var $brand = Symbol("zod_brand");
11043
11046
  var $ZodAsyncError = class extends Error {
11044
11047
  constructor() {
11045
11048
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
@@ -13543,8 +13546,6 @@ function en_default2() {
13543
13546
  }
13544
13547
 
13545
13548
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js
13546
- var $output = Symbol("ZodOutput");
13547
- var $input = Symbol("ZodInput");
13548
13549
  var $ZodRegistry = class {
13549
13550
  constructor() {
13550
13551
  this._map = /* @__PURE__ */ new Map();
@@ -17207,7 +17208,7 @@ function isTerminal(status) {
17207
17208
  }
17208
17209
 
17209
17210
  // ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
17210
- var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
17211
+ var ignoreOverride = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
17211
17212
  var defaultOptions = {
17212
17213
  name: void 0,
17213
17214
  $refStrategy: "root",
@@ -20177,7 +20178,7 @@ var Server = class extends Protocol {
20177
20178
  };
20178
20179
 
20179
20180
  // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
20180
- var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
20181
+ var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
20181
20182
  function isCompletable(schema) {
20182
20183
  return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
20183
20184
  }
package/dist/server.js CHANGED
@@ -5,7 +5,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __commonJS = (cb, mod) => function __require() {
8
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
8
+ try {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ } catch (e) {
11
+ throw mod = 0, e;
12
+ }
9
13
  };
10
14
  var __export = (target, all) => {
11
15
  for (var name in all)
@@ -10625,7 +10629,7 @@ ZodNaN.create = (params) => {
10625
10629
  ...processCreateParams(params)
10626
10630
  });
10627
10631
  };
10628
- var BRAND = Symbol("zod_brand");
10632
+ var BRAND = /* @__PURE__ */ Symbol("zod_brand");
10629
10633
  var ZodBranded = class extends ZodType {
10630
10634
  _parse(input) {
10631
10635
  const { ctx } = this._processInputParams(input);
@@ -10885,7 +10889,6 @@ function $constructor(name, initializer3, params) {
10885
10889
  Object.defineProperty(_, "name", { value: name });
10886
10890
  return _;
10887
10891
  }
10888
- var $brand = Symbol("zod_brand");
10889
10892
  var $ZodAsyncError = class extends Error {
10890
10893
  constructor() {
10891
10894
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
@@ -13389,8 +13392,6 @@ function en_default2() {
13389
13392
  }
13390
13393
 
13391
13394
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.js
13392
- var $output = Symbol("ZodOutput");
13393
- var $input = Symbol("ZodInput");
13394
13395
  var $ZodRegistry = class {
13395
13396
  constructor() {
13396
13397
  this._map = /* @__PURE__ */ new Map();
@@ -17053,7 +17054,7 @@ function isTerminal(status) {
17053
17054
  }
17054
17055
 
17055
17056
  // ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
17056
- var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
17057
+ var ignoreOverride = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
17057
17058
  var defaultOptions = {
17058
17059
  name: void 0,
17059
17060
  $refStrategy: "root",
@@ -20023,7 +20024,7 @@ var Server = class extends Protocol {
20023
20024
  };
20024
20025
 
20025
20026
  // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
20026
- var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
20027
+ var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
20027
20028
  function isCompletable(schema) {
20028
20029
  return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
20029
20030
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleph-alpha/lib-mcp",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/server.js",
@@ -30,19 +30,20 @@
30
30
  "zod": "^3.24.0"
31
31
  },
32
32
  "devDependencies": {
33
- "esbuild": "^0.24.0",
33
+ "esbuild": "^0.28.1",
34
34
  "typescript": "^5.2.2",
35
35
  "vitest": "^3.2.6",
36
- "@aleph-alpha/tsconfig-frontend": "0.7.0"
36
+ "@aleph-alpha/tsconfig-frontend": "0.7.2"
37
37
  },
38
38
  "peerDependencies": {
39
- "@aleph-alpha/ui-library": "5.0.0",
40
- "@aleph-alpha/chat-kit": "5.0.0"
39
+ "@aleph-alpha/ui-library": "~5.3.0",
40
+ "@aleph-alpha/chat-kit": "~5.4.0"
41
41
  },
42
42
  "homepage": "https://docs.aleph-alpha.com",
43
43
  "scripts": {
44
44
  "build": "node scripts/build.cjs",
45
45
  "generate:component-meta": "pnpm build && node dist/scripts/generate-component-meta.js",
46
- "test": "vitest --run"
46
+ "test": "vitest --run",
47
+ "typecheck": "tsc --noEmit"
47
48
  }
48
49
  }