@sim-design/training 1.0.0 → 1.1.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/README.md +481 -15
- package/dist/{ArrowLeftOutlined-CiSQq3bL.js → ArrowLeftOutlined-BxA84GXs.js} +1 -1
- package/dist/ArrowLeftOutlined-D785XjyB.js +12 -0
- package/dist/{AssessmentPlugin-Bx4VrBdV.js → AssessmentPlugin-D_iesmyg.js} +7 -7
- package/dist/AssessmentPlugin-zRr-IsdA.js +607 -0
- package/dist/CaseAnalysisPlugin-CXuQpkPd.js +2196 -0
- package/dist/CaseAnalysisPlugin-DytlXsRD.js +2196 -0
- package/dist/CaseDetailContent-DT5nCtRT.js +28613 -0
- package/dist/CaseDetailContent-Y7Q430MG.js +28595 -0
- package/dist/{CharacterDialoguePanel-Bvdab3qj.js → CharacterDialoguePanel-CdtUl-Sv.js} +178 -139
- package/dist/CharacterDialoguePanel-D_4YNFZv.js +815 -0
- package/dist/{CheckCircleFilled-Byo8CDfW.js → CheckCircleFilled-CnslIY7j.js} +1 -1
- package/dist/CheckCircleFilled-NvZaC2sk.js +12 -0
- package/dist/DecisionMakingPlugin-B_KQUFzW.js +1385 -0
- package/dist/DecisionMakingPlugin-ILLGek3S.js +1385 -0
- package/dist/{DecisionSelectPlugin-DtQ2KV34.js → DecisionSelectPlugin-BGQiHGBK.js} +20 -11
- package/dist/DecisionSelectPlugin-Bqmh6XGh.js +872 -0
- package/dist/{DecisionShared-Dh9oeQFT.js → DecisionShared-BHq1lEqt.js} +2 -2
- package/dist/DecisionShared-Be-zKZLT.js +65 -0
- package/dist/DeleteOutlined-BvMjU7m5.js +12 -0
- package/dist/DeleteOutlined-Dqy6M2LH.js +12 -0
- package/dist/{CustomLayoutRenderer--rnQrqQ2.js → DialogueFormPlugin-BpCeFadt.js} +22724 -21631
- package/dist/DialogueFormPlugin-CXlbxX-z.js +123617 -0
- package/dist/DialoguePlugin-CO7Nzv0K.js +596 -0
- package/dist/DialoguePlugin-DDNdsylz.js +596 -0
- package/dist/DocumentReviewPlugin-2CnKQwVG.js +1967 -0
- package/dist/DocumentReviewPlugin-qYYrnjvE.js +1967 -0
- package/dist/{EyeOutlined-XvOAKlLs.js → EyeOutlined-BrKCNjui.js} +1 -1
- package/dist/EyeOutlined-CW0tYV0f.js +12 -0
- package/dist/FormFillingPlugin-C3h8ySOZ.js +969 -0
- package/dist/FormFillingPlugin-CPmd76Qr.js +969 -0
- package/dist/HolderOutlined-CH0tShWu.js +12 -0
- package/dist/HolderOutlined-Dm6TBtqf.js +12 -0
- package/dist/ModelEditor-BjEbFloQ.js +11753 -0
- package/dist/ModelEditor-CwR67DFQ.js +11753 -0
- package/dist/{ProcessOperationPlugin-IijngDlX.js → ProcessOperationPlugin-1Lz431aC.js} +12 -12
- package/dist/ProcessOperationPlugin-BkmdG3ch.js +88 -0
- package/dist/QAPlugin-0C4kpq3J.js +172 -0
- package/dist/QAPlugin-UC8uywcg.js +172 -0
- package/dist/{ReloadOutlined-Daor2m11.js → ReloadOutlined-BZ92nlYF.js} +1 -1
- package/dist/ReloadOutlined-CYoPOwLl.js +12 -0
- package/dist/{SettingOutlined-CLEOgXB-.js → SettingOutlined-F466s0Ti.js} +33 -65
- package/dist/SettingOutlined-c2hikCfN.js +60 -0
- package/dist/StarFilled-Bilmj6UK.js +28 -0
- package/dist/StarFilled-CtH30fL0.js +28 -0
- package/dist/StrategyLabPlugin-CvO07sXV.js +12445 -0
- package/dist/StrategyLabPlugin-DUqZYctQ.js +12445 -0
- package/dist/ThunderboltOutlined-BpmoCKdV.js +28 -0
- package/dist/ThunderboltOutlined-DDQFi5Cv.js +28 -0
- package/dist/TrainingModelContainer-DqCsdC7C.js +11241 -0
- package/dist/TrainingModelContainer-yi8W6KFl.js +11241 -0
- package/dist/{UndoOutlined-ChUQYUul.js → UndoOutlined-6JZVzmdX.js} +26 -42
- package/dist/UndoOutlined-Dw6_9_OL.js +68 -0
- package/dist/{WarningFilled-1Rc4hr0C.js → WarningFilled-Cy1tvuQy.js} +1 -1
- package/dist/WarningFilled-lkr453eh.js +12 -0
- package/dist/{adapters-D1FFZFoA.js → adapters-BbCnXSYo.js} +2 -2
- package/dist/{analysisTools-CXyOvSZT.js → analysisTools-Cp5-3DaU.js} +59 -12
- package/dist/creator.js +4 -2
- package/dist/designTokens-walF_QkZ.js +23 -0
- package/dist/images/healthcare/bg.jpg +0 -0
- package/dist/{index-CYjdXPgc.js → index-C71iHgSs.js} +2640 -2722
- package/dist/{index-XuBVjlmu.js → index-CBvqcbIU.js} +7214 -7643
- package/dist/index-D94YNWTb.js +433 -0
- package/dist/index-DSYmOXnQ.js +6486 -0
- package/dist/index-fP97rKeQ.js +433 -0
- package/dist/index.js +8 -6
- package/dist/judgement-xTGXlDcn.js +29 -0
- package/dist/runtime.js +1 -1
- package/dist/sortable.esm-bm_c5vmI.js +3307 -0
- package/dist/types.js +1 -1
- package/dist/useDialogueLogic-D1lkUKUZ.js +576 -0
- package/dist/useDialogueLogic-vOJ9XRNP.js +576 -0
- package/dist-types/client/src/admin/CaseDataEditor.d.ts +20 -0
- package/dist-types/client/src/admin/CaseEditor.d.ts +19 -0
- package/dist-types/client/src/admin/DialogueFormCheckRulesEditor.d.ts +11 -0
- package/dist-types/client/src/admin/DialogueFormInitDataEditor.d.ts +31 -0
- package/dist-types/client/src/admin/InitDataEditors.d.ts +7 -0
- package/dist-types/client/src/admin/ModelEditor.d.ts +11 -0
- package/dist-types/client/src/admin/ModelPreview.d.ts +13 -0
- package/dist-types/client/src/admin/OptionSelector.d.ts +32 -0
- package/dist-types/client/src/admin/StageStepEditor.d.ts +20 -0
- package/dist-types/client/src/admin/StepAnswerKeyEditor.d.ts +19 -0
- package/dist-types/client/src/admin/StepByStepCreator.d.ts +27 -0
- package/dist-types/client/src/admin/components/AbilityMapEditor.d.ts +12 -0
- package/dist-types/client/src/admin/components/CasePreview.d.ts +8 -0
- package/dist-types/client/src/admin/components/StepAbilitySelector.d.ts +9 -0
- package/dist-types/client/src/admin/constants/creatorConstants.d.ts +39 -0
- package/dist-types/client/src/admin/editors/CaseAnalysisEditor.d.ts +11 -0
- package/dist-types/client/src/admin/editors/DecisionMakingEditor.d.ts +7 -0
- package/dist-types/client/src/admin/editors/DialogueEditor.d.ts +12 -0
- package/dist-types/client/src/admin/editors/DocumentReviewEditor.d.ts +7 -0
- package/dist-types/client/src/admin/editors/DocumentReviewRuntimeRulesEditor.d.ts +15 -0
- package/dist-types/client/src/admin/editors/FormFillingEditor.d.ts +33 -0
- package/dist-types/client/src/admin/editors/ModelUIConfigEditor.d.ts +5 -0
- package/dist-types/client/src/admin/editors/QAEditor.d.ts +6 -0
- package/dist-types/client/src/admin/editors/RouterEditors.d.ts +18 -0
- package/dist-types/client/src/admin/editors/StepBriefingEditor.d.ts +14 -0
- package/dist-types/client/src/admin/editors/StrategyLabEditor.d.ts +24 -0
- package/dist-types/client/src/admin/editors/decisionEditorParts.d.ts +18 -0
- package/dist-types/client/src/admin/editors/index.d.ts +8 -0
- package/dist-types/client/src/admin/editors/shared.d.ts +17 -0
- package/dist-types/client/src/admin/hooks/useStep1Intent.d.ts +16 -0
- package/dist-types/client/src/admin/hooks/useStep2Outline.d.ts +41 -0
- package/dist-types/client/src/admin/hooks/useStep3Details.d.ts +123 -0
- package/dist-types/client/src/admin/hooks/useStep4Cases.d.ts +48 -0
- package/dist-types/client/src/admin/hooks/useStep5Validation.d.ts +16 -0
- package/dist-types/client/src/admin/landingValidation.d.ts +74 -0
- package/dist-types/client/src/admin/schemaFieldUtils.d.ts +55 -0
- package/dist-types/client/src/admin/services.d.ts +461 -0
- package/dist-types/client/src/admin/shared-editors.d.ts +31 -0
- package/dist-types/client/src/admin/types/creatorArtifacts.d.ts +140 -0
- package/dist-types/client/src/components/AbilityMapView.d.ts +15 -0
- package/dist-types/client/src/components/CaseDetail/CaseDetailContent.d.ts +12 -0
- package/dist-types/client/src/components/ConversationalDataCollector/IntentConfirmPanel.d.ts +20 -0
- package/dist-types/client/src/components/ConversationalDataCollector/index.d.ts +7 -0
- package/dist-types/client/src/components/ConversationalDataCollector/intentState.d.ts +24 -0
- package/dist-types/client/src/components/ConversationalDataCollector/types.d.ts +95 -0
- package/dist-types/client/src/components/ConversationalDataCollector/utils.d.ts +62 -0
- package/dist-types/client/src/components/CustomLayoutRenderer.d.ts +8 -0
- package/dist-types/client/src/components/MarkdownRenderer.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/VisualInputComponents.d.ts +85 -0
- package/dist-types/client/src/components/StrategyLabScene/components/AdversarialView.d.ts +18 -0
- package/dist-types/client/src/components/StrategyLabScene/components/BottomBar.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CharacterCard.d.ts +14 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CharacterDialoguePanel.d.ts +32 -0
- package/dist-types/client/src/components/StrategyLabScene/components/CollaborativeView.d.ts +20 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ComparisonView.d.ts +16 -0
- package/dist-types/client/src/components/StrategyLabScene/components/DecisionInput.d.ts +27 -0
- package/dist-types/client/src/components/StrategyLabScene/components/DecisionSwitcher.d.ts +14 -0
- package/dist-types/client/src/components/StrategyLabScene/components/EvaluationReport.d.ts +13 -0
- package/dist-types/client/src/components/StrategyLabScene/components/NodeChainPanels.d.ts +32 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ProgressSteps.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SandboxView.d.ts +19 -0
- package/dist-types/client/src/components/StrategyLabScene/components/ScenarioPanel.d.ts +17 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SimulationAnimation.d.ts +13 -0
- package/dist-types/client/src/components/StrategyLabScene/components/SimulationResult.d.ts +15 -0
- package/dist-types/client/src/components/StrategyLabScene/components/StressTestView.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/themeMatching.d.ts +21 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/education.d.ts +45 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/healthcare.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/index.d.ts +22 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/professional.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/themes/technology.d.ts +7 -0
- package/dist-types/client/src/components/StrategyLabScene/types.d.ts +82 -0
- package/dist-types/client/src/components/StrategyLabScene/views/UnifiedStrategyLabView.d.ts +72 -0
- package/dist-types/client/src/components/TrainingEngine/BriefingQAChat.d.ts +19 -0
- package/dist-types/client/src/components/TrainingEngine/CaseInfoModal.d.ts +12 -0
- package/dist-types/client/src/components/TrainingEngine/CaseSelector.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/ClassicView.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/DashboardHomePage.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/EnhancedStudentProfilePanel.d.ts +9 -0
- package/dist-types/client/src/components/TrainingEngine/EvaluationPanel.d.ts +8 -0
- package/dist-types/client/src/components/TrainingEngine/GlobalQAPanel.d.ts +34 -0
- package/dist-types/client/src/components/TrainingEngine/GuidanceHistoryDrawer.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/GuidancePanel.d.ts +3 -0
- package/dist-types/client/src/components/TrainingEngine/ImmersiveGameView.d.ts +7 -0
- package/dist-types/client/src/components/TrainingEngine/PluginRenderer.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/ProgressTracker.d.ts +3 -0
- package/dist-types/client/src/components/TrainingEngine/StageAssessingOverlay.d.ts +17 -0
- package/dist-types/client/src/components/TrainingEngine/StageAssessmentPanel.d.ts +10 -0
- package/dist-types/client/src/components/TrainingEngine/StepExecutor.d.ts +20 -0
- package/dist-types/client/src/components/TrainingEngine/StepNodeMap.d.ts +15 -0
- package/dist-types/client/src/components/TrainingEngine/StudentProfilePanel.d.ts +6 -0
- package/dist-types/client/src/components/TrainingEngine/ThemeContext.d.ts +8 -0
- package/dist-types/client/src/components/TrainingEngine/TrainingMaterialsSidebar.d.ts +21 -0
- package/dist-types/client/src/components/TrainingEngine/TrainingModelContainer.d.ts +42 -0
- package/dist-types/client/src/components/TrainingEngine/ViewProps.d.ts +37 -0
- package/dist-types/client/src/components/TrainingEngine/profileDataSelectors.d.ts +23 -0
- package/dist-types/client/src/components/TrainingEngine/stepInitData.d.ts +42 -0
- package/dist-types/client/src/components/TrainingEngine/targetAbilityUtils.d.ts +11 -0
- package/dist-types/client/src/components/VisualizationRenderer/ChartRenderer.d.ts +12 -0
- package/dist-types/client/src/components/VisualizationRenderer/types.d.ts +41 -0
- package/dist-types/client/src/config/appConfig.d.ts +15 -0
- package/dist-types/client/src/configs/agentConfig.d.ts +66 -0
- package/dist-types/client/src/configs/intentDiscoveryConfig.d.ts +22 -0
- package/dist-types/client/src/data/mockTrainingModel.d.ts +10 -0
- package/dist-types/client/src/hooks/useAIService.d.ts +17 -0
- package/dist-types/client/src/hooks/useDialogueLogic.d.ts +53 -0
- package/dist-types/client/src/hooks/useFormFillingLogic.d.ts +26 -0
- package/dist-types/client/src/hooks/useFormRealtimeGuidance.d.ts +45 -0
- package/dist-types/client/src/hooks/useRealtimeGuidance.d.ts +66 -0
- package/dist-types/client/src/hooks/useStageAssessment.d.ts +8 -0
- package/dist-types/client/src/hooks/useStepExecution.d.ts +14 -0
- package/dist-types/client/src/hooks/useTrainingModel.d.ts +30 -0
- package/dist-types/client/src/lib/creator.d.ts +1 -0
- package/dist-types/client/src/lib/index.d.ts +1 -0
- package/dist-types/client/src/lib/types.d.ts +113 -22
- package/dist-types/client/src/plugins/AssessmentPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/CaseAnalysisPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/CaseAnalysisPluginView.d.ts +26 -0
- package/dist-types/client/src/plugins/DecisionSelectPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/DialogueFormPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/DialogueFormPluginView.d.ts +37 -0
- package/dist-types/client/src/plugins/DialoguePlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/DialoguePluginView.d.ts +44 -0
- package/dist-types/client/src/plugins/DocumentReview/DocumentCard.d.ts +47 -0
- package/dist-types/client/src/plugins/DocumentReview/LayoutComponents.d.ts +47 -0
- package/dist-types/client/src/plugins/DocumentReview/MarkListPanel.d.ts +51 -0
- package/dist-types/client/src/plugins/DocumentReview/MarkModal.d.ts +37 -0
- package/dist-types/client/src/plugins/DocumentReview/ResultPanel.d.ts +32 -0
- package/dist-types/client/src/plugins/DocumentReview/Toolbar.d.ts +31 -0
- package/dist-types/client/src/plugins/DocumentReview/designTokens.d.ts +76 -0
- package/dist-types/client/src/plugins/DocumentReviewPlugin.d.ts +14 -0
- package/dist-types/client/src/plugins/ProcessOperationPlugin.d.ts +8 -0
- package/dist-types/client/src/plugins/QAPlugin.d.ts +9 -0
- package/dist-types/client/src/plugins/StrategyLabPlugin.d.ts +7 -0
- package/dist-types/client/src/plugins/decision-making/DecisionMakingPlugin.d.ts +4 -0
- package/dist-types/client/src/plugins/decision-making/DecisionWorkspace.d.ts +23 -0
- package/dist-types/client/src/plugins/decision-making/MaterialsPanel.d.ts +18 -0
- package/dist-types/client/src/plugins/decision-making/logic.d.ts +46 -0
- package/dist-types/client/src/plugins/decision-making/scoring.d.ts +79 -0
- package/dist-types/client/src/plugins/decision-making/styles.d.ts +743 -0
- package/dist-types/client/src/plugins/decision-making/types.d.ts +179 -0
- package/dist-types/client/src/plugins/form-filling/DocumentFormLayout.d.ts +22 -0
- package/dist-types/client/src/plugins/form-filling/FormAssistPanel.d.ts +20 -0
- package/dist-types/client/src/plugins/form-filling/FormFillingPlugin.d.ts +15 -0
- package/dist-types/client/src/plugins/form-filling/forms.d.ts +28 -0
- package/dist-types/client/src/plugins/form-filling/scoring.d.ts +86 -0
- package/dist-types/client/src/plugins/form-filling/useFormFilling.d.ts +42 -0
- package/dist-types/client/src/plugins/form-filling/validationRules.d.ts +26 -0
- package/dist-types/client/src/plugins/shared/DecisionShared.d.ts +54 -0
- package/dist-types/client/src/plugins/shared/FrameworkWidget.d.ts +19 -0
- package/dist-types/client/src/plugins/shared/PluginFooter.d.ts +4 -0
- package/dist-types/client/src/plugins/shared/PluginHeader.d.ts +4 -0
- package/dist-types/client/src/plugins/shared/analysisTools.d.ts +30 -0
- package/dist-types/client/src/plugins/shared/disturbanceUtils.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/index.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/jsonRepair.d.ts +39 -0
- package/dist-types/client/src/plugins/shared/judgement.d.ts +46 -0
- package/dist-types/client/src/plugins/shared/nodeChain.d.ts +15 -0
- package/dist-types/client/src/plugins/shared/renderFieldGrid.d.ts +16 -0
- package/dist-types/client/src/plugins/shared/reportBlocks.d.ts +33 -0
- package/dist-types/client/src/plugins/shared/reportEvaluation.d.ts +30 -0
- package/dist-types/client/src/plugins/shared/reportExport.d.ts +12 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/BlockPropertiesPanel.d.ts +9 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/BlockToolbox.d.ts +11 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/ReportWorkbench.d.ts +20 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/SortableBlock.d.ts +15 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/factory.d.ts +14 -0
- package/dist-types/client/src/plugins/shared/reportWorkbench/outlineDraft.d.ts +7 -0
- package/dist-types/client/src/plugins/shared/simulationEngine.d.ts +112 -0
- package/dist-types/client/src/plugins/shared/simulationModes.d.ts +21 -0
- package/dist-types/client/src/plugins/shared/themes.d.ts +5 -0
- package/dist-types/client/src/plugins/shared/types.d.ts +1247 -0
- package/dist-types/client/src/services/AICommandHandler.d.ts +68 -0
- package/dist-types/client/src/services/cozeApiClient.d.ts +44 -0
- package/dist-types/client/src/services/mockApi.d.ts +48 -0
- package/dist-types/client/src/services/storageService.d.ts +88 -0
- package/dist-types/client/src/stores/abilityStore.d.ts +33 -0
- package/dist-types/client/src/stores/dialogueStore.d.ts +30 -0
- package/dist-types/client/src/stores/formRegistryStore.d.ts +45 -0
- package/dist-types/client/src/stores/guidanceStore.d.ts +17 -0
- package/dist-types/client/src/stores/stepEvidenceStore.d.ts +14 -0
- package/dist-types/client/src/stores/strategyLabStore.d.ts +46 -0
- package/dist-types/client/src/stores/trainingStore.d.ts +84 -0
- package/dist-types/client/src/types/ai-commands.d.ts +144 -0
- package/dist-types/client/src/types.d.ts +17 -0
- package/dist-types/client/src/utils/abilityMapGenerator.d.ts +27 -0
- package/dist-types/client/src/utils/formUtils.d.ts +66 -0
- package/dist-types/client/src/utils/rule-engine.d.ts +36 -0
- package/dist-types/shared/types/index.d.ts +592 -0
- package/package.json +5 -3
- package/dist/CaseAnalysisPlugin-CQvF9_zr.js +0 -416
- package/dist/DialogueFormPlugin-C9ssnVMr.js +0 -959
- package/dist/DialoguePlugin-DU00QpmQ.js +0 -416
- package/dist/DocumentReviewPlugin-HNOZY1T4.js +0 -977
- package/dist/FormFillingPlugin-DURWsioi.js +0 -445
- package/dist/ModelEditor-BPJsPR0S.js +0 -8264
- package/dist/PluginHeader-B-GESJmT.js +0 -87
- package/dist/QAPlugin-Bh_UjK1N.js +0 -184
- package/dist/RadarChart-C5ZM0kWt.js +0 -24963
- package/dist/StrategyLabPlugin-DGeZsr_7.js +0 -14361
- package/dist/ThunderboltOutlined-nH_FO_4A.js +0 -44
- package/dist/ToolOutlined-DtuNJDB2.js +0 -28
- package/dist/TrainingModelContainer-DpW-uB8O.js +0 -11883
- package/dist/WarningOutlined-5g1d66hO.js +0 -164
- package/dist/judgement-D_9i7x9S.js +0 -20
- package/dist/useDialogueLogic-IHELcN3X.js +0 -368
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { j as r, d as a } from "./RadarChart-C5ZM0kWt.js";
|
|
2
|
-
import { Popover as d, Card as c } from "antd";
|
|
3
|
-
const g = ({ title: e, variant: l, theme: o, noMargin: s }) => {
|
|
4
|
-
const i = s ? 0 : 16, n = /* @__PURE__ */ r.jsx(
|
|
5
|
-
d,
|
|
6
|
-
{
|
|
7
|
-
content: /* @__PURE__ */ r.jsx("div", { style: { maxWidth: 300, fontSize: 13, lineHeight: 1.7, color: "#333", whiteSpace: "pre-wrap" }, children: e }),
|
|
8
|
-
title: "场景描述",
|
|
9
|
-
trigger: "click",
|
|
10
|
-
placement: "bottomRight",
|
|
11
|
-
children: /* @__PURE__ */ r.jsx(
|
|
12
|
-
a,
|
|
13
|
-
{
|
|
14
|
-
style: {
|
|
15
|
-
fontSize: 13,
|
|
16
|
-
color: o.primaryColor,
|
|
17
|
-
cursor: "pointer",
|
|
18
|
-
flexShrink: 0,
|
|
19
|
-
opacity: 0.75
|
|
20
|
-
},
|
|
21
|
-
onClick: (t) => t.stopPropagation()
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
return l === "minimal" ? /* @__PURE__ */ r.jsx("h3", { style: { margin: `0 0 ${i}px`, color: o.headerColor }, children: e }) : l === "banner" ? /* @__PURE__ */ r.jsxs(
|
|
27
|
-
"div",
|
|
28
|
-
{
|
|
29
|
-
style: {
|
|
30
|
-
marginBottom: i,
|
|
31
|
-
padding: "8px 16px",
|
|
32
|
-
backgroundColor: o.headerBg,
|
|
33
|
-
color: o.headerColor,
|
|
34
|
-
borderRadius: o.borderRadius,
|
|
35
|
-
display: "flex",
|
|
36
|
-
alignItems: "center",
|
|
37
|
-
gap: 8
|
|
38
|
-
},
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ r.jsx(
|
|
41
|
-
"h3",
|
|
42
|
-
{
|
|
43
|
-
style: {
|
|
44
|
-
margin: 0,
|
|
45
|
-
color: "inherit",
|
|
46
|
-
fontSize: 14,
|
|
47
|
-
flex: 1,
|
|
48
|
-
overflow: "hidden",
|
|
49
|
-
textOverflow: "ellipsis",
|
|
50
|
-
whiteSpace: "nowrap"
|
|
51
|
-
},
|
|
52
|
-
children: e
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
n
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
) : /* @__PURE__ */ r.jsx(
|
|
59
|
-
c,
|
|
60
|
-
{
|
|
61
|
-
size: "small",
|
|
62
|
-
style: { marginBottom: i, backgroundColor: o.headerBg },
|
|
63
|
-
styles: { body: { padding: "6px 12px" } },
|
|
64
|
-
children: /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
65
|
-
/* @__PURE__ */ r.jsx(
|
|
66
|
-
"h3",
|
|
67
|
-
{
|
|
68
|
-
style: {
|
|
69
|
-
margin: 0,
|
|
70
|
-
color: o.headerColor,
|
|
71
|
-
fontSize: 14,
|
|
72
|
-
flex: 1,
|
|
73
|
-
overflow: "hidden",
|
|
74
|
-
textOverflow: "ellipsis",
|
|
75
|
-
whiteSpace: "nowrap"
|
|
76
|
-
},
|
|
77
|
-
children: e
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
n
|
|
81
|
-
] })
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
};
|
|
85
|
-
export {
|
|
86
|
-
g as P
|
|
87
|
-
};
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { g as $, j as s, e as C } from "./RadarChart-C5ZM0kWt.js";
|
|
2
|
-
import { useState as f, useRef as q, useCallback as B } from "react";
|
|
3
|
-
import { message as y, Card as K, List as b, Tag as m, Spin as E, Space as L, Input as P, Button as v } from "antd";
|
|
4
|
-
import { a as z, M as N } from "./TrainingModelContainer-DpW-uB8O.js";
|
|
5
|
-
import { a as U, b as H } from "./WarningOutlined-5g1d66hO.js";
|
|
6
|
-
const { TextArea: M } = P, W = ({
|
|
7
|
-
initData: e,
|
|
8
|
-
checkRules: O,
|
|
9
|
-
onFinish: g
|
|
10
|
-
}) => {
|
|
11
|
-
const [c, j] = f(""), [d, u] = f([]), [p, i] = f(!1), R = $("TUTOR_AGENT"), S = (e == null ? void 0 : e.currentUser) || { userId: "student-001" }, k = (e == null ? void 0 : e.domain) || "银行", { callAI: w, ready: x } = z(R, S), a = q(!0), T = (r) => {
|
|
12
|
-
var I;
|
|
13
|
-
if (!a.current)
|
|
14
|
-
return r;
|
|
15
|
-
const l = (e == null ? void 0 : e.context) || "", o = ((I = e == null ? void 0 : e.currentStep) == null ? void 0 : I.name) || "", n = (e == null ? void 0 : e.modelName) || "", t = (e == null ? void 0 : e.businessType) || "", h = (e == null ? void 0 : e.targetPosition) || "";
|
|
16
|
-
return `
|
|
17
|
-
## 实训场景信息
|
|
18
|
-
- 模型名称:${n}
|
|
19
|
-
- 业务领域:${k}
|
|
20
|
-
- 业务类型:${t}
|
|
21
|
-
- 目标岗位:${h}
|
|
22
|
-
- 当前步骤:${o}
|
|
23
|
-
|
|
24
|
-
## 场景上下文
|
|
25
|
-
${l || "(无额外上下文)"}
|
|
26
|
-
|
|
27
|
-
## 学生的问题
|
|
28
|
-
${r}
|
|
29
|
-
`.trim();
|
|
30
|
-
}, A = B(async () => {
|
|
31
|
-
if (!c.trim()) {
|
|
32
|
-
y.warning("请输入问题");
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
if (!x) {
|
|
36
|
-
y.error("AI服务未就绪,请稍后再试");
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const r = c.trim();
|
|
40
|
-
i(!0), j("");
|
|
41
|
-
try {
|
|
42
|
-
const l = T(r);
|
|
43
|
-
let o = "";
|
|
44
|
-
await w(l, (n, t) => {
|
|
45
|
-
t && (o = n);
|
|
46
|
-
}), a.current = !1;
|
|
47
|
-
try {
|
|
48
|
-
const n = JSON.parse(o), t = {
|
|
49
|
-
id: Date.now(),
|
|
50
|
-
question: r,
|
|
51
|
-
answer: n.answer || o,
|
|
52
|
-
timestamp: Date.now(),
|
|
53
|
-
relatedKnowledge: n.relatedKnowledge
|
|
54
|
-
};
|
|
55
|
-
u((h) => [...h, t]);
|
|
56
|
-
} catch {
|
|
57
|
-
const n = {
|
|
58
|
-
id: Date.now(),
|
|
59
|
-
question: r,
|
|
60
|
-
answer: o || "抱歉,我暂时无法回答这个问题",
|
|
61
|
-
timestamp: Date.now()
|
|
62
|
-
};
|
|
63
|
-
u((t) => [...t, n]);
|
|
64
|
-
}
|
|
65
|
-
} catch (l) {
|
|
66
|
-
console.error("获取回答失败:", l), y.error("获取回答失败,请重试");
|
|
67
|
-
const o = {
|
|
68
|
-
id: Date.now(),
|
|
69
|
-
question: r,
|
|
70
|
-
answer: "抱歉,AI服务暂时不可用,请稍后再试",
|
|
71
|
-
timestamp: Date.now()
|
|
72
|
-
};
|
|
73
|
-
u((n) => [...n, o]);
|
|
74
|
-
} finally {
|
|
75
|
-
i(!1);
|
|
76
|
-
}
|
|
77
|
-
}, [c, x, w, e]), Q = () => {
|
|
78
|
-
g == null || g({
|
|
79
|
-
stepId: (e == null ? void 0 : e.stepId) || "unknown",
|
|
80
|
-
operationType: "qa",
|
|
81
|
-
operationData: {
|
|
82
|
-
qaHistory: d,
|
|
83
|
-
totalQuestions: d.length
|
|
84
|
-
},
|
|
85
|
-
operationLog: [],
|
|
86
|
-
timestamp: Date.now()
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
return /* @__PURE__ */ s.jsxs("div", { style: { padding: "20px" }, children: [
|
|
90
|
-
(e == null ? void 0 : e.title) && /* @__PURE__ */ s.jsxs(K, { size: "small", style: { marginBottom: "16px", backgroundColor: "#f0f9ff" }, children: [
|
|
91
|
-
/* @__PURE__ */ s.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
92
|
-
/* @__PURE__ */ s.jsx(U, { style: { color: "#1890ff" } }),
|
|
93
|
-
/* @__PURE__ */ s.jsx("strong", { children: e.title })
|
|
94
|
-
] }),
|
|
95
|
-
e.description && /* @__PURE__ */ s.jsx("p", { style: { margin: "8px 0 0", color: "#666" }, children: e.description })
|
|
96
|
-
] }),
|
|
97
|
-
/* @__PURE__ */ s.jsxs(
|
|
98
|
-
"div",
|
|
99
|
-
{
|
|
100
|
-
style: {
|
|
101
|
-
border: "1px solid #d9d9d9",
|
|
102
|
-
borderRadius: "8px",
|
|
103
|
-
padding: "16px",
|
|
104
|
-
height: "400px",
|
|
105
|
-
overflowY: "auto",
|
|
106
|
-
marginBottom: "16px",
|
|
107
|
-
backgroundColor: "#fafafa"
|
|
108
|
-
},
|
|
109
|
-
children: [
|
|
110
|
-
d.length === 0 ? /* @__PURE__ */ s.jsxs("div", { style: { textAlign: "center", color: "#999", paddingTop: "100px" }, children: [
|
|
111
|
-
/* @__PURE__ */ s.jsx(H, { style: { fontSize: "48px", marginBottom: "16px" } }),
|
|
112
|
-
/* @__PURE__ */ s.jsx("p", { children: "暂无问答记录" }),
|
|
113
|
-
/* @__PURE__ */ s.jsx("p", { children: "请在下方输入您的问题" })
|
|
114
|
-
] }) : /* @__PURE__ */ s.jsx(
|
|
115
|
-
b,
|
|
116
|
-
{
|
|
117
|
-
dataSource: d,
|
|
118
|
-
renderItem: (r) => /* @__PURE__ */ s.jsxs(b.Item, { style: { display: "block", border: "none", padding: "8px 0" }, children: [
|
|
119
|
-
/* @__PURE__ */ s.jsxs("div", { style: { marginBottom: "8px" }, children: [
|
|
120
|
-
/* @__PURE__ */ s.jsx(m, { color: "blue", children: "问题" }),
|
|
121
|
-
/* @__PURE__ */ s.jsx("span", { children: r.question })
|
|
122
|
-
] }),
|
|
123
|
-
/* @__PURE__ */ s.jsxs("div", { style: { marginLeft: "24px" }, children: [
|
|
124
|
-
/* @__PURE__ */ s.jsx(m, { color: "green", children: "回答" }),
|
|
125
|
-
/* @__PURE__ */ s.jsx(N, { content: r.answer })
|
|
126
|
-
] }),
|
|
127
|
-
r.relatedKnowledge && r.relatedKnowledge.length > 0 && /* @__PURE__ */ s.jsxs("div", { style: { marginLeft: "24px", marginTop: "8px" }, children: [
|
|
128
|
-
/* @__PURE__ */ s.jsx(m, { children: "相关知识点" }),
|
|
129
|
-
r.relatedKnowledge.map((l, o) => /* @__PURE__ */ s.jsx(m, { color: "orange", children: l }, o))
|
|
130
|
-
] })
|
|
131
|
-
] })
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
p && /* @__PURE__ */ s.jsx("div", { style: { textAlign: "center", padding: "20px" }, children: /* @__PURE__ */ s.jsx(E, { tip: "AI 正在思考..." }) })
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
/* @__PURE__ */ s.jsxs(L.Compact, { style: { width: "100%", marginBottom: "16px" }, children: [
|
|
139
|
-
/* @__PURE__ */ s.jsx(
|
|
140
|
-
M,
|
|
141
|
-
{
|
|
142
|
-
value: c,
|
|
143
|
-
onChange: (r) => j(r.target.value),
|
|
144
|
-
onPressEnter: (r) => {
|
|
145
|
-
r.shiftKey || (r.preventDefault(), A());
|
|
146
|
-
},
|
|
147
|
-
placeholder: "请输入您的业务问题... (Shift+Enter换行,Enter发送)",
|
|
148
|
-
autoSize: { minRows: 2, maxRows: 4 },
|
|
149
|
-
style: { flex: 1 },
|
|
150
|
-
disabled: p || !x
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
/* @__PURE__ */ s.jsx(
|
|
154
|
-
v,
|
|
155
|
-
{
|
|
156
|
-
type: "primary",
|
|
157
|
-
icon: /* @__PURE__ */ s.jsx(C, {}),
|
|
158
|
-
onClick: A,
|
|
159
|
-
disabled: !c.trim() || p || !x,
|
|
160
|
-
loading: p,
|
|
161
|
-
style: { height: "auto" },
|
|
162
|
-
children: "提问"
|
|
163
|
-
}
|
|
164
|
-
)
|
|
165
|
-
] }),
|
|
166
|
-
/* @__PURE__ */ s.jsx("div", { style: { textAlign: "right" }, children: /* @__PURE__ */ s.jsxs(
|
|
167
|
-
v,
|
|
168
|
-
{
|
|
169
|
-
type: "primary",
|
|
170
|
-
size: "large",
|
|
171
|
-
onClick: Q,
|
|
172
|
-
disabled: d.length === 0,
|
|
173
|
-
children: [
|
|
174
|
-
"完成答疑 (",
|
|
175
|
-
d.length,
|
|
176
|
-
" 个问题)"
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
) })
|
|
180
|
-
] });
|
|
181
|
-
};
|
|
182
|
-
export {
|
|
183
|
-
W as default
|
|
184
|
-
};
|