@kg-ui/kg-ui-plus 0.1.33 → 0.1.34
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/README.md +3 -3
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +173 -2
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +9 -6
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
- package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +2 -2
- package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/index.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
- package/dist/es/home/LProject/index.vue.mjs +1 -1
- package/dist/es/home/LProject/index.vue3.mjs +2 -2
- package/dist/es/home/index.vue.mjs +1 -1
- package/dist/es/home/index.vue3.mjs +2 -2
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/file-damage-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +4 -4
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +10 -2
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +73 -65
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +12 -4
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.6/node_modules/get-intrinsic/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +2 -2
- package/dist/es/store/modules/copilot.mjs +9 -12
- package/dist/es/style.css +1 -1
- package/package.json +123 -123
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4654fa0d"]]);
|
5
5
|
export {
|
6
6
|
MessageParse as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_4654fa0d_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_4654fa0d_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./readMd.vue2.mjs";
|
2
2
|
import "./readMd.vue3.mjs";
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1bd1c886"]]);
|
5
5
|
export {
|
6
6
|
ReadMd as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const readMd_vue_vue_type_style_index_0_scoped_1bd1c886_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
readMd_vue_vue_type_style_index_0_scoped_1bd1c886_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b7d2f09"]]);
|
5
5
|
export {
|
6
6
|
HistoryReport as default
|
7
7
|
};
|
@@ -7,8 +7,8 @@ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules
|
|
7
7
|
import data$2 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/check.mjs";
|
8
8
|
import data$3 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/close.mjs";
|
9
9
|
import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
|
10
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
11
|
-
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("
|
10
|
+
const _withScopeId = (n) => (pushScopeId("data-v-1b7d2f09"), n = n(), popScopeId(), n);
|
11
|
+
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h3", { class: "history-title" }, "历史记录", -1));
|
12
12
|
const _hoisted_2 = { class: "search_box" };
|
13
13
|
const _hoisted_3 = { class: "list_box" };
|
14
14
|
const _hoisted_4 = ["onClick"];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_1b7d2f09_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_1b7d2f09_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3615eb0f"]]);
|
5
5
|
export {
|
6
6
|
KgCopilot as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_3615eb0f_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_3615eb0f_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./FilterArea.vue2.mjs";
|
2
2
|
import "./FilterArea.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-996410e5"]]);
|
5
5
|
export {
|
6
6
|
FilterArea as default
|
7
7
|
};
|
@@ -9,7 +9,7 @@ import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_module
|
|
9
9
|
import { checkFilterShow_xinyuan, checkFilterShow, checkFilterShow_letter } from "../../utils/home.mjs";
|
10
10
|
import FilterItem from "./FilterItem.vue.mjs";
|
11
11
|
import FilterItemIcon from "./FilterItemIcon.vue.mjs";
|
12
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
12
|
+
const _withScopeId = (n) => (pushScopeId("data-v-996410e5"), n = n(), popScopeId(), n);
|
13
13
|
const _hoisted_1 = { id: "filterWrap" };
|
14
14
|
const _hoisted_2 = { key: 0 };
|
15
15
|
const _hoisted_3 = { class: "flex flex-1 align-middle justify-items-start flex-wrap" };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const FilterArea_vue_vue_type_style_index_0_scoped_996410e5_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
FilterArea_vue_vue_type_style_index_0_scoped_996410e5_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./FilterItem.vue2.mjs";
|
2
2
|
import "./FilterItem.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10722fd5"]]);
|
5
5
|
export {
|
6
6
|
FilterItem as default
|
7
7
|
};
|
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
|
|
4
4
|
import { EnumFilterKind } from "../../store/modules/types.mjs";
|
5
5
|
import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
|
6
6
|
import { getFilterRemark } from "../../utils/home.mjs";
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
7
|
+
const _withScopeId = (n) => (pushScopeId("data-v-10722fd5"), n = n(), popScopeId(), n);
|
8
8
|
const _hoisted_1 = { class: "p-2" };
|
9
9
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("line", null, null, -1));
|
10
10
|
const _hoisted_3 = ["innerHTML"];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const FilterItem_vue_vue_type_style_index_0_scoped_10722fd5_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
FilterItem_vue_vue_type_style_index_0_scoped_10722fd5_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./FilterItemIcon.vue2.mjs";
|
2
2
|
import "./FilterItemIcon.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a70be454"]]);
|
5
5
|
export {
|
6
6
|
FilterItemIcon as default
|
7
7
|
};
|
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
|
|
4
4
|
import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
|
5
5
|
import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs";
|
6
6
|
import { getFilterRemark } from "../../utils/home.mjs";
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
7
|
+
const _withScopeId = (n) => (pushScopeId("data-v-a70be454"), n = n(), popScopeId(), n);
|
8
8
|
const _hoisted_1 = {
|
9
9
|
key: 0,
|
10
10
|
class: "flex items-end"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const FilterItemIcon_vue_vue_type_style_index_0_scoped_a70be454_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
FilterItemIcon_vue_vue_type_style_index_0_scoped_a70be454_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-75d82a2e"]]);
|
5
5
|
export {
|
6
6
|
LProject as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_75d82a2e_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_75d82a2e_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca075550"]]);
|
5
5
|
export {
|
6
6
|
Home as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_ca075550_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_ca075550_lang as default
|
4
4
|
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
const data = {
|
2
|
+
"width": 24,
|
3
|
+
"height": 24,
|
4
|
+
"body": '<path fill="currentColor" d="M19 9h-5V4H5v7.857l1.5 1.393L10 9.5l3 5l2-2.5l3 3l-3-.5l-2 2.5l-3-4l-3 3.5l-2-1.25V20h14V9zm2-1v12.993A1 1 0 0 1 20.007 22H3.993A.993.993 0 0 1 3 21.008V2.992C3 2.455 3.449 2 4.002 2h10.995L21 8z"/>'
|
5
|
+
};
|
6
|
+
export {
|
7
|
+
data as default
|
8
|
+
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
2
2
|
import { __require as requireFunctionApply } from "./functionApply.mjs";
|
3
|
-
import
|
3
|
+
import { __require as requireFunctionCall } from "./functionCall.mjs";
|
4
4
|
import reflectApply from "./reflectApply.mjs";
|
5
|
-
var bind =
|
5
|
+
var bind = requireFunctionBind();
|
6
6
|
var $apply = requireFunctionApply();
|
7
|
-
var $call =
|
7
|
+
var $call = requireFunctionCall();
|
8
8
|
var $reflectApply = reflectApply;
|
9
9
|
var actualApply = $reflectApply || bind.call($call, $apply);
|
10
10
|
export {
|
@@ -1,4 +1,12 @@
|
|
1
|
-
var functionCall
|
1
|
+
var functionCall;
|
2
|
+
var hasRequiredFunctionCall;
|
3
|
+
function requireFunctionCall() {
|
4
|
+
if (hasRequiredFunctionCall)
|
5
|
+
return functionCall;
|
6
|
+
hasRequiredFunctionCall = 1;
|
7
|
+
functionCall = Function.prototype.call;
|
8
|
+
return functionCall;
|
9
|
+
}
|
2
10
|
export {
|
3
|
-
|
11
|
+
requireFunctionCall as __require
|
4
12
|
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
2
2
|
import type from "../../../es-errors@1.3.0/node_modules/es-errors/type.mjs";
|
3
|
-
import
|
3
|
+
import { __require as requireFunctionCall } from "./functionCall.mjs";
|
4
4
|
import actualApply from "./actualApply.mjs";
|
5
|
-
var bind =
|
5
|
+
var bind = requireFunctionBind();
|
6
6
|
var $TypeError = type;
|
7
|
-
var $call =
|
7
|
+
var $call = requireFunctionCall();
|
8
8
|
var $actualApply = actualApply;
|
9
9
|
var callBindApplyHelpers = function callBindBasic(args) {
|
10
10
|
if (args.length < 1 || typeof args[0] !== "function") {
|
package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs
CHANGED
@@ -1,72 +1,80 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
var slicy = function slicy2(arrLike, offset) {
|
16
|
-
var arr = [];
|
17
|
-
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
18
|
-
arr[j] = arrLike[i];
|
19
|
-
}
|
20
|
-
return arr;
|
21
|
-
};
|
22
|
-
var joiny = function(arr, joiner) {
|
23
|
-
var str = "";
|
24
|
-
for (var i = 0; i < arr.length; i += 1) {
|
25
|
-
str += arr[i];
|
26
|
-
if (i + 1 < arr.length) {
|
27
|
-
str += joiner;
|
1
|
+
var implementation;
|
2
|
+
var hasRequiredImplementation;
|
3
|
+
function requireImplementation() {
|
4
|
+
if (hasRequiredImplementation)
|
5
|
+
return implementation;
|
6
|
+
hasRequiredImplementation = 1;
|
7
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
8
|
+
var toStr = Object.prototype.toString;
|
9
|
+
var max = Math.max;
|
10
|
+
var funcType = "[object Function]";
|
11
|
+
var concatty = function concatty2(a, b) {
|
12
|
+
var arr = [];
|
13
|
+
for (var i = 0; i < a.length; i += 1) {
|
14
|
+
arr[i] = a[i];
|
28
15
|
}
|
29
|
-
|
30
|
-
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
if (
|
46
|
-
|
16
|
+
for (var j = 0; j < b.length; j += 1) {
|
17
|
+
arr[j + a.length] = b[j];
|
18
|
+
}
|
19
|
+
return arr;
|
20
|
+
};
|
21
|
+
var slicy = function slicy2(arrLike, offset) {
|
22
|
+
var arr = [];
|
23
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
24
|
+
arr[j] = arrLike[i];
|
25
|
+
}
|
26
|
+
return arr;
|
27
|
+
};
|
28
|
+
var joiny = function(arr, joiner) {
|
29
|
+
var str = "";
|
30
|
+
for (var i = 0; i < arr.length; i += 1) {
|
31
|
+
str += arr[i];
|
32
|
+
if (i + 1 < arr.length) {
|
33
|
+
str += joiner;
|
47
34
|
}
|
48
|
-
return this;
|
49
35
|
}
|
50
|
-
return
|
51
|
-
that,
|
52
|
-
concatty(args, arguments)
|
53
|
-
);
|
36
|
+
return str;
|
54
37
|
};
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
var
|
38
|
+
implementation = function bind(that) {
|
39
|
+
var target = this;
|
40
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
41
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
42
|
+
}
|
43
|
+
var args = slicy(arguments, 1);
|
44
|
+
var bound;
|
45
|
+
var binder = function() {
|
46
|
+
if (this instanceof bound) {
|
47
|
+
var result = target.apply(
|
48
|
+
this,
|
49
|
+
concatty(args, arguments)
|
50
|
+
);
|
51
|
+
if (Object(result) === result) {
|
52
|
+
return result;
|
53
|
+
}
|
54
|
+
return this;
|
55
|
+
}
|
56
|
+
return target.apply(
|
57
|
+
that,
|
58
|
+
concatty(args, arguments)
|
59
|
+
);
|
63
60
|
};
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
};
|
61
|
+
var boundLength = max(0, target.length - args.length);
|
62
|
+
var boundArgs = [];
|
63
|
+
for (var i = 0; i < boundLength; i++) {
|
64
|
+
boundArgs[i] = "$" + i;
|
65
|
+
}
|
66
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
67
|
+
if (target.prototype) {
|
68
|
+
var Empty = function Empty2() {
|
69
|
+
};
|
70
|
+
Empty.prototype = target.prototype;
|
71
|
+
bound.prototype = new Empty();
|
72
|
+
Empty.prototype = null;
|
73
|
+
}
|
74
|
+
return bound;
|
75
|
+
};
|
76
|
+
return implementation;
|
77
|
+
}
|
70
78
|
export {
|
71
|
-
|
79
|
+
requireImplementation as __require
|
72
80
|
};
|
@@ -1,6 +1,14 @@
|
|
1
|
-
import
|
2
|
-
var
|
3
|
-
var
|
1
|
+
import { __require as requireImplementation } from "./implementation.mjs";
|
2
|
+
var functionBind;
|
3
|
+
var hasRequiredFunctionBind;
|
4
|
+
function requireFunctionBind() {
|
5
|
+
if (hasRequiredFunctionBind)
|
6
|
+
return functionBind;
|
7
|
+
hasRequiredFunctionBind = 1;
|
8
|
+
var implementation = requireImplementation();
|
9
|
+
functionBind = Function.prototype.bind || implementation;
|
10
|
+
return functionBind;
|
11
|
+
}
|
4
12
|
export {
|
5
|
-
|
13
|
+
requireFunctionBind as __require
|
6
14
|
};
|
@@ -16,8 +16,8 @@ import esDefineProperty from "../../../es-define-property@1.0.1/node_modules/es-
|
|
16
16
|
import { __require as requireHasSymbols } from "../../../has-symbols@1.1.0/node_modules/has-symbols/index.mjs";
|
17
17
|
import { __require as requireGet } from "../../../dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs";
|
18
18
|
import { __require as requireFunctionApply } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.mjs";
|
19
|
-
import
|
20
|
-
import
|
19
|
+
import { __require as requireFunctionCall } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs";
|
20
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
21
21
|
import { __require as requireHasown } from "../../../hasown@2.0.2/node_modules/hasown/index.mjs";
|
22
22
|
var undefined$1;
|
23
23
|
var $Object = esObjectAtoms;
|
@@ -61,7 +61,7 @@ var hasSymbols = requireHasSymbols()();
|
|
61
61
|
var getDunderProto = requireGet();
|
62
62
|
var getProto = typeof Reflect === "function" && Reflect.getPrototypeOf || $Object.getPrototypeOf || getDunderProto;
|
63
63
|
var $apply = requireFunctionApply();
|
64
|
-
var $call =
|
64
|
+
var $call = requireFunctionCall();
|
65
65
|
var needsEval = {};
|
66
66
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
67
67
|
var INTRINSICS = {
|
@@ -227,7 +227,7 @@ var LEGACY_ALIASES = {
|
|
227
227
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
228
228
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
229
229
|
};
|
230
|
-
var bind =
|
230
|
+
var bind = requireFunctionBind();
|
231
231
|
var hasOwn = requireHasown();
|
232
232
|
var $concat = bind.call($call, Array.prototype.concat);
|
233
233
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
2
2
|
var hasown;
|
3
3
|
var hasRequiredHasown;
|
4
4
|
function requireHasown() {
|
@@ -7,7 +7,7 @@ function requireHasown() {
|
|
7
7
|
hasRequiredHasown = 1;
|
8
8
|
var call = Function.prototype.call;
|
9
9
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
10
|
-
var bind =
|
10
|
+
var bind = requireFunctionBind();
|
11
11
|
hasown = bind.call(call, $hasOwn);
|
12
12
|
return hasown;
|
13
13
|
}
|
@@ -107,6 +107,7 @@ const useCopilotStore = defineStore({
|
|
107
107
|
this.searchText = str;
|
108
108
|
},
|
109
109
|
resetCopilot() {
|
110
|
+
this.suggest_message_list = [];
|
110
111
|
this.currentHistoryRecord = {};
|
111
112
|
this.onlyCancelRequest();
|
112
113
|
this.isInitCopilot = true;
|
@@ -146,7 +147,8 @@ const useCopilotStore = defineStore({
|
|
146
147
|
},
|
147
148
|
getPreviewFileUrl(url) {
|
148
149
|
const index = url.indexOf("/files/tools");
|
149
|
-
|
150
|
+
const pre = url.includes("ai-work-prod") ? "/dify-prod" : "/dify";
|
151
|
+
this.previewFileUrl = pre + url.slice(index);
|
150
152
|
},
|
151
153
|
setCheckedPluginList(plugin) {
|
152
154
|
this.checkedPluginByBtn = this.checkedPluginByBtn === plugin ? {} : plugin;
|
@@ -175,13 +177,7 @@ const useCopilotStore = defineStore({
|
|
175
177
|
deleteHistoryRecord({ sessionId, isAll }).then((res) => {
|
176
178
|
if (res.status === 200) {
|
177
179
|
this.getHistoryList();
|
178
|
-
if (isAll && this.currentHistoryRecord.sessionId) {
|
179
|
-
this.currentHistoryRecord = {};
|
180
|
-
this.resetCopilot();
|
181
|
-
return;
|
182
|
-
}
|
183
|
-
if (this.currentHistoryRecord.sessionId === sessionId) {
|
184
|
-
this.currentHistoryRecord = {};
|
180
|
+
if (isAll && this.currentHistoryRecord.sessionId || this.currentHistoryRecord.sessionId === sessionId) {
|
185
181
|
this.resetCopilot();
|
186
182
|
}
|
187
183
|
}
|
@@ -194,7 +190,7 @@ const useCopilotStore = defineStore({
|
|
194
190
|
}
|
195
191
|
});
|
196
192
|
},
|
197
|
-
async sendMsg(msg) {
|
193
|
+
async sendMsg(msg, selectTxt = "") {
|
198
194
|
this.suggest_message_list = [];
|
199
195
|
if (this.msgList.length === 1 && this.useHistoryRecord) {
|
200
196
|
createHistoryRecord({ name: msg }).then((res) => {
|
@@ -225,7 +221,8 @@ const useCopilotStore = defineStore({
|
|
225
221
|
1
|
226
222
|
/* text */
|
227
223
|
],
|
228
|
-
content: message2
|
224
|
+
content: message2,
|
225
|
+
selectTxt
|
229
226
|
}
|
230
227
|
],
|
231
228
|
showOpt: false
|
@@ -238,7 +235,7 @@ const useCopilotStore = defineStore({
|
|
238
235
|
1
|
239
236
|
/* text */
|
240
237
|
]) {
|
241
|
-
return msg2.content;
|
238
|
+
return msg2.selectTxt ? msg2.selectTxt + msg2.content : msg2.content;
|
242
239
|
}
|
243
240
|
if (msg2.type === DataType[
|
244
241
|
2
|
@@ -254,7 +251,7 @@ const useCopilotStore = defineStore({
|
|
254
251
|
1
|
255
252
|
/* text */
|
256
253
|
]) {
|
257
|
-
return msg2.content;
|
254
|
+
return msg2.selectTxt ? msg2.selectTxt + msg2.content : msg2.content;
|
258
255
|
}
|
259
256
|
if (msg2.type === DataType[
|
260
257
|
2
|