paul-ai-assistant 1.0.3 → 1.0.4
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/es/AssistantChat/AssistantChatApp/const.js +1 -1
- package/es/AssistantChat/AssistantChatApp/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +4 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +4 -5
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +2 -2
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +3 -3
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +5 -5
- package/es/AssistantChat/AssistantChatInput/index.js +7 -5
- package/es/common/registerAssistChatForm.js +8 -5
- package/es/components/AgentCardSubmit/index.js +0 -1
- package/es/components/AgentResult/index.js +1 -1
- package/es/components/AgentSchemaForm/ScreenshotView.js +1 -1
- package/es/components/AgentSchemaForm/index.js +5 -5
- package/es/components/ArrayInput/index.js +1 -1
- package/es/components/InspectionCard/index.js +1 -1
- package/es/components/LlmMarkDown/MdAmarkGuess/index.js +1 -1
- package/es/components/LlmMarkDown/MdAmarkReference/index.js +3 -3
- package/es/components/LlmMarkDown/index.js +1 -1
- package/es/components/LlmModelChange/index.js +2 -2
- package/es/components/LlmReference/index.js +9 -9
- package/es/components/LlmTraceComponents/Disassemble/index.js +2 -2
- package/es/components/LlmTraceComponents/Rewrite/index.js +2 -2
- package/es/components/MarkDown/index.js +42 -13
- package/es/components/ModelSelect/ModeDropdown.js +1 -1
- package/es/components/ModelSelect/const.js +3 -3
- package/es/components/PaulButtonGroup/Select.js +1 -1
- package/es/components/PaulButtonGroup/index.js +1 -1
- package/es/components/PopAuth/index.js +1 -1
- package/es/components/SchemaInput/SchemaInputCore/index.js +1 -1
- package/es/components/SchemaInput/SimpleJSONEditor/index.js +1 -1
- package/es/components/SelectBlurry/index.js +1 -1
- package/es/components/ShareModal/index.js +1 -1
- package/es/components/ShareOperationBar/index.js +1 -1
- package/es/components/TextContent/index.js +3 -3
- package/es/components/TraceWithAgent/index.js +4 -9
- package/es/context/index.js +2 -1
- package/es/context/utils/messages.js +1 -1
- package/es/context/utils/send.js +2 -2
- package/es/context/utils/tool.js +1 -1
- package/es/utils/CSEIconTool.js +1 -1
- package/es/utils/apushAssistant.js +1 -2
- package/es/utils/common.js +17 -0
- package/es/utils/event.js +87 -0
- package/es/utils/formDataFormat.js +1 -1
- package/es/utils/formatData.js +1 -1
- package/es/utils/helpers.js +78 -0
- package/es/utils/log.js +1 -1
- package/package.json +6 -16
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +0 -8
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +0 -9
- package/es/AssistantChat/AssistantChatApp/const.d.ts +0 -51
- package/es/AssistantChat/AssistantChatApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +0 -5
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +0 -29
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +0 -2
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +0 -16
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +0 -14
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +0 -78
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +0 -11
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +0 -21
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +0 -8
- package/es/AssistantChat/AssistantChatCard/index.d.ts +0 -5
- package/es/AssistantChat/AssistantChatInput/index.d.ts +0 -5
- package/es/AssistantChat/AssistantToolApp/const.d.ts +0 -12
- package/es/AssistantChat/AssistantToolApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +0 -7
- package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistentError/index.d.ts +0 -5
- package/es/AssistantChat/index.d.ts +0 -6
- package/es/AssistantChat/logCallback/aTagLog.d.ts +0 -1
- package/es/AssistantChat/logCallback/copyLog.d.ts +0 -3
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +0 -5
- package/es/ErrorBoundary/index.d.ts +0 -22
- package/es/common/registerAssistChatForm.d.ts +0 -2
- package/es/components/AgentCardSubmit/index.d.ts +0 -20
- package/es/components/AgentResult/index.d.ts +0 -8
- package/es/components/AgentSchemaForm/ScreenshotView.d.ts +0 -12
- package/es/components/AgentSchemaForm/_interface.d.ts +0 -37
- package/es/components/AgentSchemaForm/index.d.ts +0 -9
- package/es/components/AgentText/index.d.ts +0 -4
- package/es/components/AigcTips/index.d.ts +0 -9
- package/es/components/ArrayInput/index.d.ts +0 -3
- package/es/components/AssistantDrawer/index.d.ts +0 -22
- package/es/components/EmptyIcon/index.d.ts +0 -3
- package/es/components/HeaderSvgIcon/index.d.ts +0 -3
- package/es/components/InspectionCard/index.d.ts +0 -66
- package/es/components/InspectionCard/result.d.ts +0 -13
- package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +0 -16
- package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +0 -21
- package/es/components/LlmMarkDown/index.d.ts +0 -30
- package/es/components/LlmModelChange/index.d.ts +0 -57
- package/es/components/LlmReference/index.d.ts +0 -25
- package/es/components/LlmTitle/index.d.ts +0 -14
- package/es/components/LlmTrace/index.d.ts +0 -17
- package/es/components/LlmTraceComponents/Disassemble/index.d.ts +0 -24
- package/es/components/LlmTraceComponents/ReadResource/index.d.ts +0 -24
- package/es/components/LlmTraceComponents/Rewrite/index.d.ts +0 -23
- package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +0 -22
- package/es/components/LlmTraceComponents/const.d.ts +0 -25
- package/es/components/LlmTraceV2/index.d.ts +0 -56
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +0 -18
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +0 -20
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +0 -12
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +0 -32
- package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +0 -30
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +0 -8
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +0 -18
- package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +0 -18
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +0 -15
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +0 -17
- package/es/components/LlmTraceV3/index.d.ts +0 -11
- package/es/components/LlmTraceV3/types.d.ts +0 -263
- package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +0 -26
- package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +0 -42
- package/es/components/MarkDown/index.d.ts +0 -11
- package/es/components/ModelSelect/ModeDropdown.d.ts +0 -8
- package/es/components/ModelSelect/const.d.ts +0 -30
- package/es/components/ModelSelect/index.d.ts +0 -4
- package/es/components/PaulButtonGroup/Select.d.ts +0 -3
- package/es/components/PaulButtonGroup/index.d.ts +0 -16
- package/es/components/PopAuth/index.d.ts +0 -4
- package/es/components/ReferenceInfoItem/index.d.ts +0 -49
- package/es/components/ReferenceTag/index.d.ts +0 -11
- package/es/components/SchemaInput/SchemaInputCore/index.d.ts +0 -4
- package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +0 -1
- package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +0 -4
- package/es/components/SchemaInput/index.d.ts +0 -8
- package/es/components/SelectBlurry/index.d.ts +0 -3
- package/es/components/SendMessageSvgIcon/index.d.ts +0 -3
- package/es/components/ShareContent/index.d.ts +0 -21
- package/es/components/ShareModal/index.d.ts +0 -15
- package/es/components/ShareOperationBar/index.d.ts +0 -4
- package/es/components/TextContent/index.d.ts +0 -14
- package/es/components/TraceMarkdownWithCard/index.d.ts +0 -6
- package/es/components/TraceWithAgent/index.d.ts +0 -23
- package/es/constants/assistChatEvent.d.ts +0 -33
- package/es/constants/common.d.ts +0 -71
- package/es/constants/logTrace.d.ts +0 -3
- package/es/constants/reference.d.ts +0 -109
- package/es/constants/traceDataStatus.d.ts +0 -34
- package/es/context/index.d.ts +0 -13
- package/es/context/utils/messages.d.ts +0 -33
- package/es/context/utils/send.d.ts +0 -29
- package/es/context/utils/tool.d.ts +0 -19
- package/es/index.d.ts +0 -37
- package/es/interface/IAgent.d.ts +0 -12
- package/es/interface/IChatBottom.d.ts +0 -69
- package/es/interface/IChatCard.d.ts +0 -40
- package/es/interface/IChatContext.d.ts +0 -59
- package/es/interface/IChatRef.d.ts +0 -75
- package/es/interface/IGuessQuestion.d.ts +0 -43
- package/es/interface/IMessage.d.ts +0 -17
- package/es/interface/ISend.d.ts +0 -19
- package/es/interface/index.d.ts +0 -272
- package/es/utils/CSEIconTool.d.ts +0 -8
- package/es/utils/apushAssistant.d.ts +0 -73
- package/es/utils/clientPlugin.d.ts +0 -3
- package/es/utils/common.d.ts +0 -10
- package/es/utils/copyToClipboard.d.ts +0 -2
- package/es/utils/formDataFormat.d.ts +0 -3
- package/es/utils/formatData.d.ts +0 -14
- package/es/utils/log.d.ts +0 -18
- package/es/utils/parseUrl.d.ts +0 -9
- package/es/utils/request.d.ts +0 -15
- package/es/utils/screenshot.d.ts +0 -45
- package/es/utils/send.d.ts +0 -10
- package/es/utils/uploadImage.d.ts +0 -9
- package/es/utils/websocketLogger.d.ts +0 -176
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { IModalInfo, IShowQuestion, IThirdPartyModel } from '../../../components/LlmModelChange';
|
|
4
|
-
import type { IReference, IReferenceTypeMap } from '../../../components/ReferenceInfoItem';
|
|
5
|
-
import type { IChatCardBaseProps } from '../../../interface/IChatCard';
|
|
6
|
-
import './index.scss';
|
|
7
|
-
/** 后端数据 */
|
|
8
|
-
export interface ILlmGenerateCardV5Data {
|
|
9
|
-
/** 思考过程 */
|
|
10
|
-
trace?: any;
|
|
11
|
-
/** markdown 文本 */
|
|
12
|
-
content?: string;
|
|
13
|
-
/** 是否结束 */
|
|
14
|
-
finished?: boolean;
|
|
15
|
-
/** 思考中加载状态 */
|
|
16
|
-
thinkLoading?: boolean;
|
|
17
|
-
/** 参考来源 */
|
|
18
|
-
references?: IReference[];
|
|
19
|
-
/** 模型名称 */
|
|
20
|
-
chatMode?: string;
|
|
21
|
-
/** 卡片提示 */
|
|
22
|
-
headerTips?: {
|
|
23
|
-
showTips?: boolean;
|
|
24
|
-
tipsContent?: string;
|
|
25
|
-
tipsColor?: string;
|
|
26
|
-
};
|
|
27
|
-
/** 第三方模型 工单 */
|
|
28
|
-
thirdPartyModel?: IThirdPartyModel;
|
|
29
|
-
/** 第三方模型 云企 */
|
|
30
|
-
modalInfo?: IModalInfo;
|
|
31
|
-
/** 展示问题 */
|
|
32
|
-
showQuestion?: IShowQuestion;
|
|
33
|
-
/** 云企业务的messageId */
|
|
34
|
-
messageId?: string | number;
|
|
35
|
-
}
|
|
36
|
-
/** 前端可配置 */
|
|
37
|
-
export interface ILlmGenerateCardV5Props {
|
|
38
|
-
/** 是否展示 trace */
|
|
39
|
-
showTrace?: boolean;
|
|
40
|
-
/** 是否展示第三方模型切换 */
|
|
41
|
-
showModelChange?: boolean;
|
|
42
|
-
/** 是否展示 aigc 提示 */
|
|
43
|
-
showAigcTips?: boolean;
|
|
44
|
-
/** 参考来源位置 */
|
|
45
|
-
referencePosition?: 'top' | 'bottom';
|
|
46
|
-
/** 参考来源类型 */
|
|
47
|
-
referenceTypeMap?: IReferenceTypeMap;
|
|
48
|
-
/** markdown 组件属性 */
|
|
49
|
-
markDownProps?: any;
|
|
50
|
-
/** markdown 其他自定义组件注册 */
|
|
51
|
-
markDownExtComponentMap?: object;
|
|
52
|
-
/** 点击参考来源 */
|
|
53
|
-
onClickReference?: (params: {
|
|
54
|
-
reference: any;
|
|
55
|
-
type: string;
|
|
56
|
-
url: string;
|
|
57
|
-
title: string;
|
|
58
|
-
}) => void;
|
|
59
|
-
/** 点击第三方模型 */
|
|
60
|
-
onClickThirdPartyModel?: (params: {
|
|
61
|
-
query: string;
|
|
62
|
-
searchType: string;
|
|
63
|
-
extInfo: {
|
|
64
|
-
thirdPartyModel: any;
|
|
65
|
-
messageId: string;
|
|
66
|
-
};
|
|
67
|
-
}) => void;
|
|
68
|
-
/** markdown 链接点击拦截 */
|
|
69
|
-
getALinkInterception?: (params: any) => ReactNode;
|
|
70
|
-
/** 参考来源自定义渲染 */
|
|
71
|
-
referenceExtraRender?: (params?: any) => ReactNode;
|
|
72
|
-
}
|
|
73
|
-
export type IProps = ILlmGenerateCardV5Props & ILlmGenerateCardV5Data & IChatCardBaseProps & {
|
|
74
|
-
type?: 'v4' | 'v5';
|
|
75
|
-
};
|
|
76
|
-
export declare const BaseLlmGenerateCard: (props: IProps) => React.JSX.Element;
|
|
77
|
-
declare const LlmGenerateCardV5: (props: ILlmGenerateCardV5Props) => React.JSX.Element;
|
|
78
|
-
export default LlmGenerateCardV5;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author qytan
|
|
3
|
-
* @description 点赞点踩
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
export declare enum FEEDBACK_TYPE {
|
|
7
|
-
HELPFUL = "helpful",// 点赞
|
|
8
|
-
UNHELPFUL = "unhelpful"
|
|
9
|
-
}
|
|
10
|
-
declare const FeedBack: (props: any) => React.JSX.Element;
|
|
11
|
-
export default FeedBack;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author qytan
|
|
3
|
-
* @description UserQueryCardRender渲染的Attachments
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import './index.scss';
|
|
7
|
-
interface Attachment {
|
|
8
|
-
fileName: string;
|
|
9
|
-
fileSize: number;
|
|
10
|
-
ossFileKey: string;
|
|
11
|
-
fileType: string;
|
|
12
|
-
}
|
|
13
|
-
interface AttachmentsData {
|
|
14
|
-
type: 'ATTACHMENTS';
|
|
15
|
-
contents: Attachment[];
|
|
16
|
-
}
|
|
17
|
-
export declare const bytesToSize: (bytes: number) => string;
|
|
18
|
-
declare const AttachmentsRender: ({ data }: {
|
|
19
|
-
data: AttachmentsData;
|
|
20
|
-
}) => React.JSX.Element;
|
|
21
|
-
export default AttachmentsRender;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as AgentCardRender } from './AgentCardRender';
|
|
2
|
-
export { default as AgentCommonCard } from './AgentCommonCard';
|
|
3
|
-
export { default as LlmGenerateCard } from './LlmGenerateCard';
|
|
4
|
-
export { default as LlmGenerateCardV5 } from './LlmGenerateCardV5';
|
|
5
|
-
export { default as UserQueryCardRender } from './UserQueryCardRender';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IAssistantBottomProps, IAssistantBottomRef } from '../../interface/IChatBottom';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
declare const _default: React.ForwardRefExoticComponent<IAssistantBottomProps & React.RefAttributes<IAssistantBottomRef>>;
|
|
5
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IIntelligenceAssistantChatProps } from '../interface';
|
|
3
|
-
import type { IAssistantChatRef } from '../interface/IChatRef';
|
|
4
|
-
import './index.scss';
|
|
5
|
-
declare const _default: React.ForwardRefExoticComponent<IIntelligenceAssistantChatProps & React.RefAttributes<IAssistantChatRef>>;
|
|
6
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const clickAgentCardRenderATag: (_event: any, commonLog: any, url: any, text: any) => void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IProps {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
Fallback?: React.ComponentType<any>;
|
|
5
|
-
onError?: (error?: Error, componentStack?: string) => void;
|
|
6
|
-
onLog?: (error?: Error, componentStack?: string) => void;
|
|
7
|
-
errorMessage?: string | React.ReactElement;
|
|
8
|
-
}
|
|
9
|
-
export interface IErrorInfo {
|
|
10
|
-
componentStack: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IState {
|
|
13
|
-
error?: Error | null;
|
|
14
|
-
info?: IErrorInfo;
|
|
15
|
-
}
|
|
16
|
-
declare class ErrorBoundary extends React.Component<IProps, IState> {
|
|
17
|
-
static defaultProps: IProps;
|
|
18
|
-
constructor(props: any);
|
|
19
|
-
componentDidCatch(error: Error, info: IErrorInfo): void;
|
|
20
|
-
render(): {};
|
|
21
|
-
}
|
|
22
|
-
export default ErrorBoundary;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IChatCardBaseProps } from '../../interface/IChatCard';
|
|
3
|
-
export interface IAgentCardSubmitProps extends IChatCardBaseProps {
|
|
4
|
-
agentId?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
submitConfig?: {
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
url?: string;
|
|
9
|
-
text?: string;
|
|
10
|
-
style?: any;
|
|
11
|
-
};
|
|
12
|
-
onSubmitConfig?: {
|
|
13
|
-
url?: string;
|
|
14
|
-
text?: string;
|
|
15
|
-
style?: any;
|
|
16
|
-
onSubmit?: (v: any, enableSubmit?: () => void) => void;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
declare const AgentCardSubmit: (props: IAgentCardSubmitProps) => React.JSX.Element;
|
|
20
|
-
export default AgentCardSubmit;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ScreenshotView.scss';
|
|
3
|
-
interface ScreenshotViewProps {
|
|
4
|
-
fileKey?: string;
|
|
5
|
-
extractedTexts?: string[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* AgentSchemaForm 截图模式视图组件
|
|
9
|
-
* 处理截图展示、错误提示、纯文字展示和文本复制等功能
|
|
10
|
-
*/
|
|
11
|
-
declare const ScreenshotView: React.FC<ScreenshotViewProps>;
|
|
12
|
-
export default ScreenshotView;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { IChatCardBaseProps } from '../../interface/IChatCard';
|
|
2
|
-
export declare const enum FORM_EDITABLE {
|
|
3
|
-
DISABLED = 0,// 禁用
|
|
4
|
-
EDITABLE = 1,// 编辑
|
|
5
|
-
READPRETTY = 2,// 文本展示
|
|
6
|
-
READONLY = 3
|
|
7
|
-
}
|
|
8
|
-
export declare const PATTERN: {
|
|
9
|
-
0: string;
|
|
10
|
-
1: string;
|
|
11
|
-
2: string;
|
|
12
|
-
3: string;
|
|
13
|
-
};
|
|
14
|
-
export interface IBaseAgentSchemaFormProps extends IChatCardBaseProps {
|
|
15
|
-
agentId?: string;
|
|
16
|
-
cardId?: string;
|
|
17
|
-
cardSchema?: any;
|
|
18
|
-
values?: any;
|
|
19
|
-
editable?: FORM_EDITABLE;
|
|
20
|
-
submitConfig?: {
|
|
21
|
-
visible?: boolean;
|
|
22
|
-
url?: string;
|
|
23
|
-
text?: string;
|
|
24
|
-
style?: any;
|
|
25
|
-
};
|
|
26
|
-
status?: any;
|
|
27
|
-
}
|
|
28
|
-
export interface AgentSchemaFormProps extends IBaseAgentSchemaFormProps {
|
|
29
|
-
onSubmitConfig?: {
|
|
30
|
-
url?: string;
|
|
31
|
-
text?: string;
|
|
32
|
-
style?: any;
|
|
33
|
-
onSubmit?: (v: any, enableSubmit?: () => void) => void;
|
|
34
|
-
};
|
|
35
|
-
formComponentMap?: any;
|
|
36
|
-
MemoryMicroComponent?: any;
|
|
37
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhuiw、洛萨
|
|
3
|
-
* @description AgentSchemaForm 渲染表单
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { AgentSchemaFormProps } from './_interface';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
declare const AgentSchemaForm: (props: AgentSchemaFormProps) => React.JSX.Element;
|
|
9
|
-
export default AgentSchemaForm;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface CustomDrawerProps {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
title?: React.ReactNode;
|
|
7
|
-
footer?: React.ReactNode;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
width?: number | string;
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
backgroundColor?: 'white' | 'blue';
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 右侧弹窗组件,参考 antd Modal 设计
|
|
16
|
-
* title 默认为"预览",右上角有关闭按钮
|
|
17
|
-
* 支持自定义 title/footer/body
|
|
18
|
-
* 支持关闭动画
|
|
19
|
-
* 挂载到 body 上,避免层级问题
|
|
20
|
-
*/
|
|
21
|
-
declare const CustomDrawer: React.FC<CustomDrawerProps>;
|
|
22
|
-
export default CustomDrawer;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file 智能辅助-巡检报告卡片
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
interface EnumOption {
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}
|
|
9
|
-
interface FieldConfig {
|
|
10
|
-
type: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
default?: string;
|
|
13
|
-
enum?: EnumOption[];
|
|
14
|
-
'x-component'?: string;
|
|
15
|
-
'x-decorator'?: string;
|
|
16
|
-
}
|
|
17
|
-
interface LayoutProperties {
|
|
18
|
-
submitButton?: {
|
|
19
|
-
type: string;
|
|
20
|
-
'x-component': string;
|
|
21
|
-
};
|
|
22
|
-
[key: string]: FieldConfig | any;
|
|
23
|
-
}
|
|
24
|
-
interface CardSchema {
|
|
25
|
-
type: string;
|
|
26
|
-
properties: {
|
|
27
|
-
layout: {
|
|
28
|
-
type: string;
|
|
29
|
-
'x-component': string;
|
|
30
|
-
'x-component-props': {
|
|
31
|
-
className: string;
|
|
32
|
-
grid: boolean;
|
|
33
|
-
};
|
|
34
|
-
properties: LayoutProperties;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export interface InspectionCardProps {
|
|
39
|
-
cardSchema?: CardSchema;
|
|
40
|
-
data?: {
|
|
41
|
-
result?: {
|
|
42
|
-
cardSchema?: CardSchema;
|
|
43
|
-
cardValue?: {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
};
|
|
49
|
-
cardValue?: {
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
};
|
|
52
|
-
dialogId?: string;
|
|
53
|
-
subjectId?: string;
|
|
54
|
-
originData?: any;
|
|
55
|
-
onSubmit?: (values: any, dialogId: string, subjectId: string) => Promise<{
|
|
56
|
-
success: boolean;
|
|
57
|
-
message?: string;
|
|
58
|
-
}>;
|
|
59
|
-
}
|
|
60
|
-
declare const InspectionCard: React.FC<InspectionCardProps>;
|
|
61
|
-
/**
|
|
62
|
-
* InspectionCard 包装组件 - 带 Context 支持
|
|
63
|
-
* 从 AssistantChatContext 中获取 bizId 和 assistantChat,自动提供 onSubmit 回调
|
|
64
|
-
*/
|
|
65
|
-
export declare const InspectionCardWithContext: React.FC<InspectionCardProps>;
|
|
66
|
-
export default InspectionCard;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file 任务执行状态组件
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
interface TaskExecutionStatusProps {
|
|
6
|
-
data: {
|
|
7
|
-
executionInfo?: string;
|
|
8
|
-
progressUrl?: string;
|
|
9
|
-
status: 'FINISHED' | 'RUNNING';
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
declare const TaskExecutionStatus: React.FC<TaskExecutionStatusProps>;
|
|
13
|
-
export default TaskExecutionStatus;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface IMdAmarkGuessProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
otherProps?: any;
|
|
5
|
-
inner: any;
|
|
6
|
-
finished?: boolean;
|
|
7
|
-
query: string;
|
|
8
|
-
onClick?: (params: any) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 猜问
|
|
12
|
-
* @param props
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
declare const MdAmarkGuess: (props: IMdAmarkGuessProps) => React.JSX.Element;
|
|
16
|
-
export default MdAmarkGuess;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface IMdAmarkReferenceProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
otherProps?: any;
|
|
6
|
-
inner?: any;
|
|
7
|
-
goDetailTab?: any;
|
|
8
|
-
summary?: string;
|
|
9
|
-
ticketId?: any;
|
|
10
|
-
dialogId?: any;
|
|
11
|
-
findItem?: any;
|
|
12
|
-
queryParams?: any;
|
|
13
|
-
commonLog?: any;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* markdown 引用信息展示
|
|
17
|
-
* @param props
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
declare const MdAmarkReference: (props: IMdAmarkReferenceProps) => React.JSX.Element;
|
|
21
|
-
export default MdAmarkReference;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export interface ILlmMarkDownProps {
|
|
5
|
-
content?: string;
|
|
6
|
-
references?: any[];
|
|
7
|
-
finished?: boolean;
|
|
8
|
-
ticketId?: number;
|
|
9
|
-
dialogId?: number;
|
|
10
|
-
bizMessageId?: any;
|
|
11
|
-
onClickReference?: (params: {
|
|
12
|
-
reference?: any;
|
|
13
|
-
type?: string;
|
|
14
|
-
url: string;
|
|
15
|
-
title: string;
|
|
16
|
-
}) => void;
|
|
17
|
-
commonLog?: any;
|
|
18
|
-
markDownProps?: any;
|
|
19
|
-
markDownExtComponentMap?: object;
|
|
20
|
-
getALinkInterception?: (params: any) => ReactNode;
|
|
21
|
-
/** 获取API主机地址的方法 */
|
|
22
|
-
getApiHost?: () => string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* LLM markdown 组件
|
|
26
|
-
* @param props
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
declare const LlmMarkDown: (props: ILlmMarkDownProps) => React.JSX.Element;
|
|
30
|
-
export default LlmMarkDown;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
/** 第三方模型 工单 */
|
|
4
|
-
export interface IThirdPartyModel {
|
|
5
|
-
available?: {
|
|
6
|
-
name: string;
|
|
7
|
-
code: string;
|
|
8
|
-
}[];
|
|
9
|
-
executed?: {
|
|
10
|
-
name: string;
|
|
11
|
-
code: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
/** 第三方模型 云企 */
|
|
15
|
-
export interface IModalInfo {
|
|
16
|
-
currentModalCode?: string;
|
|
17
|
-
modalDataList?: {
|
|
18
|
-
name: string;
|
|
19
|
-
code: string;
|
|
20
|
-
desc: string;
|
|
21
|
-
}[];
|
|
22
|
-
}
|
|
23
|
-
/** 生成答案对应问题 */
|
|
24
|
-
export interface IShowQuestion {
|
|
25
|
-
currentQuestion?: string;
|
|
26
|
-
originalQuestion?: string;
|
|
27
|
-
originIsUsed?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/** 点击第三方模型 */
|
|
30
|
-
export type IOnClickThirdPartyModel = (params: {
|
|
31
|
-
query: string;
|
|
32
|
-
searchType: string;
|
|
33
|
-
extInfo: {
|
|
34
|
-
thirdPartyModel: any;
|
|
35
|
-
messageId: string;
|
|
36
|
-
};
|
|
37
|
-
}) => void;
|
|
38
|
-
/** LLM 模型切换 */
|
|
39
|
-
export interface ILlmModelChangeProps {
|
|
40
|
-
/** 第三方模型 工单 */
|
|
41
|
-
thirdPartyModel?: IThirdPartyModel;
|
|
42
|
-
/** 第三方模型 云企 */
|
|
43
|
-
modalInfo?: IModalInfo;
|
|
44
|
-
/** 生成答案对应问题 */
|
|
45
|
-
showQuestion?: IShowQuestion;
|
|
46
|
-
dialogId?: string;
|
|
47
|
-
ticketId?: string;
|
|
48
|
-
/** 点击第三方模型 */
|
|
49
|
-
onClickThirdPartyModel?: IOnClickThirdPartyModel;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* LLM 模型切换
|
|
53
|
-
* @param props
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
declare const LlmModelChange: (props: ILlmModelChangeProps) => React.JSX.Element;
|
|
57
|
-
export default LlmModelChange;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IReference, IReferenceTypeMap } from '../ReferenceInfoItem';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export interface ILlmReferenceProps {
|
|
5
|
-
ticketId?: string;
|
|
6
|
-
dialogId?: string;
|
|
7
|
-
bizMessageId?: any;
|
|
8
|
-
referenceTypeMap?: IReferenceTypeMap;
|
|
9
|
-
commonLog?: (params: any) => void;
|
|
10
|
-
references?: IReference[];
|
|
11
|
-
onClickReference?: (params: {
|
|
12
|
-
reference: any;
|
|
13
|
-
type: string;
|
|
14
|
-
url: string;
|
|
15
|
-
title: string;
|
|
16
|
-
}) => void;
|
|
17
|
-
referenceExtraRender?: (params?: any) => React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* 引用信息展示
|
|
21
|
-
* @param props
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
declare const LlmReference: (props: ILlmReferenceProps) => React.JSX.Element;
|
|
25
|
-
export default LlmReference;
|