@red-hat-developer-hub/backstage-plugin-intelligent-assistant 4.1.0 → 4.2.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.
- package/CHANGELOG.md +13 -0
- package/README.md +23 -0
- package/config.schema.json +117 -0
- package/dist/api/NotebooksApiClient.esm.js +3 -2
- package/dist/api/NotebooksApiClient.esm.js.map +1 -1
- package/dist/api/notebooksApi.esm.js.map +1 -1
- package/dist/components/LightSpeedChat.esm.js +280 -118
- package/dist/components/LightSpeedChat.esm.js.map +1 -1
- package/dist/components/LightspeedDrawerContext.esm.js.map +1 -1
- package/dist/components/LightspeedDrawerProvider.esm.js +5 -4
- package/dist/components/LightspeedDrawerProvider.esm.js.map +1 -1
- package/dist/components/ToastAlertGroup.esm.js +56 -0
- package/dist/components/ToastAlertGroup.esm.js.map +1 -0
- package/dist/components/notebooks/AddDocumentModal.esm.js +165 -144
- package/dist/components/notebooks/AddDocumentModal.esm.js.map +1 -1
- package/dist/components/notebooks/DeleteDocumentModal.esm.js +73 -38
- package/dist/components/notebooks/DeleteDocumentModal.esm.js.map +1 -1
- package/dist/components/notebooks/DeleteNotebookModal.esm.js +80 -40
- package/dist/components/notebooks/DeleteNotebookModal.esm.js.map +1 -1
- package/dist/components/notebooks/NotebookHeaderActions.esm.js +78 -0
- package/dist/components/notebooks/NotebookHeaderActions.esm.js.map +1 -0
- package/dist/components/notebooks/NotebookStreamProvider.esm.js +47 -0
- package/dist/components/notebooks/NotebookStreamProvider.esm.js.map +1 -0
- package/dist/components/notebooks/NotebookView.esm.js +284 -349
- package/dist/components/notebooks/NotebookView.esm.js.map +1 -1
- package/dist/components/notebooks/NotebooksTab.esm.js +2 -2
- package/dist/components/notebooks/NotebooksTab.esm.js.map +1 -1
- package/dist/components/notebooks/OverwriteConfirmModal.esm.js +126 -82
- package/dist/components/notebooks/OverwriteConfirmModal.esm.js.map +1 -1
- package/dist/components/notebooks/SidebarCollapseIcon.esm.js +8 -6
- package/dist/components/notebooks/SidebarCollapseIcon.esm.js.map +1 -1
- package/dist/components/notebooks/UploadResourceScreen.esm.js +1 -0
- package/dist/components/notebooks/UploadResourceScreen.esm.js.map +1 -1
- package/dist/components/notebooks/notebookDialogStyles.esm.js +40 -0
- package/dist/components/notebooks/notebookDialogStyles.esm.js.map +1 -0
- package/dist/components/notebooks/notebookStreamStore.esm.js +282 -0
- package/dist/components/notebooks/notebookStreamStore.esm.js.map +1 -0
- package/dist/hooks/notebooks/useCreateNotebookMessage.esm.js +3 -2
- package/dist/hooks/notebooks/useCreateNotebookMessage.esm.js.map +1 -1
- package/dist/hooks/useConversationMessages.esm.js +31 -108
- package/dist/hooks/useConversationMessages.esm.js.map +1 -1
- package/dist/hooks/useLightspeedProviderState.esm.js +14 -5
- package/dist/hooks/useLightspeedProviderState.esm.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/dom-extractor.esm.js +816 -0
- package/dist/utils/dom-extractor.esm.js.map +1 -0
- package/dist/utils/dom-selectors.esm.js +91 -0
- package/dist/utils/dom-selectors.esm.js.map +1 -0
- package/dist/utils/scoped-dialog-utils.esm.js +35 -0
- package/dist/utils/scoped-dialog-utils.esm.js.map +1 -0
- package/dist/utils/sensitive-data-redactor.esm.js +66 -0
- package/dist/utils/sensitive-data-redactor.esm.js.map +1 -0
- package/dist/utils/stream-event-helpers.esm.js +105 -0
- package/dist/utils/stream-event-helpers.esm.js.map +1 -0
- package/package.json +14 -14
- package/config.d.ts +0 -99
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@red-hat-developer-hub/backstage-plugin-intelligent-assistant",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"main": "./dist/index.esm.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
"prettier:fix": "prettier --ignore-unknown --write ."
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@backstage/core-components": "^0.18.
|
|
101
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
102
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
103
|
-
"@backstage/plugin-app-react": "^0.2.
|
|
104
|
-
"@backstage/plugin-permission-react": "^0.5.
|
|
100
|
+
"@backstage/core-components": "^0.18.13",
|
|
101
|
+
"@backstage/core-plugin-api": "^1.12.9",
|
|
102
|
+
"@backstage/frontend-plugin-api": "^0.18.0",
|
|
103
|
+
"@backstage/plugin-app-react": "^0.2.6",
|
|
104
|
+
"@backstage/plugin-permission-react": "^0.5.4",
|
|
105
105
|
"@backstage/theme": "^0.7.3",
|
|
106
106
|
"@material-ui/core": "^4.9.13",
|
|
107
107
|
"@monaco-editor/react": "^4.7.0",
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"@patternfly/react-core": "6.6.0",
|
|
113
113
|
"@patternfly/react-icons": "^6.5.0",
|
|
114
114
|
"@patternfly/react-table": "^6.4.1",
|
|
115
|
-
"@red-hat-developer-hub/backstage-plugin-app-react": "^
|
|
116
|
-
"@red-hat-developer-hub/backstage-plugin-intelligent-assistant-common": "^4.
|
|
115
|
+
"@red-hat-developer-hub/backstage-plugin-app-react": "^1.0.0",
|
|
116
|
+
"@red-hat-developer-hub/backstage-plugin-intelligent-assistant-common": "^4.2.0",
|
|
117
117
|
"@red-hat-developer-hub/backstage-plugin-theme": "^0.14.10",
|
|
118
118
|
"@tanstack/react-query": "^5.59.15",
|
|
119
119
|
"html2canvas-pro": "^1.5.0",
|
|
@@ -126,10 +126,10 @@
|
|
|
126
126
|
"react-router-dom": "^6.0.0"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
|
-
"@backstage/cli": "^0.36.
|
|
130
|
-
"@backstage/core-app-api": "^1.20.
|
|
131
|
-
"@backstage/dev-utils": "^1.1.
|
|
132
|
-
"@backstage/test-utils": "^1.7.
|
|
129
|
+
"@backstage/cli": "^0.36.5",
|
|
130
|
+
"@backstage/core-app-api": "^1.20.4",
|
|
131
|
+
"@backstage/dev-utils": "^1.1.26",
|
|
132
|
+
"@backstage/test-utils": "^1.7.21",
|
|
133
133
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
134
134
|
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
|
|
135
135
|
"@spotify/prettier-config": "^15.0.0",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
},
|
|
145
145
|
"files": [
|
|
146
146
|
"dist",
|
|
147
|
-
"config.
|
|
147
|
+
"config.schema.json",
|
|
148
148
|
"dist-scalprum",
|
|
149
149
|
"app-config.yaml"
|
|
150
150
|
],
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"IntelligentAssistantTranslationsModule": "./src/lightspeedTranslationsModuleExport.ts"
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
|
-
"configSchema": "config.
|
|
161
|
+
"configSchema": "config.schema.json",
|
|
162
162
|
"repository": {
|
|
163
163
|
"type": "git",
|
|
164
164
|
"url": "git+https://github.com/redhat-developer/rhdh-plugins.git",
|
package/config.d.ts
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export interface Config {
|
|
18
|
-
/**
|
|
19
|
-
* Configuration required for using intelligent-assistant
|
|
20
|
-
* @visibility frontend
|
|
21
|
-
*/
|
|
22
|
-
'intelligent-assistant'?: {
|
|
23
|
-
prompts?: Array<
|
|
24
|
-
/**
|
|
25
|
-
* @visibility frontend
|
|
26
|
-
*/
|
|
27
|
-
{
|
|
28
|
-
/**
|
|
29
|
-
* The title of the prompt.
|
|
30
|
-
* Displayed as the heading of the prompt.
|
|
31
|
-
* @visibility frontend
|
|
32
|
-
*/
|
|
33
|
-
title: string;
|
|
34
|
-
/**
|
|
35
|
-
* The main question or message shown in the prompt.
|
|
36
|
-
* @visibility frontend
|
|
37
|
-
*/
|
|
38
|
-
message: string;
|
|
39
|
-
}
|
|
40
|
-
>;
|
|
41
|
-
/**
|
|
42
|
-
* Configuration for AI Notebooks
|
|
43
|
-
* @visibility frontend
|
|
44
|
-
*/
|
|
45
|
-
notebooks?: {
|
|
46
|
-
/**
|
|
47
|
-
* Enable/disable AI Notebooks feature
|
|
48
|
-
* When enabled, exposes AI Notebooks REST API endpoints for document-based conversations with RAG.
|
|
49
|
-
* Requires Lightspeed service to be running (default: http://0.0.0.0:8080).
|
|
50
|
-
* @default false
|
|
51
|
-
* @visibility frontend
|
|
52
|
-
*/
|
|
53
|
-
enabled: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Query configuration for notebooks
|
|
56
|
-
* @visibility frontend
|
|
57
|
-
*/
|
|
58
|
-
queryDefaults?: {
|
|
59
|
-
/**
|
|
60
|
-
* Model to use for answering queries
|
|
61
|
-
* @visibility frontend
|
|
62
|
-
*/
|
|
63
|
-
model: string;
|
|
64
|
-
/**
|
|
65
|
-
* AI provider for the query model
|
|
66
|
-
* @visibility frontend
|
|
67
|
-
*/
|
|
68
|
-
provider_id: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Configuration for Screen Context (deep context awareness)
|
|
73
|
-
* @visibility frontend
|
|
74
|
-
*/
|
|
75
|
-
'screen-context'?: {
|
|
76
|
-
/**
|
|
77
|
-
* Enable/disable the Screen Context feature.
|
|
78
|
-
* When enabled, the assistant can capture the user's current RHDH screen
|
|
79
|
-
* to provide context-aware responses.
|
|
80
|
-
* @default false
|
|
81
|
-
* @visibility frontend
|
|
82
|
-
*/
|
|
83
|
-
enabled?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Screenshot capture configuration
|
|
86
|
-
* @visibility frontend
|
|
87
|
-
*/
|
|
88
|
-
screenshots?: {
|
|
89
|
-
/**
|
|
90
|
-
* Enable/disable screenshot capture within Screen Context.
|
|
91
|
-
* Admin can disable screenshots org-wide while keeping DOM text context.
|
|
92
|
-
* @default true
|
|
93
|
-
* @visibility frontend
|
|
94
|
-
*/
|
|
95
|
-
enabled?: boolean;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
}
|