@stack-spot/ai-chat-widget 2.0.0 → 2.0.1-beta.1
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/CHANGELOG.md +172 -0
- package/dist/app-metadata.json +7 -7
- package/dist/chat-interceptors/send-message.d.ts.map +1 -1
- package/dist/chat-interceptors/send-message.js +99 -1
- package/dist/chat-interceptors/send-message.js.map +1 -1
- package/dist/state/ChatEntry.d.ts +1 -1
- package/dist/state/ChatEntry.d.ts.map +1 -1
- package/dist/state/ChatEntry.js +2 -1
- package/dist/state/ChatEntry.js.map +1 -1
- package/dist/state/ChatState.d.ts +4 -0
- package/dist/state/ChatState.d.ts.map +1 -1
- package/dist/state/ChatState.js.map +1 -1
- package/dist/utils/date.d.ts +1 -2
- package/dist/utils/date.d.ts.map +1 -1
- package/dist/utils/date.js +3 -3
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/error.js +2 -2
- package/dist/utils/error.js.map +1 -1
- package/dist/utils/planning-tool.d.ts +14 -0
- package/dist/utils/planning-tool.d.ts.map +1 -0
- package/dist/utils/planning-tool.js +25 -0
- package/dist/utils/planning-tool.js.map +1 -0
- package/dist/utils/update-tool-step.d.ts +3 -0
- package/dist/utils/update-tool-step.d.ts.map +1 -0
- package/dist/utils/update-tool-step.js +23 -0
- package/dist/utils/update-tool-step.js.map +1 -0
- package/dist/views/Chat/ChatMessage.d.ts +1 -1
- package/dist/views/Chat/ChatMessage.d.ts.map +1 -1
- package/dist/views/Chat/ChatMessage.js +4 -3
- package/dist/views/Chat/ChatMessage.js.map +1 -1
- package/dist/views/Chat/StepsList.d.ts +6 -1
- package/dist/views/Chat/StepsList.d.ts.map +1 -1
- package/dist/views/Chat/StepsList.js +117 -13
- package/dist/views/Chat/StepsList.js.map +1 -1
- package/dist/views/Chat/styled.d.ts.map +1 -1
- package/dist/views/Chat/styled.js +13 -6
- package/dist/views/Chat/styled.js.map +1 -1
- package/dist/views/MessageInput/dictionary.d.ts +1 -1
- package/dist/views/Steps/FlowChart/NodeStep.js +1 -1
- package/dist/views/Steps/FlowChart/NodeStep.js.map +1 -1
- package/dist/views/Steps/FlowChart/layout.d.ts +1 -1
- package/dist/views/Steps/FlowChart/layout.d.ts.map +1 -1
- package/dist/views/Steps/FlowChart/layout.js +1 -0
- package/dist/views/Steps/FlowChart/layout.js.map +1 -1
- package/dist/views/Steps/FlowChart/types.d.ts +1 -1
- package/dist/views/Steps/FlowChart/types.d.ts.map +1 -1
- package/dist/views/Steps/StepModal.js +2 -2
- package/dist/views/Steps/StepModal.js.map +1 -1
- package/dist/views/Steps/dictionary.d.ts +1 -1
- package/dist/views/Steps/utils.d.ts +1 -1
- package/dist/views/Steps/utils.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/app-metadata.json +7 -7
- package/src/chat-interceptors/send-message.ts +113 -2
- package/src/state/ChatEntry.ts +2 -1
- package/src/state/ChatState.ts +4 -0
- package/src/utils/date.ts +3 -3
- package/src/utils/error.ts +2 -2
- package/src/utils/planning-tool.ts +32 -0
- package/src/utils/update-tool-step.tsx +27 -0
- package/src/views/Chat/ChatMessage.tsx +8 -4
- package/src/views/Chat/StepsList.tsx +279 -31
- package/src/views/Chat/styled.ts +13 -6
- package/src/views/Steps/FlowChart/NodeStep.tsx +1 -1
- package/src/views/Steps/FlowChart/layout.ts +1 -0
- package/src/views/Steps/FlowChart/types.ts +1 -1
- package/src/views/Steps/StepModal.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,177 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.1-beta.1](https://github.com/stack-spot/portal-ai-chat-widget/compare/ai-chat-widget-beta@v3.0.0-beta.1...ai-chat-widget-beta@v3.0.1-beta.1) (2025-10-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* show steps ([#314](https://github.com/stack-spot/portal-ai-chat-widget/issues/314)) ([b48c88a](https://github.com/stack-spot/portal-ai-chat-widget/commit/b48c88a99d1bd6dec9ce04475fed806a8bfe61d4))
|
|
9
|
+
|
|
10
|
+
## [3.0.0-beta.1](https://github.com/stack-spot/portal-ai-chat-widget/compare/ai-chat-widget-beta@v2.1.0-beta.1...ai-chat-widget-beta@v3.0.0-beta.1) (2025-10-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* updates Citric + ADP features ([#304](https://github.com/stack-spot/portal-ai-chat-widget/issues/304))
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* 2721 context upload file ([#248](https://github.com/stack-spot/portal-ai-chat-widget/issues/248)) ([f7b8d0b](https://github.com/stack-spot/portal-ai-chat-widget/commit/f7b8d0b99cdf93fa1386d9d2d52d72515404979f))
|
|
20
|
+
* 3049 execution modes chat ([#312](https://github.com/stack-spot/portal-ai-chat-widget/issues/312)) ([e5df99a](https://github.com/stack-spot/portal-ai-chat-widget/commit/e5df99a7a688603cd2d4f8786ad662dcaab4c3e2))
|
|
21
|
+
* accept csv ([#238](https://github.com/stack-spot/portal-ai-chat-widget/issues/238)) ([868f4ee](https://github.com/stack-spot/portal-ai-chat-widget/commit/868f4eed18df6038e8e7a2694221d055edf2eded))
|
|
22
|
+
* add filters to show contents in chat ([#240](https://github.com/stack-spot/portal-ai-chat-widget/issues/240)) ([95dd865](https://github.com/stack-spot/portal-ai-chat-widget/commit/95dd8659e623e0eeb6afb6d3380e83e9c4bb2b86))
|
|
23
|
+
* add new download feature in code snippets ([#151](https://github.com/stack-spot/portal-ai-chat-widget/issues/151)) ([3e2fac8](https://github.com/stack-spot/portal-ai-chat-widget/commit/3e2fac85f7a5d4150cae921eb57abc6b8ac92e5e))
|
|
24
|
+
* add visibility filter for recently used agents ([#247](https://github.com/stack-spot/portal-ai-chat-widget/issues/247)) ([bc85769](https://github.com/stack-spot/portal-ai-chat-widget/commit/bc85769b7863f4bca2202852804e4b603fca9f7b))
|
|
25
|
+
* Adds drag-and-drop and paste upload functionality ([#192](https://github.com/stack-spot/portal-ai-chat-widget/issues/192)) ([a052b9e](https://github.com/stack-spot/portal-ai-chat-widget/commit/a052b9e8108b6a0971d96596f25c6be873664980))
|
|
26
|
+
* adds some new feature configs + small css fixes for file uploads ([#176](https://github.com/stack-spot/portal-ai-chat-widget/issues/176)) ([d033d65](https://github.com/stack-spot/portal-ai-chat-widget/commit/d033d65ff37003b5f7fb2e76377ea5f712af44e1))
|
|
27
|
+
* agent as tools ([#290](https://github.com/stack-spot/portal-ai-chat-widget/issues/290)) ([0a853a4](https://github.com/stack-spot/portal-ai-chat-widget/commit/0a853a492426353b5aacb2d3ca33a4b9a054c3ea))
|
|
28
|
+
* Change knowledge_source_config to knowledge_sources_config([#274](https://github.com/stack-spot/portal-ai-chat-widget/issues/274)) ([2ce8748](https://github.com/stack-spot/portal-ai-chat-widget/commit/2ce8748d3e16d33aa11c7436dd3e463fb68abb5b))
|
|
29
|
+
* custom tools ([#222](https://github.com/stack-spot/portal-ai-chat-widget/issues/222)) ([03cab5b](https://github.com/stack-spot/portal-ai-chat-widget/commit/03cab5bcbe9b51e04dcaecfdb1a0a35a6646dc2b))
|
|
30
|
+
* Feat agent as tools dropdwon upd ([#291](https://github.com/stack-spot/portal-ai-chat-widget/issues/291)) ([50770a4](https://github.com/stack-spot/portal-ai-chat-widget/commit/50770a4c39ba3c289a926fabc1969944a8ed5475))
|
|
31
|
+
* file upload ([#174](https://github.com/stack-spot/portal-ai-chat-widget/issues/174)) ([48e665a](https://github.com/stack-spot/portal-ai-chat-widget/commit/48e665a5cb503d6f90e6cbee3ac64bc78357dca3))
|
|
32
|
+
* freemium improves ([#187](https://github.com/stack-spot/portal-ai-chat-widget/issues/187)) ([060a1c5](https://github.com/stack-spot/portal-ai-chat-widget/commit/060a1c52272c86323458aa4c79ba3e53f09fb7f0))
|
|
33
|
+
* Get QC from v2 ([#182](https://github.com/stack-spot/portal-ai-chat-widget/issues/182)) ([0c2ce48](https://github.com/stack-spot/portal-ai-chat-widget/commit/0c2ce48b7faa480dfe431acbfe083d3b1eda5a3d))
|
|
34
|
+
* layout css on content of chat ([#161](https://github.com/stack-spot/portal-ai-chat-widget/issues/161)) ([b9c90c8](https://github.com/stack-spot/portal-ai-chat-widget/commit/b9c90c87fa750d93893ca511df66f562909de2ac))
|
|
35
|
+
* support qc conditional ([#228](https://github.com/stack-spot/portal-ai-chat-widget/issues/228)) ([6c5aa8c](https://github.com/stack-spot/portal-ai-chat-widget/commit/6c5aa8cc25f22d44bb8cb40fb3e9383d60f86ccf))
|
|
36
|
+
* tools and new api agent ([f1384f2](https://github.com/stack-spot/portal-ai-chat-widget/commit/f1384f255ab091733f3a93815735641c9e8e7f18))
|
|
37
|
+
* upd layout input ([#152](https://github.com/stack-spot/portal-ai-chat-widget/issues/152)) ([c1e9574](https://github.com/stack-spot/portal-ai-chat-widget/commit/c1e95743c6d8f6f2f6b62da09c81de3c71c7ec55))
|
|
38
|
+
* updates Citric + ADP features ([#304](https://github.com/stack-spot/portal-ai-chat-widget/issues/304)) ([30f068d](https://github.com/stack-spot/portal-ai-chat-widget/commit/30f068d25f6e677241bc4ce4e92cc85910b12fe9))
|
|
39
|
+
* upgrades translation lib + auth ([#310](https://github.com/stack-spot/portal-ai-chat-widget/issues/310)) ([8bae024](https://github.com/stack-spot/portal-ai-chat-widget/commit/8bae0249e1232fb2b3cecd739a790d7e39cfaa5a))
|
|
40
|
+
* visibility filter to retrieve recently used agents ([29b8646](https://github.com/stack-spot/portal-ai-chat-widget/commit/29b86468ce6dfd1757104199faa3efe8965e7904))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* 1745 to show custom tools on panel ([#278](https://github.com/stack-spot/portal-ai-chat-widget/issues/278)) ([fed5db7](https://github.com/stack-spot/portal-ai-chat-widget/commit/fed5db7dfc86fbdd0d8a60f958b302e552dfbbd3))
|
|
46
|
+
* 850 qc conditional next step beta release ([#252](https://github.com/stack-spot/portal-ai-chat-widget/issues/252)) ([68531b1](https://github.com/stack-spot/portal-ai-chat-widget/commit/68531b19ec8c0d0b4cde2ddc0f5f7c3ac43c31cc))
|
|
47
|
+
* 918 Copy button and Message MD validator ([#166](https://github.com/stack-spot/portal-ai-chat-widget/issues/166)) ([2120f4c](https://github.com/stack-spot/portal-ai-chat-widget/commit/2120f4c94a853568a0b22830972473047867af0b))
|
|
48
|
+
* accessibility file insert ([f0a0ea6](https://github.com/stack-spot/portal-ai-chat-widget/commit/f0a0ea68d37886f80f4183d315f8eace014a27e1))
|
|
49
|
+
* accessibility file insert ([6d4b4dc](https://github.com/stack-spot/portal-ai-chat-widget/commit/6d4b4dc1356de3d1cefba828c9bd56e5d9900bdc))
|
|
50
|
+
* accessibility file insert ([#259](https://github.com/stack-spot/portal-ai-chat-widget/issues/259)) ([b4be0c2](https://github.com/stack-spot/portal-ai-chat-widget/commit/b4be0c206a8dae042e9fc765e6c4e99981928a72))
|
|
51
|
+
* accessibility image insert beta ([#257](https://github.com/stack-spot/portal-ai-chat-widget/issues/257)) ([1dc25ce](https://github.com/stack-spot/portal-ai-chat-widget/commit/1dc25ce29110b743f84c88729651081bd0c8eb9e))
|
|
52
|
+
* acessibility upload file ([#286](https://github.com/stack-spot/portal-ai-chat-widget/issues/286)) ([91a8447](https://github.com/stack-spot/portal-ai-chat-widget/commit/91a8447867be3d7556675f1bdd8b18184fd6c47b))
|
|
53
|
+
* adaptive-text-area-max-height' into beta-release ([c973d7e](https://github.com/stack-spot/portal-ai-chat-widget/commit/c973d7ee1dc3f223e70e0a241aae50f228c0aabe))
|
|
54
|
+
* add csv in array languages and fix language undefined ([5f3a0ab](https://github.com/stack-spot/portal-ai-chat-widget/commit/5f3a0ab6d9a37cf1ce775937c76d5949a3bf05a6))
|
|
55
|
+
* add docx TIFF/TIF and BMP to upload ([#302](https://github.com/stack-spot/portal-ai-chat-widget/issues/302)) ([aefe654](https://github.com/stack-spot/portal-ai-chat-widget/commit/aefe6543230283367c752f9d53382abb11d54e7f))
|
|
56
|
+
* add id on button of add for content ([#154](https://github.com/stack-spot/portal-ai-chat-widget/issues/154)) ([e4b09d5](https://github.com/stack-spot/portal-ai-chat-widget/commit/e4b09d562986bb4640e7f3de2252457daf267bd3))
|
|
57
|
+
* Adds attributes to AdaptiveTextArea and updates SelectorBox prop naming ([#194](https://github.com/stack-spot/portal-ai-chat-widget/issues/194)) ([ac34d4b](https://github.com/stack-spot/portal-ai-chat-widget/commit/ac34d4b4c11dcdca74ca1f6111a443282901fe01))
|
|
58
|
+
* Adds prompt length validation to message input ([#215](https://github.com/stack-spot/portal-ai-chat-widget/issues/215)) ([cd752f1](https://github.com/stack-spot/portal-ai-chat-widget/commit/cd752f1d569072e0396322ae947a0ae413e01807))
|
|
59
|
+
* adjusts file size error ([#231](https://github.com/stack-spot/portal-ai-chat-widget/issues/231)) ([f977294](https://github.com/stack-spot/portal-ai-chat-widget/commit/f97729409d0330c128da5763959377f63fa6c7f6))
|
|
60
|
+
* adjusts file size error (beta - release) ([#232](https://github.com/stack-spot/portal-ai-chat-widget/issues/232)) ([0cda5b8](https://github.com/stack-spot/portal-ai-chat-widget/commit/0cda5b8df804eed6a3bb160106953befb9a7d9cd))
|
|
61
|
+
* agent as tools dropdown upd | beta-release ([#293](https://github.com/stack-spot/portal-ai-chat-widget/issues/293)) ([32428da](https://github.com/stack-spot/portal-ai-chat-widget/commit/32428da7c7384463ff796a776ecc4852da1a422a))
|
|
62
|
+
* agent chat history ([#242](https://github.com/stack-spot/portal-ai-chat-widget/issues/242)) ([c1ed38b](https://github.com/stack-spot/portal-ai-chat-widget/commit/c1ed38b64e064a53c0b0394b96ba5e3f6d11f3f2))
|
|
63
|
+
* agent create chat view adjusts ([#263](https://github.com/stack-spot/portal-ai-chat-widget/issues/263)) ([433a45a](https://github.com/stack-spot/portal-ai-chat-widget/commit/433a45a2e83e40194f6baf5a5b309212fe2d51bc))
|
|
64
|
+
* calc max height ([#199](https://github.com/stack-spot/portal-ai-chat-widget/issues/199)) ([82d8e02](https://github.com/stack-spot/portal-ai-chat-widget/commit/82d8e0259278063204628c7aeac365777c6a94e0))
|
|
65
|
+
* calc max height ([#200](https://github.com/stack-spot/portal-ai-chat-widget/issues/200)) ([01d69c0](https://github.com/stack-spot/portal-ai-chat-widget/commit/01d69c04848db47e55b368b1e27a27b4ad24e8a3))
|
|
66
|
+
* conflicts branch with beta-relise ([e100471](https://github.com/stack-spot/portal-ai-chat-widget/commit/e100471ec084f3ed585316068844e385b9062844))
|
|
67
|
+
* copy to clipboard fallback ([#170](https://github.com/stack-spot/portal-ai-chat-widget/issues/170)) ([19b3b10](https://github.com/stack-spot/portal-ai-chat-widget/commit/19b3b1028a00358313eb260c68e65230c8866c3c))
|
|
68
|
+
* fix count executions ([#271](https://github.com/stack-spot/portal-ai-chat-widget/issues/271)) ([47931dd](https://github.com/stack-spot/portal-ai-chat-widget/commit/47931dd911fa1f81775755abc0e6ed6ec9849eb8))
|
|
69
|
+
* fix QC recursively ([#269](https://github.com/stack-spot/portal-ai-chat-widget/issues/269)) ([d4f8820](https://github.com/stack-spot/portal-ai-chat-widget/commit/d4f8820ffd479f1987748f69a459d446ce99a1a8))
|
|
70
|
+
* Fix text ([#189](https://github.com/stack-spot/portal-ai-chat-widget/issues/189)) ([f201b57](https://github.com/stack-spot/portal-ai-chat-widget/commit/f201b57f0a38f854af3b6afd3373a53a94bf987b))
|
|
71
|
+
* Fix typo ([#275](https://github.com/stack-spot/portal-ai-chat-widget/issues/275)) ([027df85](https://github.com/stack-spot/portal-ai-chat-widget/commit/027df857d68606b3fe53a9a4835feefab58b1ba6))
|
|
72
|
+
* Inconsistent dates at midnight turnover ([#289](https://github.com/stack-spot/portal-ai-chat-widget/issues/289)) ([1cfd845](https://github.com/stack-spot/portal-ai-chat-widget/commit/1cfd845f0517c9f740fbe7eae7d9c1aa32c6853b))
|
|
73
|
+
* layout for messages without space ([#157](https://github.com/stack-spot/portal-ai-chat-widget/issues/157)) ([071bf1b](https://github.com/stack-spot/portal-ai-chat-widget/commit/071bf1baf4e1a43b27c520537c0d629d24bfbed8))
|
|
74
|
+
* lets pdf files be upload ([#183](https://github.com/stack-spot/portal-ai-chat-widget/issues/183)) ([d422d88](https://github.com/stack-spot/portal-ai-chat-widget/commit/d422d887d6745f2b9c1564c00b70dc6e83010209))
|
|
75
|
+
* maximum height of the text-area ([#217](https://github.com/stack-spot/portal-ai-chat-widget/issues/217)) ([0f8ba52](https://github.com/stack-spot/portal-ai-chat-widget/commit/0f8ba52716488bb1b19f0bc035ecd0aa1da61e50))
|
|
76
|
+
* merge branch accessibility chat ([cfe99b4](https://github.com/stack-spot/portal-ai-chat-widget/commit/cfe99b40f23754bed2a294ded2d2edeea4e45615))
|
|
77
|
+
* message buttons low res ([#211](https://github.com/stack-spot/portal-ai-chat-widget/issues/211)) ([345134f](https://github.com/stack-spot/portal-ai-chat-widget/commit/345134f37e64f8cdd780d7290b38c6754c99e9bc))
|
|
78
|
+
* prevent useless double click in message menu ([#178](https://github.com/stack-spot/portal-ai-chat-widget/issues/178)) ([9ba7099](https://github.com/stack-spot/portal-ai-chat-widget/commit/9ba7099c8463ed07bbcaed975b499226503263d4))
|
|
79
|
+
* removes some upload types ([#180](https://github.com/stack-spot/portal-ai-chat-widget/issues/180)) ([7d31860](https://github.com/stack-spot/portal-ai-chat-widget/commit/7d318601ca7e40d855e2bd406dd7071886506cd9))
|
|
80
|
+
* send button adjusts ([#195](https://github.com/stack-spot/portal-ai-chat-widget/issues/195)) ([a31fc1f](https://github.com/stack-spot/portal-ai-chat-widget/commit/a31fc1ff33c5ed511aa890fda856adc84e2e840b))
|
|
81
|
+
* set language to undefined if panel is closed ([#162](https://github.com/stack-spot/portal-ai-chat-widget/issues/162)) ([5ae54d5](https://github.com/stack-spot/portal-ai-chat-widget/commit/5ae54d54937b4562a03201c5943721e37ffaa21d))
|
|
82
|
+
* show ks ([#237](https://github.com/stack-spot/portal-ai-chat-widget/issues/237)) ([b6c68cd](https://github.com/stack-spot/portal-ai-chat-widget/commit/b6c68cd0c58857f0aa822ad44c987a6ed50a7795))
|
|
83
|
+
* small styling issues ([#168](https://github.com/stack-spot/portal-ai-chat-widget/issues/168)) ([2a2ee42](https://github.com/stack-spot/portal-ai-chat-widget/commit/2a2ee428bf5d6b4fb1964ae35852dfc4d2e18f69))
|
|
84
|
+
* spacing chat messages ([#164](https://github.com/stack-spot/portal-ai-chat-widget/issues/164)) ([18c82fd](https://github.com/stack-spot/portal-ai-chat-widget/commit/18c82fd724bf16a9caaaa2c8636f6c524e324caa))
|
|
85
|
+
* update ([26feb55](https://github.com/stack-spot/portal-ai-chat-widget/commit/26feb552d3a9acd0e82192cd253a62d33051f7b6))
|
|
86
|
+
* update ([#219](https://github.com/stack-spot/portal-ai-chat-widget/issues/219)) ([cb45644](https://github.com/stack-spot/portal-ai-chat-widget/commit/cb456444f6f1e604c4c6247e631d256d755e82b0))
|
|
87
|
+
* update network lib ([#245](https://github.com/stack-spot/portal-ai-chat-widget/issues/245)) ([8341240](https://github.com/stack-spot/portal-ai-chat-widget/commit/83412402296f22e8fb61c6079f13cf94066ae886))
|
|
88
|
+
* Update release ([#203](https://github.com/stack-spot/portal-ai-chat-widget/issues/203)) ([5cb758e](https://github.com/stack-spot/portal-ai-chat-widget/commit/5cb758e1832ff41485300d08f6e306917d80e142))
|
|
89
|
+
* update text ([#185](https://github.com/stack-spot/portal-ai-chat-widget/issues/185)) ([58c03d3](https://github.com/stack-spot/portal-ai-chat-widget/commit/58c03d36e4bec75cbdb721202e8fed694499a7be))
|
|
90
|
+
* version ([e394536](https://github.com/stack-spot/portal-ai-chat-widget/commit/e394536ddb75fa76db034235daced6304162d20f))
|
|
91
|
+
|
|
92
|
+
## [2.0.1-beta.1](https://github.com/stack-spot/portal-ai-chat-widget/compare/ai-chat-widget-beta@v2.0.0-beta.1...ai-chat-widget-beta@v3.0.0-beta.1) (2025-10-01)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### ⚠ BREAKING CHANGES
|
|
96
|
+
|
|
97
|
+
* updates Citric + ADP features ([#304](https://github.com/stack-spot/portal-ai-chat-widget/issues/304))
|
|
98
|
+
|
|
99
|
+
### Features
|
|
100
|
+
|
|
101
|
+
* 2721 context upload file ([#248](https://github.com/stack-spot/portal-ai-chat-widget/issues/248)) ([f7b8d0b](https://github.com/stack-spot/portal-ai-chat-widget/commit/f7b8d0b99cdf93fa1386d9d2d52d72515404979f))
|
|
102
|
+
* 3049 execution modes chat ([#312](https://github.com/stack-spot/portal-ai-chat-widget/issues/312)) ([e5df99a](https://github.com/stack-spot/portal-ai-chat-widget/commit/e5df99a7a688603cd2d4f8786ad662dcaab4c3e2))
|
|
103
|
+
* accept csv ([#238](https://github.com/stack-spot/portal-ai-chat-widget/issues/238)) ([868f4ee](https://github.com/stack-spot/portal-ai-chat-widget/commit/868f4eed18df6038e8e7a2694221d055edf2eded))
|
|
104
|
+
* add copy button user prompts ([#143](https://github.com/stack-spot/portal-ai-chat-widget/issues/143)) ([4439093](https://github.com/stack-spot/portal-ai-chat-widget/commit/4439093f972c718ea3b7bddfb0925b4268d01828))
|
|
105
|
+
* add filters to show contents in chat ([#240](https://github.com/stack-spot/portal-ai-chat-widget/issues/240)) ([95dd865](https://github.com/stack-spot/portal-ai-chat-widget/commit/95dd8659e623e0eeb6afb6d3380e83e9c4bb2b86))
|
|
106
|
+
* add new download feature in code snippets ([#151](https://github.com/stack-spot/portal-ai-chat-widget/issues/151)) ([3e2fac8](https://github.com/stack-spot/portal-ai-chat-widget/commit/3e2fac85f7a5d4150cae921eb57abc6b8ac92e5e))
|
|
107
|
+
* add visibility filter for recently used agents ([#247](https://github.com/stack-spot/portal-ai-chat-widget/issues/247)) ([bc85769](https://github.com/stack-spot/portal-ai-chat-widget/commit/bc85769b7863f4bca2202852804e4b603fca9f7b))
|
|
108
|
+
* Adds drag-and-drop and paste upload functionality ([#192](https://github.com/stack-spot/portal-ai-chat-widget/issues/192)) ([a052b9e](https://github.com/stack-spot/portal-ai-chat-widget/commit/a052b9e8108b6a0971d96596f25c6be873664980))
|
|
109
|
+
* adds some new feature configs + small css fixes for file uploads ([#176](https://github.com/stack-spot/portal-ai-chat-widget/issues/176)) ([d033d65](https://github.com/stack-spot/portal-ai-chat-widget/commit/d033d65ff37003b5f7fb2e76377ea5f712af44e1))
|
|
110
|
+
* agent as tools ([#290](https://github.com/stack-spot/portal-ai-chat-widget/issues/290)) ([0a853a4](https://github.com/stack-spot/portal-ai-chat-widget/commit/0a853a492426353b5aacb2d3ca33a4b9a054c3ea))
|
|
111
|
+
* Change knowledge_source_config to knowledge_sources_config([#274](https://github.com/stack-spot/portal-ai-chat-widget/issues/274)) ([2ce8748](https://github.com/stack-spot/portal-ai-chat-widget/commit/2ce8748d3e16d33aa11c7436dd3e463fb68abb5b))
|
|
112
|
+
* custom tools ([#222](https://github.com/stack-spot/portal-ai-chat-widget/issues/222)) ([03cab5b](https://github.com/stack-spot/portal-ai-chat-widget/commit/03cab5bcbe9b51e04dcaecfdb1a0a35a6646dc2b))
|
|
113
|
+
* Feat agent as tools dropdwon upd ([#291](https://github.com/stack-spot/portal-ai-chat-widget/issues/291)) ([50770a4](https://github.com/stack-spot/portal-ai-chat-widget/commit/50770a4c39ba3c289a926fabc1969944a8ed5475))
|
|
114
|
+
* file upload ([#174](https://github.com/stack-spot/portal-ai-chat-widget/issues/174)) ([48e665a](https://github.com/stack-spot/portal-ai-chat-widget/commit/48e665a5cb503d6f90e6cbee3ac64bc78357dca3))
|
|
115
|
+
* freemium improves ([#187](https://github.com/stack-spot/portal-ai-chat-widget/issues/187)) ([060a1c5](https://github.com/stack-spot/portal-ai-chat-widget/commit/060a1c52272c86323458aa4c79ba3e53f09fb7f0))
|
|
116
|
+
* Get QC from v2 ([#182](https://github.com/stack-spot/portal-ai-chat-widget/issues/182)) ([0c2ce48](https://github.com/stack-spot/portal-ai-chat-widget/commit/0c2ce48b7faa480dfe431acbfe083d3b1eda5a3d))
|
|
117
|
+
* layout css on content of chat ([#161](https://github.com/stack-spot/portal-ai-chat-widget/issues/161)) ([b9c90c8](https://github.com/stack-spot/portal-ai-chat-widget/commit/b9c90c87fa750d93893ca511df66f562909de2ac))
|
|
118
|
+
* support qc conditional ([#228](https://github.com/stack-spot/portal-ai-chat-widget/issues/228)) ([6c5aa8c](https://github.com/stack-spot/portal-ai-chat-widget/commit/6c5aa8cc25f22d44bb8cb40fb3e9383d60f86ccf))
|
|
119
|
+
* tools and new api agent ([f1384f2](https://github.com/stack-spot/portal-ai-chat-widget/commit/f1384f255ab091733f3a93815735641c9e8e7f18))
|
|
120
|
+
* upd layout input ([#152](https://github.com/stack-spot/portal-ai-chat-widget/issues/152)) ([c1e9574](https://github.com/stack-spot/portal-ai-chat-widget/commit/c1e95743c6d8f6f2f6b62da09c81de3c71c7ec55))
|
|
121
|
+
* updates Citric + ADP features ([#304](https://github.com/stack-spot/portal-ai-chat-widget/issues/304)) ([30f068d](https://github.com/stack-spot/portal-ai-chat-widget/commit/30f068d25f6e677241bc4ce4e92cc85910b12fe9))
|
|
122
|
+
* upgrades translation lib + auth ([#310](https://github.com/stack-spot/portal-ai-chat-widget/issues/310)) ([8bae024](https://github.com/stack-spot/portal-ai-chat-widget/commit/8bae0249e1232fb2b3cecd739a790d7e39cfaa5a))
|
|
123
|
+
* visibility filter to retrieve recently used agents ([29b8646](https://github.com/stack-spot/portal-ai-chat-widget/commit/29b86468ce6dfd1757104199faa3efe8965e7904))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
* 1745 to show custom tools on panel ([#278](https://github.com/stack-spot/portal-ai-chat-widget/issues/278)) ([fed5db7](https://github.com/stack-spot/portal-ai-chat-widget/commit/fed5db7dfc86fbdd0d8a60f958b302e552dfbbd3))
|
|
129
|
+
* 850 qc conditional next step beta release ([#252](https://github.com/stack-spot/portal-ai-chat-widget/issues/252)) ([68531b1](https://github.com/stack-spot/portal-ai-chat-widget/commit/68531b19ec8c0d0b4cde2ddc0f5f7c3ac43c31cc))
|
|
130
|
+
* 918 Copy button and Message MD validator ([#166](https://github.com/stack-spot/portal-ai-chat-widget/issues/166)) ([2120f4c](https://github.com/stack-spot/portal-ai-chat-widget/commit/2120f4c94a853568a0b22830972473047867af0b))
|
|
131
|
+
* accessibility file insert ([f0a0ea6](https://github.com/stack-spot/portal-ai-chat-widget/commit/f0a0ea68d37886f80f4183d315f8eace014a27e1))
|
|
132
|
+
* accessibility file insert ([6d4b4dc](https://github.com/stack-spot/portal-ai-chat-widget/commit/6d4b4dc1356de3d1cefba828c9bd56e5d9900bdc))
|
|
133
|
+
* accessibility file insert ([#259](https://github.com/stack-spot/portal-ai-chat-widget/issues/259)) ([b4be0c2](https://github.com/stack-spot/portal-ai-chat-widget/commit/b4be0c206a8dae042e9fc765e6c4e99981928a72))
|
|
134
|
+
* accessibility image insert beta ([#257](https://github.com/stack-spot/portal-ai-chat-widget/issues/257)) ([1dc25ce](https://github.com/stack-spot/portal-ai-chat-widget/commit/1dc25ce29110b743f84c88729651081bd0c8eb9e))
|
|
135
|
+
* acessibility upload file ([#286](https://github.com/stack-spot/portal-ai-chat-widget/issues/286)) ([91a8447](https://github.com/stack-spot/portal-ai-chat-widget/commit/91a8447867be3d7556675f1bdd8b18184fd6c47b))
|
|
136
|
+
* adaptive-text-area-max-height' into beta-release ([c973d7e](https://github.com/stack-spot/portal-ai-chat-widget/commit/c973d7ee1dc3f223e70e0a241aae50f228c0aabe))
|
|
137
|
+
* add csv in array languages and fix language undefined ([5f3a0ab](https://github.com/stack-spot/portal-ai-chat-widget/commit/5f3a0ab6d9a37cf1ce775937c76d5949a3bf05a6))
|
|
138
|
+
* add docx TIFF/TIF and BMP to upload ([#302](https://github.com/stack-spot/portal-ai-chat-widget/issues/302)) ([aefe654](https://github.com/stack-spot/portal-ai-chat-widget/commit/aefe6543230283367c752f9d53382abb11d54e7f))
|
|
139
|
+
* add id on button of add for content ([#154](https://github.com/stack-spot/portal-ai-chat-widget/issues/154)) ([e4b09d5](https://github.com/stack-spot/portal-ai-chat-widget/commit/e4b09d562986bb4640e7f3de2252457daf267bd3))
|
|
140
|
+
* Adds attributes to AdaptiveTextArea and updates SelectorBox prop naming ([#194](https://github.com/stack-spot/portal-ai-chat-widget/issues/194)) ([ac34d4b](https://github.com/stack-spot/portal-ai-chat-widget/commit/ac34d4b4c11dcdca74ca1f6111a443282901fe01))
|
|
141
|
+
* Adds prompt length validation to message input ([#215](https://github.com/stack-spot/portal-ai-chat-widget/issues/215)) ([cd752f1](https://github.com/stack-spot/portal-ai-chat-widget/commit/cd752f1d569072e0396322ae947a0ae413e01807))
|
|
142
|
+
* adjusts file size error ([#231](https://github.com/stack-spot/portal-ai-chat-widget/issues/231)) ([f977294](https://github.com/stack-spot/portal-ai-chat-widget/commit/f97729409d0330c128da5763959377f63fa6c7f6))
|
|
143
|
+
* adjusts file size error (beta - release) ([#232](https://github.com/stack-spot/portal-ai-chat-widget/issues/232)) ([0cda5b8](https://github.com/stack-spot/portal-ai-chat-widget/commit/0cda5b8df804eed6a3bb160106953befb9a7d9cd))
|
|
144
|
+
* agent as tools dropdown upd | beta-release ([#293](https://github.com/stack-spot/portal-ai-chat-widget/issues/293)) ([32428da](https://github.com/stack-spot/portal-ai-chat-widget/commit/32428da7c7384463ff796a776ecc4852da1a422a))
|
|
145
|
+
* agent chat history ([#242](https://github.com/stack-spot/portal-ai-chat-widget/issues/242)) ([c1ed38b](https://github.com/stack-spot/portal-ai-chat-widget/commit/c1ed38b64e064a53c0b0394b96ba5e3f6d11f3f2))
|
|
146
|
+
* agent create chat view adjusts ([#263](https://github.com/stack-spot/portal-ai-chat-widget/issues/263)) ([433a45a](https://github.com/stack-spot/portal-ai-chat-widget/commit/433a45a2e83e40194f6baf5a5b309212fe2d51bc))
|
|
147
|
+
* calc max height ([#199](https://github.com/stack-spot/portal-ai-chat-widget/issues/199)) ([82d8e02](https://github.com/stack-spot/portal-ai-chat-widget/commit/82d8e0259278063204628c7aeac365777c6a94e0))
|
|
148
|
+
* calc max height ([#200](https://github.com/stack-spot/portal-ai-chat-widget/issues/200)) ([01d69c0](https://github.com/stack-spot/portal-ai-chat-widget/commit/01d69c04848db47e55b368b1e27a27b4ad24e8a3))
|
|
149
|
+
* conflicts branch with beta-relise ([e100471](https://github.com/stack-spot/portal-ai-chat-widget/commit/e100471ec084f3ed585316068844e385b9062844))
|
|
150
|
+
* copy to clipboard fallback ([#170](https://github.com/stack-spot/portal-ai-chat-widget/issues/170)) ([19b3b10](https://github.com/stack-spot/portal-ai-chat-widget/commit/19b3b1028a00358313eb260c68e65230c8866c3c))
|
|
151
|
+
* execute qc on chat ([#148](https://github.com/stack-spot/portal-ai-chat-widget/issues/148)) ([02c0e62](https://github.com/stack-spot/portal-ai-chat-widget/commit/02c0e62d942d30dd04b1f9a2755f9dfe01e2990f))
|
|
152
|
+
* fix count executions ([#271](https://github.com/stack-spot/portal-ai-chat-widget/issues/271)) ([47931dd](https://github.com/stack-spot/portal-ai-chat-widget/commit/47931dd911fa1f81775755abc0e6ed6ec9849eb8))
|
|
153
|
+
* fix QC recursively ([#269](https://github.com/stack-spot/portal-ai-chat-widget/issues/269)) ([d4f8820](https://github.com/stack-spot/portal-ai-chat-widget/commit/d4f8820ffd479f1987748f69a459d446ce99a1a8))
|
|
154
|
+
* Fix text ([#189](https://github.com/stack-spot/portal-ai-chat-widget/issues/189)) ([f201b57](https://github.com/stack-spot/portal-ai-chat-widget/commit/f201b57f0a38f854af3b6afd3373a53a94bf987b))
|
|
155
|
+
* Fix typo ([#275](https://github.com/stack-spot/portal-ai-chat-widget/issues/275)) ([027df85](https://github.com/stack-spot/portal-ai-chat-widget/commit/027df857d68606b3fe53a9a4835feefab58b1ba6))
|
|
156
|
+
* Inconsistent dates at midnight turnover ([#289](https://github.com/stack-spot/portal-ai-chat-widget/issues/289)) ([1cfd845](https://github.com/stack-spot/portal-ai-chat-widget/commit/1cfd845f0517c9f740fbe7eae7d9c1aa32c6853b))
|
|
157
|
+
* layout for messages without space ([#157](https://github.com/stack-spot/portal-ai-chat-widget/issues/157)) ([071bf1b](https://github.com/stack-spot/portal-ai-chat-widget/commit/071bf1baf4e1a43b27c520537c0d629d24bfbed8))
|
|
158
|
+
* lets pdf files be upload ([#183](https://github.com/stack-spot/portal-ai-chat-widget/issues/183)) ([d422d88](https://github.com/stack-spot/portal-ai-chat-widget/commit/d422d887d6745f2b9c1564c00b70dc6e83010209))
|
|
159
|
+
* maximum height of the text-area ([#217](https://github.com/stack-spot/portal-ai-chat-widget/issues/217)) ([0f8ba52](https://github.com/stack-spot/portal-ai-chat-widget/commit/0f8ba52716488bb1b19f0bc035ecd0aa1da61e50))
|
|
160
|
+
* merge branch accessibility chat ([cfe99b4](https://github.com/stack-spot/portal-ai-chat-widget/commit/cfe99b40f23754bed2a294ded2d2edeea4e45615))
|
|
161
|
+
* message buttons low res ([#211](https://github.com/stack-spot/portal-ai-chat-widget/issues/211)) ([345134f](https://github.com/stack-spot/portal-ai-chat-widget/commit/345134f37e64f8cdd780d7290b38c6754c99e9bc))
|
|
162
|
+
* prevent useless double click in message menu ([#178](https://github.com/stack-spot/portal-ai-chat-widget/issues/178)) ([9ba7099](https://github.com/stack-spot/portal-ai-chat-widget/commit/9ba7099c8463ed07bbcaed975b499226503263d4))
|
|
163
|
+
* removes some upload types ([#180](https://github.com/stack-spot/portal-ai-chat-widget/issues/180)) ([7d31860](https://github.com/stack-spot/portal-ai-chat-widget/commit/7d318601ca7e40d855e2bd406dd7071886506cd9))
|
|
164
|
+
* send button adjusts ([#195](https://github.com/stack-spot/portal-ai-chat-widget/issues/195)) ([a31fc1f](https://github.com/stack-spot/portal-ai-chat-widget/commit/a31fc1ff33c5ed511aa890fda856adc84e2e840b))
|
|
165
|
+
* set language to undefined if panel is closed ([#162](https://github.com/stack-spot/portal-ai-chat-widget/issues/162)) ([5ae54d5](https://github.com/stack-spot/portal-ai-chat-widget/commit/5ae54d54937b4562a03201c5943721e37ffaa21d))
|
|
166
|
+
* show ks ([#237](https://github.com/stack-spot/portal-ai-chat-widget/issues/237)) ([b6c68cd](https://github.com/stack-spot/portal-ai-chat-widget/commit/b6c68cd0c58857f0aa822ad44c987a6ed50a7795))
|
|
167
|
+
* small styling issues ([#168](https://github.com/stack-spot/portal-ai-chat-widget/issues/168)) ([2a2ee42](https://github.com/stack-spot/portal-ai-chat-widget/commit/2a2ee428bf5d6b4fb1964ae35852dfc4d2e18f69))
|
|
168
|
+
* spacing chat messages ([#164](https://github.com/stack-spot/portal-ai-chat-widget/issues/164)) ([18c82fd](https://github.com/stack-spot/portal-ai-chat-widget/commit/18c82fd724bf16a9caaaa2c8636f6c524e324caa))
|
|
169
|
+
* update ([26feb55](https://github.com/stack-spot/portal-ai-chat-widget/commit/26feb552d3a9acd0e82192cd253a62d33051f7b6))
|
|
170
|
+
* update ([#219](https://github.com/stack-spot/portal-ai-chat-widget/issues/219)) ([cb45644](https://github.com/stack-spot/portal-ai-chat-widget/commit/cb456444f6f1e604c4c6247e631d256d755e82b0))
|
|
171
|
+
* update network lib ([#245](https://github.com/stack-spot/portal-ai-chat-widget/issues/245)) ([8341240](https://github.com/stack-spot/portal-ai-chat-widget/commit/83412402296f22e8fb61c6079f13cf94066ae886))
|
|
172
|
+
* Update release ([#203](https://github.com/stack-spot/portal-ai-chat-widget/issues/203)) ([5cb758e](https://github.com/stack-spot/portal-ai-chat-widget/commit/5cb758e1832ff41485300d08f6e306917d80e142))
|
|
173
|
+
* update text ([#185](https://github.com/stack-spot/portal-ai-chat-widget/issues/185)) ([58c03d3](https://github.com/stack-spot/portal-ai-chat-widget/commit/58c03d36e4bec75cbdb721202e8fed694499a7be))
|
|
174
|
+
|
|
3
175
|
## [2.0.0](https://github.com/stack-spot/portal-ai-chat-widget/compare/ai-chat-widget@v1.36.4...ai-chat-widget@v2.0.0) (2025-09-17)
|
|
4
176
|
|
|
5
177
|
|
package/dist/app-metadata.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stack-spot/ai-chat-widget",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"date": "
|
|
3
|
+
"version": "2.0.1-beta.1",
|
|
4
|
+
"date": "Mon Oct 06 2025 16:16:08 GMT-0300 (Horário Padrão de Brasília)",
|
|
5
5
|
"dependencies": [
|
|
6
6
|
{
|
|
7
7
|
"name": "@stack-spot/app-metadata",
|
|
@@ -109,19 +109,19 @@
|
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"name": "@stack-spot/citric-icons",
|
|
112
|
-
"version": "0.2.
|
|
112
|
+
"version": "0.2.3"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "@stack-spot/citric-react",
|
|
116
|
-
"version": "0.
|
|
116
|
+
"version": "0.36.0(@stack-spot/citric-icons@0.2.3)(@stack-spot/portal-theme@1.2.1(@citric/core@6.4.0(lodash@4.17.21)(react@18.2.0)(styled-components@6.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(styled-components@6.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)))(@stack-spot/portal-translate@2.1.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(lodash@4.17.21)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"name": "@stack-spot/portal-components",
|
|
120
|
-
"version": "2.
|
|
120
|
+
"version": "2.26.0(@citric/core@6.4.0(lodash@4.17.21)(react@18.2.0)(styled-components@6.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)))(@citric/icons@5.13.0(react@18.2.0))(@citric/ui@6.10.2(@citric/core@6.4.0(lodash@4.17.21)(react@18.2.0)(styled-components@6.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)))(@citric/icons@5.13.0(react@18.2.0))(lodash@4.17.21)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(styled-components@6.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)))(@stack-spot/portal-theme@1.2.1(@citric/core@6.4.0(lodash@4.17.21)(react@18.2.0)(styled-components@6.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(styled-components@6.1.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0)))(@stack-spot/portal-translate@2.1.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react@18.3.11)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"name": "@stack-spot/portal-network",
|
|
124
|
-
"version": "0.
|
|
124
|
+
"version": "0.184.0-beta.1(@stack-spot/auth@6.1.0)(@stack-spot/opa@2.5.0(@stack-spot/auth@6.1.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@stack-spot/portal-translate@2.1.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@tanstack/react-query@5.59.16(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"name": "@stack-spot/portal-theme",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"name": "@stack-spot/portal-translate",
|
|
132
|
-
"version": "
|
|
132
|
+
"version": "2.1.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"name": "@xyflow/react",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-message.d.ts","sourceRoot":"","sources":["../../src/chat-interceptors/send-message.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAkC,MAAM,oBAAoB,CAAA;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"send-message.d.ts","sourceRoot":"","sources":["../../src/chat-interceptors/send-message.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAkC,MAAM,oBAAoB,CAAA;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAyC9C;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,iBAgLlG"}
|
|
@@ -3,6 +3,7 @@ import { ChatEntry } from '../state/ChatEntry.js';
|
|
|
3
3
|
import { buildConversationContext } from '../utils/chat.js';
|
|
4
4
|
import { treatHTMLInErrorMessage } from '../utils/error.js';
|
|
5
5
|
import { genericSourcesToKnowledgeSources } from '../utils/knowledge-source.js';
|
|
6
|
+
import { planningToolDictionaryHelper } from '../utils/planning-tool.js';
|
|
6
7
|
/**
|
|
7
8
|
* Transforms a chat response from the backend into a chat entry that can be added to the chat.
|
|
8
9
|
* @param response the original response.
|
|
@@ -13,7 +14,7 @@ import { genericSourcesToKnowledgeSources } from '../utils/knowledge-source.js';
|
|
|
13
14
|
* @returns the TextChatEntry to build a ChatEntry.
|
|
14
15
|
*/
|
|
15
16
|
function createEntryValueFromChatResponse(response, knowledgeSources, agent, includeDate = false) {
|
|
16
|
-
|
|
17
|
+
const entry = {
|
|
17
18
|
agentType: 'bot',
|
|
18
19
|
type: 'md',
|
|
19
20
|
content: response.answer ?? '',
|
|
@@ -24,6 +25,7 @@ function createEntryValueFromChatResponse(response, knowledgeSources, agent, inc
|
|
|
24
25
|
steps: response.steps,
|
|
25
26
|
tools: response.tools,
|
|
26
27
|
};
|
|
28
|
+
return entry;
|
|
27
29
|
}
|
|
28
30
|
function buildPrompt(content, data) {
|
|
29
31
|
if (data === undefined || data === '' || data === null)
|
|
@@ -52,6 +54,16 @@ export async function sendMessageInterceptor(entry, chat, signal) {
|
|
|
52
54
|
chat.set('label', content || entry.getValue().upload?.[0]?.name || 'Chat');
|
|
53
55
|
chat.untitled = false;
|
|
54
56
|
}
|
|
57
|
+
//Verify if the last planning in the messages has status awaiting_approval
|
|
58
|
+
const messages = chat.getMessages();
|
|
59
|
+
const lastPlanningAwaiting = messages.slice().reverse().find(item => {
|
|
60
|
+
const steps = item.getValue().steps;
|
|
61
|
+
if (steps) {
|
|
62
|
+
const hasPlanning = steps.find((step) => step.type === 'planning');
|
|
63
|
+
return hasPlanning ? hasPlanning.status === 'awaiting_approval' : false;
|
|
64
|
+
}
|
|
65
|
+
return false;
|
|
66
|
+
});
|
|
55
67
|
const stream = aiClient.sendChatMessage({ context, user_prompt: buildPrompt(content, data) });
|
|
56
68
|
signal.addEventListener('abort', () => stream.cancel());
|
|
57
69
|
const botEntry = ChatEntry.createStreamedBotEntry();
|
|
@@ -60,10 +72,96 @@ export async function sendMessageInterceptor(entry, chat, signal) {
|
|
|
60
72
|
chat.pushMessage(botEntry);
|
|
61
73
|
}
|
|
62
74
|
let knowledgeSources;
|
|
75
|
+
const updatePlanningMessage = () => {
|
|
76
|
+
if (lastPlanningAwaiting) {
|
|
77
|
+
const originalItem = messages.find((message) => message.id === lastPlanningAwaiting.id);
|
|
78
|
+
const originalItemValue = originalItem?.getValue();
|
|
79
|
+
originalItemValue?.steps?.map((step) => {
|
|
80
|
+
if (step.type === 'planning' && step.status === 'awaiting_approval') {
|
|
81
|
+
step.status = 'success';
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
originalItem?.setValue({ ...originalItemValue });
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const updateToolStatus = (agentInfo) => {
|
|
88
|
+
const executionId = agentInfo.id;
|
|
89
|
+
if (executionId) {
|
|
90
|
+
//Update message with type step which contains the planning steps
|
|
91
|
+
const messageId = planningToolDictionaryHelper.getMessageIdPlanningStepFromToolExecutionId(executionId);
|
|
92
|
+
const originalItem = messages.find((message) => `${message.id}` === messageId);
|
|
93
|
+
const originalItemValue = originalItem?.getValue();
|
|
94
|
+
let update = false;
|
|
95
|
+
const status = agentInfo.action === 'start' ? 'running' : 'success';
|
|
96
|
+
const step = originalItemValue?.steps?.find(step => step.type === 'step' && step.attempts?.[0].tools?.[0].executionId === executionId);
|
|
97
|
+
if (step && step.status !== status) {
|
|
98
|
+
step.status = status;
|
|
99
|
+
update = true;
|
|
100
|
+
}
|
|
101
|
+
if (update) {
|
|
102
|
+
originalItem?.setValue({ ...originalItemValue });
|
|
103
|
+
}
|
|
104
|
+
//Updates message with type tool which contains the actually tool steps
|
|
105
|
+
//We only want to show tools banner when they are awaiting_approval, by removing the step
|
|
106
|
+
// we avoid the entire bot message to be visible
|
|
107
|
+
const toolMessageId = planningToolDictionaryHelper.getMessageIdToolStepFromToolExecutionId(executionId);
|
|
108
|
+
const toolOriginalItem = messages.find((message) => `${message.id}` === toolMessageId);
|
|
109
|
+
const toolOriginalItemValue = toolOriginalItem?.getValue();
|
|
110
|
+
const toolStep = toolOriginalItemValue?.steps?.find(step => step.type === 'tool' && step.attempts?.[0].tools?.[0].executionId === executionId);
|
|
111
|
+
update = false;
|
|
112
|
+
if (toolOriginalItemValue && toolStep && toolStep.status !== status) {
|
|
113
|
+
toolOriginalItemValue.steps = undefined;
|
|
114
|
+
update = true;
|
|
115
|
+
}
|
|
116
|
+
if (update) {
|
|
117
|
+
toolOriginalItem?.setValue({ ...toolOriginalItemValue });
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
63
121
|
stream.onChange(value => {
|
|
122
|
+
if (value.agent_info?.type === 'planning') {
|
|
123
|
+
if (value.agent_info.action === 'start') {
|
|
124
|
+
chat.set('isPlaning', true);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
chat.set('isPlaning', false);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
64
130
|
if (value.sources?.length !== knowledgeSources?.length && chat.get('features').showSourcesInResponse) {
|
|
65
131
|
knowledgeSources = genericSourcesToKnowledgeSources(value.sources);
|
|
66
132
|
}
|
|
133
|
+
// When there is a planning with status awaiting_approval and we receive a new one
|
|
134
|
+
// we do not not want to add it again.
|
|
135
|
+
if (lastPlanningAwaiting && value.steps) {
|
|
136
|
+
const hasPlanningAwaiting = value.steps.find((item) => item.type === 'planning' && item.status === 'awaiting_approval');
|
|
137
|
+
value.steps = value.steps?.filter(step => {
|
|
138
|
+
if (step.type === 'planning') {
|
|
139
|
+
updatePlanningMessage();
|
|
140
|
+
}
|
|
141
|
+
return hasPlanningAwaiting ? true : (step.type !== 'planning' && step.type !== 'step' &&
|
|
142
|
+
(step.type !== 'answer' || (step.type === 'answer' && step.status === 'pending')));
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
if (value.agent_info?.type === 'tool' && value.agent_info?.action !== 'awaiting_approval') {
|
|
146
|
+
updateToolStatus(value.agent_info);
|
|
147
|
+
}
|
|
148
|
+
if (value.steps) {
|
|
149
|
+
const tool = value.steps.find((item) => item.type === 'tool');
|
|
150
|
+
if (tool && tool.status === 'running') {
|
|
151
|
+
const messageId = planningToolDictionaryHelper.getMessageIdPlanningStepFromToolExecutionId(tool.id);
|
|
152
|
+
const originalItem = messages.find((message) => `${message.id}` === messageId);
|
|
153
|
+
const originalItemValue = originalItem?.getValue();
|
|
154
|
+
let update = false;
|
|
155
|
+
const step = originalItemValue?.steps?.find(step => step.type === 'step');
|
|
156
|
+
if (step && step.attempts?.[0].tools?.[0].executionId === tool.id) {
|
|
157
|
+
step.attempts = JSON.parse(JSON.stringify(tool.attempts));
|
|
158
|
+
update = true;
|
|
159
|
+
}
|
|
160
|
+
if (update) {
|
|
161
|
+
originalItem?.setValue({ ...originalItemValue });
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
67
165
|
botEntry.setValue(createEntryValueFromChatResponse(value, knowledgeSources, chat.get('agent')));
|
|
68
166
|
});
|
|
69
167
|
let finalValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-message.js","sourceRoot":"","sources":["../../src/chat-interceptors/send-message.ts"],"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AC,CAAA;gBAClE,CAAC;YACH,CAAC;YACD,6CAA6C;YAC7C,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,CAAA;QAC7B,CAAC;IACH,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA;AAC9B,CAAC"}
|
|
@@ -191,7 +191,7 @@ export declare class ChatEntry {
|
|
|
191
191
|
* @param hiddenContent the message's content.
|
|
192
192
|
* @returns a new ChatEntry.
|
|
193
193
|
*/
|
|
194
|
-
static createUserEntry(content: string, isMd?: boolean, fieldName?: string, hiddenContent?: string[]): ChatEntry;
|
|
194
|
+
static createUserEntry(content: string, isMd?: boolean, fieldName?: string, hiddenContent?: string[], data?: any): ChatEntry;
|
|
195
195
|
/**
|
|
196
196
|
* Utility function to create a streamed entry from the AI agent.
|
|
197
197
|
* @returns a new ChatEntry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatEntry.d.ts","sourceRoot":"","sources":["../../src/state/ChatEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE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
static createUserEntry(content, isMd = false, fieldName, hiddenContent) {
|
|
26
|
+
static createUserEntry(content, isMd = false, fieldName, hiddenContent, data) {
|
|
27
27
|
return new ChatEntry({
|
|
28
28
|
agentType: 'user',
|
|
29
29
|
type: isMd ? 'md' : 'text',
|
|
30
30
|
content,
|
|
31
31
|
name: fieldName,
|
|
32
32
|
hiddenContent,
|
|
33
|
+
data,
|
|
33
34
|
updated: new Date().toISOString(),
|
|
34
35
|
});
|
|
35
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatEntry.js","sourceRoot":"","sources":["../../src/state/ChatEntry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAkL7B,0IAA0I;AAC1I,6CAA6C;AAC7C,IAAI,MAAM,GAAG,CAAC,CAAA;AAEd;;GAEG;AACH,MAAM,OAAO,SAAS;IACX,EAAE,CAAQ;IACX,KAAK,CAAe;IACpB,SAAS,GAAwB,EAAE,CAAA;IAE3C;;OAEG;IACH,YAAY,KAAoB;QAC9B,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,OAAe,EAAE,IAAI,GAAG,KAAK,EAAE,SAAkB,EAAE,aAAwB;
|
|
1
|
+
{"version":3,"file":"ChatEntry.js","sourceRoot":"","sources":["../../src/state/ChatEntry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAkL7B,0IAA0I;AAC1I,6CAA6C;AAC7C,IAAI,MAAM,GAAG,CAAC,CAAA;AAEd;;GAEG;AACH,MAAM,OAAO,SAAS;IACX,EAAE,CAAQ;IACX,KAAK,CAAe;IACpB,SAAS,GAAwB,EAAE,CAAA;IAE3C;;OAEG;IACH,YAAY,KAAoB;QAC9B,IAAI,CAAC,EAAE,GA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olean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether or not the chat is planning.
|
|
33
|
+
*/
|
|
34
|
+
isPlaning?: boolean;
|
|
31
35
|
/**
|
|
32
36
|
* The value of the next message. This is the value of the text typed in the textarea below the chat.
|
|
33
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatState.d.ts","sourceRoot":"","sources":["../../src/state/ChatState.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAA2B,MAAM,aAAa,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE/C,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,cAAe,SAAQ,kCAAkC;IACxE;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,KAAK,oBAAoB,GAAG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CAAC,KAAK,EAAE,MAAM;CAUhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatState.js","sourceRoot":"","sources":["../../src/state/ChatState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAgB,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAE7D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"ChatState.js","sourceRoot":"","sources":["../../src/state/ChatState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAgB,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAE7D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AA6GnD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,eAA+B;IACnD,EAAE,CAAQ;IACX,OAAO,CAAa;IACpB,iBAAiB,GAA2B,EAAE,CAAA;IACrC,YAAY,CAAsB;IACnD;;OAEG;IACH,iBAAiB,GAAG,IAAI,GAAG,EAAe,CAAA;IAC1C;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EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE;YACjC,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC,CAAA;QACF,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAA;QAClC,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QACnB,OAAO,OAAO,CAAA;IAChB,CAAC;CACF"}
|
package/dist/utils/date.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Language } from '@stack-spot/portal-translate';
|
|
2
1
|
/**
|
|
3
2
|
* Formats a date to show at the footer of a chat message.
|
|
4
3
|
*
|
|
@@ -10,7 +9,7 @@ import { Language } from '@stack-spot/portal-translate';
|
|
|
10
9
|
* @param language the language to use.
|
|
11
10
|
* @returns the formatted date.
|
|
12
11
|
*/
|
|
13
|
-
export declare function formatDateForChatMessage(date: Date, language?:
|
|
12
|
+
export declare function formatDateForChatMessage(date: Date, language?: "pt" | "en"): string;
|
|
14
13
|
/**
|
|
15
14
|
* Uses the current language to format dates.
|
|
16
15
|
* @returns an object containing functions for formatting dates.
|
package/dist/utils/date.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,cAAoB,UAUhF;AAED;;;GAGG;AACH,wBAAgB,gBAAgB;IAG5B;;;OAGG;iCAC0B,IAAI;EAEpC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,QAE5D"}
|
package/dist/utils/date.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getLanguage, useLanguage } from '@stack-spot/portal-translate';
|
|
1
|
+
import { getLanguage, ptEn, useLanguage } from '@stack-spot/portal-translate';
|
|
2
2
|
const OneDay = 24 * 60 * 60 * 1000;
|
|
3
3
|
const timeFormatOptions = { hour: '2-digit', minute: '2-digit' };
|
|
4
4
|
const fullFormatOptions = {
|
|
@@ -17,7 +17,7 @@ const fullFormatOptions = {
|
|
|
17
17
|
* @param language the language to use.
|
|
18
18
|
* @returns the formatted date.
|
|
19
19
|
*/
|
|
20
|
-
export function formatDateForChatMessage(date, language = getLanguage()) {
|
|
20
|
+
export function formatDateForChatMessage(date, language = getLanguage(ptEn)) {
|
|
21
21
|
const formatted = [];
|
|
22
22
|
const now = new Date();
|
|
23
23
|
const isToday = date.toDateString() === now.toDateString();
|
|
@@ -35,7 +35,7 @@ export function formatDateForChatMessage(date, language = getLanguage()) {
|
|
|
35
35
|
* @returns an object containing functions for formatting dates.
|
|
36
36
|
*/
|
|
37
37
|
export function useDateFormatter() {
|
|
38
|
-
const language = useLanguage();
|
|
38
|
+
const language = useLanguage(ptEn);
|
|
39
39
|
return {
|
|
40
40
|
/**
|
|
41
41
|
* @param date the date to format using {@link formatDateForChatMessage}.
|
package/dist/utils/date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEzF,MAAM,MAAM,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAClC,MAAM,iBAAiB,GAA+B,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAC,SAAS,EAAE,CAAA;AAC3F,MAAM,iBAAiB,GAA+B;IACpD,GAAG,iBAAiB;IACpB,GAAG,EAAE,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