@glodon-aiot/agent-cli-ui 3.11.0 → 3.11.1-alpha.1765331460
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/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +28 -28
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +10 -10
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +2 -2
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +133 -118
- package/dist/es/Dialog/AgentChat/index.mjs +600 -569
- package/dist/es/Dialog/SessionList/index.mjs +271 -218
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +53 -53
- package/dist/es/components/FilePreview/index.mjs +6 -6
- package/dist/es/components/Iconfont/index.mjs +3 -3
- package/dist/es/packages/agent-cli-ui/package.json.mjs +11 -11
- package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/Code/index.mjs +8 -8
- package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/Image/index.mjs +3 -3
- package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/index.mjs +24 -25
- package/dist/es/packages/react-components/dist/es/index.mjs +10 -0
- package/dist/es/src/style10.css +1 -1
- package/dist/es/src/style11.css +1 -1
- package/dist/es/src/style12.css +1 -1
- package/dist/es/src/style13.css +1 -1
- package/dist/es/src/style14.css +1 -1
- package/dist/es/src/style15.css +1 -1
- package/dist/es/src/style16.css +1 -1
- package/dist/es/src/style17.css +1 -1
- package/dist/es/src/style18.css +1 -1
- package/dist/es/src/style19.css +1 -1
- package/dist/es/src/style20.css +1 -1
- package/dist/es/src/style22.css +1 -1
- package/dist/es/src/style23.css +1 -1
- package/dist/es/src/style24.css +1 -1
- package/dist/es/src/style25.css +1 -1
- package/dist/es/src/style26.css +1 -1
- package/dist/es/src/style28.css +1 -1
- package/dist/es/src/style29.css +1 -1
- package/dist/es/src/style30.css +1 -1
- package/dist/es/src/style32.css +1 -1
- package/dist/es/src/style5.css +1 -1
- package/dist/es/src/style6.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/es/src/style9.css +1 -1
- package/dist/lib/index.css +1 -1
- package/dist/lib/index.js +69 -68
- package/package.json +3 -3
- package/dist/es/node_modules/@glodon-aiot/react-components/dist/es/index.mjs +0 -10
- package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +0 -162
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +0 -47
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/node_modules/rehype-raw/lib/index.mjs +0 -26
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +0 -38
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +0 -251
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +0 -7
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +0 -249
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +0 -125
- package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +0 -4
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +0 -34
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +0 -7
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +0 -103
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +0 -44
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +0 -14
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +0 -38
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +0 -91
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +0 -2308
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +0 -220
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +0 -2
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +0 -1948
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +0 -92
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +0 -173
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +0 -17
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +0 -27
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +0 -23
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +0 -11
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +0 -17
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/node_modules/zwitch/index.mjs +0 -18
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +0 -44
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +0 -36
- package/dist/src/utils/reactCompatibility.d.ts +0 -27
- package/dist/src/utils/testAntdPrefix.d.ts +0 -3
- /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/Iconfont/index.mjs +0 -0
- /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Copy/index.mjs +0 -0
- /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/ATag/index.mjs +0 -0
- /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/Video/index.mjs +0 -0
- /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/utils/clipboard.mjs +0 -0
- /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/utils/markdown/index.mjs +0 -0
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
var a = (p, e, i) => new Promise((l, n) => {
|
|
2
2
|
var m = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
n(
|
|
4
|
+
s(i.next(o));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
n(r);
|
|
7
7
|
}
|
|
8
8
|
}, k = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
n(
|
|
10
|
+
s(i.throw(o));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
n(r);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, s = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(m, k);
|
|
15
|
+
s((i = i.apply(p, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { jsxs as
|
|
18
|
-
import { useContext as
|
|
17
|
+
import { jsxs as w, jsx as c } from "react/jsx-runtime";
|
|
18
|
+
import { useContext as g } from "react";
|
|
19
19
|
import { Space as h, Tooltip as I, Button as y } from "antd";
|
|
20
20
|
import { ISourceType as f, IversionInfo as b } from "@glodon-aiot/apis";
|
|
21
21
|
import x from "../../../../../context.mjs";
|
|
22
22
|
import C from "../../../../../components/WebLink/index.mjs";
|
|
23
23
|
import d from "../../../../../components/Iconfont/index.mjs";
|
|
24
24
|
const j = (p) => {
|
|
25
|
-
var o,
|
|
25
|
+
var o, r;
|
|
26
26
|
const {
|
|
27
27
|
data: e,
|
|
28
28
|
onClick: i,
|
|
29
29
|
loadPage: l
|
|
30
30
|
} = p, {
|
|
31
31
|
transform: n
|
|
32
|
-
} =
|
|
33
|
-
return l ? yield l(e.knowledgeId, e.docId, e.textId) : 0;
|
|
34
|
-
}), k = e.sourceType === f.WebLink && !!e.webLink,
|
|
32
|
+
} = g(x), m = () => a(void 0, null, function* () {
|
|
33
|
+
return l ? yield l(e.knowledgeId, e.docId, e.textId).catch((t) => (console.warn("查询参考文件页码失败,即将打开首页", t), 0)) : 0;
|
|
34
|
+
}), k = e.sourceType === f.WebLink && !!e.webLink, s = (
|
|
35
35
|
// data?.origin === IFileOrigin.AECPILOT ||
|
|
36
36
|
e.sourceType === f.SourceFile && !!e.sourceFileName && // data.sourceFileName 标识参考文件存在与否,不能使用其他字段判断
|
|
37
37
|
(e == null ? void 0 : e.versionInfo) !== b.ProtectUnauthorize
|
|
38
38
|
);
|
|
39
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ w(h, {
|
|
40
40
|
className: "session-refer-panel",
|
|
41
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ c("span", {
|
|
42
42
|
className: "refer-panel-item",
|
|
43
43
|
children: (e.knowledgeSourceName || "") + (e.knowledgeTitleName || "") || "-"
|
|
44
|
-
}), k && ((o = n == null ? void 0 : n.reference) == null ? void 0 : o.iconVisible) && /* @__PURE__ */
|
|
44
|
+
}), k && ((o = n == null ? void 0 : n.reference) == null ? void 0 : o.iconVisible) && /* @__PURE__ */ c(I, {
|
|
45
45
|
overlayStyle: {
|
|
46
46
|
maxWidth: "90vw"
|
|
47
47
|
},
|
|
48
|
-
title: /* @__PURE__ */
|
|
48
|
+
title: /* @__PURE__ */ c(C, {
|
|
49
49
|
href: e.webLink,
|
|
50
|
-
onClick: (
|
|
51
|
-
|
|
50
|
+
onClick: (t) => {
|
|
51
|
+
t.stopPropagation();
|
|
52
52
|
}
|
|
53
53
|
}),
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
-
icon: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ c(y, {
|
|
55
|
+
icon: /* @__PURE__ */ c(d, {
|
|
56
56
|
type: e.sourceType === f.WebLink ? "icon-lianjie" : "icon-doc-link",
|
|
57
57
|
style: {
|
|
58
58
|
fontSize: 16
|
|
@@ -60,12 +60,12 @@ const j = (p) => {
|
|
|
60
60
|
}),
|
|
61
61
|
type: "link",
|
|
62
62
|
size: "small",
|
|
63
|
-
onClick: (
|
|
64
|
-
|
|
63
|
+
onClick: (t) => a(void 0, null, function* () {
|
|
64
|
+
t.stopPropagation(), i(e);
|
|
65
65
|
})
|
|
66
66
|
})
|
|
67
|
-
}),
|
|
68
|
-
icon: /* @__PURE__ */
|
|
67
|
+
}), s && ((r = n == null ? void 0 : n.reference) == null ? void 0 : r.iconVisible) && /* @__PURE__ */ c(y, {
|
|
68
|
+
icon: /* @__PURE__ */ c(d, {
|
|
69
69
|
type: "icon-doc-link",
|
|
70
70
|
style: {
|
|
71
71
|
fontSize: 16
|
|
@@ -73,8 +73,8 @@ const j = (p) => {
|
|
|
73
73
|
}),
|
|
74
74
|
type: "link",
|
|
75
75
|
size: "small",
|
|
76
|
-
onClick: (
|
|
77
|
-
|
|
76
|
+
onClick: (t) => a(void 0, null, function* () {
|
|
77
|
+
t.stopPropagation();
|
|
78
78
|
const u = (yield m()) || 0;
|
|
79
79
|
i(e, u);
|
|
80
80
|
})
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var F = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
+
var T = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var h = (a, e, n) => e in a ?
|
|
4
|
+
var U = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var h = (a, e, n) => e in a ? F(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n, w = (a, e) => {
|
|
6
6
|
for (var n in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
U.call(e, n) && h(a, n, e[n]);
|
|
8
8
|
if (f)
|
|
9
9
|
for (var n of f(e))
|
|
10
10
|
b.call(e, n) && h(a, n, e[n]);
|
|
11
11
|
return a;
|
|
12
|
-
}, k = (a, e) =>
|
|
12
|
+
}, k = (a, e) => R(a, T(e));
|
|
13
13
|
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
14
14
|
import { useContext as j } from "react";
|
|
15
15
|
import { Space as I, Collapse as C } from "antd";
|
|
16
16
|
import z from "../../../../components/Iconfont/index.mjs";
|
|
17
17
|
/* empty css */import { ISourceType as g } from "@glodon-aiot/apis";
|
|
18
|
-
import "../../../../
|
|
18
|
+
import "../../../../packages/react-components/dist/es/index.mjs";
|
|
19
19
|
import A from "./ReferItem/index.mjs";
|
|
20
20
|
import K from "../../../../context.mjs";
|
|
21
|
-
import { Markdown as L } from "../../../../
|
|
21
|
+
import { Markdown as L } from "../../../../packages/react-components/dist/es/components/Markdown/index.mjs";
|
|
22
22
|
const {
|
|
23
23
|
Panel: P
|
|
24
24
|
} = C, X = (a) => {
|
|
@@ -69,8 +69,8 @@ const {
|
|
|
69
69
|
children: [i + 1, "."]
|
|
70
70
|
}), d && /* @__PURE__ */ s(A, {
|
|
71
71
|
data: o,
|
|
72
|
-
loadPage: (x, S, D) => d.getKnowledgeIdFileIdData(x, S, D).then((
|
|
73
|
-
const l = (
|
|
72
|
+
loadPage: (x, S, D) => d.getKnowledgeIdFileIdData(x, S, D).then(($) => {
|
|
73
|
+
const l = ($ || []).find((y) => y.key === "pages_from");
|
|
74
74
|
return (l == null ? void 0 : l.value) || 0;
|
|
75
75
|
}),
|
|
76
76
|
onClick: v
|
|
@@ -2,8 +2,8 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { Space as r } from "antd";
|
|
3
3
|
/* empty css */import { removeNewlines as m } from "../../../../utils/index.mjs";
|
|
4
4
|
import c from "../../../../components/Iconfont/index.mjs";
|
|
5
|
-
import "../../../../
|
|
6
|
-
import { Markdown as l } from "../../../../
|
|
5
|
+
import "../../../../packages/react-components/dist/es/index.mjs";
|
|
6
|
+
import { Markdown as l } from "../../../../packages/react-components/dist/es/components/Markdown/index.mjs";
|
|
7
7
|
const z = (n) => {
|
|
8
8
|
const {
|
|
9
9
|
history: d,
|