@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.
Files changed (113) hide show
  1. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +28 -28
  2. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +10 -10
  3. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +2 -2
  4. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +133 -118
  5. package/dist/es/Dialog/AgentChat/index.mjs +600 -569
  6. package/dist/es/Dialog/SessionList/index.mjs +271 -218
  7. package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +53 -53
  8. package/dist/es/components/FilePreview/index.mjs +6 -6
  9. package/dist/es/components/Iconfont/index.mjs +3 -3
  10. package/dist/es/packages/agent-cli-ui/package.json.mjs +11 -11
  11. package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/Code/index.mjs +8 -8
  12. package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/Image/index.mjs +3 -3
  13. package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/index.mjs +24 -25
  14. package/dist/es/packages/react-components/dist/es/index.mjs +10 -0
  15. package/dist/es/src/style10.css +1 -1
  16. package/dist/es/src/style11.css +1 -1
  17. package/dist/es/src/style12.css +1 -1
  18. package/dist/es/src/style13.css +1 -1
  19. package/dist/es/src/style14.css +1 -1
  20. package/dist/es/src/style15.css +1 -1
  21. package/dist/es/src/style16.css +1 -1
  22. package/dist/es/src/style17.css +1 -1
  23. package/dist/es/src/style18.css +1 -1
  24. package/dist/es/src/style19.css +1 -1
  25. package/dist/es/src/style20.css +1 -1
  26. package/dist/es/src/style22.css +1 -1
  27. package/dist/es/src/style23.css +1 -1
  28. package/dist/es/src/style24.css +1 -1
  29. package/dist/es/src/style25.css +1 -1
  30. package/dist/es/src/style26.css +1 -1
  31. package/dist/es/src/style28.css +1 -1
  32. package/dist/es/src/style29.css +1 -1
  33. package/dist/es/src/style30.css +1 -1
  34. package/dist/es/src/style32.css +1 -1
  35. package/dist/es/src/style5.css +1 -1
  36. package/dist/es/src/style6.css +1 -1
  37. package/dist/es/src/style8.css +1 -1
  38. package/dist/es/src/style9.css +1 -1
  39. package/dist/lib/index.css +1 -1
  40. package/dist/lib/index.js +69 -68
  41. package/package.json +3 -3
  42. package/dist/es/node_modules/@glodon-aiot/react-components/dist/es/index.mjs +0 -10
  43. package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +0 -162
  44. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +0 -12
  45. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +0 -61
  46. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +0 -33
  47. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +0 -368
  48. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +0 -6
  49. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +0 -566
  50. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  51. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  52. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +0 -14
  53. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  54. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +0 -28
  55. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +0 -10
  56. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +0 -21
  57. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +0 -15
  58. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +0 -19
  59. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +0 -15
  60. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +0 -16
  61. package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +0 -47
  62. package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +0 -11
  63. package/dist/es/node_modules/rehype-raw/lib/index.mjs +0 -26
  64. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +0 -38
  65. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +0 -251
  66. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +0 -7
  67. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +0 -249
  68. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +0 -125
  69. package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +0 -4
  70. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +0 -34
  71. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +0 -7
  72. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +0 -103
  73. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +0 -44
  74. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +0 -14
  75. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +0 -38
  76. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +0 -91
  77. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +0 -2308
  78. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +0 -220
  79. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +0 -2
  80. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +0 -1948
  81. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +0 -92
  82. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +0 -173
  83. package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +0 -12
  84. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +0 -61
  85. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +0 -33
  86. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +0 -368
  87. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +0 -6
  88. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +0 -566
  89. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  90. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  91. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +0 -17
  92. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +0 -27
  93. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +0 -23
  94. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +0 -11
  95. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +0 -17
  96. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +0 -15
  97. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +0 -19
  98. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +0 -15
  99. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +0 -16
  100. package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +0 -16
  101. package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +0 -11
  102. package/dist/es/node_modules/zwitch/index.mjs +0 -18
  103. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +0 -44
  104. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +0 -1
  105. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +0 -36
  106. package/dist/src/utils/reactCompatibility.d.ts +0 -27
  107. package/dist/src/utils/testAntdPrefix.d.ts +0 -3
  108. /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/Iconfont/index.mjs +0 -0
  109. /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Copy/index.mjs +0 -0
  110. /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/ATag/index.mjs +0 -0
  111. /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/components/Markdown/Video/index.mjs +0 -0
  112. /package/dist/es/{node_modules/@glodon-aiot → packages}/react-components/dist/es/utils/clipboard.mjs +0 -0
  113. /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
- r(i.next(o));
5
- } catch (c) {
6
- n(c);
4
+ s(i.next(o));
5
+ } catch (r) {
6
+ n(r);
7
7
  }
8
8
  }, k = (o) => {
9
9
  try {
10
- r(i.throw(o));
11
- } catch (c) {
12
- n(c);
10
+ s(i.throw(o));
11
+ } catch (r) {
12
+ n(r);
13
13
  }
14
- }, r = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(m, k);
15
- r((i = i.apply(p, e)).next());
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 g, jsx as t } from "react/jsx-runtime";
18
- import { useContext as w } from "react";
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, c;
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
- } = w(x), m = () => a(void 0, null, function* () {
33
- return l ? yield l(e.knowledgeId, e.docId, e.textId) : 0;
34
- }), k = e.sourceType === f.WebLink && !!e.webLink, r = (
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__ */ g(h, {
39
+ return /* @__PURE__ */ w(h, {
40
40
  className: "session-refer-panel",
41
- children: [/* @__PURE__ */ t("span", {
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__ */ t(I, {
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__ */ t(C, {
48
+ title: /* @__PURE__ */ c(C, {
49
49
  href: e.webLink,
50
- onClick: (s) => {
51
- s.stopPropagation();
50
+ onClick: (t) => {
51
+ t.stopPropagation();
52
52
  }
53
53
  }),
54
- children: /* @__PURE__ */ t(y, {
55
- icon: /* @__PURE__ */ t(d, {
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: (s) => a(void 0, null, function* () {
64
- s.stopPropagation(), i(e);
63
+ onClick: (t) => a(void 0, null, function* () {
64
+ t.stopPropagation(), i(e);
65
65
  })
66
66
  })
67
- }), r && ((c = n == null ? void 0 : n.reference) == null ? void 0 : c.iconVisible) && /* @__PURE__ */ t(y, {
68
- icon: /* @__PURE__ */ t(d, {
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: (s) => a(void 0, null, function* () {
77
- s.stopPropagation();
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 R = Object.defineProperty, T = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
1
+ var F = Object.defineProperty, R = Object.defineProperties;
2
+ var T = Object.getOwnPropertyDescriptors;
3
3
  var f = Object.getOwnPropertySymbols;
4
- var $ = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var h = (a, e, n) => e in a ? R(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n, w = (a, e) => {
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
- $.call(e, n) && h(a, n, e[n]);
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) => T(a, U(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 "../../../../node_modules/@glodon-aiot/react-components/dist/es/index.mjs";
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 "../../../../node_modules/@glodon-aiot/react-components/dist/es/components/Markdown/index.mjs";
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((y) => {
73
- const l = (y || []).find((F) => F.key === "pages_from");
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 "../../../../node_modules/@glodon-aiot/react-components/dist/es/index.mjs";
6
- import { Markdown as l } from "../../../../node_modules/@glodon-aiot/react-components/dist/es/components/Markdown/index.mjs";
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,