@huanban/rulego-editor-core 1.3.15 → 1.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iconRegistry.d.ts +2 -2
- package/dist/index.cjs.js +1492 -1183
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +38598 -38888
- package/dist/index.umd.js +1492 -1183
- package/dist/standalone/ai-model-policy.d.ts +4 -3
- package/dist/standalone/editor-delete.d.ts +6 -1
- package/dist/standalone/full-json-dialog.d.ts +10 -0
- package/dist/standalone/keyboard-events.d.ts +3 -0
- package/dist/standalone/node-identity.d.ts +10 -0
- package/dist/standalone/run-history-format.d.ts +3 -0
- package/dist/version.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModelsDevCatalogModel } from './models-dev-catalog';
|
|
2
2
|
export type AiModelSource = 'models.dev' | 'live' | 'history' | 'host' | 'manual';
|
|
3
|
-
export type AiParamKey =
|
|
3
|
+
export type AiParamKey = string;
|
|
4
4
|
export type AiParamMode = 'editable' | 'fixed' | 'unsupported' | 'hidden';
|
|
5
5
|
export interface AiModelProfile {
|
|
6
6
|
providerId?: string;
|
|
@@ -44,17 +44,18 @@ export interface AiParamSpec {
|
|
|
44
44
|
fallbackReason?: string;
|
|
45
45
|
}
|
|
46
46
|
export interface AiParamPolicy {
|
|
47
|
-
kind: '
|
|
47
|
+
kind: 'standard';
|
|
48
48
|
warnings: Array<{
|
|
49
49
|
key: string;
|
|
50
50
|
fallback: string;
|
|
51
51
|
}>;
|
|
52
52
|
params: AiParamSpec[];
|
|
53
|
-
transformSaveParams(input: Record<string,
|
|
53
|
+
transformSaveParams(input: Record<string, unknown>): Record<string, unknown>;
|
|
54
54
|
}
|
|
55
55
|
export declare function inferReasoningModel(model: string): boolean;
|
|
56
56
|
export declare function formatAiCompactNumber(value: unknown): string;
|
|
57
57
|
export declare function modelProfileFromModelsDev(model: string, meta: ModelsDevCatalogModel, context?: Partial<AiModelProfile>): AiModelProfile;
|
|
58
58
|
export declare function fallbackAiModelProfile(model: string, context?: Partial<AiModelProfile>): AiModelProfile;
|
|
59
|
+
export declare const AI_BUILTIN_PARAM_KEYS: readonly ["temperature", "topP", "presencePenalty", "frequencyPenalty", "maxTokens", "maxCompletionTokens", "n"];
|
|
59
60
|
export declare function buildAiParamPolicy(profile: AiModelProfile): AiParamPolicy;
|
|
60
61
|
//# sourceMappingURL=ai-model-policy.d.ts.map
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
export interface DeleteGraphElementsOptions {
|
|
2
|
+
requireConfirm?: boolean;
|
|
3
|
+
action?: 'delete' | 'disconnect' | 'cancelNewEdge';
|
|
4
|
+
}
|
|
5
|
+
export declare function confirmGraphElementsDelete(editor: any, nodes?: any[], edges?: any[], options?: DeleteGraphElementsOptions): boolean;
|
|
1
6
|
export declare function canDeleteNodesWithInputGuard(editor: any, selectedNodes: any[]): boolean;
|
|
2
|
-
export declare function deleteGraphElementsWithInputGuard(editor: any, nodes?: any[], edges?: any[]): boolean;
|
|
7
|
+
export declare function deleteGraphElementsWithInputGuard(editor: any, nodes?: any[], edges?: any[], options?: DeleteGraphElementsOptions): boolean;
|
|
3
8
|
export declare function deleteSelectedElementsWithInputGuard(editor: any): boolean;
|
|
4
9
|
//# sourceMappingURL=editor-delete.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface FullJsonDialogOptions {
|
|
2
|
+
title: string;
|
|
3
|
+
data?: unknown;
|
|
4
|
+
jsonText?: string;
|
|
5
|
+
fileNamePrefix?: string;
|
|
6
|
+
t?: (key: string, params?: Record<string, string>) => string;
|
|
7
|
+
notify?: (message: string, type?: 'success' | 'error' | 'info') => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function showFullJsonDialog(options: FullJsonDialogOptions): void;
|
|
10
|
+
//# sourceMappingURL=full-json-dialog.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function isLogicFlowVisualNodeType(type: unknown): boolean;
|
|
2
|
+
export declare function resolveRuleGoNodeType(modelType: unknown, viewType?: unknown, graphType?: unknown): string;
|
|
3
|
+
export interface NormalizeEditableNodeModelOptions {
|
|
4
|
+
graphNodeId?: unknown;
|
|
5
|
+
nodeViewType?: unknown;
|
|
6
|
+
graphNodeType?: unknown;
|
|
7
|
+
keepNodeId?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function normalizeEditableNodeModel<T extends Record<string, any>>(originalModel: T | null | undefined, submittedPatch: Record<string, any>, options?: NormalizeEditableNodeModelOptions): T;
|
|
10
|
+
//# sourceMappingURL=node-identity.d.ts.map
|
|
@@ -14,6 +14,9 @@ export declare function getRunHistoryStatusView(item: RunHistoryRecord, labels?:
|
|
|
14
14
|
}): RunHistoryStatusView;
|
|
15
15
|
export declare function formatRunHistoryDuration(item: RunHistoryRecord): string;
|
|
16
16
|
export declare function getRunHistoryLogDuration(log: RunHistoryRecord): string;
|
|
17
|
+
export declare function formatRunHistoryJsonFull(value: unknown, redact?: boolean): string;
|
|
17
18
|
export declare function formatRunHistoryMessageForDetail(msg: any): string;
|
|
19
|
+
export declare function formatRunHistoryMessageJsonFull(msg: any): string;
|
|
18
20
|
export declare function formatRunHistoryRecordJson(item: RunHistoryRecord, maxChars?: 20000): string;
|
|
21
|
+
export declare function formatRunHistoryRecordJsonFull(item: RunHistoryRecord): string;
|
|
19
22
|
//# sourceMappingURL=run-history-format.d.ts.map
|
package/dist/version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.3.
|
|
2
|
-
export declare const EDITOR_VERSION = "1.3.
|
|
1
|
+
export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.3.17";
|
|
2
|
+
export declare const EDITOR_VERSION = "1.3.17";
|
|
3
3
|
//# sourceMappingURL=version.d.ts.map
|