st-comp 0.0.276 → 0.0.277
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/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +303 -276
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +1 -1
- package/es/{aiTools-d7bd47c3.js → aiTools-a3b095f6.js} +19 -19
- package/es/aiTools-f36136a4.cjs +2 -0
- package/es/aiTools.js +4 -0
- package/es/style.css +1 -1
- package/lib/aiTools.js +4 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +46 -46
- package/lib/{index-8b55d8c8.js → index-2a269748.js} +37 -10
- package/lib/{python-f164f783.js → python-41da18e5.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietyAiHelper/index.vue +42 -6
- package/public/aiTools.js +4 -0
- package/src/App.vue +16 -16
- package/es/aiTools-9fd42de8.cjs +0 -2
|
@@ -247251,7 +247251,7 @@ rhe({
|
|
|
247251
247251
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
247252
247252
|
aliases: ["Python", "py"],
|
|
247253
247253
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
247254
|
-
loader: () => import("./python-
|
|
247254
|
+
loader: () => import("./python-41da18e5.js")
|
|
247255
247255
|
});
|
|
247256
247256
|
/*!-----------------------------------------------------------------------------
|
|
247257
247257
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -249233,7 +249233,7 @@ const eLt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHA
|
|
|
249233
249233
|
case "message": {
|
|
249234
249234
|
try {
|
|
249235
249235
|
const d = JSON.parse(l);
|
|
249236
|
-
if (d.type === "session" && r("session", d.sessionId), d.type === "fullQuery" && r("fullQuery", d.fullQuery), d.node_name && d.node_status) {
|
|
249236
|
+
if (d.type === "session" && r("session", d.sessionId), d.type === "historyList" && r("historyList", d.historyList), d.type === "fullQuery" && r("fullQuery", d.fullQuery), d.node_name && d.node_status) {
|
|
249237
249237
|
const h = d.node_name, f = d.node_status === "success" ? "success" : "executing";
|
|
249238
249238
|
o[h] !== f && (o[h] = f, r("node", {
|
|
249239
249239
|
name: h,
|
|
@@ -249284,7 +249284,7 @@ const eLt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHA
|
|
|
249284
249284
|
}
|
|
249285
249285
|
}
|
|
249286
249286
|
});
|
|
249287
|
-
const rP = (n) => (yu("data-v-
|
|
249287
|
+
const rP = (n) => (yu("data-v-1ebca857"), n = n(), wu(), n), rLt = { class: "ai-dialog-body" }, oLt = { class: "avatar" }, sLt = { class: "message-content" }, aLt = {
|
|
249288
249288
|
key: 0,
|
|
249289
249289
|
style: { "font-weight": "bold", "margin-bottom": "10px" }
|
|
249290
249290
|
}, lLt = {
|
|
@@ -249317,6 +249317,7 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249317
249317
|
// defaultMessage-组件内置, assistant-智能体, user-用户
|
|
249318
249318
|
content: a.defaultMessage,
|
|
249319
249319
|
fullQuery: "",
|
|
249320
|
+
historyList: [],
|
|
249320
249321
|
userContent: null,
|
|
249321
249322
|
showFeedback: !1,
|
|
249322
249323
|
createTime: qt().format("YYYY-MM-DD HH:mm:ss"),
|
|
@@ -249340,6 +249341,7 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249340
249341
|
role: "assistant",
|
|
249341
249342
|
content: "",
|
|
249342
249343
|
fullQuery: "",
|
|
249344
|
+
historyList: [],
|
|
249343
249345
|
userContent: F,
|
|
249344
249346
|
showFeedback: !1,
|
|
249345
249347
|
createTime: qt().format("YYYY-MM-DD HH:mm:ss"),
|
|
@@ -249354,9 +249356,13 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249354
249356
|
value: F,
|
|
249355
249357
|
sessionId: f.value,
|
|
249356
249358
|
callback: (R, P) => {
|
|
249357
|
-
if (R === "session" && (f.value = P), R === "
|
|
249359
|
+
if (R === "session" && (f.value = P), R === "historyList") {
|
|
249358
249360
|
const j = h.value[h.value.length - 1];
|
|
249359
|
-
j.
|
|
249361
|
+
j.historyList = P;
|
|
249362
|
+
}
|
|
249363
|
+
if (R === "fullQuery") {
|
|
249364
|
+
const j = h.value[h.value.length - 1];
|
|
249365
|
+
j.fullQuery = P;
|
|
249360
249366
|
}
|
|
249361
249367
|
if (R === "node") {
|
|
249362
249368
|
if (!A) {
|
|
@@ -249413,6 +249419,9 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249413
249419
|
await i.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
249414
249420
|
userName: r.username,
|
|
249415
249421
|
userContent: k.userContent,
|
|
249422
|
+
sessionId: f.value,
|
|
249423
|
+
fullQuery: k.fullQuery,
|
|
249424
|
+
historyList: JSON.stringify(k.historyList ?? []),
|
|
249416
249425
|
aiContent: k.content,
|
|
249417
249426
|
type: 1,
|
|
249418
249427
|
createTime: k.createTime,
|
|
@@ -249432,6 +249441,9 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249432
249441
|
await i.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
249433
249442
|
userName: r.username,
|
|
249434
249443
|
userContent: k.userContent,
|
|
249444
|
+
sessionId: f.value,
|
|
249445
|
+
fullQuery: k.fullQuery,
|
|
249446
|
+
historyList: JSON.stringify(k.historyList ?? []),
|
|
249435
249447
|
userSuggestion: v.value,
|
|
249436
249448
|
aiContent: k.content,
|
|
249437
249449
|
type: 2,
|
|
@@ -249445,10 +249457,25 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249445
249457
|
}
|
|
249446
249458
|
case "default": {
|
|
249447
249459
|
const k = h.value[O];
|
|
249448
|
-
|
|
249460
|
+
console.log({
|
|
249449
249461
|
userName: r.username,
|
|
249450
249462
|
userContent: k.userContent,
|
|
249451
|
-
|
|
249463
|
+
sessionId: f.value,
|
|
249464
|
+
fullQuery: k.fullQuery,
|
|
249465
|
+
historyList: JSON.stringify(k.historyList ?? []),
|
|
249466
|
+
aiContent: k.content,
|
|
249467
|
+
type: null,
|
|
249468
|
+
resTime: k.resTime,
|
|
249469
|
+
createTime: k.createTime,
|
|
249470
|
+
firstPackageTime: k.firstPackageTime,
|
|
249471
|
+
isSolved: 1,
|
|
249472
|
+
logOrigin: 1
|
|
249473
|
+
}), await i.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
|
|
249474
|
+
userName: r.username,
|
|
249475
|
+
userContent: k.userContent,
|
|
249476
|
+
sessionId: f.value,
|
|
249477
|
+
fullQuery: k.fullQuery,
|
|
249478
|
+
historyList: JSON.stringify(k.historyList ?? []),
|
|
249452
249479
|
aiContent: k.content,
|
|
249453
249480
|
type: null,
|
|
249454
249481
|
resTime: k.resTime,
|
|
@@ -249539,7 +249566,7 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249539
249566
|
}, null, 8, ["icon"])
|
|
249540
249567
|
]),
|
|
249541
249568
|
ce("div", sLt, [
|
|
249542
|
-
V.fullQuery ? (W(), de("div", aLt, "筛选结果: " + Qe(V.fullQuery), 1)) : Re("", !0),
|
|
249569
|
+
V.fullQuery ? (W(), de("div", aLt, " 筛选结果: " + Qe(V.fullQuery), 1)) : Re("", !0),
|
|
249543
249570
|
pe === h.value.length - 1 && V.role === "assistant" && y.value.length > 0 && !c.value ? (W(), de("div", lLt, [
|
|
249544
249571
|
(W(!0), de(rt, null, xt(y.value, (fe) => (W(), de("div", {
|
|
249545
249572
|
key: fe.name,
|
|
@@ -249619,7 +249646,7 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249619
249646
|
onClick: (fe) => D(V.content)
|
|
249620
249647
|
}, {
|
|
249621
249648
|
default: re(() => [
|
|
249622
|
-
nt("
|
|
249649
|
+
nt(" 确认查询 ")
|
|
249623
249650
|
]),
|
|
249624
249651
|
_: 2
|
|
249625
249652
|
}, 1032, ["onClick"])) : Re("", !0)
|
|
@@ -249705,7 +249732,7 @@ const rP = (n) => (yu("data-v-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-
|
|
|
249705
249732
|
], 64);
|
|
249706
249733
|
};
|
|
249707
249734
|
}
|
|
249708
|
-
}, NLt = /* @__PURE__ */ Cn(DLt, [["__scopeId", "data-v-
|
|
249735
|
+
}, NLt = /* @__PURE__ */ Cn(DLt, [["__scopeId", "data-v-1ebca857"]]), ELt = {
|
|
249709
249736
|
install(n) {
|
|
249710
249737
|
n.component("st-varietyAiHelper", NLt);
|
|
249711
249738
|
}
|