@ximatai/muyun-web-app 0.26.15 → 0.26.16

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 (257) hide show
  1. package/dist/BusinessActivityLogView-DVM_GB5y.js +18 -0
  2. package/dist/BusinessLogListDrawer-BciMLY9z.js +864 -0
  3. package/dist/ConfigurationTranslationView-B0FosDyz.js +197 -0
  4. package/dist/LoginAuditLogView-3tAozKlC.js +18 -0
  5. package/dist/ModuleActionManagementView-CJRNShGg.js +755 -0
  6. package/dist/{ModuleGovernanceView-LkWCtops.js → ModuleGovernanceView-DsqR_Sj7.js} +6733 -6323
  7. package/dist/RequestErrorLogView-C4yH-TSX.js +18 -0
  8. package/dist/RoleDetailWorkspaceView-BpOoGUwS.js +1435 -0
  9. package/dist/RuntimeLogView-CoKKpJ39.js +316 -0
  10. package/dist/WorkflowAdministrationView-DmUV6vWS.js +650 -0
  11. package/dist/WorkflowConfigurationView-pghDbWEh.js +975 -0
  12. package/dist/WorkflowWorkbenchView-BwWxyDen.js +747 -0
  13. package/dist/es-BST-ixpj.js +22621 -0
  14. package/dist/index.css +1 -1
  15. package/dist/index.js +852 -735
  16. package/dist/moduleGovernanceWorkspaceView-DGEV3ZyT.js +667 -0
  17. package/dist/platform-components-Cl5ZZiuU.js +27139 -0
  18. package/dist/{platform-workbench-C-kE-Yqq.js → platform-workbench-CAHoriIf.js} +7677 -7187
  19. package/dist/rolldown-runtime-BAC7EHh5.js +20 -0
  20. package/dist/types/app/ChangeOwnPasswordDialog.vue.d.ts +1 -1
  21. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
  22. package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +3 -0
  23. package/dist/types/app/businessNotificationNavigation.d.ts +4 -0
  24. package/dist/types/app/menuRouteCompiler.d.ts +3 -0
  25. package/dist/types/app/platformMessage.d.ts +3 -6
  26. package/dist/types/app/themeSkinPreference.d.ts +3 -2
  27. package/dist/types/app/workbenchStartup.d.ts +8 -4
  28. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +1 -1
  29. package/dist/types/consumer/index.d.ts +3 -1
  30. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -1
  31. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -1
  32. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +46 -1302
  33. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
  34. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +409 -1626
  35. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +1 -1
  36. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +15 -1
  37. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +1 -1
  38. package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +1 -1
  39. package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +1 -1
  40. package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +1 -1
  41. package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +4 -3
  42. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +9 -1301
  43. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +2 -1
  44. package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +1 -1
  45. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +13 -4
  46. package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +3 -10
  47. package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +2 -1
  48. package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +2 -1
  49. package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +2 -1
  50. package/dist/types/dynamic-page-runtime/recordCreationReadiness.d.ts +2 -1
  51. package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +7 -3
  52. package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +5 -4
  53. package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +3 -0
  54. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +1 -1
  55. package/dist/types/dynamic-page-runtime/recordReferenceDisplay.d.ts +1 -1
  56. package/dist/types/dynamic-page-runtime/recordSaveRecovery.d.ts +2 -1
  57. package/dist/types/dynamic-page-runtime/relationDraftAssistantCapabilities.d.ts +2 -2
  58. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +35 -1303
  59. package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +13 -0
  60. package/dist/types/platform-admin-runtime/backendHttp.d.ts +2 -1
  61. package/dist/types/platform-admin-runtime/index.d.ts +3 -1
  62. package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +4 -4
  63. package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +2 -1
  64. package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +11 -7
  65. package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +16 -7
  66. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +4 -3
  67. package/dist/types/platform-admin-runtime/pageRealtime.d.ts +0 -1
  68. package/dist/types/platform-admin-runtime/realtime.d.ts +0 -3
  69. package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +4 -1
  70. package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +3 -1
  71. package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +2 -0
  72. package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +1 -5
  73. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +34 -1
  74. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +4 -4
  75. package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
  76. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
  77. package/dist/types/platform-components/DictionaryPicker.vue.d.ts +2 -2
  78. package/dist/types/platform-components/FileSizeText.vue.d.ts +1 -1
  79. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  80. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +7 -7
  81. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
  82. package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +1 -1
  83. package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +1 -1
  84. package/dist/types/platform-components/QueryValueEditor.vue.d.ts +1 -1
  85. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  86. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +2 -2
  87. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
  88. package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +2 -2
  89. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +1 -1
  90. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  91. package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +1 -1
  92. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
  93. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +5 -5
  94. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  95. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +1 -1
  96. package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +1 -1
  97. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  98. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +6 -6
  99. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +2 -2
  100. package/dist/types/platform-components/ReferencePicker.vue.d.ts +3 -3
  101. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +1 -1
  102. package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +1 -1
  103. package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +1 -1
  104. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -5
  105. package/dist/types/platform-components/UserPicker.vue.d.ts +2 -2
  106. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
  107. package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +36 -0
  108. package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +40 -0
  109. package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +24 -0
  110. package/dist/types/platform-components/WorkflowParticipantEditor.vue.d.ts +18 -0
  111. package/dist/types/platform-components/WorkflowRecordPanel.vue.d.ts +30 -0
  112. package/dist/types/platform-components/WorkflowTimeline.vue.d.ts +19 -0
  113. package/dist/types/platform-components/crudRecordListModel.d.ts +2 -1
  114. package/dist/types/platform-components/fileTransferUpload.d.ts +10 -0
  115. package/dist/types/platform-components/index.d.ts +8 -2
  116. package/dist/types/platform-components/optionFieldOptions.d.ts +7 -2
  117. package/dist/types/platform-components/platformDateTime.d.ts +2 -0
  118. package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -1
  119. package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +10 -2
  120. package/dist/types/platform-components/recordActionBarModel.d.ts +4 -1
  121. package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
  122. package/dist/types/platform-components/recordFormFieldModel.d.ts +3 -3
  123. package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -1
  124. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +5 -1
  125. package/dist/types/platform-components/recycleBinState.d.ts +3 -2
  126. package/dist/types/platform-components/referencePickerModel.d.ts +9 -1
  127. package/dist/types/platform-components/referencePickerReadError.d.ts +11 -3
  128. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +2 -2
  129. package/dist/types/platform-components/softDeletedConflictHandler.d.ts +3 -1
  130. package/dist/types/platform-components/staticCrudManagementState.d.ts +9 -8
  131. package/dist/types/platform-components/treeRecordModel.d.ts +2 -1
  132. package/dist/types/platform-components/userSessionPresentation.d.ts +4 -3
  133. package/dist/types/platform-components/workflowAccountOptions.d.ts +4 -0
  134. package/dist/types/platform-components/workflowDesignEditing.d.ts +11 -0
  135. package/dist/types/platform-components/workflowDiagramModel.d.ts +41 -0
  136. package/dist/types/platform-components/workflowParticipantPolicy.d.ts +11 -0
  137. package/dist/types/platform-components/workflowPresentation.d.ts +11 -0
  138. package/dist/types/platform-workbench/LanguageSelector.vue.d.ts +6 -0
  139. package/dist/types/platform-workbench/Workbench.vue.d.ts +3 -3
  140. package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +1 -1
  141. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
  142. package/dist/types/platform-workbench/assistantControlText.d.ts +19 -0
  143. package/dist/types/platform-workbench/configurationCollaboration.d.ts +2 -2
  144. package/dist/types/platform-workbench/constructionDelivery.d.ts +2 -2
  145. package/dist/types/platform-workbench/constructionFields.d.ts +2 -2
  146. package/dist/types/platform-workbench/constructionInitialization.d.ts +2 -2
  147. package/dist/types/platform-workbench/constructionPlanGuard.d.ts +2 -1
  148. package/dist/types/platform-workbench/constructionPlanSession.d.ts +12 -4
  149. package/dist/types/platform-workbench/constructionPresentation.d.ts +6 -0
  150. package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +2 -2
  151. package/dist/types/platform-workbench/index.d.ts +2 -1
  152. package/dist/types/platform-workbench/menuNavigation.d.ts +7 -3
  153. package/dist/types/platform-workbench/menuTreeModel.d.ts +2 -1
  154. package/dist/types/platform-workbench/realtimeStatus.d.ts +2 -1
  155. package/dist/types/platform-workbench/useAssistantConversation.d.ts +107 -15
  156. package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +8 -15
  157. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +1 -5
  158. package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +3 -2
  159. package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -0
  160. package/dist/types/platform-workbench/workspaceViewContract.d.ts +4 -0
  161. package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +5 -0
  162. package/dist/types/platform-workbench/workspaceViewHost.d.ts +1 -1
  163. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +1 -1
  164. package/dist/types/platform-workbench/workspaceViews.d.ts +3 -2
  165. package/dist/types/views/ConfigurationTranslationView.vue.d.ts +3 -0
  166. package/dist/types/views/MetadataSourceTree.vue.d.ts +0 -2
  167. package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +2 -2
  168. package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +2 -2
  169. package/dist/types/views/RoleAuthorizationView.vue.d.ts +1 -1
  170. package/dist/types/views/WorkflowAdministrationView.vue.d.ts +3 -0
  171. package/dist/types/views/WorkflowConfigurationView.vue.d.ts +7 -0
  172. package/dist/types/views/WorkflowWorkbenchView.vue.d.ts +3 -0
  173. package/dist/types/views/businessLogClient.d.ts +5 -2
  174. package/dist/types/views/businessRuleAssistantSurface.d.ts +3 -3
  175. package/dist/types/views/businessRuleEditor.d.ts +2 -1
  176. package/dist/types/views/businessRuleGovernance.d.ts +14 -4
  177. package/dist/types/views/businessRuleSession.d.ts +4 -3
  178. package/dist/types/views/businessRuleWorkspace.d.ts +6 -2
  179. package/dist/types/views/configurationEditorNavigation.d.ts +2 -1
  180. package/dist/types/views/configurationTranslationWorkspace.d.ts +69 -0
  181. package/dist/types/views/dictionaryRadioEligibility.d.ts +2 -1
  182. package/dist/types/views/metadataChangeSetSubmission.d.ts +4 -3
  183. package/dist/types/views/metadataEditorSession.d.ts +15 -9
  184. package/dist/types/views/metadataGovernanceEditor.d.ts +4 -0
  185. package/dist/types/views/metadataModelEditSession.d.ts +3 -2
  186. package/dist/types/views/metadataModelTree.d.ts +2 -1
  187. package/dist/types/views/metadataNaming.d.ts +5 -2
  188. package/dist/types/views/metadataOrchestrationState.d.ts +10 -9
  189. package/dist/types/views/metadataSourceTree.d.ts +3 -2
  190. package/dist/types/views/metadataWorkspace.d.ts +26 -19
  191. package/dist/types/views/moduleRuntimeActivation.d.ts +3 -3
  192. package/dist/types/views/pageCompositionAssistantSurface.d.ts +2 -0
  193. package/dist/types/views/pageCompositionCandidate.d.ts +2 -1
  194. package/dist/types/views/pageCompositionComponents.d.ts +5 -4
  195. package/dist/types/views/pageCompositionDraftState.d.ts +21 -7
  196. package/dist/types/views/pageCompositionMode.d.ts +26 -2
  197. package/dist/types/views/pageCompositionPublication.d.ts +2 -0
  198. package/dist/types/views/pageCompositionSession.d.ts +48 -15
  199. package/dist/types/views/pageCompositionWorkspace.d.ts +90 -29
  200. package/dist/types/views/runtimeLogClient.d.ts +2 -2
  201. package/dist/types/views/usePageCompositionComponents.d.ts +2 -1
  202. package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +5 -0
  203. package/dist/types/vue-ui-antdv/blockingOverlays.d.ts +9 -0
  204. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
  205. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +2 -2
  206. package/dist/types/vue-ui-antdv/components/UiLanguageProvider.vue.d.ts +18 -0
  207. package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +3 -3
  208. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
  209. package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +1 -1
  210. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  211. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +3 -0
  212. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +7 -7
  213. package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +7 -7
  214. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +1 -1
  215. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  216. package/dist/types/vue-ui-antdv/confirm.d.ts +3 -2
  217. package/dist/types/vue-ui-antdv/index.d.ts +3 -0
  218. package/dist/types/vue-ui-antdv/languageGlobalScope.d.ts +3 -0
  219. package/dist/types/vue-ui-antdv/languageLocales.d.ts +4 -0
  220. package/dist/types/vue-ui-antdv/theme.d.ts +2 -0
  221. package/dist/types/vue-ui-antdv/types.d.ts +2 -0
  222. package/dist/types/web-contracts/constructionPlan.d.ts +4 -3
  223. package/dist/types/web-contracts/index.d.ts +46 -0
  224. package/dist/types/web-contracts/workflow.d.ts +346 -0
  225. package/dist/types/web-core/actionResult.d.ts +3 -0
  226. package/dist/types/web-core/assistantConfirmation.d.ts +3 -2
  227. package/dist/types/web-core/assistantConversationClient.d.ts +8 -0
  228. package/dist/types/web-core/assistantSurface.d.ts +4 -3
  229. package/dist/types/web-core/errors.d.ts +8 -4
  230. package/dist/types/web-core/index.d.ts +6 -0
  231. package/dist/types/web-core/language.d.ts +54 -0
  232. package/dist/types/web-core/languagePreference.d.ts +8 -0
  233. package/dist/types/web-core/module/dataExchangeClient.d.ts +2 -1
  234. package/dist/types/web-core/module/index.d.ts +1 -0
  235. package/dist/types/web-core/module/moduleContext.d.ts +4 -0
  236. package/dist/types/web-core/module/pageActionEntries.d.ts +3 -2
  237. package/dist/types/web-core/module/runtimeContext.d.ts +15 -2
  238. package/dist/types/web-core/operationConfirmation.d.ts +5 -1
  239. package/dist/types/web-core/operationErrors.d.ts +15 -1
  240. package/dist/types/web-core/presentationTexts.d.ts +16 -0
  241. package/dist/types/web-core/sha256.d.ts +2 -0
  242. package/dist/types/web-core/workflow.d.ts +70 -0
  243. package/dist/types/web-core/workspaceUnsavedState.d.ts +6 -0
  244. package/dist/workspaceViews-BIYGPUAO.js +3437 -0
  245. package/package.json +2 -4
  246. package/dist/BusinessActivityLogView-DVzrZW1X.js +0 -16
  247. package/dist/BusinessLogListDrawer-D-R3wnWr.js +0 -825
  248. package/dist/LoginAuditLogView-BP1eaEPw.js +0 -16
  249. package/dist/ModuleActionManagementView-D17iKVQv.js +0 -691
  250. package/dist/RequestErrorLogView-LzN94-Tk.js +0 -16
  251. package/dist/RoleDetailWorkspaceView-BXA-bzFu.js +0 -1406
  252. package/dist/RuntimeLogView-DUpu2q2w.js +0 -297
  253. package/dist/moduleGovernanceWorkspaceView-COjWtJMr.js +0 -639
  254. package/dist/platform-components-Hs3DrTqE.js +0 -19770
  255. package/dist/rolldown-runtime-DPVXH0ON.js +0 -17
  256. package/dist/sse-Q1wa3p_k.js +0 -187
  257. package/dist/workspaceViews-CHsgLFwY.js +0 -3217
