@huanban/rulego-editor-core 1.4.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/README.md +20 -8
  2. package/dist/ai/ai-chat-options.d.ts +12 -0
  3. package/dist/api/AIAssistantAPI.d.ts +29 -0
  4. package/dist/api/AIManager.d.ts +7 -1
  5. package/dist/api/ApiProvider.d.ts +17 -4
  6. package/dist/api/DebugSocketClient.d.ts +2 -0
  7. package/dist/api/GlobalConfigAPI.d.ts +35 -0
  8. package/dist/api/IoTPointTemplateAPI.d.ts +32 -0
  9. package/dist/api/MarketplaceAPI.d.ts +39 -0
  10. package/dist/api/RuleChainAPI.d.ts +23 -4
  11. package/dist/api/RuleChainVersionsAPI.d.ts +28 -0
  12. package/dist/api/SkillsAPI.d.ts +31 -0
  13. package/dist/api/UserAPI.d.ts +39 -0
  14. package/dist/api/extended-api-shared.d.ts +25 -0
  15. package/dist/api/index.d.ts +19 -2
  16. package/dist/api/public-api.test-d.d.ts +87 -0
  17. package/dist/api/response-utils.d.ts +1 -0
  18. package/dist/api/types.d.ts +86 -14
  19. package/dist/chunks/editor-core-api-BQiYFuIO.js +1157 -0
  20. package/dist/chunks/editor-core-canvas-nodes-BE9eN51s.js +6921 -0
  21. package/dist/chunks/editor-core-code-editor-DFm5Owtv.js +660 -0
  22. package/dist/chunks/{editor-core-default-components-BjF65lar.js → editor-core-default-components-BsNP8ma1.js} +98 -98
  23. package/dist/chunks/editor-core-dialogs-D9YHvzys.js +12009 -0
  24. package/dist/chunks/{editor-core-locales-i6o28vm2.js → editor-core-locales-CsqTh7Wh.js} +1723 -11
  25. package/dist/chunks/{editor-core-node-patches-BJTT3TuX.js → editor-core-node-patches-Dbi8XYxu.js} +633 -184
  26. package/dist/chunks/{editor-core-node-views-BOaPVdmN.js → editor-core-node-views-C8FQYC3E.js} +39 -29
  27. package/dist/chunks/editor-core-property-drawers-Bqmp9B_J.js +9562 -0
  28. package/dist/chunks/editor-core-settings-DcGCJSc7.js +4161 -0
  29. package/dist/chunks/editor-core-standalone-C7pzm8ZB.js +10013 -0
  30. package/dist/chunks/{editor-core-styles-C1TbLgCK.js → editor-core-styles-CwjFPfAo.js} +1203 -507
  31. package/dist/chunks/vendor-highlight-acC2fLd8.js +5868 -0
  32. package/dist/chunks/vendor-logicflow-core-runtime-DpsWXOGl.js +4 -0
  33. package/dist/chunks/vendor-logicflow-shared-C_kIdBKO.js +4 -0
  34. package/dist/core/ActionRegistry.d.ts +4 -2
  35. package/dist/core/DataAdapter.d.ts +17 -1
  36. package/dist/core/DialogProvider.d.ts +33 -0
  37. package/dist/core/EditorCore.d.ts +16 -3
  38. package/dist/core/FieldCapabilityRegistry.d.ts +4 -1
  39. package/dist/core/FieldChangeRegistry.d.ts +3 -1
  40. package/dist/core/I18nManager.d.ts +1 -1
  41. package/dist/core/IdentityProvider.d.ts +32 -0
  42. package/dist/core/OptionSourceRegistry.d.ts +4 -1
  43. package/dist/core/PropertyControlRegistry.d.ts +29 -0
  44. package/dist/core/ThemeManager.d.ts +7 -0
  45. package/dist/core/anchored-popover.d.ts +16 -0
  46. package/dist/core/assistant-dsl.d.ts +18 -0
  47. package/dist/core/business-log-config.d.ts +18 -0
  48. package/dist/core/clean-snapshot.d.ts +14 -0
  49. package/dist/core/component-localization.d.ts +17 -0
  50. package/dist/core/component-palette.d.ts +3 -0
  51. package/dist/core/connection-status.d.ts +11 -0
  52. package/dist/core/dialog-styles.d.ts +1 -0
  53. package/dist/core/editor-capabilities.d.ts +82 -1
  54. package/dist/core/editor-edge-anchors.d.ts +16 -0
  55. package/dist/core/endpoint-protocol.d.ts +15 -0
  56. package/dist/core/expression-preview.d.ts +6 -0
  57. package/dist/core/field-protocol.d.ts +19 -4
  58. package/dist/core/global-config.d.ts +47 -0
  59. package/dist/core/global-search.d.ts +31 -0
  60. package/dist/core/group-protocol.d.ts +56 -0
  61. package/dist/core/identity-provider-default.d.ts +32 -0
  62. package/dist/core/index.d.ts +31 -5
  63. package/dist/core/keymap.d.ts +10 -0
  64. package/dist/core/payload-kv.d.ts +7 -0
  65. package/dist/core/rule-chain-versions.d.ts +143 -0
  66. package/dist/core/run-analysis.d.ts +126 -0
  67. package/dist/core/runtime-field-dictionary.d.ts +3 -0
  68. package/dist/core/save-conflict.d.ts +1 -0
  69. package/dist/core/server-status.d.ts +1 -0
  70. package/dist/core/toolbar-icons.d.ts +1 -1
  71. package/dist/core/variable-completion.d.ts +13 -0
  72. package/dist/core/websocket-auth.d.ts +2 -0
  73. package/dist/defaults/analysis-locales.d.ts +241 -0
  74. package/dist/defaults/component-locale-categories.d.ts +14 -0
  75. package/dist/defaults/component-locale-data.d.ts +4 -0
  76. package/dist/defaults/component-locale-en-US.d.ts +10 -0
  77. package/dist/defaults/component-locale-summaries.d.ts +15 -0
  78. package/dist/defaults/component-locale-zh-CN.d.ts +10 -0
  79. package/dist/defaults/editor-shell-locales.d.ts +290 -0
  80. package/dist/defaults/example-chain.d.ts +2 -0
  81. package/dist/defaults/field-interaction-locales.d.ts +19 -0
  82. package/dist/defaults/global-config-locales.d.ts +166 -0
  83. package/dist/defaults/official-component-fallbacks.d.ts +2 -1
  84. package/dist/defaults/point-template-locales.d.ts +64 -0
  85. package/dist/index.cjs +2897 -2115
  86. package/dist/index.d.ts +33 -10
  87. package/dist/index.esm.js +1184 -809
  88. package/dist/index.umd.js +2874 -2092
  89. package/dist/nodes/UnknownNodeModel.d.ts +12 -1
  90. package/dist/standalone/HuanbanRulegoEditor.d.ts +145 -13
  91. package/dist/standalone/auth-fetch.d.ts +1 -0
  92. package/dist/standalone/auth-ui-defaults.d.ts +15 -0
  93. package/dist/standalone/code-editor.d.ts +7 -5
  94. package/dist/standalone/connection-status-binding.d.ts +3 -2
  95. package/dist/standalone/custom-nodes.d.ts +13 -0
  96. package/dist/standalone/drawer-locale.d.ts +12 -0
  97. package/dist/standalone/drawer-unsaved-guard.d.ts +6 -1
  98. package/dist/standalone/dynamic-field-browse.d.ts +25 -0
  99. package/dist/standalone/edge-label-quick-editor.d.ts +2 -1
  100. package/dist/standalone/editor-actions.d.ts +1 -0
  101. package/dist/standalone/editor-canvas-anchors.d.ts +19 -0
  102. package/dist/standalone/editor-canvas-shortcuts.d.ts +1 -0
  103. package/dist/standalone/editor-chain-info.d.ts +1 -0
  104. package/dist/standalone/editor-debug-data.d.ts +18 -0
  105. package/dist/standalone/editor-debug-ws.d.ts +2 -0
  106. package/dist/standalone/editor-delete.d.ts +5 -3
  107. package/dist/standalone/editor-dialog-provider.d.ts +3 -0
  108. package/dist/standalone/editor-dialogs.d.ts +25 -2
  109. package/dist/standalone/editor-global-config.d.ts +44 -0
  110. package/dist/standalone/editor-group-interactions.d.ts +1 -0
  111. package/dist/standalone/editor-host-region-styles.d.ts +1 -0
  112. package/dist/standalone/editor-host-regions.d.ts +53 -0
  113. package/dist/standalone/editor-login.d.ts +15 -0
  114. package/dist/standalone/editor-overlays.d.ts +5 -0
  115. package/dist/standalone/editor-property-drawers.d.ts +3 -1
  116. package/dist/standalone/editor-run-analysis.d.ts +81 -0
  117. package/dist/standalone/editor-run-compare.d.ts +20 -0
  118. package/dist/standalone/editor-run-waterfall.d.ts +11 -0
  119. package/dist/standalone/editor-toast.d.ts +1 -1
  120. package/dist/standalone/editor-toolbar-presentation.d.ts +12 -0
  121. package/dist/standalone/editor-toolbar.d.ts +5 -1
  122. package/dist/standalone/editor-ui-configuration.d.ts +55 -0
  123. package/dist/standalone/editor-ui-settings.d.ts +26 -0
  124. package/dist/standalone/editor-user-menu.d.ts +8 -0
  125. package/dist/standalone/editor-version-history.d.ts +82 -0
  126. package/dist/standalone/editor-workspace-shell.d.ts +47 -0
  127. package/dist/standalone/editor-workspace-styles.d.ts +1 -0
  128. package/dist/standalone/field-expression-preview.d.ts +12 -0
  129. package/dist/standalone/group-node.d.ts +19 -3
  130. package/dist/standalone/icon-utils.d.ts +7 -0
  131. package/dist/standalone/index.d.ts +17 -5
  132. package/dist/standalone/keyboard-events.d.ts +3 -0
  133. package/dist/standalone/multi-select-popover.d.ts +16 -0
  134. package/dist/standalone/node-copy.d.ts +1 -0
  135. package/dist/standalone/node-definitions.d.ts +4 -0
  136. package/dist/standalone/node-renderer-utils.d.ts +21 -0
  137. package/dist/standalone/node-theme.d.ts +2 -1
  138. package/dist/standalone/point-template-actions.d.ts +43 -0
  139. package/dist/standalone/property-field-draft.d.ts +5 -0
  140. package/dist/standalone/question-list-editor.d.ts +35 -0
  141. package/dist/standalone/shared-node-manager.d.ts +14 -0
  142. package/dist/standalone/single-select-popover.d.ts +6 -0
  143. package/dist/standalone/theme-scope.d.ts +15 -0
  144. package/dist/standalone/themes.d.ts +8 -0
  145. package/dist/standalone/variable-completion-dropdown.d.ts +18 -0
  146. package/dist/types/component.d.ts +24 -1
  147. package/dist/types/editor.d.ts +41 -0
  148. package/dist/utils/relation-utils.d.ts +19 -1
  149. package/dist/version.d.ts +2 -2
  150. package/package.json +3 -3
  151. package/vite-chunks.mjs +66 -0
  152. package/dist/chunks/editor-core-code-editor-CRki2wA_.js +0 -512
  153. package/dist/chunks/editor-core-dialogs-BMWb0WRN.js +0 -17228
  154. package/dist/chunks/editor-core-property-drawers-BPh-jj1b.js +0 -7998
  155. package/dist/chunks/editor-core-standalone-CJDytHO9.js +0 -11269
  156. package/dist/chunks/vendor-logicflow-core-runtime-Cp6IBEjB.js +0 -217
  157. package/dist/chunks/vendor-logicflow-shared-C7YynLDn.js +0 -4
