@glodon-aiot/agent-cli-ui 3.9.0-beta.9 → 3.9.0

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 (75) hide show
  1. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +8 -8
  2. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +4 -4
  3. package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +51 -51
  4. package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
  5. package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +22 -23
  6. package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
  7. package/dist/es/src/style14.css +1 -1
  8. package/dist/es/src/style15.css +1 -1
  9. package/dist/es/src/style16.css +1 -1
  10. package/dist/es/src/style27.css +1 -1
  11. package/dist/es/src/style28.css +1 -1
  12. package/dist/es/src/style31.css +1 -1
  13. package/dist/es/src/style32.css +1 -1
  14. package/dist/lib/index.js +69 -70
  15. package/package.json +3 -3
  16. package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +0 -162
  17. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +0 -12
  18. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +0 -61
  19. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +0 -33
  20. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +0 -368
  21. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +0 -6
  22. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +0 -566
  23. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  24. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  25. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +0 -14
  26. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  27. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +0 -28
  28. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +0 -10
  29. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +0 -21
  30. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +0 -15
  31. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +0 -19
  32. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +0 -15
  33. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +0 -16
  34. package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +0 -47
  35. package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +0 -11
  36. package/dist/es/node_modules/rehype-raw/lib/index.mjs +0 -26
  37. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +0 -38
  38. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +0 -251
  39. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +0 -7
  40. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +0 -249
  41. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +0 -125
  42. package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +0 -4
  43. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +0 -34
  44. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +0 -7
  45. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +0 -103
  46. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +0 -44
  47. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +0 -14
  48. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +0 -38
  49. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +0 -91
  50. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +0 -2308
  51. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +0 -220
  52. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +0 -2
  53. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +0 -1948
  54. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +0 -92
  55. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +0 -173
  56. package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +0 -12
  57. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +0 -61
  58. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +0 -33
  59. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +0 -368
  60. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +0 -6
  61. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +0 -566
  62. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  63. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  64. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +0 -17
  65. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +0 -27
  66. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +0 -23
  67. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +0 -11
  68. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +0 -17
  69. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +0 -15
  70. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +0 -19
  71. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +0 -15
  72. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +0 -16
  73. package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +0 -16
  74. package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +0 -11
  75. package/dist/es/node_modules/zwitch/index.mjs +0 -18
