@myun/gimi-chat 0.9.64 → 0.9.65

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.
Files changed (54) hide show
  1. package/dist/apis/useApi.d.ts +0 -6
  2. package/dist/apis/useApi.js +1 -45
  3. package/dist/components/ai-chat-dialogue/index copy.js +1 -1
  4. package/dist/components/ai-chat-dialogue/index.js +2 -4
  5. package/dist/components/answer-item/index.d.ts +1 -2
  6. package/dist/components/answer-item/index.js +8 -179
  7. package/dist/components/answer-item/index.module.css +0 -35
  8. package/dist/components/ask-card/index.d.ts +1 -1
  9. package/dist/components/chat-input/extension/index.d.ts +0 -1
  10. package/dist/components/chat-input/extension/index.js +1 -2
  11. package/dist/components/chat-input/index.js +24 -145
  12. package/dist/components/chat-input/index.module.css +0 -6
  13. package/dist/components/file-card/index.js +1 -2
  14. package/dist/components/file-card/index.module.css +0 -1
  15. package/dist/components/knowledge-trace/KnowledgeIconComponent.js +1 -6
  16. package/dist/components/knowledge-trace/tryWatch.js +2 -2
  17. package/dist/components/message-list/index.js +3 -15
  18. package/dist/components/message-list/index.module.css +0 -3
  19. package/dist/components/templates/CommonChat.js +1 -3
  20. package/dist/hooks/useChatActions.d.ts +1 -2
  21. package/dist/hooks/useChatActions.js +12 -52
  22. package/dist/hooks/useChatStream.d.ts +1 -6
  23. package/dist/hooks/useChatStream.js +5 -97
  24. package/dist/hooks/useCommonChatAPI.d.ts +1 -1
  25. package/dist/hooks/useCommonChatAPI.js +58 -212
  26. package/dist/i18n/locales/en-US.d.ts +0 -7
  27. package/dist/i18n/locales/en-US.js +1 -8
  28. package/dist/i18n/locales/zh-CN.d.ts +0 -7
  29. package/dist/i18n/locales/zh-CN.js +1 -8
  30. package/dist/interfaces/chatMessage.d.ts +0 -40
  31. package/dist/umd/index.min.js +1 -1
  32. package/dist/utils/tools.d.ts +0 -7
  33. package/dist/utils/tools.js +1 -38
  34. package/package.json +2 -4
  35. package/dist/components/answer-item/component/artifacts/index.d.ts +0 -13
  36. package/dist/components/answer-item/component/artifacts/index.js +0 -52
  37. package/dist/components/answer-item/component/artifacts/index.module.css +0 -24
  38. package/dist/components/answer-item/component/tool-list/index.d.ts +0 -7
  39. package/dist/components/answer-item/component/tool-list/index.js +0 -117
  40. package/dist/components/answer-item/component/tool-list/index.module.css +0 -97
  41. package/dist/components/chat-input/extension/skill/MentionList.d.ts +0 -31
  42. package/dist/components/chat-input/extension/skill/MentionList.js +0 -199
  43. package/dist/components/chat-input/extension/skill/ReferSlot.d.ts +0 -3
  44. package/dist/components/chat-input/extension/skill/ReferSlot.js +0 -100
  45. package/dist/components/chat-input/extension/skill/data.d.ts +0 -10
  46. package/dist/components/chat-input/extension/skill/data.js +0 -49
  47. package/dist/components/chat-input/extension/skill/index.d.ts +0 -7
  48. package/dist/components/chat-input/extension/skill/index.js +0 -5
  49. package/dist/components/chat-input/extension/skill/index.less +0 -117
  50. package/dist/components/chat-input/extension/skill/suggestion.d.ts +0 -16
  51. package/dist/components/chat-input/extension/skill/suggestion.js +0 -206
  52. package/dist/components/message-list/skill-tag/index.d.ts +0 -5
  53. package/dist/components/message-list/skill-tag/index.js +0 -23
  54. package/dist/components/message-list/skill-tag/index.module.css +0 -22
