refactor: rename new runtime as sandbox feature

This commit is contained in:
Harry
2026-01-12 01:53:26 +08:00
parent 3d2840edb6
commit 9dd0361d0e
13 changed files with 47 additions and 18 deletions

View File

@ -54,7 +54,7 @@ export const createFeaturesStore = (initProps?: Partial<FeaturesState>) => {
annotationReply: {
enabled: false,
},
runtime: {
sandbox: {
enabled: false,
},
},

View File

@ -91,7 +91,7 @@ export enum FeatureEnum {
moderation = 'moderation',
file = 'file',
annotationReply = 'annotationReply',
runtime = 'runtime',
sandbox = 'sandbox',
}
export type Features = {
@ -104,7 +104,7 @@ export type Features = {
[FeatureEnum.moderation]?: SensitiveWordAvoidance
[FeatureEnum.file]?: FileUpload
[FeatureEnum.annotationReply]?: AnnotationReplyConfig
[FeatureEnum.runtime]?: Runtime
[FeatureEnum.sandbox]?: Runtime
}
export type OnFeaturesChange = (features?: Features) => void