mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
refactor: remove redundant experimentConfigs array, use experimentConfigsMap directly
This commit is contained in:
@@ -40,13 +40,7 @@ import { singleCompletionHandler } from "../../utils/single-completion-handler"
|
||||
import { getCommitInfo, searchCommits, getWorkingState } from "../../utils/git"
|
||||
import { ConfigManager } from "../config/ConfigManager"
|
||||
import { CustomModesManager } from "../config/CustomModesManager"
|
||||
import {
|
||||
EXPERIMENT_IDS,
|
||||
experimentConfigs,
|
||||
experiments as Experiments,
|
||||
experimentDefault,
|
||||
ExperimentId,
|
||||
} from "../../shared/experiments"
|
||||
import { EXPERIMENT_IDS, experiments as Experiments, experimentDefault, ExperimentId } from "../../shared/experiments"
|
||||
import { CustomSupportPrompts, supportPrompt } from "../../shared/support-prompt"
|
||||
|
||||
import { ACTION_NAMES } from "../CodeActionProvider"
|
||||
|
||||
@@ -41,8 +41,6 @@ export const experimentConfigsMap: Record<ExperimentKey, ExperimentConfig> = {
|
||||
},
|
||||
}
|
||||
|
||||
// Keep the array version for backward compatibility
|
||||
export const experimentConfigs = Object.values(experimentConfigsMap)
|
||||
export const experimentDefault = Object.fromEntries(
|
||||
Object.entries(experimentConfigsMap).map(([_, config]) => [config.id, config.enabled]),
|
||||
) as Record<ExperimentId, boolean>
|
||||
|
||||
Reference in New Issue
Block a user