refactor(flags): migrate claude code skills flag to RuntimeFlags (#27605)

This commit is contained in:
Shoubhit Dash
2026-05-15 02:47:26 +05:30
committed by GitHub
parent 83c145f889
commit cccdeef294
5 changed files with 102 additions and 5 deletions
@@ -9,6 +9,10 @@ const enabledByExperimental = (name: string) =>
export class Service extends ConfigService.Service<Service>()("@opencode/RuntimeFlags", {
pure: bool("OPENCODE_PURE"),
disableDefaultPlugins: bool("OPENCODE_DISABLE_DEFAULT_PLUGINS"),
disableClaudeCodeSkills: Config.all({
broad: bool("OPENCODE_DISABLE_CLAUDE_CODE"),
direct: bool("OPENCODE_DISABLE_CLAUDE_CODE_SKILLS"),
}).pipe(Config.map((flags) => flags.broad || flags.direct)),
enableExa: Config.all({
experimental,
enabled: bool("OPENCODE_ENABLE_EXA"),