@blueking/chat-x 0.0.1-beta.11 → 0.0.1-beta.13
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,8 +1,10 @@
|
|
|
1
|
+
import { type TippyOptions } from 'vue-tippy';
|
|
1
2
|
import type { IToolBtn } from '../../../types';
|
|
2
3
|
import 'tippy.js/dist/tippy.css';
|
|
3
4
|
type __VLS_Props = IToolBtn & {
|
|
4
5
|
active?: boolean;
|
|
5
6
|
disabled?: boolean;
|
|
7
|
+
tippyOptions?: Partial<Omit<TippyOptions, 'content' | 'getReferenceClientRect' | 'triggerTarget'>>;
|
|
6
8
|
};
|
|
7
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
10
|
click: (data: IToolBtn, event: MouseEvent) => any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Message, type UserMessage, MessageRole, MessageStatus } from '../../../ag-ui/types';
|
|
2
2
|
import { MessageToolsStatus } from '../../../types/tool';
|
|
3
|
+
import { type MessageToolsProps } from '../../message-tools/message-tools.vue';
|
|
3
4
|
import type { IToolBtn, TagSchema } from '../../../types';
|
|
4
5
|
/**
|
|
5
6
|
* Agent 工具操作回调类型
|
|
@@ -26,6 +27,7 @@ type __VLS_Props = {
|
|
|
26
27
|
messages: Message[];
|
|
27
28
|
messageStatus?: MessageStatus;
|
|
28
29
|
messageToolsStatus?: MessageToolsStatus;
|
|
30
|
+
messageToolsTippyOptions?: MessageToolsProps['tippyOptions'];
|
|
29
31
|
onAgentAction?: AgentActionCallback;
|
|
30
32
|
onAgentFeedback?: AgentFeedbackCallback;
|
|
31
33
|
onUserAction?: UserActionCallback;
|
|
@@ -90,6 +92,7 @@ declare var __VLS_9: {
|
|
|
90
92
|
rows?: number | undefined;
|
|
91
93
|
}[];
|
|
92
94
|
shortcut?: {
|
|
95
|
+
alias?: string | undefined;
|
|
93
96
|
components?: ({
|
|
94
97
|
props: {
|
|
95
98
|
readonly [x: string]: unknown;
|
|
@@ -621,6 +624,7 @@ declare var __VLS_9: {
|
|
|
621
624
|
rows?: number | undefined;
|
|
622
625
|
}[];
|
|
623
626
|
shortcut?: {
|
|
627
|
+
alias?: string | undefined;
|
|
624
628
|
components?: ({
|
|
625
629
|
props: {
|
|
626
630
|
readonly [x: string]: unknown;
|
|
@@ -1142,6 +1146,7 @@ declare var __VLS_9: {
|
|
|
1142
1146
|
rows?: number | undefined;
|
|
1143
1147
|
}[];
|
|
1144
1148
|
shortcut?: {
|
|
1149
|
+
alias?: string | undefined;
|
|
1145
1150
|
components?: ({
|
|
1146
1151
|
props: {
|
|
1147
1152
|
readonly [x: string]: unknown;
|
|
@@ -1661,6 +1666,7 @@ declare var __VLS_9: {
|
|
|
1661
1666
|
rows?: number | undefined;
|
|
1662
1667
|
}[];
|
|
1663
1668
|
shortcut?: {
|
|
1669
|
+
alias?: string | undefined;
|
|
1664
1670
|
components?: ({
|
|
1665
1671
|
props: {
|
|
1666
1672
|
readonly [x: string]: unknown;
|
|
@@ -2180,6 +2186,7 @@ declare var __VLS_9: {
|
|
|
2180
2186
|
rows?: number | undefined;
|
|
2181
2187
|
}[];
|
|
2182
2188
|
shortcut?: {
|
|
2189
|
+
alias?: string | undefined;
|
|
2183
2190
|
components?: ({
|
|
2184
2191
|
props: {
|
|
2185
2192
|
readonly [x: string]: unknown;
|
|
@@ -2699,6 +2706,7 @@ declare var __VLS_9: {
|
|
|
2699
2706
|
rows?: number | undefined;
|
|
2700
2707
|
}[];
|
|
2701
2708
|
shortcut?: {
|
|
2709
|
+
alias?: string | undefined;
|
|
2702
2710
|
components?: ({
|
|
2703
2711
|
props: {
|
|
2704
2712
|
readonly [x: string]: unknown;
|
|
@@ -3218,6 +3226,7 @@ declare var __VLS_9: {
|
|
|
3218
3226
|
rows?: number | undefined;
|
|
3219
3227
|
}[];
|
|
3220
3228
|
shortcut?: {
|
|
3229
|
+
alias?: string | undefined;
|
|
3221
3230
|
components?: ({
|
|
3222
3231
|
props: {
|
|
3223
3232
|
readonly [x: string]: unknown;
|
|
@@ -3737,6 +3746,7 @@ declare var __VLS_9: {
|
|
|
3737
3746
|
rows?: number | undefined;
|
|
3738
3747
|
}[];
|
|
3739
3748
|
shortcut?: {
|
|
3749
|
+
alias?: string | undefined;
|
|
3740
3750
|
components?: ({
|
|
3741
3751
|
props: {
|
|
3742
3752
|
readonly [x: string]: unknown;
|
|
@@ -4256,6 +4266,7 @@ declare var __VLS_9: {
|
|
|
4256
4266
|
rows?: number | undefined;
|
|
4257
4267
|
}[];
|
|
4258
4268
|
shortcut?: {
|
|
4269
|
+
alias?: string | undefined;
|
|
4259
4270
|
components?: ({
|
|
4260
4271
|
props: {
|
|
4261
4272
|
readonly [x: string]: unknown;
|
|
@@ -4775,6 +4786,7 @@ declare var __VLS_9: {
|
|
|
4775
4786
|
rows?: number | undefined;
|
|
4776
4787
|
}[];
|
|
4777
4788
|
shortcut?: {
|
|
4789
|
+
alias?: string | undefined;
|
|
4778
4790
|
components?: ({
|
|
4779
4791
|
props: {
|
|
4780
4792
|
readonly [x: string]: unknown;
|
|
@@ -5294,6 +5306,7 @@ declare var __VLS_9: {
|
|
|
5294
5306
|
rows?: number | undefined;
|
|
5295
5307
|
}[];
|
|
5296
5308
|
shortcut?: {
|
|
5309
|
+
alias?: string | undefined;
|
|
5297
5310
|
components?: ({
|
|
5298
5311
|
props: {
|
|
5299
5312
|
readonly [x: string]: unknown;
|
|
@@ -5813,6 +5826,7 @@ declare var __VLS_9: {
|
|
|
5813
5826
|
rows?: number | undefined;
|
|
5814
5827
|
}[];
|
|
5815
5828
|
shortcut?: {
|
|
5829
|
+
alias?: string | undefined;
|
|
5816
5830
|
components?: ({
|
|
5817
5831
|
props: {
|
|
5818
5832
|
readonly [x: string]: unknown;
|
|
@@ -6332,6 +6346,7 @@ declare var __VLS_9: {
|
|
|
6332
6346
|
rows?: number | undefined;
|
|
6333
6347
|
}[];
|
|
6334
6348
|
shortcut?: {
|
|
6349
|
+
alias?: string | undefined;
|
|
6335
6350
|
components?: ({
|
|
6336
6351
|
props: {
|
|
6337
6352
|
readonly [x: string]: unknown;
|
|
@@ -6851,6 +6866,7 @@ declare var __VLS_9: {
|
|
|
6851
6866
|
rows?: number | undefined;
|
|
6852
6867
|
}[];
|
|
6853
6868
|
shortcut?: {
|
|
6869
|
+
alias?: string | undefined;
|
|
6854
6870
|
components?: ({
|
|
6855
6871
|
props: {
|
|
6856
6872
|
readonly [x: string]: unknown;
|
|
@@ -7371,6 +7387,7 @@ declare var __VLS_9: {
|
|
|
7371
7387
|
rows?: number | undefined;
|
|
7372
7388
|
}[];
|
|
7373
7389
|
shortcut?: {
|
|
7390
|
+
alias?: string | undefined;
|
|
7374
7391
|
components?: ({
|
|
7375
7392
|
props: {
|
|
7376
7393
|
readonly [x: string]: unknown;
|
|
@@ -7890,6 +7907,7 @@ declare var __VLS_9: {
|
|
|
7890
7907
|
rows?: number | undefined;
|
|
7891
7908
|
}[];
|
|
7892
7909
|
shortcut?: {
|
|
7910
|
+
alias?: string | undefined;
|
|
7893
7911
|
components?: ({
|
|
7894
7912
|
props: {
|
|
7895
7913
|
readonly [x: string]: unknown;
|
|
@@ -8409,6 +8427,7 @@ declare var __VLS_9: {
|
|
|
8409
8427
|
rows?: number | undefined;
|
|
8410
8428
|
}[];
|
|
8411
8429
|
shortcut?: {
|
|
8430
|
+
alias?: string | undefined;
|
|
8412
8431
|
components?: ({
|
|
8413
8432
|
props: {
|
|
8414
8433
|
readonly [x: string]: unknown;
|
|
@@ -8928,6 +8947,7 @@ declare var __VLS_9: {
|
|
|
8928
8947
|
rows?: number | undefined;
|
|
8929
8948
|
}[];
|
|
8930
8949
|
shortcut?: {
|
|
8950
|
+
alias?: string | undefined;
|
|
8931
8951
|
components?: ({
|
|
8932
8952
|
props: {
|
|
8933
8953
|
readonly [x: string]: unknown;
|
|
@@ -9447,6 +9467,7 @@ declare var __VLS_9: {
|
|
|
9447
9467
|
rows?: number | undefined;
|
|
9448
9468
|
}[];
|
|
9449
9469
|
shortcut?: {
|
|
9470
|
+
alias?: string | undefined;
|
|
9450
9471
|
components?: ({
|
|
9451
9472
|
props: {
|
|
9452
9473
|
readonly [x: string]: unknown;
|
|
@@ -9966,6 +9987,7 @@ declare var __VLS_9: {
|
|
|
9966
9987
|
rows?: number | undefined;
|
|
9967
9988
|
}[];
|
|
9968
9989
|
shortcut?: {
|
|
9990
|
+
alias?: string | undefined;
|
|
9969
9991
|
components?: ({
|
|
9970
9992
|
props: {
|
|
9971
9993
|
readonly [x: string]: unknown;
|
|
@@ -10485,6 +10507,7 @@ declare var __VLS_9: {
|
|
|
10485
10507
|
rows?: number | undefined;
|
|
10486
10508
|
}[];
|
|
10487
10509
|
shortcut?: {
|
|
10510
|
+
alias?: string | undefined;
|
|
10488
10511
|
components?: ({
|
|
10489
10512
|
props: {
|
|
10490
10513
|
readonly [x: string]: unknown;
|
|
@@ -11007,6 +11030,7 @@ declare var __VLS_9: {
|
|
|
11007
11030
|
rows?: number | undefined;
|
|
11008
11031
|
}[];
|
|
11009
11032
|
shortcut?: {
|
|
11033
|
+
alias?: string | undefined;
|
|
11010
11034
|
components?: ({
|
|
11011
11035
|
props: {
|
|
11012
11036
|
readonly [x: string]: unknown;
|
|
@@ -11536,6 +11560,7 @@ declare var __VLS_9: {
|
|
|
11536
11560
|
rows?: number | undefined;
|
|
11537
11561
|
}[];
|
|
11538
11562
|
shortcut?: {
|
|
11563
|
+
alias?: string | undefined;
|
|
11539
11564
|
components?: ({
|
|
11540
11565
|
props: {
|
|
11541
11566
|
readonly [x: string]: unknown;
|
package/dist/index.js
CHANGED
|
@@ -2976,7 +2976,7 @@ var _hoisted_1$33 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
|
|
|
2976
2976
|
class: normalizeClass(["ai-shortcut-btn", { "is-menu-mode": n.mode === "menu" }]),
|
|
2977
2977
|
onClick: i[0] || (i[0] = (e) => o(n.shortcut))
|
|
2978
2978
|
}, [renderSlot(r.$slots, "default", {}, () => {
|
|
2979
|
-
var r, i, a, o, f, p;
|
|
2979
|
+
var r, i, a, o, f, p, m;
|
|
2980
2980
|
return [(r = n.shortcut) != null && r.icon ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [typeof n.shortcut.icon == "string" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [n.shortcut.icon.startsWith("http") ? (openBlock(), createElementBlock("img", {
|
|
2981
2981
|
key: 0,
|
|
2982
2982
|
class: "ai-common-icon ai-shortcut-btn-icon",
|
|
@@ -2987,7 +2987,7 @@ var _hoisted_1$33 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
|
|
|
2987
2987
|
}))], 64)) : n.shortcut && !((f = n.shortcut.components) != null && f.length) ? (openBlock(), createBlock(unref(AgentIcon), {
|
|
2988
2988
|
key: 1,
|
|
2989
2989
|
class: "ai-shortcut-btn-icon"
|
|
2990
|
-
})) : createCommentVNode("", !0), createTextVNode(" " + toDisplayString((p = n.shortcut) == null ? void 0 : p.name), 1)];
|
|
2990
|
+
})) : createCommentVNode("", !0), createTextVNode(" " + toDisplayString(((p = n.shortcut) == null ? void 0 : p.alias) || ((m = n.shortcut) == null ? void 0 : m.name)), 1)];
|
|
2991
2991
|
}), renderSlot(r.$slots, "append")], 2));
|
|
2992
2992
|
}
|
|
2993
2993
|
}), _hoisted_1$32 = { class: "ai-selection-popover-content" }, _hoisted_2$21 = {
|
|
@@ -3295,6 +3295,7 @@ function _objectWithoutProperties(e, n) {
|
|
|
3295
3295
|
var _excluded = ["options"], _excluded2 = ["options"], _hoisted_1$30 = { class: "shortcut-render" }, _hoisted_2$20 = { class: "shortcut-render-header" }, _hoisted_3$15 = { class: "header-name" }, _hoisted_4$13 = { class: "shortcut-render-content" }, _hoisted_5$10 = { class: "shortcut-footer" }, shortcut_render_default = /* @__PURE__ */ defineComponent({
|
|
3296
3296
|
__name: "shortcut-render",
|
|
3297
3297
|
props: {
|
|
3298
|
+
alias: {},
|
|
3298
3299
|
components: {},
|
|
3299
3300
|
description: {},
|
|
3300
3301
|
formModel: {},
|
|
@@ -3371,7 +3372,7 @@ var _excluded = ["options"], _excluded2 = ["options"], _hoisted_1$30 = { class:
|
|
|
3371
3372
|
};
|
|
3372
3373
|
return (r, i) => (openBlock(), createElementBlock("div", _hoisted_1$30, [createElementVNode("div", _hoisted_2$20, [
|
|
3373
3374
|
createVNode(unref(ThinkingIcon), { class: "header-icon" }),
|
|
3374
|
-
createElementVNode("span", _hoisted_3$15, toDisplayString(n.name), 1),
|
|
3375
|
+
createElementVNode("span", _hoisted_3$15, toDisplayString(n.alias || n.name), 1),
|
|
3375
3376
|
createVNode(unref(CloseIcon), {
|
|
3376
3377
|
class: "header-close",
|
|
3377
3378
|
onClick: x
|
|
@@ -6800,17 +6801,17 @@ var _hoisted_1$29 = { key: 1 }, tool_btn_default = /* @__PURE__ */ defineCompone
|
|
|
6800
6801
|
id: {},
|
|
6801
6802
|
name: {},
|
|
6802
6803
|
active: { type: Boolean },
|
|
6803
|
-
disabled: { type: Boolean }
|
|
6804
|
+
disabled: { type: Boolean },
|
|
6805
|
+
tippyOptions: {}
|
|
6804
6806
|
},
|
|
6805
6807
|
emits: ["click"],
|
|
6806
6808
|
setup(e, { emit: n }) {
|
|
6807
|
-
let r = e, i = n, o = computed(() => ({
|
|
6809
|
+
let r = e, i = n, o = computed(() => _objectSpread2(_objectSpread2({
|
|
6808
6810
|
content: r.description,
|
|
6809
|
-
theme: "ai-chat-box"
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
})), c = (e) => {
|
|
6811
|
+
theme: "ai-chat-box"
|
|
6812
|
+
}, r.tippyOptions || {}), {}, { onShow: () => {
|
|
6813
|
+
if (r.disabled) return !1;
|
|
6814
|
+
} })), c = (e) => {
|
|
6814
6815
|
r.disabled || i("click", r, e);
|
|
6815
6816
|
};
|
|
6816
6817
|
return (n, r) => withDirectives((openBlock(), createElementBlock("div", {
|
|
@@ -10582,8 +10583,13 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
10582
10583
|
ref_for: !0
|
|
10583
10584
|
}, e, {
|
|
10584
10585
|
disabled: n.messageToolsStatus === unref(MessageToolsStatus).Disabled,
|
|
10586
|
+
"tippy-options": n.tippyOptions,
|
|
10585
10587
|
onClick: (n) => v(e)
|
|
10586
|
-
}), null, 16, [
|
|
10588
|
+
}), null, 16, [
|
|
10589
|
+
"disabled",
|
|
10590
|
+
"tippy-options",
|
|
10591
|
+
"onClick"
|
|
10592
|
+
]))), 128))]),
|
|
10587
10593
|
n.updateTools.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$8)) : createCommentVNode("", !0),
|
|
10588
10594
|
createElementVNode("div", _hoisted_4$6, [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.updateTools, (r) => (openBlock(), createElementBlock(Fragment, { key: r.id }, [["like", "unlike"].includes(r.id) ? (openBlock(), createBlock(unref(TippyComponent), mergeProps({
|
|
10589
10595
|
key: 0,
|
|
@@ -10607,11 +10613,13 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
10607
10613
|
id: b(r.id),
|
|
10608
10614
|
active: g.value === r.id,
|
|
10609
10615
|
disabled: n.messageToolsStatus === unref(MessageToolsStatus).Disabled,
|
|
10616
|
+
"tippy-options": n.tippyOptions,
|
|
10610
10617
|
onClick: (e) => v(r)
|
|
10611
10618
|
}), null, 16, [
|
|
10612
10619
|
"id",
|
|
10613
10620
|
"active",
|
|
10614
10621
|
"disabled",
|
|
10622
|
+
"tippy-options",
|
|
10615
10623
|
"onClick"
|
|
10616
10624
|
])]),
|
|
10617
10625
|
_: 2
|
|
@@ -10620,8 +10628,13 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
10620
10628
|
ref_for: !0
|
|
10621
10629
|
}, r, {
|
|
10622
10630
|
disabled: n.messageToolsStatus === unref(MessageToolsStatus).Disabled,
|
|
10631
|
+
"tippy-options": n.tippyOptions,
|
|
10623
10632
|
onClick: (e) => v(r)
|
|
10624
|
-
}), null, 16, [
|
|
10633
|
+
}), null, 16, [
|
|
10634
|
+
"disabled",
|
|
10635
|
+
"tippy-options",
|
|
10636
|
+
"onClick"
|
|
10637
|
+
]))], 64))), 128))])
|
|
10625
10638
|
], 512));
|
|
10626
10639
|
}
|
|
10627
10640
|
}), _hoisted_1$11 = { class: "ai-loading-ring" }, _hoisted_2$8 = {
|
|
@@ -11179,6 +11192,7 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11179
11192
|
messages: {},
|
|
11180
11193
|
messageStatus: {},
|
|
11181
11194
|
messageToolsStatus: {},
|
|
11195
|
+
messageToolsTippyOptions: {},
|
|
11182
11196
|
onAgentAction: {},
|
|
11183
11197
|
onAgentFeedback: {},
|
|
11184
11198
|
onUserAction: {},
|
|
@@ -11190,7 +11204,7 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11190
11204
|
}),
|
|
11191
11205
|
emits: /* @__PURE__ */ mergeModels(["stopStreaming"], ["update:selectedMessages"]),
|
|
11192
11206
|
setup(n) {
|
|
11193
|
-
let r = n, i = useModel(n, "selectedMessages"), a = useTemplateRef("messageContainerRef"), o = useTemplateRef("messageContainerBottomRef"), d = ref([]), { isScrollBottom: p, toScrollBottom: m, scrollBottomHeight: g } = useContainerScrollProvider(a, o), { copy: _ } = useClipboard()
|
|
11207
|
+
let r = n, i = useModel(n, "selectedMessages"), a = useTemplateRef("messageContainerRef"), o = useTemplateRef("messageContainerBottomRef"), d = ref([]), { isScrollBottom: p, toScrollBottom: m, scrollBottomHeight: g } = useContainerScrollProvider(a, o), { copy: _ } = useClipboard();
|
|
11194
11208
|
watchEffect(() => {
|
|
11195
11209
|
var e;
|
|
11196
11210
|
let n = [], i = [];
|
|
@@ -11251,7 +11265,7 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11251
11265
|
immediate: !0,
|
|
11252
11266
|
flush: "post"
|
|
11253
11267
|
});
|
|
11254
|
-
let
|
|
11268
|
+
let v = function() {
|
|
11255
11269
|
var e = _asyncToGenerator(function* (e, n) {
|
|
11256
11270
|
var i;
|
|
11257
11271
|
return e.id === "copy" && (console.log("messages", n), _(n.filter((e) => e.role !== MessageRole.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n"))), (i = r.onAgentAction) == null ? void 0 : i.call(r, e, n);
|
|
@@ -11259,7 +11273,7 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11259
11273
|
return function(n, r) {
|
|
11260
11274
|
return e.apply(this, arguments);
|
|
11261
11275
|
};
|
|
11262
|
-
}(),
|
|
11276
|
+
}(), y = function() {
|
|
11263
11277
|
var e = _asyncToGenerator(function* (e, n) {
|
|
11264
11278
|
var i;
|
|
11265
11279
|
(i = r.onUserAction) == null || i.call(r, e, n);
|
|
@@ -11267,11 +11281,11 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11267
11281
|
return function(n, r) {
|
|
11268
11282
|
return e.apply(this, arguments);
|
|
11269
11283
|
};
|
|
11270
|
-
}(),
|
|
11284
|
+
}(), b = (e) => {
|
|
11271
11285
|
e.isHover = !0;
|
|
11272
|
-
},
|
|
11286
|
+
}, x = (e) => {
|
|
11273
11287
|
e.isHover = !1;
|
|
11274
|
-
},
|
|
11288
|
+
}, S = (e, n) => {
|
|
11275
11289
|
var r, a;
|
|
11276
11290
|
let o = e.type === MessageRole.User;
|
|
11277
11291
|
(r = d.value) == null || r.forEach((r, i) => {
|
|
@@ -11281,7 +11295,7 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11281
11295
|
e && (e.checked = n);
|
|
11282
11296
|
}
|
|
11283
11297
|
}), i.value = (a = d.value) == null ? void 0 : a.filter((e) => e.checked).map((e) => e.messages).flat();
|
|
11284
|
-
},
|
|
11298
|
+
}, C = function() {
|
|
11285
11299
|
var e = _asyncToGenerator(function* (e, n, i) {
|
|
11286
11300
|
var a;
|
|
11287
11301
|
(a = r.onUserInputConfirm) == null || a.call(r, e, n, i);
|
|
@@ -11289,7 +11303,7 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11289
11303
|
return function(n, r, i) {
|
|
11290
11304
|
return e.apply(this, arguments);
|
|
11291
11305
|
};
|
|
11292
|
-
}(),
|
|
11306
|
+
}(), T = function() {
|
|
11293
11307
|
var e = _asyncToGenerator(function* (e, n) {
|
|
11294
11308
|
var i;
|
|
11295
11309
|
(i = r.onUserShortcutConfirm) == null || i.call(r, e, n);
|
|
@@ -11307,13 +11321,13 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11307
11321
|
key: o,
|
|
11308
11322
|
class: "message-group",
|
|
11309
11323
|
style: normalizeStyle({ backgroundColor: a.checked ? "#f5f7fa" : "transparent" }),
|
|
11310
|
-
onMouseenter: (e) =>
|
|
11311
|
-
onMouseleave: (e) =>
|
|
11324
|
+
onMouseenter: (e) => b(a),
|
|
11325
|
+
onMouseleave: (e) => x(a)
|
|
11312
11326
|
}, [n.enableSelection && a.type !== unref(MessageRole).Loading ? (openBlock(), createBlock(unref(Checkbox), {
|
|
11313
11327
|
key: o,
|
|
11314
11328
|
class: "message-group-checkbox",
|
|
11315
11329
|
"model-value": a.checked,
|
|
11316
|
-
"onUpdate:modelValue": (e) =>
|
|
11330
|
+
"onUpdate:modelValue": (e) => S(a, e)
|
|
11317
11331
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("", !0), createElementVNode("div", _hoisted_2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(a.messages, (e, r) => renderSlot(i.$slots, "default", mergeProps({
|
|
11318
11332
|
key: r,
|
|
11319
11333
|
ref_for: !0
|
|
@@ -11324,9 +11338,9 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11324
11338
|
key: r,
|
|
11325
11339
|
message: e,
|
|
11326
11340
|
"message-tools-status": n.messageToolsStatus,
|
|
11327
|
-
"on-action": (n) =>
|
|
11328
|
-
"on-input-confirm": (n, r) =>
|
|
11329
|
-
"on-shortcut-confirm": (n) =>
|
|
11341
|
+
"on-action": (n) => y(n, e),
|
|
11342
|
+
"on-input-confirm": (n, r) => C(e, n, r),
|
|
11343
|
+
"on-shortcut-confirm": (n) => T(e, n)
|
|
11330
11344
|
}, null, 8, [
|
|
11331
11345
|
"message",
|
|
11332
11346
|
"message-tools-status",
|
|
@@ -11336,8 +11350,8 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11336
11350
|
]))])), 128)), a.type === unref(MessageRole).Assistant && n.messageToolsStatus !== unref(MessageToolsStatus).Hidden ? (openBlock(), createBlock(message_tools_default, {
|
|
11337
11351
|
key: 0,
|
|
11338
11352
|
"message-tools-status": n.messageToolsStatus,
|
|
11339
|
-
"on-action": (e) =>
|
|
11340
|
-
"tippy-options":
|
|
11353
|
+
"on-action": (e) => v(e, a.messages),
|
|
11354
|
+
"tippy-options": r.messageToolsTippyOptions,
|
|
11341
11355
|
onFeedback: (e, n, i) => {
|
|
11342
11356
|
var o;
|
|
11343
11357
|
return (o = r.onAgentFeedback) == null ? void 0 : o.call(r, e, a.messages, n, i);
|
|
@@ -11345,6 +11359,7 @@ var _hoisted_1$17 = { class: "ai-slash-input-wrapper" }, _hoisted_2$12 = ["aria-
|
|
|
11345
11359
|
}, null, 8, [
|
|
11346
11360
|
"message-tools-status",
|
|
11347
11361
|
"on-action",
|
|
11362
|
+
"tippy-options",
|
|
11348
11363
|
"onFeedback"
|
|
11349
11364
|
])) : createCommentVNode("", !0)])], 44, _hoisted_1))), 128)),
|
|
11350
11365
|
createElementVNode("div", {
|