@@ -59,7 +59,6 @@ declare const zhCN: {
59
59
  'trace.document.trialInvalidDoc': string;
60
60
  'trace.document.trialFailed': string;
61
61
  'trace.tryFullTips': string;
62
- 'trace.tryFullTipsNoEntitlement': string;
63
62
  'trace.tryFull': string;
64
63
  'trace.iconAlt': string;
65
64
  'trace.countByType': string;
@@ -100,8 +99,6 @@ declare const zhCN: {
100
99
  'common.dataLoading': string;
101
100
  'common.pleaseWait': string;
102
101
  'common.empty': string;
103
- 'common.noSkill': string;
104
- 'common.skillExceedLimit': string;
105
102
  'common.delete': string;
106
103
  'common.cancel': string;
107
104
  'common.retry': string;
@@ -170,9 +167,6 @@ declare const zhCN: {
170
167
  'chatApi.deleteSuccess': string;
171
168
  'chatApi.deleteFailed': string;
172
169
  'chatApi.noRequestToCancel': string;
173
- 'chatApi.completed': string;
174
- 'chatApi.organizingAnswer': string;
175
- 'chatApi.waitingForConfirmation': string;
176
170
  'messageAction.copy': string;
177
171
  'messageAction.likeDone': string;
178
172
  'messageAction.like': string;
@@ -264,6 +258,5 @@ declare const zhCN: {
264
258
  'informationDetail.applicableCountry': string;
265
259
  'informationDetail.signDate': string;
266
260
  'informationDetail.executeDate': string;
267
- 'common.selectSkill': string;
268
261
  };
269
262
  export default zhCN;
@@ -59,7 +59,6 @@ var zhCN = {
59
59
  'trace.document.trialInvalidDoc': '该文档暂不支持试看',
60
60
  'trace.document.trialFailed': '试看加载失败',
61
61
  'trace.tryFullTips': '您当前可试看部分内容,点击右侧按钮查看完整内容。',
62
- 'trace.tryFullTipsNoEntitlement': '暂无权益查看智库资讯完整内容',
63
62
  'trace.tryFull': '查看',
64
63
  'trace.iconAlt': '知识库溯源图标',
65
64
  'trace.countByType': '{{count}}{{unit}}{{type}}',
@@ -100,8 +99,6 @@ var zhCN = {
100
99
  'common.dataLoading': '数据加载中~',
101
100
  'common.pleaseWait': '请稍等...',
102
101
  'common.empty': '暂无内容',
103
- 'common.noSkill': '暂无技能',
104
- 'common.skillExceedLimit': '添加该技能后内容将超过10000字,请精简输入内容后再选择',
105
102
  'common.delete': '删除',
106
103
  'common.cancel': '取消',
107
104
  'common.retry': '重试',
@@ -170,9 +167,6 @@ var zhCN = {
170
167
  'chatApi.deleteSuccess': '删除会话成功',
171
168
  'chatApi.deleteFailed': '删除会话失败',
172
169
  'chatApi.noRequestToCancel': '没有可取消的请求',
173
- 'chatApi.completed': '已完成',
174
- 'chatApi.organizingAnswer': '正在整理答案',
175
- 'chatApi.waitingForConfirmation': '等待人工确认',
176
170
  'messageAction.copy': '复制',
177
171
  'messageAction.likeDone': '已点赞',
178
172
  'messageAction.like': '点赞',
@@ -263,7 +257,6 @@ var zhCN = {
263
257
  'informationDetail.taxPreferenceLabel': '是否税费优惠及类型:',
264
258
  'informationDetail.applicableCountry': '适用国别:',
265
259
  'informationDetail.signDate': '签署日期:',
266
- 'informationDetail.executeDate': '执行日期:',
267
- 'common.selectSkill': '选择技能'
260
+ 'informationDetail.executeDate': '执行日期:'
268
261
  };
269
262
  export default zhCN;
@@ -1,33 +1,10 @@
1
1
  import { MCPItem } from "../types/answer";
2
2
  import { FileItem } from "../types/file";
3
3
 
4
-
5
- export interface ToolItem {
6
- /** 工具类型 */
7
- moduleType?: string;
8
- /** 工具名称 */
9
- toolName?: string;
10
- /** 工具调用状态 */
11
- status?: string;
12
- /** 工具调用ID */
13
- id?: string;
14
- /** 工具调用内容 */
15
- content?: string;
16
- /** 工具调用数据 */
17
- data?: any;
18
- /** 确认状态
19
- * PENDING:等待用户处理
20
- * CONFIRMED:全部同意
21
- * REJECTED:全部拒绝
22
- * PARTIAL:部分同意;
23
- */
24
- confirmStatus?: "PENDING" | "CONFIRMED" | "REJECTED" | "PARTIAL";
25
- }
26
4
  /**
27
5
  * 聊天消息主接口
28
6
  */
29
7
  export interface IChatMessageItem {
30
- pendingUserConfirm: any;
31
8
  /** 代理ID(可选,无值时为 null) */
32
9
  agentId?: number | null;
33
10
  /** 机器人ID(可选,无值时为 null) */
@@ -124,23 +101,6 @@ export interface IChatMessageItem {
124
101
  reasoningLoading?: boolean;
125
102
  /** 消息是否加载中 */
126
103
  msgLoading?: boolean;
127
- /** 消息处理耗时(毫秒) */
128
- durationMs?: number;
129
- /** 总token数量 */
130
- totalTokens?: number;
131
- /** 工具调用列表 */
132
- toolList?: ToolItem[] | null ;
133
- /** 思考信息 */
134
- thinkingInfo?: {
135
- status?: string;
136
- toolName?: string;
137
- collapse?: boolean;
138
- loaded?: boolean;
139
- needInit?: boolean;
140
- };
141
- /** 资产列表 */
142
- artifacts?: Artifact[] | null;
143
- attachedEvents?: any[] | null;
144
104
  }
145
105
 
146
106
  interface ModuleInfo {