@@ -1,92 +0,0 @@
1
- import { isSurrogatePair as l, getSurrogatePairCodePoint as f, CODE_POINTS as e, isSurrogate as p, isControlCodePoint as u, isUndefinedCodePoint as d } from "../common/unicode.mjs";
2
- import { ERR as h } from "../common/error-codes.mjs";
3
- const E = 65536;
4
- class g {
5
- constructor(t) {
6
- this.handler = t, this.html = "", this.pos = -1, this.lastGapPos = -2, this.gapStack = [], this.skipNextNewLine = !1, this.lastChunkWritten = !1, this.endOfChunkHit = !1, this.bufferWaterline = E, this.isEol = !1, this.lineStartPos = 0, this.droppedBufferSize = 0, this.line = 1, this.lastErrOffset = -1;
7
- }
8
- /** The column on the current line. If we just saw a gap (eg. a surrogate pair), return the index before. */
9
- get col() {
10
- return this.pos - this.lineStartPos + +(this.lastGapPos !== this.pos);
11
- }
12
- get offset() {
13
- return this.droppedBufferSize + this.pos;
14
- }
15
- getError(t, s) {
16
- const {
17
- line: i,
18
- col: r,
19
- offset: a
20
- } = this, o = r + s, n = a + s;
21
- return {
22
- code: t,
23
- startLine: i,
24
- endLine: i,
25
- startCol: o,
26
- endCol: o,
27
- startOffset: n,
28
- endOffset: n
29
- };
30
- }
31
- _err(t) {
32
- this.handler.onParseError && this.lastErrOffset !== this.offset && (this.lastErrOffset = this.offset, this.handler.onParseError(this.getError(t, 0)));
33
- }
34
- _addGap() {
35
- this.gapStack.push(this.lastGapPos), this.lastGapPos = this.pos;
36
- }
37
- _processSurrogate(t) {
38
- if (this.pos !== this.html.length - 1) {
39
- const s = this.html.charCodeAt(this.pos + 1);
40
- if (l(s))
41
- return this.pos++, this._addGap(), f(t, s);
42
- } else if (!this.lastChunkWritten)
43
- return this.endOfChunkHit = !0, e.EOF;
44
- return this._err(h.surrogateInInputStream), t;
45
- }
46
- willDropParsedChunk() {
47
- return this.pos > this.bufferWaterline;
48
- }
49
- dropParsedChunk() {
50
- this.willDropParsedChunk() && (this.html = this.html.substring(this.pos), this.lineStartPos -= this.pos, this.droppedBufferSize += this.pos, this.pos = 0, this.lastGapPos = -2, this.gapStack.length = 0);
51
- }
52
- write(t, s) {
53
- this.html.length > 0 ? this.html += t : this.html = t, this.endOfChunkHit = !1, this.lastChunkWritten = s;
54
- }
55
- insertHtmlAtCurrentPos(t) {
56
- this.html = this.html.substring(0, this.pos + 1) + t + this.html.substring(this.pos + 1), this.endOfChunkHit = !1;
57
- }
58
- startsWith(t, s) {
59
- if (this.pos + t.length > this.html.length)
60
- return this.endOfChunkHit = !this.lastChunkWritten, !1;
61
- if (s)
62
- return this.html.startsWith(t, this.pos);
63
- for (let i = 0; i < t.length; i++)
64
- if ((this.html.charCodeAt(this.pos + i) | 32) !== t.charCodeAt(i))
65
- return !1;
66
- return !0;
67
- }
68
- peek(t) {
69
- const s = this.pos + t;
70
- if (s >= this.html.length)
71
- return this.endOfChunkHit = !this.lastChunkWritten, e.EOF;
72
- const i = this.html.charCodeAt(s);
73
- return i === e.CARRIAGE_RETURN ? e.LINE_FEED : i;
74
- }
75
- advance() {
76
- if (this.pos++, this.isEol && (this.isEol = !1, this.line++, this.lineStartPos = this.pos), this.pos >= this.html.length)
77
- return this.endOfChunkHit = !this.lastChunkWritten, e.EOF;
78
- let t = this.html.charCodeAt(this.pos);
79
- return t === e.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, e.LINE_FEED) : t === e.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, p(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === e.LINE_FEED || t === e.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
80
- }
81
- _checkForProblematicCharacters(t) {
82
- u(t) ? this._err(h.controlCharacterInInputStream) : d(t) && this._err(h.noncharacterInInputStream);
83
- }
84
- retreat(t) {
85
- for (this.pos -= t; this.pos < this.lastGapPos; )
86
- this.lastGapPos = this.gapStack.pop(), this.pos--;
87
- this.isEol = !1;
88
- }
89
- }
90
- export {
91
- g as Preprocessor
92
- };
@@ -1,173 +0,0 @@
1
- var u = Object.defineProperty;
2
- var s = Object.getOwnPropertySymbols;
3
- var N = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
- var i = (e, t, o) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, a = (e, t) => {
5
- for (var o in t || (t = {}))
6
- N.call(t, o) && i(e, o, t[o]);
7
- if (s)
8
- for (var o of s(t))
9
- m.call(t, o) && i(e, o, t[o]);
10
- return e;
11
- };
12
- import { DOCUMENT_MODE as l } from "../common/html.mjs";
13
- const d = {
14
- //Node construction
15
- createDocument() {
16
- return {
17
- nodeName: "#document",
18
- mode: l.NO_QUIRKS,
19
- childNodes: []
20
- };
21
- },
22
- createDocumentFragment() {
23
- return {
24
- nodeName: "#document-fragment",
25
- childNodes: []
26
- };
27
- },
28
- createElement(e, t, o) {
29
- return {
30
- nodeName: e,
31
- tagName: e,
32
- attrs: o,
33
- namespaceURI: t,
34
- childNodes: [],
35
- parentNode: null
36
- };
37
- },
38
- createCommentNode(e) {
39
- return {
40
- nodeName: "#comment",
41
- data: e,
42
- parentNode: null
43
- };
44
- },
45
- createTextNode(e) {
46
- return {
47
- nodeName: "#text",
48
- value: e,
49
- parentNode: null
50
- };
51
- },
52
- //Tree mutation
53
- appendChild(e, t) {
54
- e.childNodes.push(t), t.parentNode = e;
55
- },
56
- insertBefore(e, t, o) {
57
- const n = e.childNodes.indexOf(o);
58
- e.childNodes.splice(n, 0, t), t.parentNode = e;
59
- },
60
- setTemplateContent(e, t) {
61
- e.content = t;
62
- },
63
- getTemplateContent(e) {
64
- return e.content;
65
- },
66
- setDocumentType(e, t, o, n) {
67
- const r = e.childNodes.find((c) => c.nodeName === "#documentType");
68
- if (r)
69
- r.name = t, r.publicId = o, r.systemId = n;
70
- else {
71
- const c = {
72
- nodeName: "#documentType",
73
- name: t,
74
- publicId: o,
75
- systemId: n,
76
- parentNode: null
77
- };
78
- d.appendChild(e, c);
79
- }
80
- },
81
- setDocumentMode(e, t) {
82
- e.mode = t;
83
- },
84
- getDocumentMode(e) {
85
- return e.mode;
86
- },
87
- detachNode(e) {
88
- if (e.parentNode) {
89
- const t = e.parentNode.childNodes.indexOf(e);
90
- e.parentNode.childNodes.splice(t, 1), e.parentNode = null;
91
- }
92
- },
93
- insertText(e, t) {
94
- if (e.childNodes.length > 0) {
95
- const o = e.childNodes[e.childNodes.length - 1];
96
- if (d.isTextNode(o)) {
97
- o.value += t;
98
- return;
99
- }
100
- }
101
- d.appendChild(e, d.createTextNode(t));
102
- },
103
- insertTextBefore(e, t, o) {
104
- const n = e.childNodes[e.childNodes.indexOf(o) - 1];
105
- n && d.isTextNode(n) ? n.value += t : d.insertBefore(e, d.createTextNode(t), o);
106
- },
107
- adoptAttributes(e, t) {
108
- const o = new Set(e.attrs.map((n) => n.name));
109
- for (let n = 0; n < t.length; n++)
110
- o.has(t[n].name) || e.attrs.push(t[n]);
111
- },
112
- //Tree traversing
113
- getFirstChild(e) {
114
- return e.childNodes[0];
115
- },
116
- getChildNodes(e) {
117
- return e.childNodes;
118
- },
119
- getParentNode(e) {
120
- return e.parentNode;
121
- },
122
- getAttrList(e) {
123
- return e.attrs;
124
- },
125
- //Node data
126
- getTagName(e) {
127
- return e.tagName;
128
- },
129
- getNamespaceURI(e) {
130
- return e.namespaceURI;
131
- },
132
- getTextNodeContent(e) {
133
- return e.value;
134
- },
135
- getCommentNodeContent(e) {
136
- return e.data;
137
- },
138
- getDocumentTypeNodeName(e) {
139
- return e.name;
140
- },
141
- getDocumentTypeNodePublicId(e) {
142
- return e.publicId;
143
- },
144
- getDocumentTypeNodeSystemId(e) {
145
- return e.systemId;
146
- },
147
- //Node types
148
- isTextNode(e) {
149
- return e.nodeName === "#text";
150
- },
151
- isCommentNode(e) {
152
- return e.nodeName === "#comment";
153
- },
154
- isDocumentTypeNode(e) {
155
- return e.nodeName === "#documentType";
156
- },
157
- isElementNode(e) {
158
- return Object.prototype.hasOwnProperty.call(e, "tagName");
159
- },
160
- // Source code location
161
- setNodeSourceCodeLocation(e, t) {
162
- e.sourceCodeLocation = t;
163
- },
164
- getNodeSourceCodeLocation(e) {
165
- return e.sourceCodeLocation;
166
- },
167
- updateNodeSourceCodeLocation(e, t) {
168
- e.sourceCodeLocation = a(a({}, e.sourceCodeLocation), t);
169
- }
170
- };
171
- export {
172
- d as defaultTreeAdapter
173
- };
@@ -1,12 +0,0 @@
1
- import { merge as m } from "./lib/util/merge.mjs";
2
- import { xlink as o } from "./lib/xlink.mjs";
3
- import { xml as r } from "./lib/xml.mjs";
4
- import { xmlns as t } from "./lib/xmlns.mjs";
5
- import { aria as i } from "./lib/aria.mjs";
6
- import { html as s } from "./lib/html.mjs";
7
- import { svg as p } from "./lib/svg.mjs";
8
- const x = m([r, o, t, i, s], "html"), e = m([r, o, t, i, p], "svg");
9
- export {
10
- x as html,
11
- e as svg
12
- };
@@ -1,61 +0,0 @@
1
- import { booleanish as a, number as r, spaceSeparated as i } from "./util/types.mjs";
2
- import { create as l } from "./util/create.mjs";
3
- const u = l({
4
- transform(n, e) {
5
- return e === "role" ? e : "aria-" + e.slice(4).toLowerCase();
6
- },
7
- properties: {
8
- ariaActiveDescendant: null,
9
- ariaAtomic: a,
10
- ariaAutoComplete: null,
11
- ariaBusy: a,
12
- ariaChecked: a,
13
- ariaColCount: r,
14
- ariaColIndex: r,
15
- ariaColSpan: r,
16
- ariaControls: i,
17
- ariaCurrent: null,
18
- ariaDescribedBy: i,
19
- ariaDetails: null,
20
- ariaDisabled: a,
21
- ariaDropEffect: i,
22
- ariaErrorMessage: null,
23
- ariaExpanded: a,
24
- ariaFlowTo: i,
25
- ariaGrabbed: a,
26
- ariaHasPopup: null,
27
- ariaHidden: a,
28
- ariaInvalid: null,
29
- ariaKeyShortcuts: null,
30
- ariaLabel: null,
31
- ariaLabelledBy: i,
32
- ariaLevel: r,
33
- ariaLive: null,
34
- ariaModal: a,
35
- ariaMultiLine: a,
36
- ariaMultiSelectable: a,
37
- ariaOrientation: null,
38
- ariaOwns: i,
39
- ariaPlaceholder: null,
40
- ariaPosInSet: r,
41
- ariaPressed: a,
42
- ariaReadOnly: a,
43
- ariaRelevant: null,
44
- ariaRequired: a,
45
- ariaRoleDescription: i,
46
- ariaRowCount: r,
47
- ariaRowIndex: r,
48
- ariaRowSpan: r,
49
- ariaSelected: a,
50
- ariaSetSize: r,
51
- ariaSort: null,
52
- ariaValueMax: r,
53
- ariaValueMin: r,
54
- ariaValueNow: r,
55
- ariaValueText: null,
56
- role: null
57
- }
58
- });
59
- export {
60
- u as aria
61
- };
@@ -1,33 +0,0 @@
1
- import { normalize as s } from "./normalize.mjs";
2
- import { DefinedInfo as p } from "./util/defined-info.mjs";
3
- import { Info as f } from "./util/info.mjs";
4
- const l = /^data[-\w.:]+$/i, c = /-[a-z]/g, d = /[A-Z]/g;
5
- function C(r, t) {
6
- const o = s(t);
7
- let i = t, a = f;
8
- if (o in r.normal)
9
- return r.property[r.normal[o]];
10
- if (o.length > 4 && o.slice(0, 4) === "data" && l.test(t)) {
11
- if (t.charAt(4) === "-") {
12
- const e = t.slice(5).replace(c, h);
13
- i = "data" + e.charAt(0).toUpperCase() + e.slice(1);
14
- } else {
15
- const e = t.slice(4);
16
- if (!c.test(e)) {
17
- let n = e.replace(d, m);
18
- n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
19
- }
20
- }
21
- a = p;
22
- }
23
- return new a(i, t);
24
- }
25
- function m(r) {
26
- return "-" + r.toLowerCase();
27
- }
28
- function h(r) {
29
- return r.charAt(1).toUpperCase();
30
- }
31
- export {
32
- C as find
33
- };