@aleph-alpha/chat-kit 6.5.0 → 6.7.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.
Files changed (72) hide show
  1. package/dist/{CkHistory.vue_vue_type_script_setup_true_lang-C4XS2QQI.js → CkHistory.vue_vue_type_script_setup_true_lang-DF5yUf7K.js} +619 -152
  2. package/dist/chat-kit.css +9 -9
  3. package/dist/components/base/CkCodeEditor/CkCodeEditor.vue.d.ts +4 -4
  4. package/dist/components/base/CkFeedbackDialog/CkFeedbackDialog.stories.d.ts +5 -0
  5. package/dist/components/base/CkFeedbackDialog/CkFeedbackDialog.stories.d.ts.map +1 -1
  6. package/dist/components/base/CkFeedbackDialog/CkFeedbackDialog.vue.d.ts +14 -1
  7. package/dist/components/base/CkFeedbackDialog/CkFeedbackDialog.vue.d.ts.map +1 -1
  8. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts +1 -1
  9. package/dist/components/base/CkToolApproval/ApprovalCard.vue.d.ts +21 -0
  10. package/dist/components/base/CkToolApproval/ApprovalCard.vue.d.ts.map +1 -0
  11. package/dist/components/base/CkToolApproval/ArgumentsJson.vue.d.ts +10 -0
  12. package/dist/components/base/CkToolApproval/ArgumentsJson.vue.d.ts.map +1 -0
  13. package/dist/components/base/CkToolApproval/BodyBoundary.vue.d.ts +15 -0
  14. package/dist/components/base/CkToolApproval/BodyBoundary.vue.d.ts.map +1 -0
  15. package/dist/components/base/CkToolApproval/CardHeading.vue.d.ts +22 -0
  16. package/dist/components/base/CkToolApproval/CardHeading.vue.d.ts.map +1 -0
  17. package/dist/components/base/CkToolApproval/CkToolApproval.stories.d.ts +80 -0
  18. package/dist/components/base/CkToolApproval/CkToolApproval.stories.d.ts.map +1 -0
  19. package/dist/components/base/CkToolApproval/CkToolApproval.vue.d.ts +18 -0
  20. package/dist/components/base/CkToolApproval/CkToolApproval.vue.d.ts.map +1 -0
  21. package/dist/components/base/CkToolApproval/ResultRow.vue.d.ts +20 -0
  22. package/dist/components/base/CkToolApproval/ResultRow.vue.d.ts.map +1 -0
  23. package/dist/components/base/CkToolApproval/badge.d.ts +3 -0
  24. package/dist/components/base/CkToolApproval/badge.d.ts.map +1 -0
  25. package/dist/components/base/CkToolApproval/index.d.ts +3 -0
  26. package/dist/components/base/CkToolApproval/index.d.ts.map +1 -0
  27. package/dist/components/base/CkToolApproval/outcomes.d.ts +28 -0
  28. package/dist/components/base/CkToolApproval/outcomes.d.ts.map +1 -0
  29. package/dist/components/base/CkToolApproval/serializeArguments.d.ts +13 -0
  30. package/dist/components/base/CkToolApproval/serializeArguments.d.ts.map +1 -0
  31. package/dist/components/base/CkToolApproval/toolTitle.d.ts +7 -0
  32. package/dist/components/base/CkToolApproval/toolTitle.d.ts.map +1 -0
  33. package/dist/components/base/CkToolApproval/types.d.ts +102 -0
  34. package/dist/components/base/CkToolApproval/types.d.ts.map +1 -0
  35. package/dist/components/base/index.d.ts +2 -0
  36. package/dist/components/base/index.d.ts.map +1 -1
  37. package/dist/components/index.d.ts +2 -2
  38. package/dist/components/index.d.ts.map +1 -1
  39. package/dist/components/index.js +4 -3
  40. package/dist/{createCrepeEditor-BGSlwmKn.js → createCrepeEditor-DSfByw4o.js} +1 -1
  41. package/dist/handlers/index.js +1 -1
  42. package/dist/handlers/useChatKitLabels.d.ts +39 -0
  43. package/dist/handlers/useChatKitLabels.d.ts.map +1 -1
  44. package/dist/index.d.ts +2 -2
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +6 -5
  47. package/dist/{useChatKitLabels-DxW0N5U-.js → useChatKitLabels-ky3JI9gf.js} +13 -0
  48. package/package.json +3 -3
  49. package/src/components/base/CkFeedbackDialog/CkFeedbackDialog.spec.ts +27 -0
  50. package/src/components/base/CkFeedbackDialog/CkFeedbackDialog.stories.ts +23 -0
  51. package/src/components/base/CkFeedbackDialog/CkFeedbackDialog.vue +15 -0
  52. package/src/components/base/CkToolApproval/ApprovalCard.vue +30 -0
  53. package/src/components/base/CkToolApproval/ArgumentsJson.vue +48 -0
  54. package/src/components/base/CkToolApproval/BodyBoundary.vue +26 -0
  55. package/src/components/base/CkToolApproval/CardHeading.vue +47 -0
  56. package/src/components/base/CkToolApproval/CkToolApproval.spec.ts +680 -0
  57. package/src/components/base/CkToolApproval/CkToolApproval.stories.ts +661 -0
  58. package/src/components/base/CkToolApproval/CkToolApproval.vue +240 -0
  59. package/src/components/base/CkToolApproval/ResultRow.vue +52 -0
  60. package/src/components/base/CkToolApproval/badge.ts +2 -0
  61. package/src/components/base/CkToolApproval/exports.spec.ts +22 -0
  62. package/src/components/base/CkToolApproval/index.ts +2 -0
  63. package/src/components/base/CkToolApproval/outcomes.ts +95 -0
  64. package/src/components/base/CkToolApproval/serializeArguments.ts +18 -0
  65. package/src/components/base/CkToolApproval/toolTitle.spec.ts +23 -0
  66. package/src/components/base/CkToolApproval/toolTitle.ts +19 -0
  67. package/src/components/base/CkToolApproval/types.ts +118 -0
  68. package/src/components/base/index.ts +11 -0
  69. package/src/components/index.ts +9 -0
  70. package/src/handlers/useChatKitLabels.ts +39 -0
  71. package/src/index.ts +9 -0
  72. package/src/test-empty.css +1 -0
