fix(experiments): 使用百分比输入并补齐场景管理入口

输入50表示50%,保留0.01%精度且不改变既有分组配置;独立管理场景并标注预置或后台创建来源,创建实验使用动态场景列表。
This commit is contained in:
湛兮
2026-10-27 11:02:00 +08:00
parent 5c167f5ed3
commit 9aa57d0b80
4 changed files with 228 additions and 24 deletions
+14 -1
View File
@@ -1158,7 +1158,9 @@ export type Entry = {
export type Experiment = {
id: string;
name: string;
scope: "ui" | "chat";
scope: string;
runtime?: "ui" | "chat";
sceneName?: string;
state: "draft" | "running" | "paused" | "finished";
revision?: number;
config: {
@@ -1174,3 +1176,14 @@ export type Experiment = {
description: string;
};
};
/** 实验场景与应用接入点映射。 */
export type ExperimentScene = {
id: string;
name: string;
runtime: "ui" | "chat";
description: string;
enabled: number;
builtin: number;
revision: number;
};