@huanban/rulego-editor-core 1.3.16 → 1.3.18

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.
@@ -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 = 'temperature' | 'topP' | 'presencePenalty' | 'frequencyPenalty' | 'maxTokens' | 'n';
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: 'reasoning' | 'standard';
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, number | undefined>): Record<string, number>;
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
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.3.16";
2
- export declare const EDITOR_VERSION = "1.3.16";
1
+ export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.3.18";
2
+ export declare const EDITOR_VERSION = "1.3.18";
3
3
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huanban/rulego-editor-core",
3
- "version": "1.3.16",
3
+ "version": "1.3.18",
4
4
  "description": "RuleGo 规则链编辑器核心库 - 框架无关的 Headless 编辑器引擎 + API 抽象层 (WorkflowFetcher)",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",