@@ -1,3 +1,5 @@
1
+ import { type ControlText } from './assistantControlText';
2
+ import { type LanguageContext } from '../web-core/index';
1
3
  import type { AssistantConversationClient } from '../web-core/index';
2
4
  import type { ConfigurationCollaboration } from './configurationCollaboration';
3
5
  import type { ConstructionPlanSession } from './constructionPlanSession';
@@ -7,6 +9,8 @@ interface ConversationItem {
7
9
  id: number;
8
10
  role: 'user' | 'assistant' | 'status';
9
11
  text: string;
12
+ controlText?: ControlText;
13
+ archivedControlText?: import('../web-core/index').AssistantControlText;
10
14
  selection?: ConversationSelection;
11
15
  confirmation?: AssistantOperationConfirmation;
12
16
  confirmationState?: AssistantConfirmationState;
@@ -17,6 +21,7 @@ interface ConversationItem {
17
21
  }
18
22
  interface ConversationSelection {
19
23
  value: AssistantSelectionInteraction;
24
+ request: string;
20
25
  token?: AssistantInvocationToken;
21
26
  state: 'open' | 'submitting' | 'answered' | 'superseded';
22
27
  selectedOptionId?: string;
@@ -24,6 +29,7 @@ interface ConversationSelection {
24
29
  }
25
30
  export declare function useAssistantConversation(props: {
26
31
  open: boolean;
32
+ language?: LanguageContext;
27
33
  registry: AssistantSurfaceRegistry;
28
34
  conversationClient?: AssistantConversationClient;
29
35
  constructionPlan?: ConstructionPlanSession;
@@ -32,28 +38,20 @@ export declare function useAssistantConversation(props: {
32
38
  archive: {
33
39
  enabled: boolean;
34
40
  id: import("vue").Ref<string | undefined, string | undefined>;
35
- title: import("vue").Ref<string, string>;
36
- status: import("vue").Ref<"idle" | "saved" | "saving" | "unsaved" | "restored", "idle" | "saved" | "saving" | "unsaved" | "restored">;
37
- saveError: import("vue").Ref<string, string>;
38
- readError: import("vue").Ref<{
39
- kind: "list";
40
- more: boolean;
41
- message: string;
42
- } | {
43
- kind: "open";
44
- id: string;
41
+ title: import("vue").ComputedRef<string>;
42
+ status: import("vue").Ref<"idle" | "saving" | "saved" | "unsaved" | "restored", "idle" | "saving" | "saved" | "unsaved" | "restored">;
43
+ saveError: import("vue").ComputedRef<string>;
44
+ readError: import("vue").ComputedRef<{
45
45
  message: string;
46
- } | undefined, {
47
46
  kind: "list";
48
47
  more: boolean;
49
- message: string;
50
48
  } | {
49
+ message: string;
51
50
  kind: "open";
52
51
  id: string;
53
- message: string;
54
52
  } | undefined>;
55
53
  retryRead(): Promise<void> | undefined;
56
- loading: import("vue").Ref<boolean, boolean>;
54
+ loading: import("vue").ComputedRef<boolean>;
57
55
  ready: import("vue").Ref<boolean, boolean>;
58
56
  historyOpen: import("vue").Ref<boolean, boolean>;
59
57
  entries: import("vue").Ref<{
@@ -87,6 +85,36 @@ export declare function useAssistantConversation(props: {
87
85
  id: number;
88
86
  role: "user" | "assistant" | "status";
89
87
  text: string;
88
+ controlText?: {
89
+ code: string;
90
+ original: string;
91
+ args?: Record<string, string | number | boolean | ControlText | null> | undefined;
92
+ } | {
93
+ parts: (string | {
94
+ code: string;
95
+ original: string;
96
+ args?: Record<string, string | number | boolean | ControlText | null> | undefined;
97
+ } | /*elided*/ any)[];
98
+ } | undefined;
99
+ archivedControlText?: {
100
+ source: {
101
+ sourceKind: "CODE" | "CONFIG";
102
+ sourceId: string;
103
+ sourceVersion: string;
104
+ originalText: string;
105
+ };
106
+ args?: Record<string, string | number | boolean | null | import("../web-core/index").AssistantControlText> | undefined;
107
+ } | {
108
+ parts: (string | {
109
+ source: {
110
+ sourceKind: "CODE" | "CONFIG";
111
+ sourceId: string;
112
+ sourceVersion: string;
113
+ originalText: string;
114
+ };
115
+ args?: Record<string, string | number | boolean | null | import("../web-core/index").AssistantControlText> | undefined;
116
+ } | /*elided*/ any)[];
117
+ } | undefined;
90
118
  selection?: {
91
119
  value: {
92
120
  interactionId: string;
@@ -98,6 +126,7 @@ export declare function useAssistantConversation(props: {
98
126
  label: string;
99
127
  }[];
100
128
  };
129
+ request: string;
101
130
  token?: {
102
131
  identityScopeKey?: string | undefined;
103
132
  executionScopePending?: boolean | undefined;
@@ -174,6 +203,36 @@ export declare function useAssistantConversation(props: {
174
203
  id: number;
175
204
  role: "user" | "assistant" | "status";
176
205
  text: string;
206
+ controlText?: {
207
+ code: string;
208
+ original: string;
209
+ args?: Record<string, string | number | boolean | ControlText | null> | undefined;
210
+ } | {
211
+ parts: (string | {
212
+ code: string;
213
+ original: string;
214
+ args?: Record<string, string | number | boolean | ControlText | null> | undefined;
215
+ } | /*elided*/ any)[];
216
+ } | undefined;
217
+ archivedControlText?: {
218
+ source: {
219
+ sourceKind: "CODE" | "CONFIG";
220
+ sourceId: string;
221
+ sourceVersion: string;
222
+ originalText: string;
223
+ };
224
+ args?: Record<string, string | number | boolean | null | import("../web-core/index").AssistantControlText> | undefined;
225
+ } | {
226
+ parts: (string | {
227
+ source: {
228
+ sourceKind: "CODE" | "CONFIG";
229
+ sourceId: string;
230
+ sourceVersion: string;
231
+ originalText: string;
232
+ };
233
+ args?: Record<string, string | number | boolean | null | import("../web-core/index").AssistantControlText> | undefined;
234
+ } | /*elided*/ any)[];
235
+ } | undefined;
177
236
  selection?: {
178
237
  value: {
179
238
  interactionId: string;
@@ -185,6 +244,7 @@ export declare function useAssistantConversation(props: {
185
244
  label: string;
186
245
  }[];
187
246
  };
247
+ request: string;
188
248
  token?: {
189
249
  identityScopeKey?: string | undefined;
190
250
  executionScopePending?: boolean | undefined;
@@ -258,13 +318,44 @@ export declare function useAssistantConversation(props: {
258
318
  lines: string[];
259
319
  } | undefined;
260
320
  }[]>;
321
+ itemText: (item: ConversationItem) => string;
261
322
  busy: import("vue").Ref<boolean, boolean>;
262
- activityText: import("vue").ComputedRef<"正在执行页面操作…" | "正在组织回复…" | "正在取消…" | "正在理解你的目标…">;
323
+ activityText: import("vue").ComputedRef<string>;
263
324
  operationPending: import("vue").Ref<boolean, boolean>;
264
325
  activeRequiredSelection: import("vue").ComputedRef<{
265
326
  id: number;
266
327
  role: "user" | "assistant" | "status";
267
328
  text: string;
329
+ controlText?: {
330
+ code: string;
331
+ original: string;
332
+ args?: Record<string, string | number | boolean | ControlText | null> | undefined;
333
+ } | {
334
+ parts: (string | {
335
+ code: string;
336
+ original: string;
337
+ args?: Record<string, string | number | boolean | ControlText | null> | undefined;
338
+ } | /*elided*/ any)[];
339
+ } | undefined;
340
+ archivedControlText?: {
341
+ source: {
342
+ sourceKind: "CODE" | "CONFIG";
343
+ sourceId: string;
344
+ sourceVersion: string;
345
+ originalText: string;
346
+ };
347
+ args?: Record<string, string | number | boolean | null | import("../web-core/index").AssistantControlText> | undefined;
348
+ } | {
349
+ parts: (string | {
350
+ source: {
351
+ sourceKind: "CODE" | "CONFIG";
352
+ sourceId: string;
353
+ sourceVersion: string;
354
+ originalText: string;
355
+ };
356
+ args?: Record<string, string | number | boolean | null | import("../web-core/index").AssistantControlText> | undefined;
357
+ } | /*elided*/ any)[];
358
+ } | undefined;
268
359
  selection?: {
269
360
  value: {
270
361
  interactionId: string;
@@ -276,6 +367,7 @@ export declare function useAssistantConversation(props: {
276
367
  label: string;
277
368
  }[];
278
369
  };
370
+ request: string;
279
371
  token?: {
280
372
  identityScopeKey?: string | undefined;
281
373
  executionScopePending?: boolean | undefined;
@@ -1,30 +1,23 @@
1
+ import { type LanguageContext } from '../web-core/index';
1
2
  import type { AssistantConversationClient, AssistantConversationContent, AssistantConversationSummary } from '../web-core/index';
2
3
  /** Serializes checkpoints; scope generations prevent late reads/writes from replacing another conversation. */
3
- export declare function useAssistantConversationArchive(client: AssistantConversationClient | undefined, content: () => AssistantConversationContent, restore: (content: AssistantConversationContent) => void | Promise<void>, clear: () => void, leaveBlockedReason?: () => string | undefined): {
4
+ export declare function useAssistantConversationArchive(client: AssistantConversationClient | undefined, content: () => AssistantConversationContent | Promise<AssistantConversationContent>, restore: (content: AssistantConversationContent) => void | Promise<void>, clear: () => void, leaveBlockedReason?: () => string | undefined, language?: LanguageContext): {
4
5
  enabled: boolean;
5
6
  id: import("vue").Ref<string | undefined, string | undefined>;
6
- title: import("vue").Ref<string, string>;
7
- status: import("vue").Ref<"idle" | "saved" | "saving" | "unsaved" | "restored", "idle" | "saved" | "saving" | "unsaved" | "restored">;
8
- saveError: import("vue").Ref<string, string>;
9
- readError: import("vue").Ref<{
10
- kind: "list";
11
- more: boolean;
7
+ title: import("vue").ComputedRef<string>;
8
+ status: import("vue").Ref<"idle" | "saving" | "saved" | "unsaved" | "restored", "idle" | "saving" | "saved" | "unsaved" | "restored">;
9
+ saveError: import("vue").ComputedRef<string>;
10
+ readError: import("vue").ComputedRef<{
12
11
  message: string;
13
- } | {
14
- kind: "open";
15
- id: string;
16
- message: string;
17
- } | undefined, {
18
12
  kind: "list";
19
13
  more: boolean;
20
- message: string;
21
14
  } | {
15
+ message: string;
22
16
  kind: "open";
23
17
  id: string;
24
- message: string;
25
18
  } | undefined>;
26
19
  retryRead(): Promise<void> | undefined;
27
- loading: import("vue").Ref<boolean, boolean>;
20
+ loading: import("vue").ComputedRef<boolean>;
28
21
  ready: import("vue").Ref<boolean, boolean>;
29
22
  historyOpen: import("vue").Ref<boolean, boolean>;
30
23
  entries: import("vue").Ref<{
@@ -1,5 +1 @@
1
- /**
2
- * Lets a workspace panel declare unsaved local state without exposing or
3
- * duplicating its draft in the workbench shell.
4
- */
5
- export declare function useWorkspaceViewUnsavedState(source: string, isDirty: () => boolean, isBusy?: () => boolean): void;
1
+ export { useWorkspaceViewUnsavedState } from '../web-core/index';
@@ -1,8 +1,9 @@
1
+ import { type LanguageContext } from '../web-core/index';
1
2
  import type { MenuRecord, MenuTreeNode } from '../web-contracts/index';
2
3
  import type { AssistantCapability, AssistantInvocationToken } from '../web-core/index';
3
- export declare function createWorkbenchAssistantCapabilities(menus: () => MenuTreeNode[], openMenu: (menu: MenuRecord) => boolean, settleNavigation?: (signal?: AbortSignal) => Promise<void | AssistantInvocationToken>): AssistantCapability[];
4
+ export declare function createWorkbenchAssistantCapabilities(menus: () => MenuTreeNode[], openMenu: (menu: MenuRecord) => boolean, settleNavigation?: (signal?: AbortSignal) => Promise<void | AssistantInvocationToken>, language?: LanguageContext): AssistantCapability[];
4
5
  /** Current visible navigation, projected on demand; no cross-page permission cache. */
5
- export declare function workbenchAssistantMenuCatalog(menus: readonly MenuTreeNode[]): {
6
+ export declare function workbenchAssistantMenuCatalog(menus: readonly MenuTreeNode[], language?: LanguageContext): {
6
7
  items: {
7
8
  menuId: string;
8
9
  schemeId: string;
@@ -12,6 +12,7 @@ export interface WorkbenchNavigation {
12
12
  openMenu?(menu: MenuRecord): void;
13
13
  openRoute(path: string, options?: OpenRouteOptions): WorkbenchPageOpenResult;
14
14
  replaceRoute(path: string, options?: OpenRouteOptions): WorkbenchPageOpenResult;
15
+ /** Reports immediate execution only; protected closing finishes asynchronously after confirmation and does not report final fallback creation. */
15
16
  closeCurrentTab(fallbackPath: string): WorkbenchPageOpenResult;
16
17
  /** Opens a page and reports whether the target host was newly created. */
17
18
  openPage(descriptor: PageDescriptor): WorkbenchPageOpenResult;
@@ -12,6 +12,10 @@ export interface WorkspaceViewDefinition<TInput extends WorkspaceViewInput> {
12
12
  layout?: PageLayoutMode;
13
13
  drawerProfile?: WorkspaceDrawerProfile;
14
14
  routeTitle?: string;
15
+ routeTitleKey?: string;
16
+ /** CODE display resources; titleOf keeps the original and never depends on user language. */
17
+ titleKey?: string;
18
+ titleArgsOf?(input: TInput): Record<string, unknown>;
15
19
  titleOf(input: TInput): string;
16
20
  /**
17
21
  * Returns the input fields that identify one workbench tab. Other parsed
@@ -0,0 +1,5 @@
1
+ import { type LanguageContext } from '../web-core/index';
2
+ /** Clean pages need no asynchronous confirmation and retain immediate navigation semantics. */
3
+ export declare function hasWorkspaceViewDiscardProtection(keys: readonly string[]): boolean;
4
+ /** Every host must consult the same draft facts before destroying a workspace page. */
5
+ export declare function confirmDiscardWorkspaceViewState(keys: readonly string[], operation?: 'close' | 'refresh', language?: LanguageContext): Promise<boolean>;
@@ -6,7 +6,7 @@ export interface WorkspaceViewHost {
6
6
  /** Replaces URL-restorable state without creating another workbench tab. */
7
7
  replaceQuery(query: Record<string, RouteQueryValue | undefined>): void;
8
8
  /** Registers a local draft signal used only when the owning workbench tab closes. */
9
- registerUnsavedState(source: string, isDirty: () => boolean, isBusy?: () => boolean): () => void;
9
+ registerUnsavedState(source: string, isDirty: () => boolean, isBusy?: () => boolean, sourceTitle?: () => string): () => void;
10
10
  dismiss(): void;
11
11
  /** Closes the current independent workbench view. */
12
12
  close(): void;
@@ -1,4 +1,4 @@
1
- export declare function registerWorkspaceViewUnsavedState(pageKey: string, source: string, isDirty: () => boolean, isBusy?: () => boolean): () => void;
1
+ export declare function registerWorkspaceViewUnsavedState(pageKey: string, source: string, isDirty: () => boolean, isBusy?: () => boolean, sourceTitle?: () => string): () => void;
2
2
  export declare function workspaceViewUnsavedStateSources(pageKey: string): string[];
3
3
  /** Sources with an in-flight mutation cannot be destroyed until their work completes. */
4
4
  export declare function workspaceViewBusyStateSources(pageKey: string): string[];
@@ -1,4 +1,5 @@
1
1
  import type { BusinessRoutePageDescriptor } from '../web-contracts/index';
2
+ import { type LanguageContext } from '../web-core/index';
2
3
  import type { WorkspaceViewDefinition, WorkspaceViewInput, WorkspaceViewPresentation } from './workspaceViewContract';
3
4
  export { defineWorkspaceView, type WorkspaceDrawerProfile, type WorkspaceViewDefinition, type WorkspaceViewInput, type WorkspaceViewPresentation, } from './workspaceViewContract';
4
5
  export interface ResolvedWorkspaceView {
@@ -16,6 +17,6 @@ export interface WorkspaceViewRegistry {
16
17
  */
17
18
  export declare function configureWorkspaceViewContributions(owner: string, definitions: readonly WorkspaceViewDefinition<WorkspaceViewInput>[]): void;
18
19
  export declare function createWorkspaceViewRegistry(definitions: readonly WorkspaceViewDefinition<WorkspaceViewInput>[]): WorkspaceViewRegistry;
19
- export declare function createWorkspaceViewDescriptor<TInput extends WorkspaceViewInput>(view: WorkspaceViewDefinition<TInput>, input: TInput, presentation?: WorkspaceViewPresentation, title?: string): BusinessRoutePageDescriptor;
20
- export declare function dismissWorkspaceViewDescriptor(descriptor: BusinessRoutePageDescriptor, view: WorkspaceViewDefinition<WorkspaceViewInput>): BusinessRoutePageDescriptor;
20
+ export declare function createWorkspaceViewDescriptor<TInput extends WorkspaceViewInput>(view: WorkspaceViewDefinition<TInput>, input: TInput, presentation?: WorkspaceViewPresentation, title?: string, language?: LanguageContext): BusinessRoutePageDescriptor;
21
+ export declare function dismissWorkspaceViewDescriptor(descriptor: BusinessRoutePageDescriptor, view: WorkspaceViewDefinition<WorkspaceViewInput>, language?: LanguageContext): BusinessRoutePageDescriptor;
21
22
  export declare function resolveWorkspaceView(descriptor: BusinessRoutePageDescriptor): ResolvedWorkspaceView | undefined;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -27,7 +27,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
27
27
  "onUpdate:searchKeyword"?: ((value: string) => any) | undefined;
28
28
  "onUpdate:showSystemFields"?: ((value: boolean) => any) | undefined;
29
29
  }>, {
30
- title: string;
31
30
  loading: boolean;
32
31
  unavailable: boolean;
33
32
  embedded: boolean;
@@ -36,7 +35,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
36
35
  searchKeyword: string;
37
36
  utilityPlacement: "header" | "toolbar";
38
37
  showSystemFields: boolean;
39
- unavailableDescription: string;
40
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
39
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
42
40
  declare const _default: typeof __VLS_export;
@@ -32,7 +32,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
32
32
  index: number;
33
33
  }) => any;
34
34
  configureRelationField: (relationCode: string, fieldName: string) => any;
35
- configureAction: (anchor: "detail" | "page" | "form", actionCode: string) => any;
35
+ configureAction: (anchor: "form" | "page" | "detail", actionCode: string) => any;
36
36
  configureSummaries: () => any;
37
37
  "placement-drop": (source: CompositionPlacementSource, target: CompositionPlacementTarget) => any;
38
38
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -46,7 +46,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
46
46
  index: number;
47
47
  }) => any) | undefined;
48
48
  onConfigureRelationField?: ((relationCode: string, fieldName: string) => any) | undefined;
49
- onConfigureAction?: ((anchor: "detail" | "page" | "form", actionCode: string) => any) | undefined;
49
+ onConfigureAction?: ((anchor: "form" | "page" | "detail", actionCode: string) => any) | undefined;
50
50
  onConfigureSummaries?: (() => any) | undefined;
51
51
  "onPlacement-drop"?: ((source: CompositionPlacementSource, target: CompositionPlacementTarget) => any) | undefined;
52
52
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -32,17 +32,17 @@ type __VLS_Props = {
32
32
  descriptions?: Record<string, string>;
33
33
  };
34
34
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ retry: () => any;
35
36
  move: (index: number, offset: number) => any;
36
37
  add: (source: PageQuerySummarySource) => any;
37
38
  remove: (index: number) => any;
38
39
  update: (index: number, patch: Partial<PageQuerySummary>) => any;
39
- retry: () => any;
40
40
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
41
+ onRetry?: (() => any) | undefined;
41
42
  onMove?: ((index: number, offset: number) => any) | undefined;
42
43
  onAdd?: ((source: PageQuerySummarySource) => any) | undefined;
43
44
  onRemove?: ((index: number) => any) | undefined;
44
45
  onUpdate?: ((index: number, patch: Partial<PageQuerySummary>) => any) | undefined;
45
- onRetry?: (() => any) | undefined;
46
46
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
47
  declare const _default: typeof __VLS_export;
48
48
  export default _default;
@@ -1,5 +1,5 @@
1
- import type { Role } from '../web-contracts/index';
2
1
  import { type ModuleContext } from '../web-core/index';
2
+ import type { Role } from '../web-contracts/index';
3
3
  import type { ModulePageDrawerContext } from '../dynamic-page-runtime/index';
4
4
  type __VLS_Props = {
5
5
  roleId?: string;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ moduleAlias: string;
3
+ moduleTitle?: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -1,5 +1,5 @@
1
- import type { HttpClient } from '../web-core/index';
2
- import type { WebQueryRequest } from '../web-contracts/index';
1
+ import { type HttpClient, type LanguageContext } from '../web-core/index';
2
+ import type { TextReference, WebQueryRequest } from '../web-contracts/index';
3
3
  export type BusinessLogSurface = 'activity' | 'request-error' | 'login';
4
4
  export interface BusinessLogOperatorIdentity {
5
5
  employeeName?: string;
@@ -34,6 +34,7 @@ export interface BusinessLogEventView {
34
34
  export interface BusinessLogStatisticItem {
35
35
  key: string;
36
36
  title: string;
37
+ titleSource?: TextReference;
37
38
  count: number;
38
39
  [key: string]: unknown;
39
40
  }
@@ -86,3 +87,5 @@ export interface BusinessLogClient {
86
87
  diagnostic?(eventId: string): Promise<Record<string, unknown>>;
87
88
  }
88
89
  export declare function createBusinessLogClient(http: HttpClient, surface: BusinessLogSurface): BusinessLogClient;
90
+ /** Only labels explicitly produced by the statistics adapter are platform text. */
91
+ export declare function businessLogStatisticTitle(item: BusinessLogStatisticItem, language: LanguageContext): string;
@@ -1,7 +1,7 @@
1
- import { type AssistantCapability, type AssistantSurface, type AssistantTurnRequester } from '../web-core/index';
1
+ import { type LanguageContext, type AssistantCapability, type AssistantSurface, type AssistantTurnRequester } from '../web-core/index';
2
2
  import type { BusinessRuleProposal } from './businessRuleGovernance';
3
3
  import type { BusinessRuleTrialInput, BusinessRuleEditor as BusinessRuleAssistantAdapter } from './businessRuleEditor';
4
4
  export type { BusinessRuleTrialInput, BusinessRuleEditor as BusinessRuleAssistantAdapter, } from './businessRuleEditor';
5
- export declare function parseBusinessRuleProposal(input: unknown): BusinessRuleProposal;
6
- export declare function parseBusinessRuleTrial(input: unknown): BusinessRuleTrialInput;
5
+ export declare function parseBusinessRuleProposal(input: unknown, language?: LanguageContext): BusinessRuleProposal;
6
+ export declare function parseBusinessRuleTrial(input: unknown, language?: LanguageContext): BusinessRuleTrialInput;
7
7
  export declare function createBusinessRuleAssistantSurface(adapter: BusinessRuleAssistantAdapter, requestTurn: AssistantTurnRequester, contributed?: () => AssistantCapability[]): AssistantSurface;
@@ -1,10 +1,11 @@
1
- import type { OperationProposal } from '../web-core/index';
1
+ import type { LanguageContext, OperationProposal } from '../web-core/index';
2
2
  import type { BusinessRuleProposal, BusinessRulePreview, BusinessRuleTrialResult } from './businessRuleGovernance';
3
3
  export interface BusinessRuleTrialInput {
4
4
  sampleValues: Record<string, unknown>;
5
5
  sampleChildren: Record<string, Record<string, unknown>[]>;
6
6
  }
7
7
  export interface BusinessRuleEditor {
8
+ readonly language?: LanguageContext;
8
9
  summary(): {
9
10
  moduleAlias: string;
10
11
  title?: string;
@@ -1,6 +1,9 @@
1
+ import { type LanguageContext, type OperationErrorMessage } from '../web-core/index';
2
+ import type { TextPresentation } from '../web-contracts/index';
1
3
  export type BusinessRuleKind = 'CALCULATION' | 'VALIDATION' | 'UI_CONTROL';
2
4
  /** Save-validation behavior shared by manual editing and assistant rule inputs. */
3
5
  export declare const businessRuleValidationHelp = "\u516C\u5F0F\u4E3A\u771F\u65F6\u5141\u8BB8\u4FDD\u5B58\uFF0C\u4E3A\u5047\u65F6\u963B\u6B62\u4FDD\u5B58\u5E76\u663E\u793A\u5931\u8D25\u63D0\u793A\uFF1B\u5F53\u524D\u7F16\u8F91\u5668\u4E0D\u652F\u6301\u53EA\u63D0\u9192\u800C\u4ECD\u5141\u8BB8\u4FDD\u5B58\u7684\u89C4\u5219\u3002";
6
+ export declare function businessRuleValidationHelpText(language?: LanguageContext): string;
4
7
  export interface BusinessRuleEditableField {
5
8
  fieldName: string;
6
9
  title: string;
@@ -33,6 +36,7 @@ export interface BusinessRuleReferenceField {
33
36
  export interface BusinessRuleFormulaParameter {
34
37
  name: string;
35
38
  description: string;
39
+ descriptionText?: TextPresentation;
36
40
  }
37
41
  /** A portable formula capability. A server catalogue can replace this list without changing the surface. */
38
42
  export interface BusinessRuleFormulaCapability {
@@ -57,22 +61,26 @@ export interface BusinessRuleFormulaCatalogEntry {
57
61
  name: string;
58
62
  category?: string;
59
63
  title?: string;
64
+ titleText?: TextPresentation;
60
65
  description?: string;
66
+ descriptionText?: TextPresentation;
67
+ categoryText?: TextPresentation;
61
68
  parameters?: BusinessRuleFormulaParameter[];
62
69
  returnType?: string;
63
70
  example?: string;
64
71
  }
72
+ export declare function localizedPortableFormulaCapabilities(language?: LanguageContext): readonly BusinessRuleFormulaCapability[];
65
73
  export declare const portableFormulaCapabilities: readonly BusinessRuleFormulaCapability[];
66
- export declare function normalizeFormulaCapabilities(entries: readonly (BusinessRuleFormulaCapability | BusinessRuleFormulaCatalogEntry)[] | undefined): BusinessRuleFormulaCapability[];
74
+ export declare function normalizeFormulaCapabilities(entries: readonly (BusinessRuleFormulaCapability | BusinessRuleFormulaCatalogEntry)[] | undefined, language?: LanguageContext): BusinessRuleFormulaCapability[];
67
75
  export declare function searchableFormulaCapabilities(capabilities: readonly BusinessRuleFormulaCapability[], keyword: string): BusinessRuleFormulaCapability[];
68
76
  /** Root fields that cannot safely become scalar formula input have a visible, deterministic reason. */
69
- export declare function formulaFieldUnusableReason(field: BusinessRuleReferenceField): string | undefined;
77
+ export declare function formulaFieldUnusableReason(field: BusinessRuleReferenceField, language?: LanguageContext): string | undefined;
70
78
  /**
71
79
  * Prevents a child field from being inserted as a scalar or into an aggregate whose value type
72
80
  * cannot consume it. The server remains authoritative; this only keeps authoring feedback close
73
81
  * to the attempted insertion.
74
82
  */
75
- export declare function aggregateFieldInsertionReason(field: BusinessRuleReferenceField, expression: string, selectionStart: number, childTargets?: readonly string[]): string | undefined;
83
+ export declare function aggregateFieldInsertionReason(field: BusinessRuleReferenceField, expression: string, selectionStart: number, childTargets?: readonly string[], language?: LanguageContext): string | undefined;
76
84
  export interface UiControlTarget {
77
85
  elementKey: string;
78
86
  hide: boolean;
@@ -141,11 +149,13 @@ export interface BusinessRuleProposal {
141
149
  messageTemplate?: string;
142
150
  }
143
151
  export interface BusinessRuleIssue {
152
+ readonly messageSources?: readonly OperationErrorMessage[];
144
153
  code: string;
145
154
  ruleCode?: string;
146
155
  field?: string;
147
156
  message: string;
148
157
  }
158
+ export declare function businessRuleIssueMessage(issue: BusinessRuleIssue, language?: LanguageContext): string;
149
159
  export interface BusinessRulePreview {
150
160
  snapshot: BusinessRuleSnapshot;
151
161
  proposalFingerprint: string;
@@ -203,5 +213,5 @@ export declare function presentableFormulaExpression(expression: string, fields:
203
213
  */
204
214
  export declare function externalTrialInputFields(fields: readonly BusinessRuleEditableField[], rules: readonly BusinessRuleProposal[]): BusinessRuleEditableField[];
205
215
  export declare function filterBusinessRuleFields(fields: readonly BusinessRuleEditableField[], keyword: string): BusinessRuleEditableField[];
206
- export declare function formulaTemplates(kind: BusinessRuleKind, fields: readonly BusinessRuleEditableField[], targetField?: string): BusinessRuleFormulaTemplate[];
216
+ export declare function formulaTemplates(kind: BusinessRuleKind, fields: readonly BusinessRuleEditableField[], targetField?: string, language?: LanguageContext): BusinessRuleFormulaTemplate[];
207
217
  export declare function businessRuleChangeImpact(snapshot: BusinessRuleSnapshot, proposals: readonly BusinessRuleProposal[]): BusinessRuleChangeImpact;
@@ -1,12 +1,13 @@
1
- import { OperationUsageError, type HttpClient } from '../web-core/index';
1
+ import { type LanguageContext, OperationUsageError, type HttpClient } from '../web-core/index';
2
2
  import { type BusinessRuleSnapshot, type UiControlSnapshot, type BusinessRuleProposal, type BusinessRuleTrialResult, type BusinessRuleIssue } from './businessRuleGovernance';
3
3
  import type { BusinessRuleEditor, BusinessRuleTrialInput } from './businessRuleEditor';
4
4
  export declare class BusinessRulePrecheckError extends OperationUsageError {
5
5
  readonly issues: BusinessRuleIssue[];
6
- constructor(issues: BusinessRuleIssue[]);
6
+ constructor(issues: BusinessRuleIssue[], language?: LanguageContext);
7
7
  }
8
8
  /** One in-memory candidate shared by manual editing and conversation; server baselines remain authoritative. */
9
- export declare function createBusinessRuleSession(http: HttpClient, moduleAlias: string, ownerValid?: () => boolean, confirmationScope?: () => boolean): {
9
+ export declare function createBusinessRuleSession(http: HttpClient, moduleAlias: string, ownerValid?: () => boolean, confirmationScope?: () => boolean, language?: LanguageContext): {
10
+ language: LanguageContext;
10
11
  moduleAlias: string;
11
12
  dispose(): void;
12
13
  invalidateConfirmations: () => number;
@@ -1,7 +1,9 @@
1
- import { type AssistantInvocationToken, type AssistantCapability, type AssistantConfigurationEditor, type HttpClient } from '../web-core/index';
1
+ import { type LanguageContext, type AssistantInvocationToken, type AssistantCapability, type AssistantConfigurationEditor, type HttpClient } from '../web-core/index';
2
2
  import { type BusinessRuleSession } from './businessRuleSession';
3
- export declare function createBusinessRuleWorkspace(http: HttpClient, identity: () => string, enabled: () => boolean, openRules?: (moduleAlias: string) => void, onFocus?: () => void): {
3
+ export declare function createBusinessRuleWorkspace(http: HttpClient, identity: () => string, enabled: () => boolean, openRules?: (moduleAlias: string) => void, onFocus?: () => void, language?: LanguageContext): {
4
+ language: LanguageContext;
4
5
  session: (moduleAlias: string) => {
6
+ language: LanguageContext;
5
7
  moduleAlias: string;
6
8
  dispose(): void;
7
9
  invalidateConfirmations: () => number;
@@ -73,7 +75,9 @@ export declare function createBusinessRuleWorkspace(http: HttpClient, identity:
73
75
  export type BusinessRuleWorkspace = ReturnType<typeof createBusinessRuleWorkspace>;
74
76
  export declare function provideBusinessRuleWorkspace(workspace: BusinessRuleWorkspace): void;
75
77
  export declare function useBusinessRuleWorkspace(): {
78
+ language: LanguageContext;
76
79
  session: (moduleAlias: string) => {
80
+ language: LanguageContext;
77
81
  moduleAlias: string;
78
82
  dispose(): void;
79
83
  invalidateConfirmations: () => number;
@@ -1,2 +1,3 @@
1
+ import { type LanguageContext } from '../web-core/index';
1
2
  /** Lazy page loading may finish after the router commits; resume only once the shared editor is mounted. */
2
- export declare function waitForConfigurationEditor(visible: () => boolean, signal?: AbortSignal): Promise<void>;
3
+ export declare function waitForConfigurationEditor(visible: () => boolean, signal?: AbortSignal, language?: LanguageContext): Promise<void>;