feat(experiments): 新增后台场景注册与应用接入映射
保留已有ui/chat场景与分组,支持命名、创建和停用;同一应用接入点实验互斥,保护历史场景类型与运行实验;增加自定义场景决策回归。
This commit is contained in:
@@ -55,7 +55,7 @@ export type ContentInput = z.infer<typeof contentSchema>;
|
||||
/** 实验配置仅通过后台写入,分组语义在同一实验生命周期中固定。 */
|
||||
export const experimentSchema = z.object({
|
||||
name: z.string().min(1).max(120),
|
||||
scope: z.enum(["ui", "chat"]),
|
||||
scope: idSchema,
|
||||
config: z.object({
|
||||
audience: z.enum(["all", "new", "existing", "specified"]).default("all"),
|
||||
cutoff: z.iso.datetime().optional(),
|
||||
|
||||
Reference in New Issue
Block a user