File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export enum CxConstants {
117117 IDE_SCANS_KEY = "scan.config.plugins.ideScans" ,
118118 AI_GUIDED_REMEDIATION_KEY = "scan.config.plugins.aiGuidedRemediation" ,
119119 STANDALONE_KEY = "scan.config.plugins.standalone" ,
120+ ASSIST_KEY = "scan.config.plugins.cxoneassist" ,
120121 AI_MCP_SERVER_KEY = "scan.config.plugins.aiMcpServer" ,
121122 TELEMETRY = "telemetry" ,
122123 SUB_CMD_TELEMETRY_AI = "ai" ,
Original file line number Diff line number Diff line change @@ -477,6 +477,17 @@ export class CxWrapper {
477477 return value ?. toLowerCase ( ) === "true" ;
478478 }
479479
480+ async cxOneAssistEnabled ( ) : Promise < boolean > {
481+ const commands : string [ ] = [ CxConstants . CMD_UTILS , CxConstants . SUB_CMD_TENANT ] ;
482+ commands . push ( ...this . initializeCommands ( false ) ) ;
483+
484+ const exec = new ExecutionService ( ) ;
485+ const output = await exec . executeMapTenantOutputCommands ( this . config . pathToExecutable , commands ) ;
486+
487+ const value = getTrimmedMapValue ( output , CxConstants . ASSIST_KEY ) ;
488+ return value ?. toLowerCase ( ) === "true" ;
489+ }
490+
480491 async aiMcpServerEnabled ( ) : Promise < boolean > {
481492 const commands : string [ ] = [ CxConstants . CMD_UTILS , CxConstants . SUB_CMD_TENANT ] ;
482493 commands . push ( ...this . initializeCommands ( false ) ) ;
You can’t perform that action at this time.
0 commit comments