@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.
Files changed (278) hide show
  1. package/README.md +481 -15
  2. package/dist/{ArrowLeftOutlined-CiSQq3bL.js → ArrowLeftOutlined-BxA84GXs.js} +1 -1
  3. package/dist/ArrowLeftOutlined-D785XjyB.js +12 -0
  4. package/dist/{AssessmentPlugin-Bx4VrBdV.js → AssessmentPlugin-D_iesmyg.js} +7 -7
  5. package/dist/AssessmentPlugin-zRr-IsdA.js +607 -0
  6. package/dist/CaseAnalysisPlugin-CXuQpkPd.js +2196 -0
  7. package/dist/CaseAnalysisPlugin-DytlXsRD.js +2196 -0
  8. package/dist/CaseDetailContent-DT5nCtRT.js +28613 -0
  9. package/dist/CaseDetailContent-Y7Q430MG.js +28595 -0
  10. package/dist/{CharacterDialoguePanel-Bvdab3qj.js → CharacterDialoguePanel-CdtUl-Sv.js} +178 -139
  11. package/dist/CharacterDialoguePanel-D_4YNFZv.js +815 -0
  12. package/dist/{CheckCircleFilled-Byo8CDfW.js → CheckCircleFilled-CnslIY7j.js} +1 -1
  13. package/dist/CheckCircleFilled-NvZaC2sk.js +12 -0
  14. package/dist/DecisionMakingPlugin-B_KQUFzW.js +1385 -0
  15. package/dist/DecisionMakingPlugin-ILLGek3S.js +1385 -0
  16. package/dist/{DecisionSelectPlugin-DtQ2KV34.js → DecisionSelectPlugin-BGQiHGBK.js} +20 -11
  17. package/dist/DecisionSelectPlugin-Bqmh6XGh.js +872 -0
  18. package/dist/{DecisionShared-Dh9oeQFT.js → DecisionShared-BHq1lEqt.js} +2 -2
  19. package/dist/DecisionShared-Be-zKZLT.js +65 -0
  20. package/dist/DeleteOutlined-BvMjU7m5.js +12 -0
  21. package/dist/DeleteOutlined-Dqy6M2LH.js +12 -0
  22. package/dist/{CustomLayoutRenderer--rnQrqQ2.js → DialogueFormPlugin-BpCeFadt.js} +22724 -21631
  23. package/dist/DialogueFormPlugin-CXlbxX-z.js +123617 -0
  24. package/dist/DialoguePlugin-CO7Nzv0K.js +596 -0
  25. package/dist/DialoguePlugin-DDNdsylz.js +596 -0
  26. package/dist/DocumentReviewPlugin-2CnKQwVG.js +1967 -0
  27. package/dist/DocumentReviewPlugin-qYYrnjvE.js +1967 -0
  28. package/dist/{EyeOutlined-XvOAKlLs.js → EyeOutlined-BrKCNjui.js} +1 -1
  29. package/dist/EyeOutlined-CW0tYV0f.js +12 -0
  30. package/dist/FormFillingPlugin-C3h8ySOZ.js +969 -0
  31. package/dist/FormFillingPlugin-CPmd76Qr.js +969 -0
  32. package/dist/HolderOutlined-CH0tShWu.js +12 -0
  33. package/dist/HolderOutlined-Dm6TBtqf.js +12 -0
  34. package/dist/ModelEditor-BjEbFloQ.js +11753 -0
  35. package/dist/ModelEditor-CwR67DFQ.js +11753 -0
  36. package/dist/{ProcessOperationPlugin-IijngDlX.js → ProcessOperationPlugin-1Lz431aC.js} +12 -12
  37. package/dist/ProcessOperationPlugin-BkmdG3ch.js +88 -0
  38. package/dist/QAPlugin-0C4kpq3J.js +172 -0
  39. package/dist/QAPlugin-UC8uywcg.js +172 -0
  40. package/dist/{ReloadOutlined-Daor2m11.js → ReloadOutlined-BZ92nlYF.js} +1 -1
  41. package/dist/ReloadOutlined-CYoPOwLl.js +12 -0
  42. package/dist/{SettingOutlined-CLEOgXB-.js → SettingOutlined-F466s0Ti.js} +33 -65
  43. package/dist/SettingOutlined-c2hikCfN.js +60 -0
  44. package/dist/StarFilled-Bilmj6UK.js +28 -0
  45. package/dist/StarFilled-CtH30fL0.js +28 -0
  46. package/dist/StrategyLabPlugin-CvO07sXV.js +12445 -0
  47. package/dist/StrategyLabPlugin-DUqZYctQ.js +12445 -0
  48. package/dist/ThunderboltOutlined-BpmoCKdV.js +28 -0
  49. package/dist/ThunderboltOutlined-DDQFi5Cv.js +28 -0
  50. package/dist/TrainingModelContainer-DqCsdC7C.js +11241 -0
  51. package/dist/TrainingModelContainer-yi8W6KFl.js +11241 -0
  52. package/dist/{UndoOutlined-ChUQYUul.js → UndoOutlined-6JZVzmdX.js} +26 -42
  53. package/dist/UndoOutlined-Dw6_9_OL.js +68 -0
  54. package/dist/{WarningFilled-1Rc4hr0C.js → WarningFilled-Cy1tvuQy.js} +1 -1
  55. package/dist/WarningFilled-lkr453eh.js +12 -0
  56. package/dist/{adapters-D1FFZFoA.js → adapters-BbCnXSYo.js} +2 -2
  57. package/dist/{analysisTools-CXyOvSZT.js → analysisTools-Cp5-3DaU.js} +59 -12
  58. package/dist/creator.js +4 -2
  59. package/dist/designTokens-walF_QkZ.js +23 -0
  60. package/dist/images/healthcare/bg.jpg +0 -0
  61. package/dist/{index-CYjdXPgc.js → index-C71iHgSs.js} +2640 -2722
  62. package/dist/{index-XuBVjlmu.js → index-CBvqcbIU.js} +7214 -7643
  63. package/dist/index-D94YNWTb.js +433 -0
  64. package/dist/index-DSYmOXnQ.js +6486 -0
  65. package/dist/index-fP97rKeQ.js +433 -0
  66. package/dist/index.js +8 -6
  67. package/dist/judgement-xTGXlDcn.js +29 -0
  68. package/dist/runtime.js +1 -1
  69. package/dist/sortable.esm-bm_c5vmI.js +3307 -0
  70. package/dist/types.js +1 -1
  71. package/dist/useDialogueLogic-D1lkUKUZ.js +576 -0
  72. package/dist/useDialogueLogic-vOJ9XRNP.js +576 -0
  73. package/dist-types/client/src/admin/CaseDataEditor.d.ts +20 -0
  74. package/dist-types/client/src/admin/CaseEditor.d.ts +19 -0
  75. package/dist-types/client/src/admin/DialogueFormCheckRulesEditor.d.ts +11 -0
  76. package/dist-types/client/src/admin/DialogueFormInitDataEditor.d.ts +31 -0
  77. package/dist-types/client/src/admin/InitDataEditors.d.ts +7 -0
  78. package/dist-types/client/src/admin/ModelEditor.d.ts +11 -0
  79. package/dist-types/client/src/admin/ModelPreview.d.ts +13 -0
  80. package/dist-types/client/src/admin/OptionSelector.d.ts +32 -0
  81. package/dist-types/client/src/admin/StageStepEditor.d.ts +20 -0
  82. package/dist-types/client/src/admin/StepAnswerKeyEditor.d.ts +19 -0
  83. package/dist-types/client/src/admin/StepByStepCreator.d.ts +27 -0
  84. package/dist-types/client/src/admin/components/AbilityMapEditor.d.ts +12 -0
  85. package/dist-types/client/src/admin/components/CasePreview.d.ts +8 -0
  86. package/dist-types/client/src/admin/components/StepAbilitySelector.d.ts +9 -0
  87. package/dist-types/client/src/admin/constants/creatorConstants.d.ts +39 -0
  88. package/dist-types/client/src/admin/editors/CaseAnalysisEditor.d.ts +11 -0
  89. package/dist-types/client/src/admin/editors/DecisionMakingEditor.d.ts +7 -0
  90. package/dist-types/client/src/admin/editors/DialogueEditor.d.ts +12 -0
  91. package/dist-types/client/src/admin/editors/DocumentReviewEditor.d.ts +7 -0
  92. package/dist-types/client/src/admin/editors/DocumentReviewRuntimeRulesEditor.d.ts +15 -0
  93. package/dist-types/client/src/admin/editors/FormFillingEditor.d.ts +33 -0
  94. package/dist-types/client/src/admin/editors/ModelUIConfigEditor.d.ts +5 -0
  95. package/dist-types/client/src/admin/editors/QAEditor.d.ts +6 -0
  96. package/dist-types/client/src/admin/editors/RouterEditors.d.ts +18 -0
  97. package/dist-types/client/src/admin/editors/StepBriefingEditor.d.ts +14 -0
  98. package/dist-types/client/src/admin/editors/StrategyLabEditor.d.ts +24 -0
  99. package/dist-types/client/src/admin/editors/decisionEditorParts.d.ts +18 -0
  100. package/dist-types/client/src/admin/editors/index.d.ts +8 -0
  101. package/dist-types/client/src/admin/editors/shared.d.ts +17 -0
  102. package/dist-types/client/src/admin/hooks/useStep1Intent.d.ts +16 -0
  103. package/dist-types/client/src/admin/hooks/useStep2Outline.d.ts +41 -0
  104. package/dist-types/client/src/admin/hooks/useStep3Details.d.ts +123 -0
  105. package/dist-types/client/src/admin/hooks/useStep4Cases.d.ts +48 -0
  106. package/dist-types/client/src/admin/hooks/useStep5Validation.d.ts +16 -0
  107. package/dist-types/client/src/admin/landingValidation.d.ts +74 -0
  108. package/dist-types/client/src/admin/schemaFieldUtils.d.ts +55 -0
  109. package/dist-types/client/src/admin/services.d.ts +461 -0
  110. package/dist-types/client/src/admin/shared-editors.d.ts +31 -0
  111. package/dist-types/client/src/admin/types/creatorArtifacts.d.ts +140 -0
  112. package/dist-types/client/src/components/AbilityMapView.d.ts +15 -0
  113. package/dist-types/client/src/components/CaseDetail/CaseDetailContent.d.ts +12 -0
  114. package/dist-types/client/src/components/ConversationalDataCollector/IntentConfirmPanel.d.ts +20 -0
  115. package/dist-types/client/src/components/ConversationalDataCollector/index.d.ts +7 -0
  116. package/dist-types/client/src/components/ConversationalDataCollector/intentState.d.ts +24 -0
  117. package/dist-types/client/src/components/ConversationalDataCollector/types.d.ts +95 -0
  118. package/dist-types/client/src/components/ConversationalDataCollector/utils.d.ts +62 -0
  119. package/dist-types/client/src/components/CustomLayoutRenderer.d.ts +8 -0
  120. package/dist-types/client/src/components/MarkdownRenderer.d.ts +15 -0
  121. package/dist-types/client/src/components/StrategyLabScene/VisualInputComponents.d.ts +85 -0
  122. package/dist-types/client/src/components/StrategyLabScene/components/AdversarialView.d.ts +18 -0
  123. package/dist-types/client/src/components/StrategyLabScene/components/BottomBar.d.ts +22 -0
  124. package/dist-types/client/src/components/StrategyLabScene/components/CharacterCard.d.ts +14 -0
  125. package/dist-types/client/src/components/StrategyLabScene/components/CharacterDialoguePanel.d.ts +32 -0
  126. package/dist-types/client/src/components/StrategyLabScene/components/CollaborativeView.d.ts +20 -0
  127. package/dist-types/client/src/components/StrategyLabScene/components/ComparisonView.d.ts +16 -0
  128. package/dist-types/client/src/components/StrategyLabScene/components/DecisionInput.d.ts +27 -0
  129. package/dist-types/client/src/components/StrategyLabScene/components/DecisionSwitcher.d.ts +14 -0
  130. package/dist-types/client/src/components/StrategyLabScene/components/EvaluationReport.d.ts +13 -0
  131. package/dist-types/client/src/components/StrategyLabScene/components/NodeChainPanels.d.ts +32 -0
  132. package/dist-types/client/src/components/StrategyLabScene/components/ProgressSteps.d.ts +15 -0
  133. package/dist-types/client/src/components/StrategyLabScene/components/SandboxView.d.ts +19 -0
  134. package/dist-types/client/src/components/StrategyLabScene/components/ScenarioPanel.d.ts +17 -0
  135. package/dist-types/client/src/components/StrategyLabScene/components/SimulationAnimation.d.ts +13 -0
  136. package/dist-types/client/src/components/StrategyLabScene/components/SimulationResult.d.ts +15 -0
  137. package/dist-types/client/src/components/StrategyLabScene/components/StressTestView.d.ts +22 -0
  138. package/dist-types/client/src/components/StrategyLabScene/themeMatching.d.ts +21 -0
  139. package/dist-types/client/src/components/StrategyLabScene/themes/education.d.ts +45 -0
  140. package/dist-types/client/src/components/StrategyLabScene/themes/healthcare.d.ts +7 -0
  141. package/dist-types/client/src/components/StrategyLabScene/themes/index.d.ts +22 -0
  142. package/dist-types/client/src/components/StrategyLabScene/themes/professional.d.ts +7 -0
  143. package/dist-types/client/src/components/StrategyLabScene/themes/technology.d.ts +7 -0
  144. package/dist-types/client/src/components/StrategyLabScene/types.d.ts +82 -0
  145. package/dist-types/client/src/components/StrategyLabScene/views/UnifiedStrategyLabView.d.ts +72 -0
  146. package/dist-types/client/src/components/TrainingEngine/BriefingQAChat.d.ts +19 -0
  147. package/dist-types/client/src/components/TrainingEngine/CaseInfoModal.d.ts +12 -0
  148. package/dist-types/client/src/components/TrainingEngine/CaseSelector.d.ts +15 -0
  149. package/dist-types/client/src/components/TrainingEngine/ClassicView.d.ts +7 -0
  150. package/dist-types/client/src/components/TrainingEngine/DashboardHomePage.d.ts +7 -0
  151. package/dist-types/client/src/components/TrainingEngine/EnhancedStudentProfilePanel.d.ts +9 -0
  152. package/dist-types/client/src/components/TrainingEngine/EvaluationPanel.d.ts +8 -0
  153. package/dist-types/client/src/components/TrainingEngine/GlobalQAPanel.d.ts +34 -0
  154. package/dist-types/client/src/components/TrainingEngine/GuidanceHistoryDrawer.d.ts +7 -0
  155. package/dist-types/client/src/components/TrainingEngine/GuidancePanel.d.ts +3 -0
  156. package/dist-types/client/src/components/TrainingEngine/ImmersiveGameView.d.ts +7 -0
  157. package/dist-types/client/src/components/TrainingEngine/PluginRenderer.d.ts +15 -0
  158. package/dist-types/client/src/components/TrainingEngine/ProgressTracker.d.ts +3 -0
  159. package/dist-types/client/src/components/TrainingEngine/StageAssessingOverlay.d.ts +17 -0
  160. package/dist-types/client/src/components/TrainingEngine/StageAssessmentPanel.d.ts +10 -0
  161. package/dist-types/client/src/components/TrainingEngine/StepExecutor.d.ts +20 -0
  162. package/dist-types/client/src/components/TrainingEngine/StepNodeMap.d.ts +15 -0
  163. package/dist-types/client/src/components/TrainingEngine/StudentProfilePanel.d.ts +6 -0
  164. package/dist-types/client/src/components/TrainingEngine/ThemeContext.d.ts +8 -0
  165. package/dist-types/client/src/components/TrainingEngine/TrainingMaterialsSidebar.d.ts +21 -0
  166. package/dist-types/client/src/components/TrainingEngine/TrainingModelContainer.d.ts +42 -0
  167. package/dist-types/client/src/components/TrainingEngine/ViewProps.d.ts +37 -0
  168. package/dist-types/client/src/components/TrainingEngine/profileDataSelectors.d.ts +23 -0
  169. package/dist-types/client/src/components/TrainingEngine/stepInitData.d.ts +42 -0
  170. package/dist-types/client/src/components/TrainingEngine/targetAbilityUtils.d.ts +11 -0
  171. package/dist-types/client/src/components/VisualizationRenderer/ChartRenderer.d.ts +12 -0
  172. package/dist-types/client/src/components/VisualizationRenderer/types.d.ts +41 -0
  173. package/dist-types/client/src/config/appConfig.d.ts +15 -0
  174. package/dist-types/client/src/configs/agentConfig.d.ts +66 -0
  175. package/dist-types/client/src/configs/intentDiscoveryConfig.d.ts +22 -0
  176. package/dist-types/client/src/data/mockTrainingModel.d.ts +10 -0
  177. package/dist-types/client/src/hooks/useAIService.d.ts +17 -0
  178. package/dist-types/client/src/hooks/useDialogueLogic.d.ts +53 -0
  179. package/dist-types/client/src/hooks/useFormFillingLogic.d.ts +26 -0
  180. package/dist-types/client/src/hooks/useFormRealtimeGuidance.d.ts +45 -0
  181. package/dist-types/client/src/hooks/useRealtimeGuidance.d.ts +66 -0
  182. package/dist-types/client/src/hooks/useStageAssessment.d.ts +8 -0
  183. package/dist-types/client/src/hooks/useStepExecution.d.ts +14 -0
  184. package/dist-types/client/src/hooks/useTrainingModel.d.ts +30 -0
  185. package/dist-types/client/src/lib/creator.d.ts +1 -0
  186. package/dist-types/client/src/lib/index.d.ts +1 -0
  187. package/dist-types/client/src/lib/types.d.ts +113 -22
  188. package/dist-types/client/src/plugins/AssessmentPlugin.d.ts +8 -0
  189. package/dist-types/client/src/plugins/CaseAnalysisPlugin.d.ts +9 -0
  190. package/dist-types/client/src/plugins/CaseAnalysisPluginView.d.ts +26 -0
  191. package/dist-types/client/src/plugins/DecisionSelectPlugin.d.ts +8 -0
  192. package/dist-types/client/src/plugins/DialogueFormPlugin.d.ts +9 -0
  193. package/dist-types/client/src/plugins/DialogueFormPluginView.d.ts +37 -0
  194. package/dist-types/client/src/plugins/DialoguePlugin.d.ts +8 -0
  195. package/dist-types/client/src/plugins/DialoguePluginView.d.ts +44 -0
  196. package/dist-types/client/src/plugins/DocumentReview/DocumentCard.d.ts +47 -0
  197. package/dist-types/client/src/plugins/DocumentReview/LayoutComponents.d.ts +47 -0
  198. package/dist-types/client/src/plugins/DocumentReview/MarkListPanel.d.ts +51 -0
  199. package/dist-types/client/src/plugins/DocumentReview/MarkModal.d.ts +37 -0
  200. package/dist-types/client/src/plugins/DocumentReview/ResultPanel.d.ts +32 -0
  201. package/dist-types/client/src/plugins/DocumentReview/Toolbar.d.ts +31 -0
  202. package/dist-types/client/src/plugins/DocumentReview/designTokens.d.ts +76 -0
  203. package/dist-types/client/src/plugins/DocumentReviewPlugin.d.ts +14 -0
  204. package/dist-types/client/src/plugins/ProcessOperationPlugin.d.ts +8 -0
  205. package/dist-types/client/src/plugins/QAPlugin.d.ts +9 -0
  206. package/dist-types/client/src/plugins/StrategyLabPlugin.d.ts +7 -0
  207. package/dist-types/client/src/plugins/decision-making/DecisionMakingPlugin.d.ts +4 -0
  208. package/dist-types/client/src/plugins/decision-making/DecisionWorkspace.d.ts +23 -0
  209. package/dist-types/client/src/plugins/decision-making/MaterialsPanel.d.ts +18 -0
  210. package/dist-types/client/src/plugins/decision-making/logic.d.ts +46 -0
  211. package/dist-types/client/src/plugins/decision-making/scoring.d.ts +79 -0
  212. package/dist-types/client/src/plugins/decision-making/styles.d.ts +743 -0
  213. package/dist-types/client/src/plugins/decision-making/types.d.ts +179 -0
  214. package/dist-types/client/src/plugins/form-filling/DocumentFormLayout.d.ts +22 -0
  215. package/dist-types/client/src/plugins/form-filling/FormAssistPanel.d.ts +20 -0
  216. package/dist-types/client/src/plugins/form-filling/FormFillingPlugin.d.ts +15 -0
  217. package/dist-types/client/src/plugins/form-filling/forms.d.ts +28 -0
  218. package/dist-types/client/src/plugins/form-filling/scoring.d.ts +86 -0
  219. package/dist-types/client/src/plugins/form-filling/useFormFilling.d.ts +42 -0
  220. package/dist-types/client/src/plugins/form-filling/validationRules.d.ts +26 -0
  221. package/dist-types/client/src/plugins/shared/DecisionShared.d.ts +54 -0
  222. package/dist-types/client/src/plugins/shared/FrameworkWidget.d.ts +19 -0
  223. package/dist-types/client/src/plugins/shared/PluginFooter.d.ts +4 -0
  224. package/dist-types/client/src/plugins/shared/PluginHeader.d.ts +4 -0
  225. package/dist-types/client/src/plugins/shared/analysisTools.d.ts +30 -0
  226. package/dist-types/client/src/plugins/shared/disturbanceUtils.d.ts +5 -0
  227. package/dist-types/client/src/plugins/shared/index.d.ts +5 -0
  228. package/dist-types/client/src/plugins/shared/jsonRepair.d.ts +39 -0
  229. package/dist-types/client/src/plugins/shared/judgement.d.ts +46 -0
  230. package/dist-types/client/src/plugins/shared/nodeChain.d.ts +15 -0
  231. package/dist-types/client/src/plugins/shared/renderFieldGrid.d.ts +16 -0
  232. package/dist-types/client/src/plugins/shared/reportBlocks.d.ts +33 -0
  233. package/dist-types/client/src/plugins/shared/reportEvaluation.d.ts +30 -0
  234. package/dist-types/client/src/plugins/shared/reportExport.d.ts +12 -0
  235. package/dist-types/client/src/plugins/shared/reportWorkbench/BlockPropertiesPanel.d.ts +9 -0
  236. package/dist-types/client/src/plugins/shared/reportWorkbench/BlockToolbox.d.ts +11 -0
  237. package/dist-types/client/src/plugins/shared/reportWorkbench/ReportWorkbench.d.ts +20 -0
  238. package/dist-types/client/src/plugins/shared/reportWorkbench/SortableBlock.d.ts +15 -0
  239. package/dist-types/client/src/plugins/shared/reportWorkbench/factory.d.ts +14 -0
  240. package/dist-types/client/src/plugins/shared/reportWorkbench/outlineDraft.d.ts +7 -0
  241. package/dist-types/client/src/plugins/shared/simulationEngine.d.ts +112 -0
  242. package/dist-types/client/src/plugins/shared/simulationModes.d.ts +21 -0
  243. package/dist-types/client/src/plugins/shared/themes.d.ts +5 -0
  244. package/dist-types/client/src/plugins/shared/types.d.ts +1247 -0
  245. package/dist-types/client/src/services/AICommandHandler.d.ts +68 -0
  246. package/dist-types/client/src/services/cozeApiClient.d.ts +44 -0
  247. package/dist-types/client/src/services/mockApi.d.ts +48 -0
  248. package/dist-types/client/src/services/storageService.d.ts +88 -0
  249. package/dist-types/client/src/stores/abilityStore.d.ts +33 -0
  250. package/dist-types/client/src/stores/dialogueStore.d.ts +30 -0
  251. package/dist-types/client/src/stores/formRegistryStore.d.ts +45 -0
  252. package/dist-types/client/src/stores/guidanceStore.d.ts +17 -0
  253. package/dist-types/client/src/stores/stepEvidenceStore.d.ts +14 -0
  254. package/dist-types/client/src/stores/strategyLabStore.d.ts +46 -0
  255. package/dist-types/client/src/stores/trainingStore.d.ts +84 -0
  256. package/dist-types/client/src/types/ai-commands.d.ts +144 -0
  257. package/dist-types/client/src/types.d.ts +17 -0
  258. package/dist-types/client/src/utils/abilityMapGenerator.d.ts +27 -0
  259. package/dist-types/client/src/utils/formUtils.d.ts +66 -0
  260. package/dist-types/client/src/utils/rule-engine.d.ts +36 -0
  261. package/dist-types/shared/types/index.d.ts +592 -0
  262. package/package.json +5 -3
  263. package/dist/CaseAnalysisPlugin-CQvF9_zr.js +0 -416
  264. package/dist/DialogueFormPlugin-C9ssnVMr.js +0 -959
  265. package/dist/DialoguePlugin-DU00QpmQ.js +0 -416
  266. package/dist/DocumentReviewPlugin-HNOZY1T4.js +0 -977
  267. package/dist/FormFillingPlugin-DURWsioi.js +0 -445
  268. package/dist/ModelEditor-BPJsPR0S.js +0 -8264
  269. package/dist/PluginHeader-B-GESJmT.js +0 -87
  270. package/dist/QAPlugin-Bh_UjK1N.js +0 -184
  271. package/dist/RadarChart-C5ZM0kWt.js +0 -24963
  272. package/dist/StrategyLabPlugin-DGeZsr_7.js +0 -14361
  273. package/dist/ThunderboltOutlined-nH_FO_4A.js +0 -44
  274. package/dist/ToolOutlined-DtuNJDB2.js +0 -28
  275. package/dist/TrainingModelContainer-DpW-uB8O.js +0 -11883
  276. package/dist/WarningOutlined-5g1d66hO.js +0 -164
  277. package/dist/judgement-D_9i7x9S.js +0 -20
  278. package/dist/useDialogueLogic-IHELcN3X.js +0 -368