@@ -26,13 +26,13 @@ declare const __VLS_export: import("vue").DefineComponent<CkCodeEditorProps, {
26
26
  writeToClipboard: (text: string) => Promise<void>;
27
27
  modelValue: string;
28
28
  placeholder: string;
29
- autofocus: boolean;
30
- showLineNumbers: boolean;
31
29
  language: string;
32
- showHeader: boolean;
30
+ showLineNumbers: boolean;
33
31
  showCopyButton: boolean;
34
- lineWrapping: boolean;
35
32
  maxHeight: string;
33
+ autofocus: boolean;
34
+ showHeader: boolean;
35
+ lineWrapping: boolean;
36
36
  scrollFade: boolean;
37
37
  fadeTopBackground: import("./types").CkCodeEditorFadeSurface;
38
38
  fadeBottomBackground: import("./types").CkCodeEditorFadeSurface;
@@ -40,6 +40,11 @@ export declare const Submitting: Story;
40
40
  * actions remain reachable.
41
41
  */
42
42
  export declare const LongResponse: Story;
43
+ /**
44
+ * The optional `footer` slot renders a row below the columns, e.g. a reference
45
+ * id the user can copy when reporting the answer.
46
+ */
47
+ export declare const WithFooter: Story;
43
48
  /**
44
49
  * Realistic end-to-end flow wired to `CkFeedbackButton`. Click a thumb to open
45
50
  * the dialog; submit or cancel; the button locks only on submit.
@@ -1 +1 @@
1
- {"version":3,"file":"CkFeedbackDialog.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkFeedbackDialog/CkFeedbackDialog.stories.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AAOtD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAoF3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAkBvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAoEnC;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAqEhC,CAAC"}
1
+ {"version":3,"file":"CkFeedbackDialog.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkFeedbackDialog/CkFeedbackDialog.stories.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AAOtD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAoF3D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAkBvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAoEnC;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAqEhC,CAAC"}
@@ -1,5 +1,12 @@
1
1
  import type { CkFeedbackDialogProps, CkFeedbackDialogSubmitPayload } from './types';
2
- declare const __VLS_export: import("vue").DefineComponent<CkFeedbackDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Optional row below the reasons and response columns, e.g. a reference id
5
+ * the user can copy. Not rendered when empty.
6
+ */
7
+ footer?: () => unknown;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<CkFeedbackDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
10
  cancel: () => any;
4
11
  submit: (payload: CkFeedbackDialogSubmitPayload) => any;
5
12
  "update:open": (open: boolean) => any;
@@ -8,6 +15,12 @@ declare const __VLS_export: import("vue").DefineComponent<CkFeedbackDialogProps,
8
15
  onSubmit?: ((payload: CkFeedbackDialogSubmitPayload) => any) | undefined;
9
16
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
10
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
19
  declare const _default: typeof __VLS_export;
12
20
  export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
13
26
  //# sourceMappingURL=CkFeedbackDialog.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CkFeedbackDialog.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkFeedbackDialog/CkFeedbackDialog.vue"],"names":[],"mappings":"AAiVA,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAgjBjB,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"CkFeedbackDialog.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkFeedbackDialog/CkFeedbackDialog.vue"],"names":[],"mappings":"AAgWA,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAyCjB,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;CACxB,CAAC;AAuhBF,QAAA,MAAM,UAAU;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -19,8 +19,8 @@ declare const __VLS_export: import("vue").DefineComponent<CkMilkdownEditorProps,
19
19
  classes: import("..").CkMarkdownElementClasses;
20
20
  modelValue: string;
21
21
  placeholder: string;
22
- autofocus: boolean;
23
22
  showLineNumbers: boolean;
23
+ autofocus: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  export default _default;
@@ -0,0 +1,21 @@
1
+ type __VLS_Props = {
2
+ headingId: string;
3
+ descriptionId?: string;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
10
+ focus: () => void;
11
+ containsFocus: () => boolean;
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
21
+ //# sourceMappingURL=ApprovalCard.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApprovalCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/ApprovalCard.vue"],"names":[],"mappings":"AAmCA,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAyCF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;iBA5CH,IAAI;yBACI,OAAO;oPA8C1B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ChatKitLabels } from '../../../handlers/useChatKitLabels';
2
+ import type { SerializedArguments } from './serializeArguments';
3
+ type __VLS_Props = {
4
+ serialized: SerializedArguments;
5
+ labels: Required<ChatKitLabels>;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ //# sourceMappingURL=ArgumentsJson.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArgumentsJson.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/ArgumentsJson.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAKhE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;CACjC,CAAC;AAyEF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,15 @@
1
+ type __VLS_Slots = {
2
+ default: () => unknown;
3
+ /** Shown instead once the default content throws. */
4
+ fallback: () => unknown;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
15
+ //# sourceMappingURL=BodyBoundary.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BodyBoundary.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/BodyBoundary.vue"],"names":[],"mappings":"AA+BA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,OAAO,CAAC;CACzB,CAAC;AAuCF,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ id: string;
3
+ title: string;
4
+ connectorLabel?: string;
5
+ connectorIcon: string;
6
+ /** `card` for the open approval card, `row` for the collapsed result. */
7
+ size: 'card' | 'row';
8
+ };
9
+ type __VLS_Slots = {
10
+ /** Replaces the connector chip's icon. */
11
+ icon?: () => unknown;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
22
+ //# sourceMappingURL=CardHeading.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/CardHeading.vue"],"names":[],"mappings":"AAqDA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;CACtB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC;CACtB,CAAC;AA2FF,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,80 @@
1
+ import CkToolApproval from './CkToolApproval.vue';
2
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
3
+ /**
4
+ * CkToolApproval asks the user to allow or deny a tool call the agent paused
5
+ * on. While `pending` it shows the call's arguments as JSON with Deny and
6
+ * Allow; once decided it collapses to a one-line result with a status badge.
7
+ * The host converts its backend's approval request into `request`, sends the
8
+ * decision to its backend on `allow` / `deny` (Deny is sent too, so the agent
9
+ * can carry on), and passes the new `status` in.
10
+ *
11
+ * Both buttons lock after the first click so only one answer is sent. If
12
+ * sending fails and the request stays pending, call the exposed `unlock()` so
13
+ * the user can try again.
14
+ */
15
+ declare const meta: Meta<typeof CkToolApproval>;
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ /**
19
+ * Waiting for the user: the header names the action, derived from `toolName`
20
+ * when the request has no `toolTitle`, then the arguments as JSON with Deny
21
+ * and Allow.
22
+ */
23
+ export declare const Pending: Story;
24
+ /** Allowed and run, with an outcome summary from the host. */
25
+ export declare const Allowed: Story;
26
+ /** Denied by the user. Nothing ran. */
27
+ export declare const Denied: Story;
28
+ /** Allowed, but the tool errored, so nothing changed. */
29
+ export declare const Failed: Story;
30
+ /** The user sent a new message instead of answering. Nothing ran. */
31
+ export declare const Skipped: Story;
32
+ /**
33
+ * No `connectorLabel` on the request: the chip is hidden, for chats embedded
34
+ * in the connector's own app where the target is obvious.
35
+ */
36
+ export declare const WithoutConnectorLabel: Story;
37
+ /**
38
+ * Another connector, with the tool's own title from its MCP server and a
39
+ * Lucide icon for the chip. Use the `connector-icon` slot for a brand logo.
40
+ */
41
+ export declare const OtherConnector: Story;
42
+ /**
43
+ * A custom body registered for `polarion` + `update_work_items` replaces the
44
+ * JSON view. Requests with no entry keep the JSON view.
45
+ */
46
+ export declare const CustomBody: Story;
47
+ /**
48
+ * Keyboard users Tab to Deny, then to Allow, and Enter on Allow allows.
49
+ * Hidden from the sidebar; runs in CI.
50
+ */
51
+ export declare const KeyboardNavigation: Story;
52
+ /**
53
+ * What assistive tech hears: one named group, two named buttons, and
54
+ * decorative icons hidden. Also checks that Space on Deny denies. Hidden
55
+ * from the sidebar; runs in CI.
56
+ */
57
+ export declare const ScreenReader: Story;
58
+ /**
59
+ * At 200% zoom the card still fits and both actions stay usable. Hidden from
60
+ * the sidebar; runs in CI.
61
+ */
62
+ export declare const ZoomMagnification: Story;
63
+ /**
64
+ * At a 320px phone width the card reflows without sideways scrolling and the
65
+ * buttons keep a usable touch size. Hidden from the sidebar; runs in CI.
66
+ */
67
+ export declare const MobileBreakpoint: Story;
68
+ /**
69
+ * The host waits for its backend before passing the new status. Focus must
70
+ * still land on the result row, although the browser drops it from the
71
+ * disabled button meanwhile. Hidden from the sidebar; runs in CI.
72
+ */
73
+ export declare const FocusAfterSlowDecision: Story;
74
+ /**
75
+ * A long connector name at a 320px phone width: the chip shrinks and cuts its
76
+ * text instead of pushing the card wider or into the status badge, and screen
77
+ * readers still get the full name. Hidden from the sidebar; runs in CI.
78
+ */
79
+ export declare const LongConnectorLabel: Story;
80
+ //# sourceMappingURL=CkToolApproval.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CkToolApproval.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/CkToolApproval.stories.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAMlD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAqC3D;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAuBrC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAuDnC;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,KA+BrB,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,OAAO,EAAE,KAuBrB,CAAC;AAEF,uCAAuC;AACvC,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAcnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAoC5B,CAAC;AAkEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAmChC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KA2C1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KA2B/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAmC9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAgCpC,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAmDhC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { CkToolApprovalExposed, CkToolApprovalProps, CkToolApprovalSlots } from './types';
2
+ type __VLS_Slots = CkToolApprovalSlots;
3
+ declare const __VLS_base: import("vue").DefineComponent<CkToolApprovalProps, CkToolApprovalExposed, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
+ allow: (id: string) => any;
5
+ deny: (id: string) => any;
6
+ }, string, import("vue").PublicProps, Readonly<CkToolApprovalProps> & Readonly<{
7
+ onAllow?: ((id: string) => any) | undefined;
8
+ onDeny?: ((id: string) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
18
+ //# sourceMappingURL=CkToolApproval.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CkToolApproval.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/CkToolApproval.vue"],"names":[],"mappings":"AA+QA,OAAO,KAAK,EAEV,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAcjB,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA6YvC,QAAA,MAAM,UAAU;;;;;;kFAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type CkToolApprovalOutcome } from './outcomes';
2
+ type __VLS_Props = {
3
+ outcome: CkToolApprovalOutcome;
4
+ headingId: string;
5
+ };
6
+ type __VLS_Slots = {
7
+ heading: () => unknown;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
10
+ focus: () => void;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
20
+ //# sourceMappingURL=ResultRow.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResultRow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/ResultRow.vue"],"names":[],"mappings":"AA2DA,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEtE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,qBAAqB,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,OAAO,CAAC;CACxB,CAAC;AAuHF,QAAA,MAAM,UAAU;iBA9GH,IAAI;oPAiHf,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Icon size inside the small badges (connector chip and status pill). */
2
+ export declare const BADGE_ICON_SIZE = 12;
3
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/badge.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,eAAO,MAAM,eAAe,KAAK,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as CkToolApproval } from './CkToolApproval.vue';
2
+ export type * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { UiBadgeVariants } from '@aleph-alpha/ui-library';
2
+ import type { ChatKitLabels } from '../../../handlers/useChatKitLabels';
3
+ import { type CkToolApprovalStatus } from './types';
4
+ /** A status the user has already decided, shown as the collapsed result row. */
5
+ export type CkToolApprovalDecidedStatus = Exclude<CkToolApprovalStatus, 'pending'>;
6
+ /** Guards against statuses a JavaScript host may pass that the type does not allow. */
7
+ export declare function isDecidedStatus(status: string): status is CkToolApprovalDecidedStatus;
8
+ /** The status pill on the right of the result row. */
9
+ export interface CkToolApprovalBadge {
10
+ variant: Extract<UiBadgeVariants, 'verified' | 'secondary' | 'destructive'>;
11
+ icon: string;
12
+ text: string;
13
+ }
14
+ export interface CkToolApprovalOutcome {
15
+ /** The outcome half of the result line, e.g. "Denied by you". */
16
+ result: string;
17
+ /** Detail after the outcome, e.g. "Nothing was updated". Empty to omit. */
18
+ detail: string;
19
+ badge: CkToolApprovalBadge;
20
+ }
21
+ /** The one-line outcome, e.g. "Denied by you · Nothing was updated". */
22
+ export declare function resultLineOf(outcome: CkToolApprovalOutcome): string;
23
+ /**
24
+ * The result line and badge for each decided status, from the design's
25
+ * "HITL Request" component and its Skipped variant.
26
+ */
27
+ export declare function toolApprovalOutcome(status: CkToolApprovalDecidedStatus, labels: Required<ChatKitLabels>, summary?: string): CkToolApprovalOutcome;
28
+ //# sourceMappingURL=outcomes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outcomes.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/outcomes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE5E,gFAAgF;AAChF,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,oBAAoB,EACpB,SAAS,CACV,CAAC;AAEF,uFAAuF;AACvF,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,GACb,MAAM,IAAI,2BAA2B,CAKvC;AAED,sDAAsD;AACtD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC,CAAC;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,mBAAmB,CAAC;CAC5B;AAID,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAInE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,2BAA2B,EACnC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,EAC/B,OAAO,CAAC,EAAE,MAAM,GACf,qBAAqB,CA0CvB"}
@@ -0,0 +1,13 @@
1
+ /** The arguments as JSON text, or the fact that they cannot be shown. */
2
+ export type SerializedArguments = {
3
+ readable: true;
4
+ json: string;
5
+ } | {
6
+ readable: false;
7
+ };
8
+ /**
9
+ * Turns the arguments into indented JSON. Values JSON cannot hold, such as a
10
+ * bigint or a circular reference, make them unreadable instead of throwing.
11
+ */
12
+ export declare function serializeArguments(args: unknown): SerializedArguments;
13
+ //# sourceMappingURL=serializeArguments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeArguments.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/serializeArguments.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,QAAQ,EAAE,KAAK,CAAA;CAAE,CAAC;AAExB;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,mBAAmB,CAQrE"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Turns a machine tool name into a readable action, for tools whose server
3
+ * gives no human title: `update_work_items` and `getPDF` become
4
+ * "Update work items" and "Get PDF".
5
+ */
6
+ export declare function toolTitleFromName(toolName: string): string;
7
+ //# sourceMappingURL=toolTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/toolTitle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAS1D"}
@@ -0,0 +1,102 @@
1
+ import type { Component } from 'vue';
2
+ /**
3
+ * Where an approval stands: waiting for the user, or decided.
4
+ * `failed` means the user allowed the call but the tool errored.
5
+ * `skipped` means the user sent a new message instead of answering.
6
+ */
7
+ export declare const ckToolApprovalStatuses: readonly ["pending", "allowed", "denied", "failed", "skipped"];
8
+ export type CkToolApprovalStatus = (typeof ckToolApprovalStatuses)[number];
9
+ /**
10
+ * A tool call the agent wants to run and is waiting on the user for.
11
+ * Transport-neutral: the host converts its own wire format (a Responses API
12
+ * `mcp_approval_request`, an agent interrupt, ...) into this shape.
13
+ */
14
+ export interface CkToolApprovalRequest {
15
+ /** Id the host needs to answer the request, emitted back with the decision. */
16
+ id: string;
17
+ /** Machine name of the connector the tool belongs to, e.g. `polarion`. */
18
+ connector: string;
19
+ /**
20
+ * Display name of the connector, shown as a chip next to the header, e.g.
21
+ * `"Polarion"`. Omit to hide the chip, for example when the chat is
22
+ * embedded in the connector's own app.
23
+ */
24
+ connectorLabel?: string;
25
+ /**
26
+ * Lucide icon shown in the connector chip, e.g. `"mail"`. Defaults to
27
+ * `"app-window"`. For a brand logo, use the `connector-icon` slot instead.
28
+ */
29
+ connectorIcon?: string;
30
+ /** Machine name of the tool, e.g. `update_work_items`. */
31
+ toolName: string;
32
+ /**
33
+ * Human title of the tool, shown as the header, e.g. `"Update work items"`.
34
+ * MCP servers provide one per tool. When omitted, the header is derived
35
+ * from `toolName`.
36
+ */
37
+ toolTitle?: string;
38
+ /** The arguments the agent wants to call the tool with, already parsed. */
39
+ arguments: Readonly<Record<string, unknown>>;
40
+ }
41
+ /**
42
+ * Custom approval bodies, keyed by connector, then by tool name. A request
43
+ * with no entry falls back to the JSON view. Each component receives the
44
+ * request as its `request` prop.
45
+ *
46
+ * @example
47
+ * { polarion: { update_work_items: PolarionWorkItemsBody } }
48
+ */
49
+ export type CkToolApprovalBodyComponents = Readonly<Record<string, Readonly<Record<string, Component<CkToolApprovalBodyProps>>>>>;
50
+ /** Props every custom approval body receives. */
51
+ export interface CkToolApprovalBodyProps {
52
+ request: CkToolApprovalRequest;
53
+ }
54
+ /**
55
+ * Asks the user to allow or deny a tool call the agent paused on, then
56
+ * collapses to a one-line result once decided. Shows the call's arguments as
57
+ * JSON unless the host registers a custom body for that connector and tool.
58
+ *
59
+ * Purely presentational: the host owns the request, sends the decision to its
60
+ * backend and passes the resulting `status` back in. Emits `allow` or `deny`
61
+ * with the request id, then locks both buttons until `status` changes or the
62
+ * host calls the exposed `unlock()`.
63
+ *
64
+ * @category Feedback
65
+ * @useCases human in the loop approval, confirm a tool call before it runs, show the outcome of a tool call
66
+ * @keywords approval, hitl, human in the loop, tool call, confirm, allow, deny, permission, mcp
67
+ * @related CkAgentMessage, CkConversation
68
+ */
69
+ export interface CkToolApprovalProps {
70
+ /** The tool call waiting for a decision. */
71
+ request: CkToolApprovalRequest;
72
+ /** Current state. `pending` shows the full card with Deny and Allow. */
73
+ status: CkToolApprovalStatus;
74
+ /**
75
+ * Outcome detail after the result, for any decided status, e.g.
76
+ * `"2 work items updated"` or `"Nothing was sent"`. Pass a fully formatted,
77
+ * localized string. When omitted, allowed shows no detail and the other
78
+ * statuses fall back to `toolApprovalNothingChanged` ("Nothing was updated").
79
+ * Pass an empty string to show no detail.
80
+ */
81
+ summary?: string;
82
+ /** Custom bodies per connector and tool, replacing the JSON view. */
83
+ bodyComponents?: CkToolApprovalBodyComponents;
84
+ }
85
+ export interface CkToolApprovalSlots {
86
+ /** Replaces the connector chip's icon, e.g. with a brand logo image. */
87
+ 'connector-icon'?: () => unknown;
88
+ }
89
+ export interface CkToolApprovalEmits {
90
+ /** The user allowed the call. Payload is `request.id`. */
91
+ (e: 'allow', id: string): void;
92
+ /** The user denied the call. Payload is `request.id`. */
93
+ (e: 'deny', id: string): void;
94
+ }
95
+ export interface CkToolApprovalExposed {
96
+ /**
97
+ * Re-enables Allow and Deny after a click. Call it when sending the
98
+ * decision failed and the request stays pending, so the user can retry.
99
+ */
100
+ unlock: () => void;
101
+ }
102
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/CkToolApproval/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gEAMzB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3E;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,+EAA+E;IAC/E,EAAE,EAAE,MAAM,CAAC;IACX,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,QAAQ,CACjD,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAC7E,CAAC;AAEF,iDAAiD;AACjD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,qBAAqB,CAAC;CAChC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,mBAAmB;IAClC,4CAA4C;IAC5C,OAAO,EAAE,qBAAqB,CAAC;IAC/B,wEAAwE;IACxE,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,cAAc,CAAC,EAAE,4BAA4B,CAAC;CAC/C;AAED,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC,0DAA0D;IAC1D,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,yDAAyD;IACzD,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB"}
@@ -37,6 +37,8 @@ export { CkPromptStopButton } from './CkPromptStopButton';
37
37
  export { CkPromptInput } from './CkPromptInput';
38
38
  export { CkPromptInputDisclaimer } from './CkPromptInputDisclaimer';
39
39
  export { CkRegenerateMessageButton } from './CkRegenerateMessageButton';
40
+ export { CkToolApproval } from './CkToolApproval';
41
+ export type { CkToolApprovalProps, CkToolApprovalEmits, CkToolApprovalSlots, CkToolApprovalRequest, CkToolApprovalStatus, CkToolApprovalBodyComponents, CkToolApprovalBodyProps, CkToolApprovalExposed, } from './CkToolApproval';
40
42
  export { CkUserMessage } from './CkUserMessage';
41
43
  export type { CkUserMessageProps } from './CkUserMessage';
42
44
  export { CkEditableUserMessage } from './CkEditableUserMessage';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,E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AAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACnE,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
- export { CkAgentMessage, CkAgentMessageHeader, CkHeaderActivityButton, CkCitation, CkCitationLabel, CkCitationCard, CkConversationLayout, CkCopyMessageButton, CkDropZoneOverlay, CkFeedbackButton, CkFeedbackDialog, CkFileItemsList, CkHistoryItem, CkHistoryWrapper, CkMarkdownRenderer, CkMessageButton, CkModelSelector, CkPromptSendButton, CkPromptMenuButton, CkPromptStopButton, CkPromptInput, CkPromptInputDisclaimer, CkRegenerateMessageButton, CkSendIcon, CkStopIcon, CkUserMessage, CkEditableUserMessage, CkMilkdownEditor, CkCodeEditor, preloadCkCodeEditor, } from './base';
2
- export type { CkAgentMessageHeaderProps, CkHeaderActivityButtonProps, CkHeaderActivityButtonEmits, CkCitationProps, CkCitationEmits, CkCitationSource, CkCitationLabelProps, CkCitationCardProps, CkCitationCardEmits, CkConversationLayoutProps, CkDropZoneOverlayProps, CkDropZoneOverlayEmits, CkDropZoneRejection, CkDropZoneRejectionReason, CkFeedbackButtonProps, CkFeedbackDialogEmits, CkFeedbackDialogProps, CkFeedbackDialogSubmitPayload, CkFeedbackReason, CkFeedbackSentiment, CkFeedbackValue, CkFileEntry, CkFileItemsListEmits, CkFileItemsListProps, CkHistoryItemEmits, CkHistoryItemProps, CkHistoryWrapperProps, CkMarkdownElementClasses, CkMarkdownRendererProps, CkMarkdownRendererEmits, CkModelOption, CkModelSelectorProps, CkModelSelectorEmits, CkPromptMenuButtonProps, CkUserMessageProps, CkEditableUserMessageProps, CkEditableUserMessageEmits, CkMilkdownEditorEmits, CkMilkdownEditorExposed, CkMilkdownEditorProps, CkCodeEditorEmits, CkCodeEditorExposed, CkCodeEditorFadeSurface, CkCodeEditorProps, } from './base';
1
+ export { CkAgentMessage, CkAgentMessageHeader, CkHeaderActivityButton, CkCitation, CkCitationLabel, CkCitationCard, CkConversationLayout, CkCopyMessageButton, CkDropZoneOverlay, CkFeedbackButton, CkFeedbackDialog, CkFileItemsList, CkHistoryItem, CkHistoryWrapper, CkMarkdownRenderer, CkMessageButton, CkModelSelector, CkPromptSendButton, CkPromptMenuButton, CkPromptStopButton, CkPromptInput, CkPromptInputDisclaimer, CkRegenerateMessageButton, CkSendIcon, CkStopIcon, CkToolApproval, CkUserMessage, CkEditableUserMessage, CkMilkdownEditor, CkCodeEditor, preloadCkCodeEditor, } from './base';
2
+ export type { CkAgentMessageHeaderProps, CkHeaderActivityButtonProps, CkHeaderActivityButtonEmits, CkCitationProps, CkCitationEmits, CkCitationSource, CkCitationLabelProps, CkCitationCardProps, CkCitationCardEmits, CkConversationLayoutProps, CkDropZoneOverlayProps, CkDropZoneOverlayEmits, CkDropZoneRejection, CkDropZoneRejectionReason, CkFeedbackButtonProps, CkFeedbackDialogEmits, CkFeedbackDialogProps, CkFeedbackDialogSubmitPayload, CkFeedbackReason, CkFeedbackSentiment, CkFeedbackValue, CkFileEntry, CkFileItemsListEmits, CkFileItemsListProps, CkHistoryItemEmits, CkHistoryItemProps, CkHistoryWrapperProps, CkMarkdownElementClasses, CkMarkdownRendererProps, CkMarkdownRendererEmits, CkModelOption, CkModelSelectorProps, CkModelSelectorEmits, CkPromptMenuButtonProps, CkToolApprovalProps, CkToolApprovalEmits, CkToolApprovalSlots, CkToolApprovalRequest, CkToolApprovalStatus, CkToolApprovalBodyComponents, CkToolApprovalBodyProps, CkToolApprovalExposed, CkUserMessageProps, CkEditableUserMessageProps, CkEditableUserMessageEmits, CkMilkdownEditorEmits, CkMilkdownEditorExposed, CkMilkdownEditorProps, CkCodeEditorEmits, CkCodeEditorExposed, CkCodeEditorFadeSurface, CkCodeEditorProps, } from './base';
3
3
  export { CkConversation, CkHistory } from './composed';
4
4
  export type { CkConversationProps, CkHistoryEmits, CkHistoryProps, } from './composed';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,UAAU,EACV,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,GACpB,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,UAAU,EACV,UAAU,EACV,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,GACpB,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
- import { _, a, b, c, C, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, D, E } from "../CkHistory.vue_vue_type_script_setup_true_lang-C4XS2QQI.js";
1
+ import { _, a, b, c, C, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, D, E, F } from "../CkHistory.vue_vue_type_script_setup_true_lang-DF5yUf7K.js";
2
2
  export {
3
3
  _ as CkAgentMessage,
4
4
  a as CkAgentMessageHeader,
@@ -30,6 +30,7 @@ export {
30
30
  z as CkRegenerateMessageButton,
31
31
  A as CkSendIcon,
32
32
  B as CkStopIcon,
33
- D as CkUserMessage,
34
- E as preloadCkCodeEditor
33
+ D as CkToolApproval,
34
+ E as CkUserMessage,
35
+ F as preloadCkCodeEditor
35
36
  };
@@ -11,7 +11,7 @@ import { p as purify } from "./katex.min-md74IFlY.js";
11
11
  import { h, defineComponent, ref, Fragment as Fragment$1, createApp, watchEffect, watch, computed, onMounted, onUnmounted, shallowRef, nextTick } from "vue";
12
12
  import { a as closeBrackets, b as autocompletion, d as closeBracketsKeymap, e as completionKeymap } from "./index-KgumaL1c.js";
13
13
  import { h as formatCodeAsIndented, i as formatHeadingAsSetext, j as decodeString, k as encodeCharacterReference, p as patternInScope, n as handle, u as unified, r as remarkParse, v as visit, S as SKIP, e as visitParents, a as remarkGfm } from "./index-CfVHzirA.js";
14
- import { z as zwitch, c as remarkMath, d as defaultChatKitLabels } from "./useChatKitLabels-DxW0N5U-.js";
14
+ import { z as zwitch, c as remarkMath, d as defaultChatKitLabels } from "./useChatKitLabels-ky3JI9gf.js";
15
15
  const own = {}.hasOwnProperty;
16
16
  function configure(base2, extension) {
17
17
  let index = -1;
@@ -1,5 +1,5 @@
1
1
  import { u } from "../useMessageHandler-Bkzrdgfj.js";
2
- import { C, d, n, p, r, a, u as u2, b } from "../useChatKitLabels-DxW0N5U-.js";
2
+ import { C, d, n, p, r, a, u as u2, b } from "../useChatKitLabels-ky3JI9gf.js";
3
3
  export {
4
4
  C as CHAT_KIT_LABELS,
5
5
  d as defaultChatKitLabels,