@ximatai/muyun-web-app 0.26.14 → 0.26.15

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 (164) hide show
  1. package/dist/{BusinessActivityLogView-BUg5WTm-.js → BusinessActivityLogView-DVzrZW1X.js} +1 -1
  2. package/dist/{BusinessLogListDrawer-BOTE_7aT.js → BusinessLogListDrawer-D-R3wnWr.js} +159 -159
  3. package/dist/{LoginAuditLogView-DBNtvmIy.js → LoginAuditLogView-BP1eaEPw.js} +1 -1
  4. package/dist/{ModuleActionManagementView-Bq1VO51Y.js → ModuleActionManagementView-D17iKVQv.js} +186 -168
  5. package/dist/{ModuleGovernanceView-B8u4_erd.js → ModuleGovernanceView-LkWCtops.js} +13353 -9009
  6. package/dist/{RequestErrorLogView-BrtH3ptj.js → RequestErrorLogView-LzN94-Tk.js} +1 -1
  7. package/dist/{RoleDetailWorkspaceView-6LW3tLA1.js → RoleDetailWorkspaceView-BXA-bzFu.js} +257 -248
  8. package/dist/{RuntimeLogView-s3X5CdHB.js → RuntimeLogView-DUpu2q2w.js} +39 -39
  9. package/dist/index.css +1 -1
  10. package/dist/index.js +558 -493
  11. package/dist/moduleGovernanceWorkspaceView-COjWtJMr.js +639 -0
  12. package/dist/{platform-components-Dt859Hbr.js → platform-components-Hs3DrTqE.js} +4332 -3189
  13. package/dist/platform-workbench-C-kE-Yqq.js +19755 -0
  14. package/dist/{sse-mGbuCAax.js → sse-Q1wa3p_k.js} +11 -11
  15. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
  16. package/dist/types/app/useWorkbenchMenuRefresh.d.ts +4 -0
  17. package/dist/types/app/workbenchMenuRefresh.d.ts +14 -0
  18. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
  19. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +3 -3
  20. package/dist/types/dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts +17 -0
  21. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +506 -26
  22. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +3 -2
  23. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +562 -52
  24. package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +1 -0
  25. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +1 -0
  26. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +1 -0
  27. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +5 -2
  28. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +6 -0
  29. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +7 -5
  30. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
  31. package/dist/types/dynamic-page-runtime/assistantBusinessScope.d.ts +3 -0
  32. package/dist/types/dynamic-page-runtime/assistantQueryCapabilities.d.ts +34 -0
  33. package/dist/types/dynamic-page-runtime/assistantRecordEditorPolicy.d.ts +2 -2
  34. package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +2 -0
  35. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +94 -4
  36. package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +2 -0
  37. package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +13 -1
  38. package/dist/types/dynamic-page-runtime/recordCreationReadiness.d.ts +17 -0
  39. package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +59 -0
  40. package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +59 -0
  41. package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +33 -0
  42. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +2 -2
  43. package/dist/types/dynamic-page-runtime/recordReferenceDisplay.d.ts +8 -0
  44. package/dist/types/dynamic-page-runtime/recordSaveRecovery.d.ts +12 -0
  45. package/dist/types/dynamic-page-runtime/relationDraftAssistantCapabilities.d.ts +9 -0
  46. package/dist/types/dynamic-page-runtime/relationDraftController.d.ts +23 -0
  47. package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +1 -0
  48. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +300 -13
  49. package/dist/types/formula/FormulaRuntime.d.ts +3 -1
  50. package/dist/types/platform-admin-runtime/backendHttp.d.ts +5 -1
  51. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEditor.vue.d.ts +17 -0
  52. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuGovernanceSurface.vue.d.ts +6 -0
  53. package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +6 -2
  54. package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +5 -0
  55. package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +61 -0
  56. package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +180 -0
  57. package/dist/types/platform-admin-runtime/workspaceViewSessions.d.ts +1 -1
  58. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +3 -7
  59. package/dist/types/platform-components/DictionaryPicker.vue.d.ts +2 -0
  60. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  61. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +6 -4
  62. package/dist/types/platform-components/ManagementTabs.vue.d.ts +20 -0
  63. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -0
  64. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +15 -9
  65. package/dist/types/platform-components/RecordExplorerTools.vue.d.ts +27 -0
  66. package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
  67. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +2 -2
  68. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +2 -0
  69. package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -0
  70. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
  71. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +1 -1
  72. package/dist/types/platform-components/RecordRelationTabs.vue.d.ts +1 -0
  73. package/dist/types/platform-components/ReferencePicker.vue.d.ts +2 -0
  74. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
  75. package/dist/types/platform-components/index.d.ts +7 -2
  76. package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
  77. package/dist/types/platform-components/queryNumericValue.d.ts +3 -0
  78. package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
  79. package/dist/types/platform-components/recordFormFieldModel.d.ts +22 -0
  80. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +1 -0
  81. package/dist/types/platform-components/recordQueryListQueryController.d.ts +19 -2
  82. package/dist/types/platform-components/recordQueryListStandardQuery.d.ts +3 -0
  83. package/dist/types/platform-components/recycleBinState.d.ts +17 -0
  84. package/dist/types/platform-components/referencePickerModel.d.ts +1 -0
  85. package/dist/types/platform-workbench/ConstructionPlanCard.vue.d.ts +8 -0
  86. package/dist/types/platform-workbench/Workbench.vue.d.ts +8 -3
  87. package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +7 -1
  88. package/dist/types/platform-workbench/configurationCollaboration.d.ts +23 -0
  89. package/dist/types/platform-workbench/constructionDelivery.d.ts +3 -0
  90. package/dist/types/platform-workbench/constructionFields.d.ts +5 -0
  91. package/dist/types/platform-workbench/constructionInitialization.d.ts +4 -0
  92. package/dist/types/platform-workbench/constructionPlanGuard.d.ts +21 -0
  93. package/dist/types/platform-workbench/constructionPlanSession.d.ts +95 -0
  94. package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +3 -0
  95. package/dist/types/platform-workbench/useAssistantConversation.d.ts +360 -0
  96. package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +47 -0
  97. package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +19 -0
  98. package/dist/types/views/MetadataSourceTree.vue.d.ts +7 -3
  99. package/dist/types/views/ModuleRuntimeActivationStatus.vue.d.ts +11 -0
  100. package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +8 -8
  101. package/dist/types/views/PageCompositionEditor.vue.d.ts +10 -0
  102. package/dist/types/views/PageCompositionTree.vue.d.ts +19 -13
  103. package/dist/types/views/businessRuleAssistantSurface.d.ts +7 -0
  104. package/dist/types/views/businessRuleEditor.d.ts +22 -0
  105. package/dist/types/views/businessRuleGovernance.d.ts +7 -1
  106. package/dist/types/views/businessRuleSession.d.ts +63 -0
  107. package/dist/types/views/businessRuleWorkspace.d.ts +144 -0
  108. package/dist/types/views/configurationEditorNavigation.d.ts +2 -0
  109. package/dist/types/views/metadataChangeSetSubmission.d.ts +10 -0
  110. package/dist/types/views/metadataEditorSession.d.ts +652 -0
  111. package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +2 -120
  112. package/dist/types/views/metadataGovernanceEditor.d.ts +220 -0
  113. package/dist/types/views/metadataModelEditSession.d.ts +26 -1
  114. package/dist/types/views/metadataNaming.d.ts +7 -1
  115. package/dist/types/views/metadataOrchestrationState.d.ts +22 -0
  116. package/dist/types/views/metadataWorkspace.d.ts +1316 -0
  117. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
  118. package/dist/types/views/moduleRuntimeActivation.d.ts +11 -0
  119. package/dist/types/views/pageCompositionAssistantSurface.d.ts +27 -0
  120. package/dist/types/views/pageCompositionCandidate.d.ts +47 -0
  121. package/dist/types/views/pageCompositionComponents.d.ts +42 -0
  122. package/dist/types/views/pageCompositionDraftState.d.ts +277 -8
  123. package/dist/types/views/pageCompositionDragPayload.d.ts +7 -1
  124. package/dist/types/views/pageCompositionMode.d.ts +1 -1
  125. package/dist/types/views/pageCompositionPlacement.d.ts +6 -1
  126. package/dist/types/views/pageCompositionPublication.d.ts +37 -0
  127. package/dist/types/views/pageCompositionSession.d.ts +1341 -0
  128. package/dist/types/views/pageCompositionWorkspace.d.ts +2555 -0
  129. package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
  130. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
  131. package/dist/types/views/usePageCompositionComponents.d.ts +68 -0
  132. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -0
  133. package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +2 -0
  134. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +2 -0
  135. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
  136. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +2 -0
  137. package/dist/types/vue-ui-antdv/types.d.ts +4 -0
  138. package/dist/types/web-contracts/assistant.d.ts +29 -1
  139. package/dist/types/web-contracts/constructionPlan.d.ts +212 -0
  140. package/dist/types/web-contracts/index.d.ts +32 -0
  141. package/dist/types/web-contracts/operation.d.ts +33 -0
  142. package/dist/types/web-contracts/referenceTarget.d.ts +13 -0
  143. package/dist/types/web-core/assistantCapabilityCatalog.d.ts +22 -0
  144. package/dist/types/web-core/assistantCatalogPage.d.ts +12 -0
  145. package/dist/types/web-core/assistantConfirmation.d.ts +23 -0
  146. package/dist/types/web-core/assistantConversationClient.d.ts +42 -0
  147. package/dist/types/web-core/assistantRuntime.d.ts +53 -7
  148. package/dist/types/web-core/assistantSurface.d.ts +79 -9
  149. package/dist/types/web-core/assistantTurnClient.d.ts +9 -1
  150. package/dist/types/web-core/constructionPlanClient.d.ts +55 -0
  151. package/dist/types/web-core/errors.d.ts +2 -0
  152. package/dist/types/web-core/http.d.ts +1 -0
  153. package/dist/types/web-core/index.d.ts +8 -0
  154. package/dist/types/web-core/module/dataExchangeClient.d.ts +53 -0
  155. package/dist/types/web-core/module/index.d.ts +1 -0
  156. package/dist/types/web-core/module/staticModuleClient.d.ts +12 -2
  157. package/dist/types/web-core/operationConfirmation.d.ts +28 -0
  158. package/dist/types/web-core/operationErrors.d.ts +9 -0
  159. package/dist/types/web-core/operationReceipt.d.ts +10 -0
  160. package/dist/types/web-core/uuid.d.ts +2 -0
  161. package/dist/{workspaceViews-DijY4n32.js → workspaceViews-CHsgLFwY.js} +769 -1175
  162. package/package.json +1 -1
  163. package/dist/moduleGovernanceWorkspaceView-BRgJbUjJ.js +0 -40
  164. package/dist/platform-workbench-DfqFnlm-.js +0 -14701
