@blueking/chat-x 0.0.46 → 0.0.47-beta.2
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.
- package/dist/index.css +1 -1
- package/dist/index.js +30 -30
- package/dist/index.js.map +1 -1
- package/dist/mcp/generated/docs/chat-input.md +1 -1
- package/dist/mcp/generated/docs/code-content.md +3 -3
- package/dist/mcp/generated/docs/desc-panel.md +1 -1
- package/dist/mcp/generated/docs/execution-summary.md +3 -3
- package/dist/mcp/generated/docs/file-upload-btn.md +1 -1
- package/dist/mcp/generated/docs/image-content.md +1 -1
- package/dist/mcp/generated/docs/latex-content.md +7 -7
- package/dist/mcp/generated/docs/mermaid-content.md +3 -3
- package/dist/mcp/generated/docs/message-tools.md +1 -1
- package/dist/mcp/generated/docs/shortcut-btns.md +11 -11
- package/dist/mcp/generated/docs/shortcut-render.md +2 -2
- package/dist/mcp/generated/docs/text-content.md +1 -1
- package/dist/mcp/generated/docs/theme.md +6 -6
- package/dist/mcp/generated/index.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1888,7 +1888,7 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1888
1888
|
visibleItems: r,
|
|
1889
1889
|
calculateVisibleMenuItems: i
|
|
1890
1890
|
};
|
|
1891
|
-
}, _r = { class: "shortcut-menu" }, vr = 4, yr = /* @__PURE__ */ m({
|
|
1891
|
+
}, _r = { class: "ai-shortcut-menu" }, vr = 4, yr = /* @__PURE__ */ m({
|
|
1892
1892
|
__name: "shortcut-btns",
|
|
1893
1893
|
props: { shortcuts: {} },
|
|
1894
1894
|
emits: ["selectShortcut"],
|
|
@@ -1919,12 +1919,12 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1919
1919
|
}), (n, i) => (k(), c("div", {
|
|
1920
1920
|
ref_key: "containerRef",
|
|
1921
1921
|
ref: d,
|
|
1922
|
-
class: "shortcut-btns"
|
|
1922
|
+
class: "ai-shortcut-btns"
|
|
1923
1923
|
}, [(k(!0), c(e, null, N(t.shortcuts, (e, t) => (k(), o(fr, {
|
|
1924
1924
|
key: e.key || e.id,
|
|
1925
1925
|
ref_for: !0,
|
|
1926
1926
|
ref: (e) => y(e, t),
|
|
1927
|
-
class: S(["shortcut-btns-item", { "shortcut-btns-item-hidden": !z(g).includes(e) }]),
|
|
1927
|
+
class: S(["ai-shortcut-btns-item", { "ai-shortcut-btns-item-hidden": !z(g).includes(e) }]),
|
|
1928
1928
|
shortcut: e,
|
|
1929
1929
|
onClick: (t) => x(e)
|
|
1930
1930
|
}, null, 8, [
|
|
@@ -1955,10 +1955,10 @@ var dr = ["src"], fr = /* @__PURE__ */ m({
|
|
|
1955
1955
|
default: H(() => [f(fr, {
|
|
1956
1956
|
ref_key: "moreBtnRef",
|
|
1957
1957
|
ref: h,
|
|
1958
|
-
class: "shortcut-btns-item shortcut-btns-more",
|
|
1958
|
+
class: "ai-shortcut-btns-item ai-shortcut-btns-more",
|
|
1959
1959
|
onClick: b
|
|
1960
1960
|
}, {
|
|
1961
|
-
default: H(() => [f(z(Un), { class: "shortcut-btns-more-icon" }), l("span", null, L(z(G)("更多")), 1)]),
|
|
1961
|
+
default: H(() => [f(z(Un), { class: "ai-shortcut-btns-more-icon" }), l("span", null, L(z(G)("更多")), 1)]),
|
|
1962
1962
|
_: 1
|
|
1963
1963
|
}, 512)]),
|
|
1964
1964
|
_: 1
|
|
@@ -1989,7 +1989,7 @@ function xr(e, t) {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
//#endregion
|
|
1991
1991
|
//#region src/components/ai-shortcut/shortcut-render/shortcut-render.vue?vue&type=script&setup=true&lang.ts
|
|
1992
|
-
var Sr = ["options"], Cr = ["options"], wr = { class: "shortcut-render" }, Tr = { class: "shortcut-render-header" }, Er = { class: "header-name" }, Dr = { class: "shortcut-render-content" }, Or = { class: "shortcut-render-form-label" }, kr = { class: "shortcut-footer" }, Ar = /* @__PURE__ */ m({
|
|
1992
|
+
var Sr = ["options"], Cr = ["options"], wr = { class: "ai-shortcut-render" }, Tr = { class: "ai-shortcut-render-header" }, Er = { class: "header-name" }, Dr = { class: "ai-shortcut-render-content" }, Or = { class: "shortcut-render-form-label" }, kr = { class: "shortcut-footer" }, Ar = /* @__PURE__ */ m({
|
|
1993
1993
|
__name: "shortcut-render",
|
|
1994
1994
|
props: {
|
|
1995
1995
|
alias: {},
|
|
@@ -5505,7 +5505,7 @@ var kc = (e) => {
|
|
|
5505
5505
|
"blockquote",
|
|
5506
5506
|
"list"
|
|
5507
5507
|
] }), e.renderer.rules[`container_${u}_open`] = m, e.renderer.rules[`container_${u}_close`] = m;
|
|
5508
|
-
}, Kc = { class: "code-content-wrapper" }, qc = { class: "code-content-header" }, Jc = { class: "code-header-language" }, Yc = { class: "hljs-pre" }, Xc = ["innerHTML"], Zc = ["innerHTML"], Qc = 500, $c = /* @__PURE__ */ m({
|
|
5508
|
+
}, Kc = { class: "ai-code-content-wrapper" }, qc = { class: "code-content-header" }, Jc = { class: "code-header-language" }, Yc = { class: "hljs-pre" }, Xc = ["innerHTML"], Zc = ["innerHTML"], Qc = 500, $c = /* @__PURE__ */ m({
|
|
5509
5509
|
__name: "code-content",
|
|
5510
5510
|
props: { token: {} },
|
|
5511
5511
|
emits: ["mounted"],
|
|
@@ -5612,7 +5612,7 @@ var kc = (e) => {
|
|
|
5612
5612
|
innerHTML: _.value
|
|
5613
5613
|
}, null, 8, Zc)) : s("", !0)], 2)])]));
|
|
5614
5614
|
}
|
|
5615
|
-
}), el = { class: "md-image-wrapper" }, tl = {
|
|
5615
|
+
}), el = { class: "ai-md-image-wrapper" }, tl = {
|
|
5616
5616
|
key: 0,
|
|
5617
5617
|
class: "md-image-loading"
|
|
5618
5618
|
}, nl = { class: "md-image-loading-text" }, rl = {
|
|
@@ -5856,7 +5856,7 @@ var kc = (e) => {
|
|
|
5856
5856
|
}, d = (e) => e.includes("katex-error") || e.includes(`color:${sl};`), f = (e) => {
|
|
5857
5857
|
var t;
|
|
5858
5858
|
let n = e.content || "", r = e.type === "math_block" || ((t = e.meta) == null ? void 0 : t.displayMode) === !0, i = u(n, r);
|
|
5859
|
-
return i && !d(i) ? `<span class="${r ? "block-katex" : "inline-katex"}">${i}</span>` : `<span class="katex-loading" style="color: #666; font-style: italic;">${n.replace(/</g, "<").replace(/>/g, ">")}</span>`;
|
|
5859
|
+
return i && !d(i) ? `<span class="${r ? "ai-block-katex" : "ai-inline-katex"}">${i}</span>` : `<span class="ai-katex-loading" style="color: #666; font-style: italic;">${n.replace(/</g, "<").replace(/>/g, ">")}</span>`;
|
|
5860
5860
|
}, p = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """), m = (e) => {
|
|
5861
5861
|
let t = "";
|
|
5862
5862
|
for (let i of e) if (i.type === "math_inline") t += f(i);
|
|
@@ -5885,10 +5885,10 @@ var kc = (e) => {
|
|
|
5885
5885
|
let t = "";
|
|
5886
5886
|
for (let n = 0; n < e.length; n++) {
|
|
5887
5887
|
let r = e[n];
|
|
5888
|
-
r && (r.type === "math_block" ? t += `<div class="block-latex-wrapper">${f(r)}</div>` : r.type === "math_inline" ? t += f(r) : r.type === "inline" && r.children ? t += m(r.children) : r.type === "paragraph_open" ? t += "<p>" : r.type === "paragraph_close" ? t += "</p>" : (r.type, t += p(r.content || "")));
|
|
5888
|
+
r && (r.type === "math_block" ? t += `<div class="ai-block-latex-wrapper">${f(r)}</div>` : r.type === "math_inline" ? t += f(r) : r.type === "inline" && r.children ? t += m(r.children) : r.type === "paragraph_open" ? t += "<p>" : r.type === "paragraph_close" ? t += "</p>" : (r.type, t += p(r.content || "")));
|
|
5889
5889
|
}
|
|
5890
5890
|
return t;
|
|
5891
|
-
}, g = a(() => t.token.filter((e) => e.type === "math_block").length === 1 && t.token.length <= 1), _ = a(() => g.value ? "div" : "span"), v = a(() => g.value ? "block-latex-content" : "inline-latex-content");
|
|
5891
|
+
}, g = a(() => t.token.filter((e) => e.type === "math_block").length === 1 && t.token.length <= 1), _ = a(() => g.value ? "div" : "span"), v = a(() => g.value ? "ai-block-latex-content" : "ai-inline-latex-content");
|
|
5892
5892
|
return V(() => t.token, Te(() => {
|
|
5893
5893
|
let e = h(t.token);
|
|
5894
5894
|
e && n.value !== e && (n.value = e);
|
|
@@ -5960,7 +5960,7 @@ var kc = (e) => {
|
|
|
5960
5960
|
key: n.value,
|
|
5961
5961
|
ref_key: "mermaidContentRef",
|
|
5962
5962
|
ref: r,
|
|
5963
|
-
class: "mermaid-content",
|
|
5963
|
+
class: "ai-mermaid-content",
|
|
5964
5964
|
innerHTML: n.value
|
|
5965
5965
|
}, null, 8, ll));
|
|
5966
5966
|
}
|
|
@@ -6837,7 +6837,7 @@ var kc = (e) => {
|
|
|
6837
6837
|
return e.Error = "error", e.Pending = "pending", e.Success = "success", e;
|
|
6838
6838
|
}({}), _d = /* @__PURE__ */ function(e) {
|
|
6839
6839
|
return e.Disabled = "disabled", e.Hidden = "hidden", e;
|
|
6840
|
-
}({}), vd = { class: "file-upload-btn" }, yd = ["accept"], bd = /* @__PURE__ */ m({
|
|
6840
|
+
}({}), vd = { class: "ai-file-upload-btn" }, yd = ["accept"], bd = /* @__PURE__ */ m({
|
|
6841
6841
|
__name: "file-upload-btn",
|
|
6842
6842
|
props: {
|
|
6843
6843
|
accept: { default: "image/*" },
|
|
@@ -7811,7 +7811,7 @@ var Bd = ["src"], Vd = {
|
|
|
7811
7811
|
},
|
|
7812
7812
|
triggerSendMessage: y
|
|
7813
7813
|
}), (t, n) => (k(), c("div", {
|
|
7814
|
-
class: "chat-input-container",
|
|
7814
|
+
class: "ai-chat-input-container",
|
|
7815
7815
|
style: w({ "--chat-z-index": z(Ct) })
|
|
7816
7816
|
}, [
|
|
7817
7817
|
P(t.$slots, "top"),
|
|
@@ -7893,11 +7893,11 @@ var Bd = ["src"], Vd = {
|
|
|
7893
7893
|
], 4)
|
|
7894
7894
|
], 4));
|
|
7895
7895
|
}
|
|
7896
|
-
}), kf = { class: "chat-input-info-alert" }, Af = { class: "chat-input-info-alert__text" }, jf = /* @__PURE__ */ m({
|
|
7896
|
+
}), kf = { class: "ai-chat-input-info-alert" }, Af = { class: "ai-chat-input-info-alert__text" }, jf = /* @__PURE__ */ m({
|
|
7897
7897
|
__name: "input-info-alert",
|
|
7898
7898
|
props: { content: {} },
|
|
7899
7899
|
setup(e) {
|
|
7900
|
-
return (t, n) => (k(), c("div", kf, [f(z(On), { class: "chat-input-info-alert__icon" }), l("span", Af, L(e.content), 1)]));
|
|
7900
|
+
return (t, n) => (k(), c("div", kf, [f(z(On), { class: "ai-chat-input-info-alert__icon" }), l("span", Af, L(e.content), 1)]));
|
|
7901
7901
|
}
|
|
7902
7902
|
}), Mf = "others", Nf = (e) => e < 26 ? String.fromCharCode(65 + e) : String(e + 1), Pf = (e) => {
|
|
7903
7903
|
let t = a(() => {
|
|
@@ -8252,7 +8252,7 @@ var Bd = ["src"], Vd = {
|
|
|
8252
8252
|
}
|
|
8253
8253
|
}), bp = {
|
|
8254
8254
|
ref: "messageToolsRef",
|
|
8255
|
-
class: "message-tools-container"
|
|
8255
|
+
class: "ai-message-tools-container"
|
|
8256
8256
|
}, xp = {
|
|
8257
8257
|
class: "message-tools",
|
|
8258
8258
|
style: { "margin-right": "8px" }
|
|
@@ -8632,7 +8632,7 @@ var Bd = ["src"], Vd = {
|
|
|
8632
8632
|
colspan: t.columns.length
|
|
8633
8633
|
}, " -- ", 8, Gp)]))])]));
|
|
8634
8634
|
}
|
|
8635
|
-
}), qp = { class: "flow-agent-node-detail" }, Jp = { class: "detail-title" }, Yp = {
|
|
8635
|
+
}), qp = { class: "ai-flow-agent-node-detail" }, Jp = { class: "detail-title" }, Yp = {
|
|
8636
8636
|
key: 1,
|
|
8637
8637
|
class: "detail-title-content"
|
|
8638
8638
|
}, Xp = { class: "detail-tab-bar" }, Zp = ["onClick"], Qp = { class: "detail-body" }, $p = { class: "skeleton-section" }, em = { class: "skeleton-section" }, tm = { class: "info-form" }, nm = { class: "info-label" }, rm = { class: "info-value" }, im = { class: "info-row" }, am = { class: "info-label" }, om = { class: "info-value" }, sm = {
|
|
@@ -8914,7 +8914,7 @@ var Bd = ["src"], Vd = {
|
|
|
8914
8914
|
collapsed: i.value,
|
|
8915
8915
|
"onUpdate:collapsed": n[0] || (n[0] = (e) => i.value = e),
|
|
8916
8916
|
"activity-type": z(_t).FlowAgent,
|
|
8917
|
-
class: "flow-agent-activity"
|
|
8917
|
+
class: "ai-flow-agent-activity"
|
|
8918
8918
|
}, {
|
|
8919
8919
|
title: H(() => [f(z(xe), b({
|
|
8920
8920
|
class: "flow-agent-title-bar",
|
|
@@ -9033,7 +9033,7 @@ var Bd = ["src"], Vd = {
|
|
|
9033
9033
|
_: 1
|
|
9034
9034
|
}, 8, ["collapsed", "activity-type"]));
|
|
9035
9035
|
}
|
|
9036
|
-
}), Rm = { class: "ai-activity-message-title-icon" }, zm = { class: "ai-activity-message-title-text" }, Bm = { class: "knowledge-rag-content" }, Vm = /* @__PURE__ */ m({
|
|
9036
|
+
}), Rm = { class: "ai-activity-message-title-icon" }, zm = { class: "ai-activity-message-title-text" }, Bm = { class: "ai-knowledge-rag-content" }, Vm = /* @__PURE__ */ m({
|
|
9037
9037
|
__name: "knowledge-rag-content",
|
|
9038
9038
|
props: /* @__PURE__ */ y({
|
|
9039
9039
|
content: {},
|
|
@@ -9129,7 +9129,7 @@ var Bd = ["src"], Vd = {
|
|
|
9129
9129
|
"status"
|
|
9130
9130
|
])) : s("", !0);
|
|
9131
9131
|
}
|
|
9132
|
-
}), Km = { class: "toolcall-desc" }, qm = { class: "desc-title" }, Jm = { class: "desc-panel" }, Ym = { class: "desc-label" }, Xm = { class: "desc-value" }, Zm = /* @__PURE__ */ m({
|
|
9132
|
+
}), Km = { class: "ai-toolcall-desc" }, qm = { class: "desc-title" }, Jm = { class: "desc-panel" }, Ym = { class: "desc-label" }, Xm = { class: "desc-value" }, Zm = /* @__PURE__ */ m({
|
|
9133
9133
|
__name: "desc-panel",
|
|
9134
9134
|
props: {
|
|
9135
9135
|
desc: {},
|
|
@@ -9155,7 +9155,7 @@ var Bd = ["src"], Vd = {
|
|
|
9155
9155
|
text: r(i.value)
|
|
9156
9156
|
}, null, 8, ["text"]))])]));
|
|
9157
9157
|
}
|
|
9158
|
-
}), Qm = { class: "tool-message" }, $m = /* @__PURE__ */ m({
|
|
9158
|
+
}), Qm = { class: "ai-tool-message" }, $m = /* @__PURE__ */ m({
|
|
9159
9159
|
__name: "tool-message",
|
|
9160
9160
|
props: {
|
|
9161
9161
|
duration: {},
|
|
@@ -9290,7 +9290,7 @@ var Bd = ["src"], Vd = {
|
|
|
9290
9290
|
}, null, 8, ["status", "tool-call"]);
|
|
9291
9291
|
}), 128)) : s("", !0)]));
|
|
9292
9292
|
}
|
|
9293
|
-
}), lh = { class: "info-message" }, uh = /* @__PURE__ */ m({
|
|
9293
|
+
}), lh = { class: "ai-info-message" }, uh = /* @__PURE__ */ m({
|
|
9294
9294
|
__name: "info-message",
|
|
9295
9295
|
props: {
|
|
9296
9296
|
content: {},
|
|
@@ -9305,7 +9305,7 @@ var Bd = ["src"], Vd = {
|
|
|
9305
9305
|
setup(t) {
|
|
9306
9306
|
return (n, r) => (k(), c("div", lh, [(k(!0), c(e, null, N(Array.isArray(t.content) ? t.content : [t.content], (e, t) => (k(), c("div", {
|
|
9307
9307
|
key: t,
|
|
9308
|
-
class: "info-message-content"
|
|
9308
|
+
class: "ai-info-message-content"
|
|
9309
9309
|
}, L(e), 1))), 128))]));
|
|
9310
9310
|
}
|
|
9311
9311
|
}), dh = { class: "ai-tool-approval-card" }, fh = { class: "ai-tool-approval-card__header" }, ph = { class: "ai-tool-approval-card__title-wrap" }, mh = { class: "ai-tool-approval-card__title" }, hh = { class: "ai-tool-approval-card__fields" }, gh = { class: "ai-tool-approval-card__field" }, _h = { class: "ai-tool-approval-card__field" }, vh = {
|
|
@@ -9595,7 +9595,7 @@ var Bd = ["src"], Vd = {
|
|
|
9595
9595
|
l("div", zh, L(e.value), 1)
|
|
9596
9596
|
]))), 128))])]));
|
|
9597
9597
|
}
|
|
9598
|
-
}), Vh = { class: "text-content" }, Hh = /* @__PURE__ */ m({
|
|
9598
|
+
}), Vh = { class: "ai-text-content" }, Hh = /* @__PURE__ */ m({
|
|
9599
9599
|
__name: "text-content",
|
|
9600
9600
|
props: { content: {} },
|
|
9601
9601
|
setup(e) {
|
|
@@ -10000,13 +10000,13 @@ var Bd = ["src"], Vd = {
|
|
|
10000
10000
|
}, 8, ["title", "onClick"]), [[ae, z(m)]])])
|
|
10001
10001
|
], 512));
|
|
10002
10002
|
}
|
|
10003
|
-
}), Qh = { class: "execution-summary" }, $h = { class: "execution-summary-header" }, eg = { class: "execution-summary-content" }, tg = ["onMouseenter"], ng = { class: "content-item-header" }, rg = { class: "content-item-title" }, ig = { class: "content-item-messages" }, ag = {
|
|
10003
|
+
}), Qh = { class: "ai-execution-summary" }, $h = { class: "ai-execution-summary-header" }, eg = { class: "ai-execution-summary-content" }, tg = ["onMouseenter"], ng = { class: "content-item-header" }, rg = { class: "content-item-title" }, ig = { class: "content-item-messages" }, ag = {
|
|
10004
10004
|
key: 0,
|
|
10005
10005
|
class: "timeline-line"
|
|
10006
10006
|
}, og = {
|
|
10007
10007
|
key: 1,
|
|
10008
|
-
class: "execution-summary-content-empty"
|
|
10009
|
-
}, sg = { class: "execution-summary-content-empty-text" }, cg = /* @__PURE__ */ m({
|
|
10008
|
+
class: "ai-execution-summary-content-empty"
|
|
10009
|
+
}, sg = { class: "ai-execution-summary-content-empty-text" }, cg = /* @__PURE__ */ m({
|
|
10010
10010
|
__name: "execution-summary",
|
|
10011
10011
|
props: { messageGroups: {} },
|
|
10012
10012
|
emits: ["locateMessageGroup", "updateKeyword"],
|
|
@@ -10023,12 +10023,12 @@ var Bd = ["src"], Vd = {
|
|
|
10023
10023
|
return (n, g) => (k(), c("div", Qh, [l("div", $h, [f(z(pe), {
|
|
10024
10024
|
modelValue: z(a),
|
|
10025
10025
|
"onUpdate:modelValue": [g[0] || (g[0] = (e) => v(a) ? a.value = e : null), g[1] || (g[1] = (e) => r("updateKeyword", e))],
|
|
10026
|
-
class: "execution-summary-header-input",
|
|
10026
|
+
class: "ai-execution-summary-header-input",
|
|
10027
10027
|
clearable: "",
|
|
10028
10028
|
placeholder: z(G)("搜索 关键字")
|
|
10029
10029
|
}, null, 8, ["modelValue", "placeholder"])]), l("div", eg, [t.messageGroups.length ? (k(!0), c(e, { key: 0 }, N(t.messageGroups, (n, r) => (k(), c("div", {
|
|
10030
10030
|
key: n.uid,
|
|
10031
|
-
class: "execution-summary-content-item",
|
|
10031
|
+
class: "ai-execution-summary-content-item",
|
|
10032
10032
|
onMouseenter: (e) => u.value = n.uid,
|
|
10033
10033
|
onMouseleave: g[2] || (g[2] = (e) => u.value = void 0)
|
|
10034
10034
|
}, [
|