@@ -1,4 +1,4 @@
1
- export type EditorToolbarIconName = 'file-plus' | 'add' | 'edit' | 'copy' | 'cut' | 'paste' | 'package' | 'store' | 'save' | 'import' | 'export' | 'undo' | 'redo' | 'delete' | 'delete-reconnect' | 'disconnect' | 'play' | 'play-single' | 'select-all' | 'arrange' | 'link' | 'docs' | 'command' | 'grid' | 'reset-zoom' | 'zoom-in' | 'zoom-out' | 'fit' | 'auto-layout' | 'expand-all' | 'collapse-all' | 'validate' | 'search' | 'refresh' | 'stop' | 'key' | 'send' | 'error' | 'warning' | 'debug' | 'data' | 'bot' | 'terminal' | 'pin' | 'inbox' | 'map' | 'image' | 'format' | 'settings' | 'fullscreen' | 'fullscreen-exit';
1
+ export type EditorToolbarIconName = 'file-plus' | 'add' | 'edit' | 'copy' | 'cut' | 'paste' | 'package' | 'store' | 'save' | 'import' | 'export' | 'undo' | 'redo' | 'delete' | 'delete-reconnect' | 'disconnect' | 'play' | 'play-single' | 'select-all' | 'arrange' | 'link' | 'docs' | 'command' | 'grid' | 'reset-zoom' | 'zoom-in' | 'zoom-out' | 'fit' | 'auto-layout' | 'expand-all' | 'collapse-all' | 'validate' | 'search' | 'refresh' | 'stop' | 'key' | 'send' | 'error' | 'warning' | 'debug' | 'data' | 'bot' | 'terminal' | 'pin' | 'inbox' | 'map' | 'image' | 'format' | 'settings' | 'fullscreen' | 'fullscreen-exit' | 'workflow' | 'logs';
2
2
  export declare function getEditorToolbarIconSvg(name: string): string | null;
