@ibiz-template-plugin/ai-chat 0.0.41 → 0.0.42

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.
@@ -23,6 +23,7 @@ export declare class ChatMessage implements IChatMessage {
23
23
  get state(): IChatMessage['state'];
24
24
  get role(): IChatMessage['role'];
25
25
  get type(): IChatMessage['type'];
26
+ get status(): IChatMessage['status'];
26
27
  get realcontent(): IChatMessage['realcontent'];
27
28
  get content(): IChatMessage['content'];
28
29
  get completed(): IChatMessage['completed'];
@@ -43,6 +43,10 @@ export interface IChatMessage {
43
43
  * @type {string}
44
44
  */
45
45
  type: string | 'DEFAULT' | 'ERROR';
46
+ /**
47
+ * 消息状态,待处理|已发送|失败|用户取消
48
+ */
49
+ status: string | 'pending' | 'sent' | 'failed' | ' canceled';
46
50
  /**
47
51
  * 消息子类型
48
52
  *
@@ -64,5 +64,5 @@ export interface IRemoteMessage {
64
64
  /**
65
65
  * 消息状态, 待处理 | 已处理 | 失败 | 用户取消
66
66
  */
67
- status: 'pending' | 'sent' | 'failed' | 'cancelled';
67
+ status: 'pending' | 'sent' | 'failed' | 'canceled';
68
68
  }
@@ -11,13 +11,13 @@ export declare function getMsgRoleByRemoteType(type: string): 'USER' | 'ASSISTAN
11
11
  * @param state
12
12
  * @returns
13
13
  */
14
- export declare function getMsgStateByRemoteState(state: 'pending' | 'sent' | 'failed' | 'cancelled'): 10 | 20 | 30 | 40;
14
+ export declare function getMsgStateByRemoteState(state: 'pending' | 'sent' | 'failed' | 'canceled'): 10 | 20 | 30 | 40;
15
15
  /**
16
16
  * 基于远程状态转换至消息类型
17
17
  * @param state
18
18
  * @returns
19
19
  */
20
- export declare function getMsgTypeByRemoteState(state: 'pending' | 'sent' | 'failed' | 'cancelled'): string | 'DEFAULT' | 'ERROR';
20
+ export declare function getMsgTypeByRemoteState(state: 'pending' | 'sent' | 'failed' | 'canceled'): string | 'DEFAULT' | 'ERROR';
21
21
  /**
22
22
  * 基于远程消息转换至本地消息
23
23
  * @param remoteMsg
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template-plugin/ai-chat",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "iBiz AI交互框插件",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",