@ibiz-template-plugin/ai-chat 0.0.111 → 0.0.113
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/dist/index.es.js +8187 -6335
- package/dist/index.legacy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/chat-container/chat-container.d.ts +1 -1
- package/dist/types/components/chat-group-topics/chat-group-topics.d.ts +13 -0
- package/dist/types/components/chat-messages/use-virtual-list.d.ts +5 -0
- package/dist/types/components/chat-project/chat-project.d.ts +12 -0
- package/dist/types/components/chat-topic-item/chat-topic-item.d.ts +8 -0
- package/dist/types/components/common/lazy-tree/lazy-tree.d.ts +92 -0
- package/dist/types/constants/index.d.ts +16 -0
- package/dist/types/controller/ai-chat/ai-chat.controller.d.ts +19 -2
- package/dist/types/controller/ai-topic/ai-topic.controller.d.ts +235 -7
- package/dist/types/controller/chat/chat-base.controller.d.ts +19 -0
- package/dist/types/entity/chart-topic/chart-topic.d.ts +2 -0
- package/dist/types/icons/index.d.ts +4 -0
- package/dist/types/icons/list-checkbox-svg.d.ts +1 -0
- package/dist/types/icons/plus-svg.d.ts +1 -0
- package/dist/types/icons/solid-down-svg.d.ts +1 -0
- package/dist/types/icons/untop-svg.d.ts +1 -0
- package/dist/types/interface/i-chat-controller/i-chat-controller.d.ts +7 -0
- package/dist/types/interface/i-chat-options/i-chat-options.d.ts +19 -1
- package/dist/types/interface/i-project/i-project.d.ts +14 -0
- package/dist/types/interface/i-remote-resource/i-remote-resource.d.ts +6 -0
- package/dist/types/interface/i-resource-options/i-resource-options.d.ts +21 -0
- package/dist/types/interface/i-topic-options/i-topic-options.d.ts +112 -11
- package/dist/types/interface/index.d.ts +3 -1
- package/dist/types/locale/en/index.d.ts +24 -0
- package/dist/types/locale/zh-CN/index.d.ts +24 -0
- package/package.json +1 -1
|
@@ -1,6 +1,90 @@
|
|
|
1
1
|
import { IChat } from '../i-chat-options/i-chat-options';
|
|
2
2
|
import { IConfigService } from '../i-config-service/i-config-service';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @description 业务域数据
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IScopeItem
|
|
8
|
+
*/
|
|
9
|
+
export interface IScopeItem {
|
|
10
|
+
/**
|
|
11
|
+
* @description 值
|
|
12
|
+
* @type {(string | number)}
|
|
13
|
+
* @memberof IScopeItem
|
|
14
|
+
*/
|
|
15
|
+
id: string | number;
|
|
16
|
+
/**
|
|
17
|
+
* @description 文本
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof IScopeItem
|
|
20
|
+
*/
|
|
21
|
+
text: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 会话分组数据
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IGroup
|
|
28
|
+
*/
|
|
29
|
+
export interface IGroupItem {
|
|
30
|
+
/**
|
|
31
|
+
* @description 值
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IGroupItem
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* @description 文本
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof IGroupItem
|
|
40
|
+
*/
|
|
41
|
+
text: string;
|
|
42
|
+
/**
|
|
43
|
+
* @description 业务域标识
|
|
44
|
+
* @type {(string | number)}
|
|
45
|
+
* @memberof IGroupItem
|
|
46
|
+
*/
|
|
47
|
+
scopeid: string | number;
|
|
48
|
+
/**
|
|
49
|
+
* @description 是否折叠,缺省展开
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof IGroupItem
|
|
52
|
+
*/
|
|
53
|
+
collapsed?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 分组树节点(WORKSPACE 工作模式)
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
* @interface ITopicGroupNode
|
|
60
|
+
*/
|
|
61
|
+
export interface ITopicGroupNode {
|
|
62
|
+
/**
|
|
63
|
+
* 节点标识,'scope:<id>',无分类为 'scope:__NONE__'
|
|
64
|
+
*/
|
|
65
|
+
key: string;
|
|
66
|
+
/**
|
|
67
|
+
* 业务域标识,无分类虚拟节点为 undefined
|
|
68
|
+
*/
|
|
69
|
+
scopeid: string | number | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* 显示文本
|
|
72
|
+
*/
|
|
73
|
+
text: string;
|
|
74
|
+
/**
|
|
75
|
+
* 自定义分组子节点
|
|
76
|
+
*/
|
|
77
|
+
groups: Array<{
|
|
78
|
+
id: string;
|
|
79
|
+
text: string;
|
|
80
|
+
collapsed?: boolean;
|
|
81
|
+
topics: ITopic[];
|
|
82
|
+
}>;
|
|
83
|
+
/**
|
|
84
|
+
* 未归入自定义分组的话题
|
|
85
|
+
*/
|
|
86
|
+
ungroupedTopics: ITopic[];
|
|
87
|
+
}
|
|
4
88
|
/**
|
|
5
89
|
* 话题数据
|
|
6
90
|
*
|
|
@@ -93,6 +177,18 @@ export interface ITopic {
|
|
|
93
177
|
* 是否忽略显示,默认显示
|
|
94
178
|
*/
|
|
95
179
|
isShow?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* @description 所属业务域标识
|
|
182
|
+
* @type {(string | number)}
|
|
183
|
+
* @memberof ITopic
|
|
184
|
+
*/
|
|
185
|
+
scope?: string | number;
|
|
186
|
+
/**
|
|
187
|
+
* @description 所属自定义分组标识
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof ITopic
|
|
190
|
+
*/
|
|
191
|
+
groupid?: string;
|
|
96
192
|
/**
|
|
97
193
|
* 上下文
|
|
98
194
|
*
|
|
@@ -128,18 +224,23 @@ export interface ITopicOptions extends ITopic {
|
|
|
128
224
|
*/
|
|
129
225
|
storageMode: 'DEFAULT' | 'REMOTESESSION';
|
|
130
226
|
/**
|
|
131
|
-
*
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
* @
|
|
136
|
-
* @
|
|
137
|
-
* @
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
227
|
+
* 工作模式,默认值,会话数据以列表显示; WORKSPACE:工作区,会话数据分为域(scope)、会话分组分层显示
|
|
228
|
+
*/
|
|
229
|
+
workMode?: 'DEFAULT' | 'WORKSPACE';
|
|
230
|
+
/**
|
|
231
|
+
* @description 域列表,当工作模式为WORKSPACE时必填
|
|
232
|
+
* @type {IScopeItem[]}
|
|
233
|
+
* @memberof ITopicOptions
|
|
234
|
+
*/
|
|
235
|
+
scopeList?: IScopeItem[];
|
|
236
|
+
/**
|
|
237
|
+
* @description 删除之前提示
|
|
238
|
+
* @param {string} title
|
|
239
|
+
* @param {string} description
|
|
240
|
+
* @returns {*} {Promise<boolean>}
|
|
241
|
+
* @memberof ITopicOptions
|
|
141
242
|
*/
|
|
142
|
-
beforeDelete?(
|
|
243
|
+
beforeDelete?(title: string, description: string): Promise<boolean>;
|
|
143
244
|
/**
|
|
144
245
|
* @description 话题行为
|
|
145
246
|
* @param {string} action
|
|
@@ -3,7 +3,7 @@ export type { IChat, IChatOptions } from './i-chat-options/i-chat-options';
|
|
|
3
3
|
export type { IMessageItemProvider } from './i-message-item-provider/i-message-item-provider';
|
|
4
4
|
export type { IPortalAsyncAction } from './i-portal-async-action/i-portal-async-action';
|
|
5
5
|
export type { IChatToolbarItem } from './i-chat-toolbar-item/i-chat-toolbar-item';
|
|
6
|
-
export type { ITopic, ITopicOptions } from './i-topic-options/i-topic-options';
|
|
6
|
+
export type { ITopic, ITopicOptions, IScopeItem, IGroupItem, ITopicGroupNode, } from './i-topic-options/i-topic-options';
|
|
7
7
|
export type { IContainerOptions } from './i-container-options/i-container-options';
|
|
8
8
|
export type { IChatThink } from './i-chat-think/i-chat-think';
|
|
9
9
|
export type { IMaterial } from './i-material/i-material';
|
|
@@ -13,6 +13,7 @@ export type { IChatSuggestion } from './i-chat-suggestion/i-chat-suggestion';
|
|
|
13
13
|
export type { IChatToolCall } from './i-chat-tool-call/i-chat-tool-call';
|
|
14
14
|
export type { IAIAgent, IAIAgentConfig, IAIKnowledgeBase, } from './i-ai-agent/i-ai-agent';
|
|
15
15
|
export type { IResourceOptions } from './i-resource-options/i-resource-options';
|
|
16
|
+
export type { IConfigService } from './i-config-service/i-config-service';
|
|
16
17
|
export type { IRemoteSession, IRemoteMessage, } from './i-remote-resource/i-remote-resource';
|
|
17
18
|
export type { IChatStep } from './i-chat-step/i-chat-step';
|
|
18
19
|
export type { IChatUIAction } from './i-chat-uiaction/i-chat-uiaction';
|
|
@@ -23,4 +24,5 @@ export type { IChatController } from './i-chat-controller/i-chat-controller';
|
|
|
23
24
|
export type { IAIQuesitionItem, IAIQuesition, IAIQuesitionAnswer, } from './i-ai-quesition/i-ai-quesition';
|
|
24
25
|
export type { IExtensionOptions } from './i-extension-options/i-extension-options';
|
|
25
26
|
export type { ISpeechRecognition } from './i-speech-recognition/i-speech-recognition';
|
|
27
|
+
export type { IProject } from './i-project/i-project';
|
|
26
28
|
export * from './deep-research';
|
|
@@ -63,7 +63,9 @@ export declare const EN: {
|
|
|
63
63
|
imageContent: string;
|
|
64
64
|
more: string;
|
|
65
65
|
resetConversation: string;
|
|
66
|
+
resetTopicConfirmTip: string;
|
|
66
67
|
clearConversation: string;
|
|
68
|
+
clearTopicConfirmTip: string;
|
|
67
69
|
refresh: string;
|
|
68
70
|
delete: string;
|
|
69
71
|
backfill: string;
|
|
@@ -82,6 +84,27 @@ export declare const EN: {
|
|
|
82
84
|
searchTopics: string;
|
|
83
85
|
noTopic: string;
|
|
84
86
|
clearSession: string;
|
|
87
|
+
clearSessionConfirmTip: string;
|
|
88
|
+
clearSessionWithGroupConfirmTip: string;
|
|
89
|
+
deleteConversation: string;
|
|
90
|
+
deleteConversationConfirmTip: string;
|
|
91
|
+
batchDeleteConversation: string;
|
|
92
|
+
batchDeleteSession: string;
|
|
93
|
+
batchDeleteConversationConfirmTip: string;
|
|
94
|
+
multiSelect: string;
|
|
95
|
+
selectedCount: string;
|
|
96
|
+
cancelMultiSelect: string;
|
|
97
|
+
unclassifiedTopic: string;
|
|
98
|
+
newGroup: string;
|
|
99
|
+
deleteGroup: string;
|
|
100
|
+
deleteGroupConfirmTip: string;
|
|
101
|
+
deleteScope: string;
|
|
102
|
+
deleteScopeConfirmTip: string;
|
|
103
|
+
selectScope: string;
|
|
104
|
+
selectScopePlaceholder: string;
|
|
105
|
+
selectScopeTip: string;
|
|
106
|
+
searchScopePlaceholder: string;
|
|
107
|
+
confirm: string;
|
|
85
108
|
temporarySession: string;
|
|
86
109
|
like: string;
|
|
87
110
|
downvote: string;
|
|
@@ -127,4 +150,5 @@ export declare const EN: {
|
|
|
127
150
|
deepResearchReport: string;
|
|
128
151
|
noTextReportContent: string;
|
|
129
152
|
chatInputPlaceholder: string;
|
|
153
|
+
projectPlaceholder: string;
|
|
130
154
|
};
|
|
@@ -63,7 +63,9 @@ export declare const ZH_CN: {
|
|
|
63
63
|
imageContent: string;
|
|
64
64
|
more: string;
|
|
65
65
|
resetConversation: string;
|
|
66
|
+
resetTopicConfirmTip: string;
|
|
66
67
|
clearConversation: string;
|
|
68
|
+
clearTopicConfirmTip: string;
|
|
67
69
|
refresh: string;
|
|
68
70
|
delete: string;
|
|
69
71
|
backfill: string;
|
|
@@ -82,6 +84,27 @@ export declare const ZH_CN: {
|
|
|
82
84
|
searchTopics: string;
|
|
83
85
|
noTopic: string;
|
|
84
86
|
clearSession: string;
|
|
87
|
+
clearSessionConfirmTip: string;
|
|
88
|
+
clearSessionWithGroupConfirmTip: string;
|
|
89
|
+
deleteConversation: string;
|
|
90
|
+
deleteConversationConfirmTip: string;
|
|
91
|
+
batchDeleteConversation: string;
|
|
92
|
+
batchDeleteSession: string;
|
|
93
|
+
batchDeleteConversationConfirmTip: string;
|
|
94
|
+
multiSelect: string;
|
|
95
|
+
selectedCount: string;
|
|
96
|
+
cancelMultiSelect: string;
|
|
97
|
+
unclassifiedTopic: string;
|
|
98
|
+
newGroup: string;
|
|
99
|
+
deleteGroup: string;
|
|
100
|
+
deleteGroupConfirmTip: string;
|
|
101
|
+
deleteScope: string;
|
|
102
|
+
deleteScopeConfirmTip: string;
|
|
103
|
+
selectScope: string;
|
|
104
|
+
selectScopePlaceholder: string;
|
|
105
|
+
selectScopeTip: string;
|
|
106
|
+
searchScopePlaceholder: string;
|
|
107
|
+
confirm: string;
|
|
85
108
|
temporarySession: string;
|
|
86
109
|
like: string;
|
|
87
110
|
downvote: string;
|
|
@@ -127,4 +150,5 @@ export declare const ZH_CN: {
|
|
|
127
150
|
deepResearchReport: string;
|
|
128
151
|
noTextReportContent: string;
|
|
129
152
|
chatInputPlaceholder: string;
|
|
153
|
+
projectPlaceholder: string;
|
|
130
154
|
};
|