3
3
  export declare function isEditorToolbarIconName(name: string): name is EditorToolbarIconName;
4
4
  export declare function renderEditorToolbarIcon(name: string): string;
@@ -0,0 +1,13 @@
1
+ export interface VariableCompletionItem {
2
+ label: string;
3
+ detail?: string;
4
+ insertText: string;
5
+ }
6
+ export interface VariableCompletionSource {
7
+ getCompletions(prefix: string): VariableCompletionItem[];
8
+ setChainVariables(vars: Record<string, string>): void;
9
+ setGlobalConfig(config: Record<string, string>): void;
10
+ setMsgFields(fields: string[]): void;
11
+ destroy(): void;
12
+ }
13
+ export declare function createVariableCompletionSource(): VariableCompletionSource;
@@ -0,0 +1,2 @@
1
+ export type WebSocketTokenProvider = (url: string) => string | null | undefined;
2
+ export declare function withWebSocketToken(endpoint: string, getToken?: WebSocketTokenProvider): string;
@@ -0,0 +1,241 @@
1
+ export declare const analysisEnUS: {
2
+ readonly 'common.refresh': "Refresh";
3
+ readonly 'common.close': "Close";
4
+ readonly 'common.details': "Details";
5
+ readonly 'common.loading': "Loading...";
6
+ readonly 'common.unknown': "Unknown";
7
+ readonly 'common.none': "No differences";
8
+ readonly 'common.before': "Before";
9
+ readonly 'common.after': "After";
10
+ readonly 'common.path': "Field";
11
+ readonly 'common.change': "Change";
12
+ readonly 'common.added': "Added";
13
+ readonly 'common.removed': "Removed";
14
+ readonly 'common.changed': "Changed";
15
+ readonly 'common.copy': "Copy JSON";
16
+ readonly 'common.copied': "JSON copied";
17
+ readonly 'common.copyFailed': "Could not copy JSON: {error}";
18
+ readonly 'common.fullJson': "Full JSON";
19
+ readonly 'common.select': "Select {name}";
20
+ readonly 'common.actions': "Actions";
21
+ readonly 'common.duration': "Duration";
22
+ readonly 'common.error': "Error";
23
+ readonly 'common.success': "Success";
24
+ readonly 'common.failed': "Failed";
25
+ readonly 'version.title': "Version History";
26
+ readonly 'version.chainRequired': "Select a saved rule chain to view its history.";
27
+ readonly 'version.apiRequired': "Version history requires a configured API URL or a host fetcher.";
28
+ readonly 'version.showDrafts': "Show retained drafts";
29
+ readonly 'version.version': "Version";
30
+ readonly 'version.unnumbered': "Unnumbered";
31
+ readonly 'version.current': "Current";
32
+ readonly 'version.savedAt': "Saved at";
33
+ readonly 'version.source': "Source";
34
+ readonly 'version.source.mark': "Version";
35
+ readonly 'version.source.save': "Retained draft";
36
+ readonly 'version.source.rollback': "Rollback";
37
+ readonly 'version.nodes': "Nodes";
38
+ readonly 'version.edges': "Connections";
39
+ readonly 'version.settings': "Chain settings";
40
+ readonly 'version.size': "Size";
41
+ readonly 'version.empty': "No versions";
42
+ readonly 'version.draftsHidden': "The loaded versions are hidden by the draft filter.";
43
+ readonly 'version.loaded': "{loaded} of {total} loaded";
44
+ readonly 'version.loadedUnknown': "{loaded} loaded";
45
+ readonly 'version.loadMore': "Load earlier versions";
46
+ readonly 'version.compare': "Compare selected ({count}/2)";
47
+ readonly 'version.comparison': "{older} -> {newer}";
48
+ readonly 'version.identical': "The version contents are identical";
49
+ readonly 'version.rollback': "Roll back to {version}";
50
+ readonly 'version.confirmRollback': "Restore {chainId} to {version}? This replaces the server content, saves and deploys the chain, and creates a new history entry.";
51
+ readonly 'version.confirmDirty': "There are local edits to {chainId}. Discard them and reload the persisted rule chain after rollback?";
52
+ readonly 'version.rollbackSuccess': "Rolled back to {version}; current content and history have been reloaded.";
53
+ readonly 'version.pendingReadback': "The server acknowledged rollback, but reloading or applying the result is incomplete. Retry readback without another rollback.";
54
+ readonly 'version.retryReadback': "Retry readback";
55
+ readonly 'version.error': "Version operation failed: {error}";
56
+ readonly 'version.unauthorized': "Version history access was denied: {error}";
57
+ readonly 'version.unsupported': "The server did not provide the requested version resource: {error}";
58
+ readonly 'version.invalidResponse': "The server returned an invalid version response: {error}";
59
+ readonly 'version.paginationStalled': "Pagination made no progress. Loaded versions are preserved; retry or refresh.";
60
+ readonly 'version.draftChanged': "The local draft changed during the operation. It has not been overwritten. Confirm again before reloading.";
61
+ readonly 'version.confirmationRequired': "Rollback requires explicit confirmation.";
62
+ readonly 'version.readOnly': "Rollback is disabled in this read-only editor.";
63
+ readonly 'version.phase.confirming': "Awaiting confirmation...";
64
+ readonly 'version.phase.rolling-back': "Rolling back...";
65
+ readonly 'version.phase.refreshing': "Reloading current content and history...";
66
+ readonly 'version.phase.comparing': "Loading versions for comparison...";
67
+ readonly 'run.waterfall': "Execution Waterfall";
68
+ readonly 'run.compare': "Run Comparison";
69
+ readonly 'run.empty': "No recorded node timing";
70
+ readonly 'run.noPair': "Select two existing run records.";
71
+ readonly 'run.elapsed': "Recorded span: {duration}";
72
+ readonly 'run.slowest': "Slowest";
73
+ readonly 'run.offset': "Start offset";
74
+ readonly 'run.unfinished': "No output timestamp";
75
+ readonly 'run.invalidTiming': "Invalid timing";
76
+ readonly 'run.omitted': "{count} logs have no usable node/start timestamp.";
77
+ readonly 'run.baseline': "A (baseline)";
78
+ readonly 'run.candidate': "B (comparison)";
79
+ readonly 'run.selectA': "Baseline run";
80
+ readonly 'run.selectB': "Comparison run";
81
+ readonly 'run.sameRecord': "Choose two different run records.";
82
+ readonly 'run.detailLoading': "Loading run details...";
83
+ readonly 'run.loadFailed': "Could not load run details: {error}";
84
+ readonly 'run.invalidRecord': "The response is not the requested run record.";
85
+ readonly 'run.summary': "Chain-level comparison";
86
+ readonly 'run.mixed': "Only one record contains node logs; comparison is limited to chain-level data.";
87
+ readonly 'run.summaryOnly': "Neither record contains node logs; comparison is limited to recorded chain summaries.";
88
+ readonly 'run.inputDifferent': "The recorded inputs differ. Divergence does not by itself prove a rule-chain change.";
89
+ readonly 'run.inputUnknown': "Input equivalence cannot be established from these records.";
90
+ readonly 'run.identical': "Recorded node outputs match";
91
+ readonly 'run.incomplete': "Some recorded node outputs are missing; equivalence is unknown.";
92
+ readonly 'run.firstDivergence': "First difference: {node}";
93
+ readonly 'run.node': "Node";
94
+ readonly 'run.occurrence': "Occurrence {count}";
95
+ readonly 'run.result': "Comparison";
96
+ readonly 'run.durationA': "A duration";
97
+ readonly 'run.durationB': "B duration";
98
+ readonly 'run.delta': "Delta";
99
+ readonly 'run.relationA': "A relation";
100
+ readonly 'run.relationB': "B relation";
101
+ readonly 'run.errorA': "A error";
102
+ readonly 'run.errorB': "B error";
103
+ readonly 'run.orderChanged': "Execution order differs";
104
+ readonly 'run.downstream': "After the first recorded difference";
105
+ readonly 'run.inputDiff': "Input differences";
106
+ readonly 'run.outputDiff': "Output differences";
107
+ readonly 'run.chainOutput': "Recorded chain output differences";
108
+ readonly 'run.status.same': "Same";
109
+ readonly 'run.status.diverge': "Different";
110
+ readonly 'run.status.error': "Error differs";
111
+ readonly 'run.status.only-a': "Only A executed";
112
+ readonly 'run.status.only-b': "Only B executed";
113
+ readonly 'run.status.unknown': "Unknown";
114
+ };
115
+ export type AnalysisLocaleKey = keyof typeof analysisEnUS;
116
+ export type AnalysisMessages = Record<AnalysisLocaleKey, string>;
117
+ export declare const analysisZhCN: AnalysisMessages;
118
+ export declare const analysisLocales: {
119
+ readonly 'en-US': {
120
+ readonly 'common.refresh': "Refresh";
121
+ readonly 'common.close': "Close";
122
+ readonly 'common.details': "Details";
123
+ readonly 'common.loading': "Loading...";
124
+ readonly 'common.unknown': "Unknown";
125
+ readonly 'common.none': "No differences";
126
+ readonly 'common.before': "Before";
127
+ readonly 'common.after': "After";
128
+ readonly 'common.path': "Field";
129
+ readonly 'common.change': "Change";
130
+ readonly 'common.added': "Added";
131
+ readonly 'common.removed': "Removed";
132
+ readonly 'common.changed': "Changed";
133
+ readonly 'common.copy': "Copy JSON";
134
+ readonly 'common.copied': "JSON copied";
135
+ readonly 'common.copyFailed': "Could not copy JSON: {error}";
136
+ readonly 'common.fullJson': "Full JSON";
137
+ readonly 'common.select': "Select {name}";
138
+ readonly 'common.actions': "Actions";
139
+ readonly 'common.duration': "Duration";
140
+ readonly 'common.error': "Error";
141
+ readonly 'common.success': "Success";
142
+ readonly 'common.failed': "Failed";
143
+ readonly 'version.title': "Version History";
144
+ readonly 'version.chainRequired': "Select a saved rule chain to view its history.";
145
+ readonly 'version.apiRequired': "Version history requires a configured API URL or a host fetcher.";
146
+ readonly 'version.showDrafts': "Show retained drafts";
147
+ readonly 'version.version': "Version";
148
+ readonly 'version.unnumbered': "Unnumbered";
149
+ readonly 'version.current': "Current";
150
+ readonly 'version.savedAt': "Saved at";
151
+ readonly 'version.source': "Source";
152
+ readonly 'version.source.mark': "Version";
153
+ readonly 'version.source.save': "Retained draft";
154
+ readonly 'version.source.rollback': "Rollback";
155
+ readonly 'version.nodes': "Nodes";
156
+ readonly 'version.edges': "Connections";
157
+ readonly 'version.settings': "Chain settings";
158
+ readonly 'version.size': "Size";
159
+ readonly 'version.empty': "No versions";
160
+ readonly 'version.draftsHidden': "The loaded versions are hidden by the draft filter.";
161
+ readonly 'version.loaded': "{loaded} of {total} loaded";
162
+ readonly 'version.loadedUnknown': "{loaded} loaded";
163
+ readonly 'version.loadMore': "Load earlier versions";
164
+ readonly 'version.compare': "Compare selected ({count}/2)";
165
+ readonly 'version.comparison': "{older} -> {newer}";
166
+ readonly 'version.identical': "The version contents are identical";
167
+ readonly 'version.rollback': "Roll back to {version}";
168
+ readonly 'version.confirmRollback': "Restore {chainId} to {version}? This replaces the server content, saves and deploys the chain, and creates a new history entry.";
169
+ readonly 'version.confirmDirty': "There are local edits to {chainId}. Discard them and reload the persisted rule chain after rollback?";
170
+ readonly 'version.rollbackSuccess': "Rolled back to {version}; current content and history have been reloaded.";
171
+ readonly 'version.pendingReadback': "The server acknowledged rollback, but reloading or applying the result is incomplete. Retry readback without another rollback.";
172
+ readonly 'version.retryReadback': "Retry readback";
173
+ readonly 'version.error': "Version operation failed: {error}";
174
+ readonly 'version.unauthorized': "Version history access was denied: {error}";
175
+ readonly 'version.unsupported': "The server did not provide the requested version resource: {error}";
176
+ readonly 'version.invalidResponse': "The server returned an invalid version response: {error}";
177
+ readonly 'version.paginationStalled': "Pagination made no progress. Loaded versions are preserved; retry or refresh.";
178
+ readonly 'version.draftChanged': "The local draft changed during the operation. It has not been overwritten. Confirm again before reloading.";
179
+ readonly 'version.confirmationRequired': "Rollback requires explicit confirmation.";
180
+ readonly 'version.readOnly': "Rollback is disabled in this read-only editor.";
181
+ readonly 'version.phase.confirming': "Awaiting confirmation...";
182
+ readonly 'version.phase.rolling-back': "Rolling back...";
183
+ readonly 'version.phase.refreshing': "Reloading current content and history...";
184
+ readonly 'version.phase.comparing': "Loading versions for comparison...";
185
+ readonly 'run.waterfall': "Execution Waterfall";
186
+ readonly 'run.compare': "Run Comparison";
187
+ readonly 'run.empty': "No recorded node timing";
188
+ readonly 'run.noPair': "Select two existing run records.";
189
+ readonly 'run.elapsed': "Recorded span: {duration}";
190
+ readonly 'run.slowest': "Slowest";
191
+ readonly 'run.offset': "Start offset";
192
+ readonly 'run.unfinished': "No output timestamp";
193
+ readonly 'run.invalidTiming': "Invalid timing";
194
+ readonly 'run.omitted': "{count} logs have no usable node/start timestamp.";
195
+ readonly 'run.baseline': "A (baseline)";
196
+ readonly 'run.candidate': "B (comparison)";
197
+ readonly 'run.selectA': "Baseline run";
198
+ readonly 'run.selectB': "Comparison run";
199
+ readonly 'run.sameRecord': "Choose two different run records.";
200
+ readonly 'run.detailLoading': "Loading run details...";
201
+ readonly 'run.loadFailed': "Could not load run details: {error}";
202
+ readonly 'run.invalidRecord': "The response is not the requested run record.";
203
+ readonly 'run.summary': "Chain-level comparison";
204
+ readonly 'run.mixed': "Only one record contains node logs; comparison is limited to chain-level data.";
205
+ readonly 'run.summaryOnly': "Neither record contains node logs; comparison is limited to recorded chain summaries.";
206
+ readonly 'run.inputDifferent': "The recorded inputs differ. Divergence does not by itself prove a rule-chain change.";
207
+ readonly 'run.inputUnknown': "Input equivalence cannot be established from these records.";
208
+ readonly 'run.identical': "Recorded node outputs match";
209
+ readonly 'run.incomplete': "Some recorded node outputs are missing; equivalence is unknown.";
210
+ readonly 'run.firstDivergence': "First difference: {node}";
211
+ readonly 'run.node': "Node";
212
+ readonly 'run.occurrence': "Occurrence {count}";
213
+ readonly 'run.result': "Comparison";
214
+ readonly 'run.durationA': "A duration";
215
+ readonly 'run.durationB': "B duration";
216
+ readonly 'run.delta': "Delta";
217
+ readonly 'run.relationA': "A relation";
218
+ readonly 'run.relationB': "B relation";
219
+ readonly 'run.errorA': "A error";
220
+ readonly 'run.errorB': "B error";
221
+ readonly 'run.orderChanged': "Execution order differs";
222
+ readonly 'run.downstream': "After the first recorded difference";
223
+ readonly 'run.inputDiff': "Input differences";
224
+ readonly 'run.outputDiff': "Output differences";
225
+ readonly 'run.chainOutput': "Recorded chain output differences";
226
+ readonly 'run.status.same': "Same";
227
+ readonly 'run.status.diverge': "Different";
228
+ readonly 'run.status.error': "Error differs";
229
+ readonly 'run.status.only-a': "Only A executed";
230
+ readonly 'run.status.only-b': "Only B executed";
231
+ readonly 'run.status.unknown': "Unknown";
232
+ };
233
+ readonly 'zh-CN': AnalysisMessages;
234
+ };
235
+ export type AnalysisTranslator = (key: AnalysisLocaleKey, params?: Record<string, string | number>) => string;
236
+ export interface AnalysisI18nOptions {
237
+ locale?: string | (() => string);
238
+ t?: (key: string, params?: Record<string, string>) => string;
239
+ }
240
+ export declare function getAnalysisLocale(options: AnalysisI18nOptions): string;
241
+ export declare function createAnalysisTranslator(options?: AnalysisI18nOptions): AnalysisTranslator;
@@ -0,0 +1,14 @@
1
+ export interface ComponentSubgroupLocale {
2
+ en: {
3
+ label: string;
4
+ description: string;
5
+ };
6
+ zh: {
7
+ label: string;
8
+ description: string;
9
+ };
10
+ sourceLabels?: readonly string[];
11
+ }
12
+ export declare const componentLocaleSubgroups: Record<string, ComponentSubgroupLocale>;
13
+ export declare const componentCategoryEnUS: Record<string, string>;
14
+ export declare const componentCategoryZhCN: Record<string, string>;
@@ -0,0 +1,4 @@
1
+ import type { ComponentTextCatalog } from '../core/component-localization';
2
+ export { componentCatalogMessages } from '../core/component-localization';
3
+ export declare const componentLocaleZhCNData: ComponentTextCatalog;
4
+ export declare function createEnglishComponentCatalog(translations: Record<string, string>, overrides?: ComponentTextCatalog): ComponentTextCatalog;
@@ -0,0 +1,10 @@
1
+ export declare const componentLocaleEnUS: {
2
+ componentFieldGroups: {
3
+ advanced: string;
4
+ advancedConfiguration: string;
5
+ };
6
+ components: Record<string, string>;
7
+ componentDetails: Record<string, {
8
+ [x: string]: unknown;
9
+ }>;
10
+ };
@@ -0,0 +1,15 @@
1
+ export interface ComponentLocaleSummary {
2
+ zh: {
3
+ label: string;
4
+ desc: string;
5
+ };
6
+ en: {
7
+ label: string;
8
+ desc: string;
9
+ };
10
+ sources?: {
11
+ label?: readonly string[];
12
+ desc?: readonly string[];
13
+ };
14
+ }
15
+ export declare const componentLocaleSummaries: Record<string, ComponentLocaleSummary>;
@@ -0,0 +1,10 @@
1
+ export declare const componentLocaleZhCN: {
2
+ componentFieldGroups: {
3
+ advanced: string;
4
+ advancedConfiguration: string;
5
+ };
6
+ components: Record<string, string>;
7
+ componentDetails: Record<string, {
8
+ [x: string]: unknown;
9
+ }>;
10
+ };
@@ -0,0 +1,290 @@
1
+ export declare const editorShellZhCN: {
2
+ editorUi: {
3
+ title: string;
4
+ layout: string;
5
+ features: string;
6
+ top: string;
7
+ canvas: string;
8
+ tabs: string;
9
+ sidebar: string;
10
+ statusBar: string;
11
+ header: string;
12
+ iconOnly: string;
13
+ sidebarCollapsed: string;
14
+ hideEdgeLabels: string;
15
+ grid: string;
16
+ mesh: string;
17
+ dot: string;
18
+ position: string;
19
+ topRight: string;
20
+ topLeft: string;
21
+ bottomRight: string;
22
+ bottomLeft: string;
23
+ topButtons: string;
24
+ canvasButtons: string;
25
+ titles: string;
26
+ headerTitle: string;
27
+ headerDescription: string;
28
+ delete: string;
29
+ contextMenu: string;
30
+ commandPalette: string;
31
+ versionBadge: string;
32
+ deploy: string;
33
+ managed: string;
34
+ featureOff: string;
35
+ applied: string;
36
+ restored: string;
37
+ reset: string;
38
+ export: string;
39
+ exported: string;
40
+ settingsPages: string;
41
+ settingsTab: {
42
+ user: string;
43
+ setting: string;
44
+ ai: string;
45
+ skills: string;
46
+ globalConfig: string;
47
+ };
48
+ enabled: string;
49
+ disabled: string;
50
+ toggleVisibility: string;
51
+ toggleFeature: string;
52
+ noSettings: string;
53
+ };
54
+ fieldValidation: {
55
+ required: string;
56
+ noVariables: string;
57
+ pattern: string;
58
+ number: string;
59
+ integer: string;
60
+ step: string;
61
+ min: string;
62
+ max: string;
63
+ minLength: string;
64
+ maxLength: string;
65
+ };
66
+ editorShell: {
67
+ components: string;
68
+ resources: string;
69
+ navigation: string;
70
+ newChain: string;
71
+ newSubChain: string;
72
+ newName: string;
73
+ newNamePrompt: string;
74
+ refresh: string;
75
+ manage: string;
76
+ sharedNodes: string;
77
+ globalConfig: string;
78
+ businessLogs: string;
79
+ versions: string;
80
+ saveDraft: string;
81
+ saveVersion: string;
82
+ saveAll: string;
83
+ saveAndDeployConfirm: string;
84
+ draftSaved: string;
85
+ versionSaved: string;
86
+ resetSaved: string;
87
+ resetConfirm: string;
88
+ resetUnavailable: string;
89
+ resetDraftChanged: string;
90
+ searchChains: string;
91
+ loadMore: string;
92
+ noChains: string;
93
+ noSearchResults: string;
94
+ configureSource: string;
95
+ loading: string;
96
+ failed: string;
97
+ rename: string;
98
+ close: string;
99
+ closeAll: string;
100
+ closeOthers: string;
101
+ closeRight: string;
102
+ pin: string;
103
+ unpin: string;
104
+ moreTabs: string;
105
+ unsaved: string;
106
+ closeTitle: string;
107
+ closeMessage: string;
108
+ saveClose: string;
109
+ discard: string;
110
+ cancel: string;
111
+ saveFailed: string;
112
+ rootChains: string;
113
+ subChains: string;
114
+ uncategorized: string;
115
+ collapse: string;
116
+ expand: string;
117
+ searchComponents: string;
118
+ clearSearch: string;
119
+ documentation: string;
120
+ recent: string;
121
+ noComponents: string;
122
+ inputPort: string;
123
+ outputPort: string;
124
+ noInputPort: string;
125
+ noOutputPort: string;
126
+ selectLanguage: string;
127
+ selectTheme: string;
128
+ version: string;
129
+ viewControls: string;
130
+ runTools: string;
131
+ rows: string;
132
+ loaded: string;
133
+ incompletePage: string;
134
+ invalidChainResponse: string;
135
+ removeBindingsConfirm: string;
136
+ saveAllResult: string;
137
+ aiDraftChanged: string;
138
+ aiReplaceConfirm: string;
139
+ aiRemovalConfirm: string;
140
+ aiSaveUnverified: string;
141
+ addSuccessorNode: string;
142
+ insertNodeOnEdge: string;
143
+ insertLogNode: string;
144
+ };
145
+ };
146
+ export declare const editorShellEnUS: {
147
+ editorUi: {
148
+ title: string;
149
+ layout: string;
150
+ features: string;
151
+ top: string;
152
+ canvas: string;
153
+ tabs: string;
154
+ sidebar: string;
155
+ statusBar: string;
156
+ header: string;
157
+ iconOnly: string;
158
+ sidebarCollapsed: string;
159
+ hideEdgeLabels: string;
160
+ grid: string;
161
+ mesh: string;
162
+ dot: string;
163
+ position: string;
164
+ topRight: string;
165
+ topLeft: string;
166
+ bottomRight: string;
167
+ bottomLeft: string;
168
+ topButtons: string;
169
+ canvasButtons: string;
170
+ titles: string;
171
+ headerTitle: string;
172
+ headerDescription: string;
173
+ delete: string;
174
+ contextMenu: string;
175
+ commandPalette: string;
176
+ versionBadge: string;
177
+ deploy: string;
178
+ managed: string;
179
+ featureOff: string;
180
+ applied: string;
181
+ restored: string;
182
+ reset: string;
183
+ export: string;
184
+ exported: string;
185
+ settingsPages: string;
186
+ settingsTab: {
187
+ user: string;
188
+ setting: string;
189
+ ai: string;
190
+ skills: string;
191
+ globalConfig: string;
192
+ };
193
+ enabled: string;
194
+ disabled: string;
195
+ toggleVisibility: string;
196
+ toggleFeature: string;
197
+ noSettings: string;
198
+ };
199
+ fieldValidation: {
200
+ required: string;
201
+ noVariables: string;
202
+ pattern: string;
203
+ number: string;
204
+ integer: string;
205
+ step: string;
206
+ min: string;
207
+ max: string;
208
+ minLength: string;
209
+ maxLength: string;
210
+ };
211
+ editorShell: {
212
+ components: string;
213
+ resources: string;
214
+ navigation: string;
215
+ newChain: string;
216
+ newSubChain: string;
217
+ newName: string;
218
+ newNamePrompt: string;
219
+ refresh: string;
220
+ manage: string;
221
+ sharedNodes: string;
222
+ globalConfig: string;
223
+ businessLogs: string;
224
+ versions: string;
225
+ saveDraft: string;
226
+ saveVersion: string;
227
+ saveAll: string;
228
+ saveAndDeployConfirm: string;
229
+ draftSaved: string;
230
+ versionSaved: string;
231
+ resetSaved: string;
232
+ resetConfirm: string;
233
+ resetUnavailable: string;
234
+ resetDraftChanged: string;
235
+ searchChains: string;
236
+ loadMore: string;
237
+ noChains: string;
238
+ noSearchResults: string;
239
+ configureSource: string;
240
+ loading: string;
241
+ failed: string;
242
+ rename: string;
243
+ close: string;
244
+ closeAll: string;
245
+ closeOthers: string;
246
+ closeRight: string;
247
+ pin: string;
248
+ unpin: string;
249
+ moreTabs: string;
250
+ unsaved: string;
251
+ closeTitle: string;
252
+ closeMessage: string;
253
+ saveClose: string;
254
+ discard: string;
255
+ cancel: string;
256
+ saveFailed: string;
257
+ rootChains: string;
258
+ subChains: string;
259
+ uncategorized: string;
260
+ collapse: string;
261
+ expand: string;
262
+ searchComponents: string;
263
+ clearSearch: string;
264
+ documentation: string;
265
+ recent: string;
266
+ noComponents: string;
267
+ inputPort: string;
268
+ outputPort: string;
269
+ noInputPort: string;
270
+ noOutputPort: string;
271
+ selectLanguage: string;
272
+ selectTheme: string;
273
+ version: string;
274
+ viewControls: string;
275
+ runTools: string;
276
+ rows: string;
277
+ loaded: string;
278
+ incompletePage: string;
279
+ invalidChainResponse: string;
280
+ removeBindingsConfirm: string;
281
+ saveAllResult: string;
282
+ aiDraftChanged: string;
283
+ aiReplaceConfirm: string;
284
+ aiRemovalConfirm: string;
285
+ aiSaveUnverified: string;
286
+ addSuccessorNode: string;
287
+ insertNodeOnEdge: string;
288
+ insertLogNode: string;
289
+ };
290
+ };
@@ -0,0 +1,2 @@
1
+ import type { RuleChainData } from '../types';
2
+ export declare const exampleChain: RuleChainData;
@@ -0,0 +1,19 @@
1
+ export declare const dynamicBrowseZhCN: {
2
+ browse: string;
3
+ title: string;
4
+ server: string;
5
+ load: string;
6
+ close: string;
7
+ empty: string;
8
+ loading: string;
9
+ noServer: string;
10
+ noApi: string;
11
+ invalid: string;
12
+ };
13
+ export declare const dynamicBrowseEnUS: typeof dynamicBrowseZhCN;
14
+ export declare const expressionPreviewZhCN: {
15
+ title: string;
16
+ observed: string;
17
+ partial: string;
18
+ };
19
+ export declare const expressionPreviewEnUS: typeof expressionPreviewZhCN;