feat(cli): release enhance command behind an experimental flag and address review comments

This commit is contained in:
Akhilesh Kumar
2026-04-28 21:22:02 +00:00
parent b6f9f07289
commit 652c1e2f5e
6 changed files with 37 additions and 2 deletions
+7
View File
@@ -709,6 +709,7 @@ export interface ConfigParameters {
disabledSkills?: string[];
adminSkillsEnabled?: boolean;
experimentalJitContext?: boolean;
enableEnhanceCommand?: boolean;
autoDistillation?: boolean;
experimentalMemoryV2?: boolean;
experimentalAutoMemory?: boolean;
@@ -950,6 +951,7 @@ export class Config implements McpContext, AgentLoopContext {
private readonly vertexAiRouting: VertexAiRoutingConfig | undefined;
private readonly enableAgents: boolean;
private readonly enableEnhanceCommand: boolean;
private agents: AgentSettings;
private readonly enableEventDrivenScheduler: boolean;
private readonly skillsSupport: boolean;
@@ -1116,6 +1118,7 @@ export class Config implements McpContext, AgentLoopContext {
this.disableLoopDetection = params.disableLoopDetection ?? false;
this._activeModel = params.model;
this.enableAgents = params.enableAgents ?? true;
this.enableEnhanceCommand = params.enableEnhanceCommand ?? false;
this.agents = params.agents ?? {};
this.disableLLMCorrection = params.disableLLMCorrection ?? true;
this.planEnabled = params.plan ?? true;
@@ -2972,6 +2975,10 @@ export class Config implements McpContext, AgentLoopContext {
return this.planEnabled;
}
isEnhanceCommandEnabled(): boolean {
return this.enableEnhanceCommand;
}
isVoiceModeEnabled(): boolean {
return this.voiceMode;
}