@@ -0,0 +1,360 @@
1
+ import type { AssistantConversationClient } from '../web-core/index';
2
+ import type { ConfigurationCollaboration } from './configurationCollaboration';
3
+ import type { ConstructionPlanSession } from './constructionPlanSession';
4
+ import type { AssistantSelectionInteraction, AssistantSelectionOption, AssistantResultPresentation } from '../web-contracts/index';
5
+ import { type AssistantSurfaceRegistry, type AssistantOperationConfirmation, type AssistantConfirmationState, type AssistantInvocationToken } from '../web-core/index';
6
+ interface ConversationItem {
7
+ id: number;
8
+ role: 'user' | 'assistant' | 'status';
9
+ text: string;
10
+ selection?: ConversationSelection;
11
+ confirmation?: AssistantOperationConfirmation;
12
+ confirmationState?: AssistantConfirmationState;
13
+ confirmationScope?: string;
14
+ confirmationUserGoal?: string;
15
+ diagnostic?: string;
16
+ details?: AssistantResultPresentation['details'];
17
+ }
18
+ interface ConversationSelection {
19
+ value: AssistantSelectionInteraction;
20
+ token?: AssistantInvocationToken;
21
+ state: 'open' | 'submitting' | 'answered' | 'superseded';
22
+ selectedOptionId?: string;
23
+ retryable?: boolean;
24
+ }
25
+ export declare function useAssistantConversation(props: {
26
+ open: boolean;
27
+ registry: AssistantSurfaceRegistry;
28
+ conversationClient?: AssistantConversationClient;
29
+ constructionPlan?: ConstructionPlanSession;
30
+ configurationCollaboration?: ConfigurationCollaboration;
31
+ }): {
32
+ archive: {
33
+ enabled: boolean;
34
+ 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;
45
+ message: string;
46
+ } | undefined, {
47
+ kind: "list";
48
+ more: boolean;
49
+ message: string;
50
+ } | {
51
+ kind: "open";
52
+ id: string;
53
+ message: string;
54
+ } | undefined>;
55
+ retryRead(): Promise<void> | undefined;
56
+ loading: import("vue").Ref<boolean, boolean>;
57
+ ready: import("vue").Ref<boolean, boolean>;
58
+ historyOpen: import("vue").Ref<boolean, boolean>;
59
+ entries: import("vue").Ref<{
60
+ id: string;
61
+ title: string;
62
+ updatedAt: string;
63
+ }[], import("../web-core/index").AssistantConversationSummary[] | {
64
+ id: string;
65
+ title: string;
66
+ updatedAt: string;
67
+ }[]>;
68
+ hasMore: import("vue").Ref<boolean, boolean>;
69
+ changeScope: (value: string | undefined) => void;
70
+ save: () => Promise<boolean>;
71
+ list: (more?: boolean) => Promise<void>;
72
+ open: (conversationId: string) => Promise<void>;
73
+ startNew: () => Promise<void>;
74
+ saveCopy: () => Promise<void>;
75
+ discardAndStartNew: () => void;
76
+ };
77
+ restored: import("vue").Ref<boolean, boolean>;
78
+ linkedPlanId: import("vue").Ref<string | undefined, string | undefined>;
79
+ draft: import("vue").Ref<string, string>;
80
+ restoredThroughId: import("vue").Ref<number, number>;
81
+ restoredRequest: import("vue").Ref<string, string>;
82
+ recoveryRequest: import("vue").ComputedRef<string>;
83
+ recoveryReadOnly: import("vue").ComputedRef<boolean>;
84
+ adjustRequest: () => void;
85
+ continueConversation: () => void;
86
+ items: import("vue").Ref<{
87
+ id: number;
88
+ role: "user" | "assistant" | "status";
89
+ text: string;
90
+ selection?: {
91
+ value: {
92
+ interactionId: string;
93
+ prompt: string;
94
+ inputPolicy: "free_text_allowed" | "selection_required";
95
+ presentation: "options" | "confirmation";
96
+ options: {
97
+ id: string;
98
+ label: string;
99
+ }[];
100
+ };
101
+ token?: {
102
+ identityScopeKey?: string | undefined;
103
+ executionScopePending?: boolean | undefined;
104
+ executionScopeKey?: string | undefined;
105
+ pageInstanceKey: string;
106
+ surfaceGeneration: number;
107
+ readStateRevision?: number | undefined;
108
+ contextRevision: string;
109
+ interactionRevision?: string | undefined;
110
+ fallback: boolean;
111
+ } | undefined;
112
+ state: "open" | "submitting" | "answered" | "superseded";
113
+ selectedOptionId?: string | undefined;
114
+ retryable?: boolean | undefined;
115
+ } | undefined;
116
+ confirmation?: {
117
+ readonly modelSummary: string;
118
+ readonly receiptReference?: {
119
+ kind: "record-save";
120
+ moduleAlias: string;
121
+ requestId: string;
122
+ tenantId?: string | undefined;
123
+ menuId?: string | undefined;
124
+ pageContext?: Record<string, string> | undefined;
125
+ pageSelection?: {
126
+ kind: string;
127
+ key: string;
128
+ } | undefined;
129
+ } | {
130
+ kind: "child-metadata";
131
+ moduleAlias: string;
132
+ relationId: string;
133
+ requestId: string;
134
+ } | {
135
+ kind: "page-publication";
136
+ variantId: string;
137
+ revisionId: string;
138
+ contentDigest: string;
139
+ } | undefined;
140
+ readonly continuationReadOnly?: boolean | undefined;
141
+ readonly continuationIsCurrent?: (() => boolean) | undefined;
142
+ takeContinuation: () => string | undefined;
143
+ readonly confirmLabel: string;
144
+ readonly presentation: {
145
+ title: string;
146
+ lines: string[];
147
+ details?: {
148
+ title: string;
149
+ lines: string[];
150
+ } | undefined;
151
+ };
152
+ readonly state: AssistantConfirmationState;
153
+ readonly result: {
154
+ title: string;
155
+ lines: string[];
156
+ details?: {
157
+ title: string;
158
+ lines: string[];
159
+ } | undefined;
160
+ } | undefined;
161
+ confirm: () => Promise<void>;
162
+ check: () => Promise<void>;
163
+ cancel: () => void;
164
+ } | undefined;
165
+ confirmationState?: AssistantConfirmationState | undefined;
166
+ confirmationScope?: string | undefined;
167
+ confirmationUserGoal?: string | undefined;
168
+ diagnostic?: string | undefined;
169
+ details?: {
170
+ title: string;
171
+ lines: string[];
172
+ } | undefined;
173
+ }[], ConversationItem[] | {
174
+ id: number;
175
+ role: "user" | "assistant" | "status";
176
+ text: string;
177
+ selection?: {
178
+ value: {
179
+ interactionId: string;
180
+ prompt: string;
181
+ inputPolicy: "free_text_allowed" | "selection_required";
182
+ presentation: "options" | "confirmation";
183
+ options: {
184
+ id: string;
185
+ label: string;
186
+ }[];
187
+ };
188
+ token?: {
189
+ identityScopeKey?: string | undefined;
190
+ executionScopePending?: boolean | undefined;
191
+ executionScopeKey?: string | undefined;
192
+ pageInstanceKey: string;
193
+ surfaceGeneration: number;
194
+ readStateRevision?: number | undefined;
195
+ contextRevision: string;
196
+ interactionRevision?: string | undefined;
197
+ fallback: boolean;
198
+ } | undefined;
199
+ state: "open" | "submitting" | "answered" | "superseded";
200
+ selectedOptionId?: string | undefined;
201
+ retryable?: boolean | undefined;
202
+ } | undefined;
203
+ confirmation?: {
204
+ readonly modelSummary: string;
205
+ readonly receiptReference?: {
206
+ kind: "record-save";
207
+ moduleAlias: string;
208
+ requestId: string;
209
+ tenantId?: string | undefined;
210
+ menuId?: string | undefined;
211
+ pageContext?: Record<string, string> | undefined;
212
+ pageSelection?: {
213
+ kind: string;
214
+ key: string;
215
+ } | undefined;
216
+ } | {
217
+ kind: "child-metadata";
218
+ moduleAlias: string;
219
+ relationId: string;
220
+ requestId: string;
221
+ } | {
222
+ kind: "page-publication";
223
+ variantId: string;
224
+ revisionId: string;
225
+ contentDigest: string;
226
+ } | undefined;
227
+ readonly continuationReadOnly?: boolean | undefined;
228
+ readonly continuationIsCurrent?: (() => boolean) | undefined;
229
+ takeContinuation: () => string | undefined;
230
+ readonly confirmLabel: string;
231
+ readonly presentation: {
232
+ title: string;
233
+ lines: string[];
234
+ details?: {
235
+ title: string;
236
+ lines: string[];
237
+ } | undefined;
238
+ };
239
+ readonly state: AssistantConfirmationState;
240
+ readonly result: {
241
+ title: string;
242
+ lines: string[];
243
+ details?: {
244
+ title: string;
245
+ lines: string[];
246
+ } | undefined;
247
+ } | undefined;
248
+ confirm: () => Promise<void>;
249
+ check: () => Promise<void>;
250
+ cancel: () => void;
251
+ } | undefined;
252
+ confirmationState?: AssistantConfirmationState | undefined;
253
+ confirmationScope?: string | undefined;
254
+ confirmationUserGoal?: string | undefined;
255
+ diagnostic?: string | undefined;
256
+ details?: {
257
+ title: string;
258
+ lines: string[];
259
+ } | undefined;
260
+ }[]>;
261
+ busy: import("vue").Ref<boolean, boolean>;
262
+ activityText: import("vue").ComputedRef<"正在执行页面操作…" | "正在组织回复…" | "正在取消…" | "正在理解你的目标…">;
263
+ operationPending: import("vue").Ref<boolean, boolean>;
264
+ activeRequiredSelection: import("vue").ComputedRef<{
265
+ id: number;
266
+ role: "user" | "assistant" | "status";
267
+ text: string;
268
+ selection?: {
269
+ value: {
270
+ interactionId: string;
271
+ prompt: string;
272
+ inputPolicy: "free_text_allowed" | "selection_required";
273
+ presentation: "options" | "confirmation";
274
+ options: {
275
+ id: string;
276
+ label: string;
277
+ }[];
278
+ };
279
+ token?: {
280
+ identityScopeKey?: string | undefined;
281
+ executionScopePending?: boolean | undefined;
282
+ executionScopeKey?: string | undefined;
283
+ pageInstanceKey: string;
284
+ surfaceGeneration: number;
285
+ readStateRevision?: number | undefined;
286
+ contextRevision: string;
287
+ interactionRevision?: string | undefined;
288
+ fallback: boolean;
289
+ } | undefined;
290
+ state: "open" | "submitting" | "answered" | "superseded";
291
+ selectedOptionId?: string | undefined;
292
+ retryable?: boolean | undefined;
293
+ } | undefined;
294
+ confirmation?: {
295
+ readonly modelSummary: string;
296
+ readonly receiptReference?: {
297
+ kind: "record-save";
298
+ moduleAlias: string;
299
+ requestId: string;
300
+ tenantId?: string | undefined;
301
+ menuId?: string | undefined;
302
+ pageContext?: Record<string, string> | undefined;
303
+ pageSelection?: {
304
+ kind: string;
305
+ key: string;
306
+ } | undefined;
307
+ } | {
308
+ kind: "child-metadata";
309
+ moduleAlias: string;
310
+ relationId: string;
311
+ requestId: string;
312
+ } | {
313
+ kind: "page-publication";
314
+ variantId: string;
315
+ revisionId: string;
316
+ contentDigest: string;
317
+ } | undefined;
318
+ readonly continuationReadOnly?: boolean | undefined;
319
+ readonly continuationIsCurrent?: (() => boolean) | undefined;
320
+ takeContinuation: () => string | undefined;
321
+ readonly confirmLabel: string;
322
+ readonly presentation: {
323
+ title: string;
324
+ lines: string[];
325
+ details?: {
326
+ title: string;
327
+ lines: string[];
328
+ } | undefined;
329
+ };
330
+ readonly state: AssistantConfirmationState;
331
+ readonly result: {
332
+ title: string;
333
+ lines: string[];
334
+ details?: {
335
+ title: string;
336
+ lines: string[];
337
+ } | undefined;
338
+ } | undefined;
339
+ confirm: () => Promise<void>;
340
+ check: () => Promise<void>;
341
+ cancel: () => void;
342
+ } | undefined;
343
+ confirmationState?: AssistantConfirmationState | undefined;
344
+ confirmationScope?: string | undefined;
345
+ confirmationUserGoal?: string | undefined;
346
+ diagnostic?: string | undefined;
347
+ details?: {
348
+ title: string;
349
+ lines: string[];
350
+ } | undefined;
351
+ } | undefined>;
352
+ submit: () => void;
353
+ cancel: () => void;
354
+ abandonSelection: (item: ConversationItem) => void;
355
+ selectOption: (item: ConversationItem, option: AssistantSelectionOption) => void;
356
+ handleKeydown: (event: KeyboardEvent) => void;
357
+ confirmOperation: (item: ConversationItem, check?: boolean) => Promise<void>;
358
+ cancelOperation: (item: ConversationItem) => void;
359
+ };
360
+ export {};
@@ -0,0 +1,47 @@
1
+ import type { AssistantConversationClient, AssistantConversationContent, AssistantConversationSummary } from '../web-core/index';
2
+ /** 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
+ enabled: boolean;
5
+ 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;
12
+ message: string;
13
+ } | {
14
+ kind: "open";
15
+ id: string;
16
+ message: string;
17
+ } | undefined, {
18
+ kind: "list";
19
+ more: boolean;
20
+ message: string;
21
+ } | {
22
+ kind: "open";
23
+ id: string;
24
+ message: string;
25
+ } | undefined>;
26
+ retryRead(): Promise<void> | undefined;
27
+ loading: import("vue").Ref<boolean, boolean>;
28
+ ready: import("vue").Ref<boolean, boolean>;
29
+ historyOpen: import("vue").Ref<boolean, boolean>;
30
+ entries: import("vue").Ref<{
31
+ id: string;
32
+ title: string;
33
+ updatedAt: string;
34
+ }[], AssistantConversationSummary[] | {
35
+ id: string;
36
+ title: string;
37
+ updatedAt: string;
38
+ }[]>;
39
+ hasMore: import("vue").Ref<boolean, boolean>;
40
+ changeScope: (value: string | undefined) => void;
41
+ save: () => Promise<boolean>;
42
+ list: (more?: boolean) => Promise<void>;
43
+ open: (conversationId: string) => Promise<void>;
44
+ startNew: () => Promise<void>;
45
+ saveCopy: () => Promise<void>;
46
+ discardAndStartNew: () => void;
47
+ };
@@ -1,3 +1,22 @@
1
1
  import type { MenuRecord, MenuTreeNode } from '../web-contracts/index';
2
2
  import type { AssistantCapability, AssistantInvocationToken } from '../web-core/index';
3
3
  export declare function createWorkbenchAssistantCapabilities(menus: () => MenuTreeNode[], openMenu: (menu: MenuRecord) => boolean, settleNavigation?: (signal?: AbortSignal) => Promise<void | AssistantInvocationToken>): AssistantCapability[];
4
+ /** Current visible navigation, projected on demand; no cross-page permission cache. */
5
+ export declare function workbenchAssistantMenuCatalog(menus: readonly MenuTreeNode[]): {
6
+ items: {
7
+ menuId: string;
8
+ schemeId: string;
9
+ title: string;
10
+ moduleAlias: string | undefined;
11
+ description: string | undefined;
12
+ path: string[];
13
+ }[];
14
+ page: {
15
+ note?: string | undefined;
16
+ offset: number;
17
+ total: number;
18
+ nextOffset: number | null;
19
+ coverage: string;
20
+ oversizedIndexes: number[];
21
+ };
22
+ };
@@ -3,6 +3,7 @@ type __VLS_Props = {
3
3
  nodes: UiTreeNode[];
4
4
  title?: string;
5
5
  embedded?: boolean;
6
+ utilityPlacement?: 'header' | 'toolbar';
6
7
  searchKeyword?: string;
7
8
  showSystemFields?: boolean;
8
9
  searchable?: boolean;
@@ -11,9 +12,11 @@ type __VLS_Props = {
11
12
  unavailable?: boolean;
12
13
  unavailableDescription?: string;
13
14
  };
14
- declare var __VLS_34: {};
15
+ declare var __VLS_12: {}, __VLS_37: {};
15
16
  type __VLS_Slots = {} & {
16
- default?: (props: typeof __VLS_34) => any;
17
+ title?: (props: typeof __VLS_12) => any;
18
+ } & {
19
+ default?: (props: typeof __VLS_37) => any;
17
20
  };
18
21
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
22
  refresh: () => any;
@@ -28,9 +31,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
28
31
  loading: boolean;
29
32
  unavailable: boolean;
30
33
  embedded: boolean;
34
+ searchable: boolean;
31
35
  refreshDisabled: boolean;
32
36
  searchKeyword: string;
33
- searchable: boolean;
37
+ utilityPlacement: "header" | "toolbar";
34
38
  showSystemFields: boolean;
35
39
  unavailableDescription: string;
36
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,11 @@
1
+ import { type ModuleActivationFeedback } from './moduleRuntimeActivation';
2
+ type __VLS_Props = {
3
+ moduleAlias: string;
4
+ reloadKey?: number;
5
+ };
6
+ declare function load(): Promise<ModuleActivationFeedback | undefined>;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
8
+ refresh: typeof load;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -24,10 +24,6 @@ type __VLS_Props = {
24
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
25
  selectField: (slot: PreviewSlot, fieldName: string) => any;
26
26
  configureField: (slot: PreviewSlot, fieldName: string) => any;
27
- configureRelationField: (relationCode: string, fieldName: string) => any;
28
- configureAction: (anchor: "page" | "form" | "detail", actionCode: string) => any;
29
- configureSummaries: () => any;
30
- "placement-drop": (source: CompositionPlacementSource, target: CompositionPlacementTarget) => any;
31
27
  "action-drop": (source: {
32
28
  actionCode: string;
33
29
  sourceAnchor?: "page" | "detail" | "form";
@@ -35,13 +31,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
35
31
  anchor: "page" | "detail" | "form";
36
32
  index: number;
37
33
  }) => any;
34
+ configureRelationField: (relationCode: string, fieldName: string) => any;
35
+ configureAction: (anchor: "detail" | "page" | "form", actionCode: string) => any;
36
+ configureSummaries: () => any;
37
+ "placement-drop": (source: CompositionPlacementSource, target: CompositionPlacementTarget) => any;
38
38
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
39
39
  onSelectField?: ((slot: PreviewSlot, fieldName: string) => any) | undefined;
40
40
  onConfigureField?: ((slot: PreviewSlot, fieldName: string) => any) | undefined;
41
- onConfigureRelationField?: ((relationCode: string, fieldName: string) => any) | undefined;
42
- onConfigureAction?: ((anchor: "page" | "form" | "detail", actionCode: string) => any) | undefined;
43
- onConfigureSummaries?: (() => any) | undefined;
44
- "onPlacement-drop"?: ((source: CompositionPlacementSource, target: CompositionPlacementTarget) => any) | undefined;
45
41
  "onAction-drop"?: ((source: {
46
42
  actionCode: string;
47
43
  sourceAnchor?: "page" | "detail" | "form";
@@ -49,6 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
49
45
  anchor: "page" | "detail" | "form";
50
46
  index: number;
51
47
  }) => any) | undefined;
48
+ onConfigureRelationField?: ((relationCode: string, fieldName: string) => any) | undefined;
49
+ onConfigureAction?: ((anchor: "detail" | "page" | "form", actionCode: string) => any) | undefined;
50
+ onConfigureSummaries?: (() => any) | undefined;
51
+ "onPlacement-drop"?: ((source: CompositionPlacementSource, target: CompositionPlacementTarget) => any) | undefined;
52
52
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
53
  declare const _default: typeof __VLS_export;
54
54
  export default _default;
@@ -0,0 +1,10 @@
1
+ import type { PageCompositionSession } from './pageCompositionSession';
2
+ type __VLS_Props = {
3
+ session: PageCompositionSession;
4
+ retained?: boolean;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ retained: boolean;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -2,6 +2,9 @@ import { type CompositionSkeleton, type PageCompositionActionPlacement } from '.
2
2
  import { type PageComposerFormItem, type PageComposerField, type PageComposerGroup, type PageComposerRelation, type PageQuerySummary } from './pageCompositionDraftState';
3
3
  import { type PageCompositionDragPayload } from './pageCompositionDragPayload';
4
4
  type __VLS_Props = {
5
+ layoutTitle?: string;
6
+ hideList?: boolean;
7
+ separateDetail?: boolean;
5
8
  skeleton?: CompositionSkeleton;
6
9
  explorerTitle?: string;
7
10
  searchableFieldIds?: string[];
@@ -32,7 +35,7 @@ type __VLS_Props = {
32
35
  selectedKey?: string;
33
36
  disabled?: boolean;
34
37
  };
35
- type ComposerNodeAction = 'configure' | 'remove' | 'add-group' | 'toggle-visibility';
38
+ type ComposerNodeAction = 'configure' | 'remove' | 'add-group' | 'toggle-visibility' | 'split-layout' | 'merge-layout';
36
39
  export type ComposerDropTarget = ({
37
40
  kind: 'explorer-title' | 'explorer-secondary' | 'quick-search';
38
41
  } | {
@@ -54,13 +57,6 @@ export type ComposerDropTarget = ({
54
57
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
58
  select: (key: string) => any;
56
59
  "double-click": (key: string) => any;
57
- "action-drop": (source: {
58
- actionCode: string;
59
- sourceAnchor?: PageCompositionActionPlacement["anchor"];
60
- }, target: {
61
- anchor: PageCompositionActionPlacement["anchor"];
62
- index: number;
63
- }) => any;
64
60
  "node-action": (action: ComposerNodeAction, key: string) => any;
65
61
  "reorder-list-field": (fieldId: string, targetIndex: number) => any;
66
62
  "reorder-form-field": (fieldId: string, targetIndex: number) => any;
@@ -72,16 +68,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
72
68
  "reorder-relation-field": (relationId: string, fieldId: string, targetIndex: number) => any;
73
69
  "reorder-query-summary": (summaryKey: string, targetIndex: number) => any;
74
70
  "source-drop": (target: ComposerDropTarget, payload: PageCompositionDragPayload) => any;
75
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
76
- onSelect?: ((key: string) => any) | undefined;
77
- "onDouble-click"?: ((key: string) => any) | undefined;
78
- "onAction-drop"?: ((source: {
71
+ "action-drop": (source: {
79
72
  actionCode: string;
80
73
  sourceAnchor?: PageCompositionActionPlacement["anchor"];
81
74
  }, target: {
82
75
  anchor: PageCompositionActionPlacement["anchor"];
83
76
  index: number;
84
- }) => any) | undefined;
77
+ }) => any;
78
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
79
+ onSelect?: ((key: string) => any) | undefined;
80
+ "onDouble-click"?: ((key: string) => any) | undefined;
85
81
  "onNode-action"?: ((action: ComposerNodeAction, key: string) => any) | undefined;
86
82
  "onReorder-list-field"?: ((fieldId: string, targetIndex: number) => any) | undefined;
87
83
  "onReorder-form-field"?: ((fieldId: string, targetIndex: number) => any) | undefined;
@@ -93,10 +89,20 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
93
89
  "onReorder-relation-field"?: ((relationId: string, fieldId: string, targetIndex: number) => any) | undefined;
94
90
  "onReorder-query-summary"?: ((summaryKey: string, targetIndex: number) => any) | undefined;
95
91
  "onSource-drop"?: ((target: ComposerDropTarget, payload: PageCompositionDragPayload) => any) | undefined;
92
+ "onAction-drop"?: ((source: {
93
+ actionCode: string;
94
+ sourceAnchor?: PageCompositionActionPlacement["anchor"];
95
+ }, target: {
96
+ anchor: PageCompositionActionPlacement["anchor"];
97
+ index: number;
98
+ }) => any) | undefined;
96
99
  }>, {
97
100
  disabled: boolean;
98
101
  selectedKey: string;
99
102
  editorMode: "fields" | "actions";
103
+ layoutTitle: string;
104
+ hideList: boolean;
105
+ separateDetail: boolean;
100
106
  formOrder: PageComposerFormItem[];
101
107
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
102
108
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,7 @@
1
+ import { type AssistantCapability, type AssistantSurface, type AssistantTurnRequester } from '../web-core/index';
2
+ import type { BusinessRuleProposal } from './businessRuleGovernance';
3
+ import type { BusinessRuleTrialInput, BusinessRuleEditor as BusinessRuleAssistantAdapter } from './businessRuleEditor';
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;
7
+ export declare function createBusinessRuleAssistantSurface(adapter: BusinessRuleAssistantAdapter, requestTurn: AssistantTurnRequester, contributed?: () => AssistantCapability[]): AssistantSurface;
@@ -0,0 +1,22 @@
1
+ import type { OperationProposal } from '../web-core/index';
2
+ import type { BusinessRuleProposal, BusinessRulePreview, BusinessRuleTrialResult } from './businessRuleGovernance';
3
+ export interface BusinessRuleTrialInput {
4
+ sampleValues: Record<string, unknown>;
5
+ sampleChildren: Record<string, Record<string, unknown>[]>;
6
+ }
7
+ export interface BusinessRuleEditor {
8
+ summary(): {
9
+ moduleAlias: string;
10
+ title?: string;
11
+ editable: boolean;
12
+ factsAvailable?: boolean;
13
+ hasUnappliedChanges?: boolean;
14
+ submissionStatus?: 'idle' | 'unknown' | 'current-read';
15
+ };
16
+ readCurrent?(signal?: AbortSignal, commit?: (accept: () => void) => void): Promise<void>;
17
+ catalog(section: string): unknown[];
18
+ revise(rule: BusinessRuleProposal): void;
19
+ preview(signal: AbortSignal): Promise<BusinessRulePreview>;
20
+ trial(input: BusinessRuleTrialInput, signal: AbortSignal): Promise<BusinessRuleTrialResult>;
21
+ prepareConfirmation(signal: AbortSignal): Promise<OperationProposal>;
22
+ }
@@ -1,4 +1,6 @@
1
1
  export type BusinessRuleKind = 'CALCULATION' | 'VALIDATION' | 'UI_CONTROL';
2
+ /** Save-validation behavior shared by manual editing and assistant rule inputs. */
3
+ 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";
2
4
  export interface BusinessRuleEditableField {
3
5
  fieldName: string;
4
6
  title: string;
@@ -70,7 +72,7 @@ export declare function formulaFieldUnusableReason(field: BusinessRuleReferenceF
70
72
  * cannot consume it. The server remains authoritative; this only keeps authoring feedback close
71
73
  * to the attempted insertion.
72
74
  */
73
- export declare function aggregateFieldInsertionReason(field: BusinessRuleReferenceField, expression: string, selectionStart: number): string | undefined;
75
+ export declare function aggregateFieldInsertionReason(field: BusinessRuleReferenceField, expression: string, selectionStart: number, childTargets?: readonly string[]): string | undefined;
74
76
  export interface UiControlTarget {
75
77
  elementKey: string;
76
78
  hide: boolean;
@@ -122,6 +124,8 @@ export interface BusinessRuleSnapshot {
122
124
  }>;
123
125
  /** Direct child fields, which may only appear within a child aggregation function. */
124
126
  aggregateFields?: BusinessRuleEditableField[];
127
+ /** Writable direct-child targets; never reference target fields. */
128
+ childFields?: BusinessRuleEditableField[];
125
129
  /** Additive portable function directory emitted by the server. */
126
130
  functions?: BusinessRuleFormulaCatalogEntry[];
127
131
  rules: BusinessRuleSnapshotRule[];
@@ -152,8 +156,10 @@ export interface BusinessRuleTrialResult {
152
156
  preview: BusinessRulePreview;
153
157
  values: Record<string, unknown>;
154
158
  changedFields: string[];
159
+ children?: Record<string, Record<string, unknown>[]>;
155
160
  errors: BusinessRuleIssue[];
156
161
  }
162
+ export declare function businessRuleTrialValue(result: Pick<BusinessRuleTrialResult, 'values' | 'children'>, field: string): unknown;
157
163
  export interface BusinessRuleApplyResult {
158
164
  snapshot: BusinessRuleSnapshot;
159
165
  preview: BusinessRulePreview;