@eeacms/volto-eea-chatbot 4.1.0 → 4.1.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 +5 -1
- package/package.json +1 -1
- package/src/ChatBlock/chat/AIMessage.tsx +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [4.1.1](https://github.com/eea/volto-eea-chatbot/compare/4.1.0...4.1.1) - 14 September 2026
|
|
8
|
+
|
|
7
9
|
### [4.1.0](https://github.com/eea/volto-eea-chatbot/compare/4.0.0...4.1.0) - 31 August 2026
|
|
8
10
|
|
|
9
11
|
#### :rocket: New Features
|
|
@@ -30,7 +32,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
30
32
|
#### :hammer_and_wrench: Others
|
|
31
33
|
|
|
32
34
|
- test: update citation delta test to match restored behavior [Tiberiu Ichim - [`de9f40e`](https://github.com/eea/volto-eea-chatbot/commit/de9f40e4dfd4a69f800aaf9f1b83fdf7e197b9ab)]
|
|
33
|
-
- revert: restore original CITATION_DELTA handling in messageProcessor [Tiberiu Ichim - [`1d19fd3`](https://github.com/eea/volto-eea-chatbot/commit/1d19fd382bda782d7165d34d7edba4310ea65a25)]
|
|
34
35
|
## [4.0.0](https://github.com/eea/volto-eea-chatbot/compare/3.0.1...4.0.0) - 13 August 2026
|
|
35
36
|
|
|
36
37
|
#### :bug: Bug Fixes
|
|
@@ -87,6 +88,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
87
88
|
#### :house: Internal changes
|
|
88
89
|
|
|
89
90
|
- chore: bump version to 3.0.0 (EEA design system dependency) [skip ci] [Tiberiu Ichim - [`bc5a8c1`](https://github.com/eea/volto-eea-chatbot/commit/bc5a8c1f72d4e706b096cb96d0d24c2c3f5ac0f8)]
|
|
91
|
+
- chore: [JENKINSFILE] sanitize sonarqube command Refs #305084 [valentinab25 - [`83bf08b`](https://github.com/eea/volto-eea-chatbot/commit/83bf08b7188548a50801b8e464a4d113f0cbbac4)]
|
|
90
92
|
|
|
91
93
|
#### :house: Documentation changes
|
|
92
94
|
|
|
@@ -164,6 +166,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
164
166
|
#### :house: Internal changes
|
|
165
167
|
|
|
166
168
|
- style: Automated code fix [eea-jenkins - [`8a8c3c4`](https://github.com/eea/volto-eea-chatbot/commit/8a8c3c4172a4f669661378cf1b5a3569d85609e6)]
|
|
169
|
+
- chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`535d986`](https://github.com/eea/volto-eea-chatbot/commit/535d986b7adc77743a668bc4ac63f835eef58df3)]
|
|
167
170
|
|
|
168
171
|
#### :hammer_and_wrench: Others
|
|
169
172
|
|
|
@@ -174,6 +177,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
174
177
|
#### :house: Internal changes
|
|
175
178
|
|
|
176
179
|
- style: Automated code fix [eea-jenkins - [`fdcd884`](https://github.com/eea/volto-eea-chatbot/commit/fdcd8848fd4c3f990ca5ea021f407487aebd6010)]
|
|
180
|
+
- chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`3d428d7`](https://github.com/eea/volto-eea-chatbot/commit/3d428d72f32c3d05452b0961c76f5db1c416e05c)]
|
|
177
181
|
|
|
178
182
|
#### :hammer_and_wrench: Others
|
|
179
183
|
|
package/package.json
CHANGED
|
@@ -117,14 +117,14 @@ function mapToolDocumentsToText(message: any) {
|
|
|
117
117
|
return {};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
function getContextSources(
|
|
120
|
+
export function getContextSources(
|
|
121
121
|
message: any,
|
|
122
122
|
sources: any,
|
|
123
|
-
qualityCheckContext: any,
|
|
123
|
+
qualityCheckContext: any = 'citations',
|
|
124
124
|
) {
|
|
125
125
|
const documentIdToText = mapToolDocumentsToText(message);
|
|
126
126
|
|
|
127
|
-
return qualityCheckContext
|
|
127
|
+
return qualityCheckContext !== 'all'
|
|
128
128
|
? sources.map((doc: any) => {
|
|
129
129
|
// Prefer content from tool packets (may have enriched text),
|
|
130
130
|
// but fall back to doc.content from final_documents.
|
|
@@ -196,7 +196,7 @@ export function AIMessage({
|
|
|
196
196
|
feedbackReasons,
|
|
197
197
|
qualityCheck,
|
|
198
198
|
qualityCheckStages,
|
|
199
|
-
qualityCheckContext,
|
|
199
|
+
qualityCheckContext = 'citations',
|
|
200
200
|
qualityCheckEnabled,
|
|
201
201
|
noSupportDocumentsMessage,
|
|
202
202
|
totalFailMessage,
|