@@ -0,0 +1,815 @@
1
+ import { g as ar, c as nr, f as lr, j as o, e as dr, h as cr, d as pr, i as gr } from "./CaseDetailContent-Y7Q430MG.js";
2
+ import xr, { useRef as W, useState as u, useEffect as A, useCallback as j } from "react";
3
+ import { message as M, Button as b, Tooltip as X, Input as yr } from "antd";
4
+ import { u as P, m, A as fr } from "./StrategyLabPlugin-CvO07sXV.js";
5
+ import { c as ur, d as br } from "./TrainingModelContainer-DqCsdC7C.js";
6
+ import { R as q } from "./UndoOutlined-6JZVzmdX.js";
7
+ import { R as mr, a as jr } from "./ThunderboltOutlined-BpmoCKdV.js";
8
+ const hr = {
9
+ adversarial: { icon: /* @__PURE__ */ o.jsx(jr, {}), label: "对抗推演", color: "#f5222d" },
10
+ collaborative: { icon: /* @__PURE__ */ o.jsx(q, {}), label: "群体决策", color: "#1890ff" },
11
+ "stress-test": { icon: /* @__PURE__ */ o.jsx(br, {}), label: "压力测试", color: "#faad14" }
12
+ }, Rr = ({
13
+ stepId: h,
14
+ mode: d,
15
+ originalDecision: E,
16
+ characters: g,
17
+ scenario: B,
18
+ theme: r,
19
+ currentUser: Q,
20
+ onSkip: O,
21
+ onRequestAdjust: Z
22
+ }) => {
23
+ var K;
24
+ const L = P((e) => e.saveStrategyLab), rr = W(P.getState().getStrategyLab(h)), [f, T] = u(""), [x, S] = u(""), [v, H] = u(!1), [or, F] = u("dialogue"), [k, er] = u({}), [n, N] = u(((K = rr.current) == null ? void 0 : K.characterDialogues) || {}), _ = W(null), w = W(null), I = ar("ACTOR_AGENT"), { token: C } = nr(I, Q), l = hr[d], y = xr.useMemo(() => {
25
+ const e = [];
26
+ return d === "adversarial" && g.adversary ? e.push(g.adversary) : d === "collaborative" && g.stakeholders ? g.stakeholders.forEach((s) => {
27
+ var t;
28
+ s.character ? e.push(s.character) : s.name && e.push({
29
+ name: s.name,
30
+ personality: [],
31
+ background: s.interests || "",
32
+ dialogue: "",
33
+ stance: ((t = s.concerns) == null ? void 0 : t.join(";")) || s.interests || ""
34
+ });
35
+ }) : d === "stress-test" && g.narrator && e.push(g.narrator), e;
36
+ }, [d, g]);
37
+ A(() => {
38
+ !f && y.length > 0 && T(y[0].name);
39
+ }, [y, f]), A(() => {
40
+ if (Object.keys(n).length > 0) {
41
+ const e = P.getState().getStrategyLab(h);
42
+ L(h, {
43
+ ...e,
44
+ characterDialogues: n,
45
+ isInCharacterDialogue: !0
46
+ });
47
+ }
48
+ }, [n, h, L]), A(() => {
49
+ var e;
50
+ (e = _.current) == null || e.scrollIntoView({ behavior: "smooth" });
51
+ }, [n, f]);
52
+ const R = j(() => y.find((e) => e.name === f), [y, f]), G = j((e, s, t) => {
53
+ var a;
54
+ if (t.length === 0) {
55
+ const c = d === "adversarial" ? `【对话策略】
56
+ 你是反对者,对用户的决策方案持反对态度。
57
+ - 指出决策方案的潜在风险和漏洞
58
+ - 提出替代方案或改进建议
59
+ - 质疑方案的可行性、时间表、预算等
60
+ - 可以逐步从"强烈反对"转向"有条件支持"
61
+ - 至少经过2-3轮对话后再考虑调整立场` : d === "collaborative" ? `【对话策略】
62
+ 你是利益相关者,有自己的诉求和关注点。
63
+ - 表达自己的核心诉求和关注点
64
+ - 对影响自身利益的部分提出具体要求
65
+ - 愿意妥协,但有底线
66
+ - 寻求双赢的解决方案` : `【对话策略】
67
+ 你是叙事者,客观描述极端情境。
68
+ - 用叙事的方式描述极端情境
69
+ - 营造紧张感和压力感
70
+ - 客观呈现方案在极端条件下的表现
71
+ - 不带个人情感,保持观察者视角`;
72
+ return `【角色设定】
73
+ 你是${e.name},性格特征:${(a = e.personality) == null ? void 0 : a.join("、")}
74
+ 背景故事:${e.background}
75
+ 当前立场:${e.stance}
76
+
77
+ 【场景背景】
78
+ ${B}
79
+
80
+ 【用户决策方案】
81
+ ${E}
82
+
83
+ 【你的初始态度】
84
+ ${e.dialogue}
85
+
86
+ ${c}
87
+
88
+ 【输出格式】
89
+ 直接返回角色的对话内容(纯文本,50-200字),不需要返回JSON格式。
90
+ 保持立场一致性,理性表达,针对具体问题提出质疑或关注,态度可渐进调整但不要突然转变。
91
+
92
+ 【任务】
93
+ 用户现在想与你对话,试图说服你或了解你的想法。请保持角色一致性,自然回应用户的问题或观点。
94
+
95
+ 【用户消息】
96
+ ${s}`;
97
+ } else
98
+ return s;
99
+ }, [B, E, d]), Y = j(async () => {
100
+ var U;
101
+ if (!x.trim()) return;
102
+ if (!C) {
103
+ M.warning("AI 服务正在连接,请稍后再试");
104
+ return;
105
+ }
106
+ const e = R();
107
+ if (!e) {
108
+ M.warning("未找到可对话的角色");
109
+ return;
110
+ }
111
+ const s = e.name, t = n[s] || { messages: [], conversationId: null }, a = x.trim(), c = { role: "user", content: a, timestamp: Date.now() };
112
+ N((p) => {
113
+ var $;
114
+ return {
115
+ ...p,
116
+ [s]: {
117
+ ...p[s] || { messages: [], conversationId: null },
118
+ messages: [...(($ = p[s]) == null ? void 0 : $.messages) || [], c]
119
+ }
120
+ };
121
+ }), S(""), H(!0);
122
+ try {
123
+ const p = G(e, a, t.messages), { response: $, conversationId: tr } = await lr({
124
+ botId: I,
125
+ prompt: p,
126
+ token: C,
127
+ conversationId: t.conversationId || void 0,
128
+ autoSaveHistory: !0
129
+ });
130
+ N((D) => {
131
+ var V;
132
+ return {
133
+ ...D,
134
+ [s]: {
135
+ ...D[s],
136
+ messages: [
137
+ ...((V = D[s]) == null ? void 0 : V.messages) || [],
138
+ { role: "character", content: $, timestamp: Date.now() }
139
+ ],
140
+ conversationId: tr
141
+ }
142
+ };
143
+ });
144
+ } catch (p) {
145
+ console.error("[CharacterDialoguePanel] 发送消息失败:", p), M.error(p.message || "发送消息失败");
146
+ } finally {
147
+ H(!1), (U = w.current) == null || U.focus();
148
+ }
149
+ }, [x, C, R, n, G, I]), J = j(() => {
150
+ const e = {};
151
+ for (const [s, t] of Object.entries(n)) {
152
+ if (!t.messages || t.messages.length < 2) continue;
153
+ const a = [...t.messages].reverse().find((c) => c.role === "character");
154
+ a && (e[s] = a.content.length > 200 ? a.content.substring(0, 200) + "..." : a.content);
155
+ }
156
+ return e;
157
+ }, [n]), sr = j(() => {
158
+ const e = J();
159
+ er(e), F("summary");
160
+ }, [J]), ir = Object.values(n).some(
161
+ (e) => e.messages && e.messages.length >= 2
162
+ ), i = R(), z = i ? n[i.name] || { messages: [] } : { messages: [] };
163
+ return /* @__PURE__ */ o.jsxs(
164
+ m.div,
165
+ {
166
+ initial: { opacity: 0 },
167
+ animate: { opacity: 1 },
168
+ exit: { opacity: 0 },
169
+ transition: { duration: 0.3 },
170
+ style: {
171
+ position: "fixed",
172
+ top: 0,
173
+ left: 0,
174
+ right: 0,
175
+ bottom: 0,
176
+ background: "rgba(8, 12, 24, 0.88)",
177
+ backdropFilter: "blur(24px)",
178
+ zIndex: 1e3,
179
+ display: "flex",
180
+ alignItems: "center",
181
+ justifyContent: "center"
182
+ },
183
+ children: [
184
+ /* @__PURE__ */ o.jsx("div", { style: {
185
+ position: "absolute",
186
+ top: 0,
187
+ left: 0,
188
+ right: 0,
189
+ bottom: 0,
190
+ backgroundImage: `linear-gradient(${r.colors.primary}06 1px, transparent 1px), linear-gradient(90deg, ${r.colors.primary}06 1px, transparent 1px)`,
191
+ backgroundSize: "40px 40px",
192
+ pointerEvents: "none"
193
+ } }),
194
+ /* @__PURE__ */ o.jsxs(
195
+ m.div,
196
+ {
197
+ initial: { y: 40, opacity: 0, scale: 0.97 },
198
+ animate: { y: 0, opacity: 1, scale: 1 },
199
+ exit: { y: 40, opacity: 0, scale: 0.97 },
200
+ transition: { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] },
201
+ style: {
202
+ position: "relative",
203
+ width: "88%",
204
+ maxWidth: 960,
205
+ height: "85vh",
206
+ display: "flex",
207
+ flexDirection: "column",
208
+ borderRadius: 16,
209
+ overflow: "hidden",
210
+ background: `linear-gradient(170deg, ${r.colors.bgCard}f2 0%, ${r.colors.bgPrimary}f5 100%)`,
211
+ border: `1px solid ${r.colors.border}`,
212
+ boxShadow: `0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04), ${r.effects.glow}`
213
+ },
214
+ children: [
215
+ /* @__PURE__ */ o.jsxs("div", { style: {
216
+ display: "flex",
217
+ alignItems: "center",
218
+ justifyContent: "space-between",
219
+ padding: "16px 24px",
220
+ borderBottom: `1px solid ${r.colors.border}`,
221
+ background: `linear-gradient(90deg, ${l.color}10 0%, transparent 60%)`,
222
+ flexShrink: 0
223
+ }, children: [
224
+ /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
225
+ /* @__PURE__ */ o.jsx("div", { style: {
226
+ width: 36,
227
+ height: 36,
228
+ borderRadius: 10,
229
+ background: `${l.color}20`,
230
+ border: `1px solid ${l.color}40`,
231
+ display: "flex",
232
+ alignItems: "center",
233
+ justifyContent: "center",
234
+ color: l.color,
235
+ fontSize: 18
236
+ }, children: l.icon }),
237
+ /* @__PURE__ */ o.jsxs("div", { children: [
238
+ /* @__PURE__ */ o.jsx("div", { style: { fontSize: 16, fontWeight: 600, color: r.colors.textPrimary, lineHeight: 1.2 }, children: l.label }),
239
+ /* @__PURE__ */ o.jsx("div", { style: { fontSize: 12, color: r.colors.textMuted, marginTop: 2 }, children: "与 AI 角色互动,探索不同立场" })
240
+ ] })
241
+ ] }),
242
+ /* @__PURE__ */ o.jsx(
243
+ b,
244
+ {
245
+ type: "text",
246
+ icon: /* @__PURE__ */ o.jsx(ur, {}),
247
+ onClick: O,
248
+ style: {
249
+ color: r.colors.textMuted,
250
+ fontSize: 16,
251
+ width: 40,
252
+ height: 40,
253
+ borderRadius: 10,
254
+ display: "flex",
255
+ alignItems: "center",
256
+ justifyContent: "center"
257
+ }
258
+ }
259
+ )
260
+ ] }),
261
+ y.length > 1 && /* @__PURE__ */ o.jsx("div", { style: {
262
+ display: "flex",
263
+ gap: 4,
264
+ padding: "10px 24px",
265
+ borderBottom: `1px solid ${r.colors.border}`,
266
+ background: `${r.colors.bgSecondary}80`,
267
+ overflowX: "auto",
268
+ flexShrink: 0
269
+ }, children: y.map((e) => {
270
+ var a, c;
271
+ const s = e.name === f, t = ((c = (a = n[e.name]) == null ? void 0 : a.messages) == null ? void 0 : c.length) || 0;
272
+ return /* @__PURE__ */ o.jsxs(
273
+ "button",
274
+ {
275
+ onClick: () => T(e.name),
276
+ style: {
277
+ display: "flex",
278
+ alignItems: "center",
279
+ gap: 8,
280
+ padding: "8px 16px",
281
+ borderRadius: 8,
282
+ border: s ? `1px solid ${r.colors.primary}60` : "1px solid transparent",
283
+ background: s ? `${r.colors.primary}15` : "transparent",
284
+ color: s ? r.colors.primary : r.colors.textSecondary,
285
+ cursor: "pointer",
286
+ transition: "all 0.2s ease",
287
+ whiteSpace: "nowrap",
288
+ fontSize: 13,
289
+ fontWeight: s ? 600 : 400
290
+ },
291
+ children: [
292
+ /* @__PURE__ */ o.jsx("div", { style: {
293
+ width: 26,
294
+ height: 26,
295
+ borderRadius: "50%",
296
+ background: s ? r.colors.primary : r.colors.bgCard,
297
+ border: `1.5px solid ${s ? r.colors.primary : r.colors.border}`,
298
+ display: "flex",
299
+ alignItems: "center",
300
+ justifyContent: "center",
301
+ color: s ? "#fff" : r.colors.textMuted,
302
+ fontSize: 12,
303
+ fontWeight: 600
304
+ }, children: e.name.charAt(0) }),
305
+ e.name,
306
+ t > 0 && /* @__PURE__ */ o.jsx("span", { style: {
307
+ fontSize: 11,
308
+ padding: "1px 6px",
309
+ borderRadius: 10,
310
+ background: s ? `${r.colors.primary}25` : `${r.colors.textMuted}20`,
311
+ color: s ? r.colors.primary : r.colors.textMuted
312
+ }, children: t })
313
+ ]
314
+ },
315
+ e.name
316
+ );
317
+ }) }),
318
+ i && /* @__PURE__ */ o.jsxs("div", { style: {
319
+ padding: "16px 24px",
320
+ borderBottom: `1px solid ${r.colors.border}`,
321
+ background: `linear-gradient(135deg, ${r.colors.bgSecondary}60 0%, transparent 100%)`,
322
+ flexShrink: 0
323
+ }, children: [
324
+ /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 14 }, children: [
325
+ /* @__PURE__ */ o.jsxs("div", { style: {
326
+ position: "relative",
327
+ width: 52,
328
+ height: 52,
329
+ borderRadius: 14,
330
+ background: `linear-gradient(135deg, ${r.colors.primary}30 0%, ${r.colors.primaryDark}40 100%)`,
331
+ border: `2px solid ${r.colors.primary}50`,
332
+ display: "flex",
333
+ alignItems: "center",
334
+ justifyContent: "center",
335
+ flexShrink: 0
336
+ }, children: [
337
+ i.avatar ? /* @__PURE__ */ o.jsx(
338
+ "img",
339
+ {
340
+ src: i.avatar,
341
+ alt: i.name,
342
+ style: { width: 48, height: 48, borderRadius: 12, objectFit: "cover" }
343
+ }
344
+ ) : /* @__PURE__ */ o.jsx("span", { style: { fontSize: 22, fontWeight: 700, color: r.colors.primary }, children: i.name.charAt(0) }),
345
+ /* @__PURE__ */ o.jsx("div", { style: {
346
+ position: "absolute",
347
+ bottom: -2,
348
+ right: -2,
349
+ width: 14,
350
+ height: 14,
351
+ borderRadius: "50%",
352
+ background: "#52c41a",
353
+ border: `2px solid ${r.colors.bgCard}`
354
+ } })
355
+ ] }),
356
+ /* @__PURE__ */ o.jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
357
+ /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8, marginBottom: 4 }, children: [
358
+ /* @__PURE__ */ o.jsx("span", { style: { fontSize: 16, fontWeight: 600, color: r.colors.textPrimary }, children: i.name }),
359
+ i.stance && /* @__PURE__ */ o.jsx(
360
+ X,
361
+ {
362
+ title: i.stance.length > 20 ? i.stance : void 0,
363
+ placement: "bottomLeft",
364
+ overlayStyle: { maxWidth: 360 },
365
+ children: /* @__PURE__ */ o.jsx("span", { style: {
366
+ fontSize: 11,
367
+ padding: "2px 8px",
368
+ borderRadius: 4,
369
+ background: `${l.color}15`,
370
+ color: l.color,
371
+ border: `1px solid ${l.color}30`,
372
+ cursor: i.stance.length > 20 ? "pointer" : "default"
373
+ }, children: i.stance.length > 20 ? i.stance.substring(0, 20) + "..." : i.stance })
374
+ }
375
+ )
376
+ ] }),
377
+ i.personality && i.personality.length > 0 && /* @__PURE__ */ o.jsx("div", { style: { display: "flex", gap: 4, flexWrap: "wrap" }, children: i.personality.map((e, s) => /* @__PURE__ */ o.jsx("span", { style: {
378
+ fontSize: 11,
379
+ padding: "1px 8px",
380
+ borderRadius: 3,
381
+ background: `${r.colors.primary}12`,
382
+ color: r.colors.textSecondary,
383
+ border: `1px solid ${r.colors.border}`
384
+ }, children: e }, s)) })
385
+ ] })
386
+ ] }),
387
+ i.background && /* @__PURE__ */ o.jsx("div", { style: {
388
+ marginTop: 10,
389
+ padding: "8px 12px",
390
+ borderRadius: 8,
391
+ background: `${r.colors.bgPrimary}80`,
392
+ border: `1px solid ${r.colors.border}`,
393
+ fontSize: 12,
394
+ color: r.colors.textMuted,
395
+ lineHeight: 1.6
396
+ }, children: i.background })
397
+ ] }),
398
+ /* @__PURE__ */ o.jsxs(
399
+ "div",
400
+ {
401
+ style: {
402
+ flex: 1,
403
+ overflowY: "auto",
404
+ padding: "20px 24px",
405
+ display: "flex",
406
+ flexDirection: "column",
407
+ gap: 16
408
+ },
409
+ className: "dialogue-messages-scroll",
410
+ children: [
411
+ z.messages.length === 0 && i && /* @__PURE__ */ o.jsxs(
412
+ m.div,
413
+ {
414
+ initial: { opacity: 0, y: 16 },
415
+ animate: { opacity: 1, y: 0 },
416
+ transition: { duration: 0.5, delay: 0.2 },
417
+ style: { textAlign: "center", padding: "40px 20px" },
418
+ children: [
419
+ /* @__PURE__ */ o.jsx("div", { style: {
420
+ width: 72,
421
+ height: 72,
422
+ borderRadius: 20,
423
+ margin: "0 auto 20px",
424
+ background: `linear-gradient(135deg, ${r.colors.primary}25 0%, ${r.colors.primaryDark}35 100%)`,
425
+ border: `2px solid ${r.colors.primary}40`,
426
+ display: "flex",
427
+ alignItems: "center",
428
+ justifyContent: "center",
429
+ fontSize: 32,
430
+ fontWeight: 700,
431
+ color: r.colors.primary
432
+ }, children: i.name.charAt(0) }),
433
+ /* @__PURE__ */ o.jsxs("h3", { style: {
434
+ fontSize: 18,
435
+ fontWeight: 600,
436
+ color: r.colors.textPrimary,
437
+ margin: "0 0 8px 0"
438
+ }, children: [
439
+ "与 ",
440
+ i.name,
441
+ " 开始对话"
442
+ ] }),
443
+ /* @__PURE__ */ o.jsx("p", { style: {
444
+ fontSize: 13,
445
+ color: r.colors.textMuted,
446
+ lineHeight: 1.6,
447
+ maxWidth: 360,
448
+ margin: "0 auto"
449
+ }, children: i.dialogue || "尝试向对方表达你的观点,了解不同立场的看法" }),
450
+ /* @__PURE__ */ o.jsx("div", { style: { display: "flex", gap: 8, justifyContent: "center", flexWrap: "wrap", marginTop: 20 }, children: [
451
+ "请介绍一下你的立场",
452
+ "你对这个方案怎么看?",
453
+ "你最大的顾虑是什么?"
454
+ ].map((e, s) => /* @__PURE__ */ o.jsx(
455
+ "button",
456
+ {
457
+ onClick: () => {
458
+ var t;
459
+ S(e), (t = w.current) == null || t.focus();
460
+ },
461
+ style: {
462
+ padding: "6px 14px",
463
+ borderRadius: 20,
464
+ background: `${r.colors.primary}10`,
465
+ border: `1px solid ${r.colors.primary}30`,
466
+ color: r.colors.primary,
467
+ cursor: "pointer",
468
+ fontSize: 12,
469
+ transition: "all 0.2s ease"
470
+ },
471
+ children: e
472
+ },
473
+ s
474
+ )) })
475
+ ]
476
+ }
477
+ ),
478
+ /* @__PURE__ */ o.jsx(fr, { initial: !1, children: z.messages.map((e, s) => {
479
+ const t = e.role === "user";
480
+ return /* @__PURE__ */ o.jsxs(
481
+ m.div,
482
+ {
483
+ initial: { opacity: 0, y: 12, scale: 0.98 },
484
+ animate: { opacity: 1, y: 0, scale: 1 },
485
+ transition: { duration: 0.3, ease: "easeOut" },
486
+ style: {
487
+ display: "flex",
488
+ flexDirection: t ? "row-reverse" : "row",
489
+ alignItems: "flex-start",
490
+ gap: 10
491
+ },
492
+ children: [
493
+ /* @__PURE__ */ o.jsx("div", { style: {
494
+ width: 36,
495
+ height: 36,
496
+ borderRadius: 10,
497
+ flexShrink: 0,
498
+ background: t ? `linear-gradient(135deg, ${r.colors.primary} 0%, ${r.colors.primaryDark} 100%)` : r.colors.bgSecondary,
499
+ border: t ? "none" : `1px solid ${r.colors.border}`,
500
+ display: "flex",
501
+ alignItems: "center",
502
+ justifyContent: "center",
503
+ color: t ? "#fff" : r.colors.primary,
504
+ fontSize: t ? 14 : 15,
505
+ fontWeight: 600
506
+ }, children: t ? /* @__PURE__ */ o.jsx(dr, {}) : i == null ? void 0 : i.name.charAt(0) }),
507
+ /* @__PURE__ */ o.jsx("div", { style: {
508
+ maxWidth: "72%",
509
+ padding: "10px 16px",
510
+ borderRadius: t ? "14px 4px 14px 14px" : "4px 14px 14px 14px",
511
+ background: t ? `linear-gradient(135deg, ${r.colors.primary} 0%, ${r.colors.primaryDark} 100%)` : r.colors.bgCard,
512
+ color: t ? "#fff" : r.colors.textPrimary,
513
+ border: t ? "none" : `1px solid ${r.colors.border}`,
514
+ boxShadow: t ? `0 4px 12px ${r.colors.primary}30` : r.effects.shadow,
515
+ fontSize: 14,
516
+ lineHeight: 1.7,
517
+ whiteSpace: "pre-wrap",
518
+ wordBreak: "break-word"
519
+ }, children: e.content })
520
+ ]
521
+ },
522
+ `${e.timestamp}-${s}`
523
+ );
524
+ }) }),
525
+ v && /* @__PURE__ */ o.jsxs(
526
+ m.div,
527
+ {
528
+ initial: { opacity: 0, y: 8 },
529
+ animate: { opacity: 1, y: 0 },
530
+ style: {
531
+ display: "flex",
532
+ alignItems: "flex-start",
533
+ gap: 10
534
+ },
535
+ children: [
536
+ /* @__PURE__ */ o.jsx("div", { style: {
537
+ width: 36,
538
+ height: 36,
539
+ borderRadius: 10,
540
+ flexShrink: 0,
541
+ background: r.colors.bgSecondary,
542
+ border: `1px solid ${r.colors.border}`,
543
+ display: "flex",
544
+ alignItems: "center",
545
+ justifyContent: "center",
546
+ color: r.colors.primary,
547
+ fontSize: 15,
548
+ fontWeight: 600
549
+ }, children: i == null ? void 0 : i.name.charAt(0) }),
550
+ /* @__PURE__ */ o.jsxs("div", { style: {
551
+ padding: "12px 18px",
552
+ borderRadius: "4px 14px 14px 14px",
553
+ background: r.colors.bgCard,
554
+ border: `1px solid ${r.colors.border}`,
555
+ display: "flex",
556
+ alignItems: "center",
557
+ gap: 8
558
+ }, children: [
559
+ /* @__PURE__ */ o.jsx(cr, { style: { color: r.colors.primary, fontSize: 14 }, spin: !0 }),
560
+ /* @__PURE__ */ o.jsxs("span", { style: { fontSize: 13, color: r.colors.textMuted }, children: [
561
+ i == null ? void 0 : i.name,
562
+ " 正在思考..."
563
+ ] })
564
+ ] })
565
+ ]
566
+ }
567
+ ),
568
+ /* @__PURE__ */ o.jsx("div", { ref: _ })
569
+ ]
570
+ }
571
+ ),
572
+ /* @__PURE__ */ o.jsx("div", { style: {
573
+ padding: "16px 24px",
574
+ borderTop: `1px solid ${r.colors.border}`,
575
+ background: `${r.colors.bgSecondary}90`,
576
+ backdropFilter: "blur(12px)",
577
+ flexShrink: 0
578
+ }, children: or === "dialogue" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
579
+ /* @__PURE__ */ o.jsxs("div", { style: {
580
+ display: "flex",
581
+ alignItems: "flex-end",
582
+ gap: 10,
583
+ background: r.colors.bgCard,
584
+ border: `1px solid ${v ? r.colors.border : r.colors.primary}40`,
585
+ borderRadius: 14,
586
+ padding: "10px 14px",
587
+ transition: "border-color 0.2s ease"
588
+ }, children: [
589
+ /* @__PURE__ */ o.jsx(
590
+ yr.TextArea,
591
+ {
592
+ ref: w,
593
+ value: x,
594
+ onChange: (e) => S(e.target.value),
595
+ onPressEnter: (e) => {
596
+ e.shiftKey || (e.preventDefault(), Y());
597
+ },
598
+ placeholder: i ? `向 ${i.name} 发送消息...` : "输入消息...",
599
+ disabled: v,
600
+ autoSize: { minRows: 1, maxRows: 4 },
601
+ style: {
602
+ flex: 1,
603
+ border: "none",
604
+ boxShadow: "none",
605
+ background: "transparent",
606
+ resize: "none",
607
+ color: r.colors.textPrimary,
608
+ fontSize: 14,
609
+ padding: "4px 0"
610
+ }
611
+ }
612
+ ),
613
+ /* @__PURE__ */ o.jsx(
614
+ b,
615
+ {
616
+ type: "primary",
617
+ icon: /* @__PURE__ */ o.jsx(pr, {}),
618
+ onClick: Y,
619
+ loading: v,
620
+ disabled: !x.trim(),
621
+ style: {
622
+ borderRadius: 10,
623
+ height: 38,
624
+ width: 38,
625
+ minWidth: 38,
626
+ display: "flex",
627
+ alignItems: "center",
628
+ justifyContent: "center",
629
+ background: x.trim() ? `linear-gradient(135deg, ${r.colors.primary} 0%, ${r.colors.primaryDark} 100%)` : r.colors.bgSecondary,
630
+ border: "none",
631
+ boxShadow: x.trim() ? `0 2px 8px ${r.colors.primary}40` : "none",
632
+ transition: "all 0.2s ease"
633
+ }
634
+ }
635
+ )
636
+ ] }),
637
+ /* @__PURE__ */ o.jsxs("div", { style: {
638
+ display: "flex",
639
+ justifyContent: "space-between",
640
+ alignItems: "center",
641
+ marginTop: 8,
642
+ padding: "0 4px"
643
+ }, children: [
644
+ /* @__PURE__ */ o.jsx("span", { style: { fontSize: 11, color: r.colors.textMuted }, children: "Enter 发送 / Shift+Enter 换行" }),
645
+ /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 12 }, children: [
646
+ /* @__PURE__ */ o.jsxs("span", { style: { fontSize: 11, color: r.colors.textMuted }, children: [
647
+ "已对话 ",
648
+ z.messages.length,
649
+ " 条"
650
+ ] }),
651
+ ir && /* @__PURE__ */ o.jsx(
652
+ b,
653
+ {
654
+ type: "text",
655
+ size: "small",
656
+ icon: /* @__PURE__ */ o.jsx(gr, {}),
657
+ onClick: sr,
658
+ style: {
659
+ fontSize: 12,
660
+ color: r.colors.primary,
661
+ borderRadius: 6,
662
+ border: `1px solid ${r.colors.primary}40`,
663
+ height: 26
664
+ },
665
+ children: "结束对话"
666
+ }
667
+ )
668
+ ] })
669
+ ] })
670
+ ] }) : (
671
+ /* 立场总结阶段 */
672
+ /* @__PURE__ */ o.jsxs(
673
+ m.div,
674
+ {
675
+ initial: { opacity: 0, y: 10 },
676
+ animate: { opacity: 1, y: 0 },
677
+ transition: { duration: 0.3 },
678
+ children: [
679
+ /* @__PURE__ */ o.jsxs("div", { style: {
680
+ fontSize: 14,
681
+ fontWeight: 600,
682
+ color: r.colors.textPrimary,
683
+ marginBottom: 12,
684
+ display: "flex",
685
+ alignItems: "center",
686
+ gap: 8
687
+ }, children: [
688
+ /* @__PURE__ */ o.jsx(q, { style: { color: r.colors.primary } }),
689
+ "角色立场总结"
690
+ ] }),
691
+ /* @__PURE__ */ o.jsxs("div", { style: {
692
+ display: "flex",
693
+ flexDirection: "column",
694
+ gap: 8,
695
+ maxHeight: 180,
696
+ overflowY: "auto",
697
+ marginBottom: 16
698
+ }, children: [
699
+ Object.entries(k).map(([e, s]) => /* @__PURE__ */ o.jsxs("div", { style: {
700
+ display: "flex",
701
+ alignItems: "flex-start",
702
+ gap: 10,
703
+ padding: "8px 12px",
704
+ borderRadius: 10,
705
+ background: `${r.colors.bgPrimary}80`,
706
+ border: `1px solid ${r.colors.border}`
707
+ }, children: [
708
+ /* @__PURE__ */ o.jsx("div", { style: {
709
+ width: 28,
710
+ height: 28,
711
+ borderRadius: "50%",
712
+ flexShrink: 0,
713
+ background: `${r.colors.primary}20`,
714
+ border: `1.5px solid ${r.colors.primary}50`,
715
+ display: "flex",
716
+ alignItems: "center",
717
+ justifyContent: "center",
718
+ color: r.colors.primary,
719
+ fontSize: 12,
720
+ fontWeight: 600
721
+ }, children: e.charAt(0) }),
722
+ /* @__PURE__ */ o.jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
723
+ /* @__PURE__ */ o.jsx("div", { style: { fontSize: 13, fontWeight: 600, color: r.colors.textPrimary, marginBottom: 2 }, children: e }),
724
+ /* @__PURE__ */ o.jsx(X, { title: s, placement: "topLeft", overlayStyle: { maxWidth: 400 }, children: /* @__PURE__ */ o.jsx("div", { style: {
725
+ fontSize: 12,
726
+ color: r.colors.textSecondary,
727
+ lineHeight: 1.5,
728
+ overflow: "hidden",
729
+ textOverflow: "ellipsis",
730
+ display: "-webkit-box",
731
+ WebkitLineClamp: 2,
732
+ WebkitBoxOrient: "vertical",
733
+ cursor: "pointer"
734
+ }, children: s }) })
735
+ ] })
736
+ ] }, e)),
737
+ Object.keys(k).length === 0 && /* @__PURE__ */ o.jsx("div", { style: { fontSize: 12, color: r.colors.textMuted, textAlign: "center", padding: 12 }, children: "暂无角色立场记录" })
738
+ ] }),
739
+ /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", gap: 10, justifyContent: "flex-end" }, children: [
740
+ /* @__PURE__ */ o.jsx(
741
+ b,
742
+ {
743
+ ghost: !0,
744
+ onClick: () => {
745
+ F("dialogue");
746
+ },
747
+ style: {
748
+ borderRadius: 8,
749
+ borderColor: r.colors.border,
750
+ color: r.colors.textSecondary,
751
+ height: 36
752
+ },
753
+ children: "继续对话"
754
+ }
755
+ ),
756
+ /* @__PURE__ */ o.jsx(
757
+ b,
758
+ {
759
+ ghost: !0,
760
+ onClick: O,
761
+ style: {
762
+ borderRadius: 8,
763
+ borderColor: r.colors.border,
764
+ color: r.colors.textSecondary,
765
+ height: 36
766
+ },
767
+ children: "返回结果"
768
+ }
769
+ ),
770
+ /* @__PURE__ */ o.jsx(
771
+ b,
772
+ {
773
+ type: "primary",
774
+ icon: /* @__PURE__ */ o.jsx(mr, {}),
775
+ onClick: () => Z(k),
776
+ style: {
777
+ borderRadius: 8,
778
+ height: 36,
779
+ background: `linear-gradient(135deg, ${r.colors.primary} 0%, ${r.colors.primaryDark} 100%)`,
780
+ border: "none",
781
+ boxShadow: `0 2px 8px ${r.colors.primary}40`
782
+ },
783
+ children: "调整我的决策"
784
+ }
785
+ )
786
+ ] })
787
+ ]
788
+ }
789
+ )
790
+ ) }),
791
+ /* @__PURE__ */ o.jsx("style", { children: `
792
+ .dialogue-messages-scroll::-webkit-scrollbar {
793
+ width: 5px;
794
+ }
795
+ .dialogue-messages-scroll::-webkit-scrollbar-track {
796
+ background: transparent;
797
+ }
798
+ .dialogue-messages-scroll::-webkit-scrollbar-thumb {
799
+ background: ${r.colors.border};
800
+ border-radius: 3px;
801
+ }
802
+ .dialogue-messages-scroll::-webkit-scrollbar-thumb:hover {
803
+ background: ${r.colors.textMuted};
804
+ }
805
+ ` })
806
+ ]
807
+ }
808
+ )
809
+ ]
810
+ }
811
+ );
812
+ };
813
+ export {
814
+ Rr as default
815
+ };