Skip to content

Commit d093b39

Browse files
added cxone assist logic
1 parent 91121c4 commit d093b39

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/main/wrapper/CxConstants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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",

src/main/wrapper/CxWrapper.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)