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.
@@ -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-f164f783.js")
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-4ba59779"), n = n(), wu(), n), rLt = { class: "ai-dialog-body" }, oLt = { class: "avatar" }, sLt = { class: "message-content" }, aLt = {
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 === "fullQuery") {
249359
+ if (R === "session" && (f.value = P), R === "historyList") {
249358
249360
  const j = h.value[h.value.length - 1];
249359
- j.fullQuery = P, console.log(P);
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
- await i.request.post("/alarm/deliversign/addVarietyAiHelperLog", {
249460
+ console.log({
249449
249461
  userName: r.username,
249450
249462
  userContent: k.userContent,
249451
- userSuggestion: v.value,
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-4ba59779"]]), ELt = {
249735
+ }, NLt = /* @__PURE__ */ Cn(DLt, [["__scopeId", "data-v-1ebca857"]]), ELt = {
249709
249736
  install(n) {
249710
249737
  n.component("st-varietyAiHelper", NLt);
249711
249738
  }
@@ -1,4 +1,4 @@
1
- import { m as a } from "./index-8b55d8c8.js";
1
+ import { m as a } from "./index-2a269748.js";
2
2
  import "vue";
3
3
  import "echarts";
4
4
  /*!-----------------------------------------------------------------------------