From 91121c4a61bb338140b78ea1129f10c8bc20b4ce Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Wed, 5 Nov 2025 18:03:02 +0530 Subject: [PATCH 01/11] Added new function to get license info is standalone is enabled --- src/main/wrapper/CxConstants.ts | 1 + src/main/wrapper/CxWrapper.ts | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/main/wrapper/CxConstants.ts b/src/main/wrapper/CxConstants.ts index 7c40bc12..289d5236 100644 --- a/src/main/wrapper/CxConstants.ts +++ b/src/main/wrapper/CxConstants.ts @@ -116,6 +116,7 @@ export enum CxConstants { CMD_LEARN_MORE = "learn-more", IDE_SCANS_KEY = "scan.config.plugins.ideScans", AI_GUIDED_REMEDIATION_KEY = "scan.config.plugins.aiGuidedRemediation", + STANDALONE_KEY = "scan.config.plugins.standalone", AI_MCP_SERVER_KEY = "scan.config.plugins.aiMcpServer", TELEMETRY = "telemetry", SUB_CMD_TELEMETRY_AI = "ai", diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index 67ded66c..32580c9a 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -466,6 +466,16 @@ export class CxWrapper { return value?.toLowerCase() === "true"; } + async standaloneEnabled(): Promise { + const commands: string[] = [CxConstants.CMD_UTILS, CxConstants.SUB_CMD_TENANT]; + commands.push(...this.initializeCommands(false)); + + const exec = new ExecutionService(); + const output = await exec.executeMapTenantOutputCommands(this.config.pathToExecutable, commands); + + const value = getTrimmedMapValue(output, CxConstants.STANDALONE_KEY); + return value?.toLowerCase() === "true"; + } async aiMcpServerEnabled(): Promise { const commands: string[] = [CxConstants.CMD_UTILS, CxConstants.SUB_CMD_TENANT]; From d093b39d7d3571d34d0a1b7008a4e45c734ca8f2 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 17 Nov 2025 15:56:02 +0530 Subject: [PATCH 02/11] added cxone assist logic --- src/main/wrapper/CxConstants.ts | 1 + src/main/wrapper/CxWrapper.ts | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/main/wrapper/CxConstants.ts b/src/main/wrapper/CxConstants.ts index 289d5236..623f1946 100644 --- a/src/main/wrapper/CxConstants.ts +++ b/src/main/wrapper/CxConstants.ts @@ -117,6 +117,7 @@ export enum CxConstants { IDE_SCANS_KEY = "scan.config.plugins.ideScans", AI_GUIDED_REMEDIATION_KEY = "scan.config.plugins.aiGuidedRemediation", STANDALONE_KEY = "scan.config.plugins.standalone", + ASSIST_KEY = "scan.config.plugins.cxoneassist", AI_MCP_SERVER_KEY = "scan.config.plugins.aiMcpServer", TELEMETRY = "telemetry", SUB_CMD_TELEMETRY_AI = "ai", diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index 32580c9a..b487fca1 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -477,6 +477,17 @@ export class CxWrapper { return value?.toLowerCase() === "true"; } + async cxOneAssistEnabled(): Promise { + const commands: string[] = [CxConstants.CMD_UTILS, CxConstants.SUB_CMD_TENANT]; + commands.push(...this.initializeCommands(false)); + + const exec = new ExecutionService(); + const output = await exec.executeMapTenantOutputCommands(this.config.pathToExecutable, commands); + + const value = getTrimmedMapValue(output, CxConstants.ASSIST_KEY); + return value?.toLowerCase() === "true"; + } + async aiMcpServerEnabled(): Promise { const commands: string[] = [CxConstants.CMD_UTILS, CxConstants.SUB_CMD_TENANT]; commands.push(...this.initializeCommands(false)); From 748031c73ce5dbf9a0b1754dd250b0ee077b33ee Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 17 Nov 2025 18:27:34 +0530 Subject: [PATCH 03/11] added test cases --- src/tests/AssistEnabledTest.test.ts | 52 ++++++++++++++++++++++++ src/tests/StandaloneEnabledTest.test.ts | 53 +++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 src/tests/AssistEnabledTest.test.ts create mode 100644 src/tests/StandaloneEnabledTest.test.ts diff --git a/src/tests/AssistEnabledTest.test.ts b/src/tests/AssistEnabledTest.test.ts new file mode 100644 index 00000000..00eb5cc7 --- /dev/null +++ b/src/tests/AssistEnabledTest.test.ts @@ -0,0 +1,52 @@ +import { CxWrapper } from '../main/wrapper/CxWrapper'; +import { BaseTest } from './BaseTest'; +import { ExecutionService } from '../main/wrapper/ExecutionService'; +import { CxConstants } from '../main/wrapper/CxConstants'; + +describe('cxOneAssistEnabled tenant setting', () => { + const baseConfig = new BaseTest(); + + afterEach(() => { + jest.restoreAllMocks(); + }); + + it('returns true when assist key value is true (lowercase)', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[CxConstants.ASSIST_KEY, 'true']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.cxOneAssistEnabled(); + expect(enabled).toBe(true); + }); + + it('returns true when assist key value is TRUE (uppercase)', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[CxConstants.ASSIST_KEY, 'TRUE']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.cxOneAssistEnabled(); + expect(enabled).toBe(true); + }); + + it('returns false when assist key value is false', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[CxConstants.ASSIST_KEY, 'false']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.cxOneAssistEnabled(); + expect(enabled).toBe(false); + }); + + it('returns false when assist key is missing', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[CxConstants.IDE_SCANS_KEY, 'true']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.cxOneAssistEnabled(); + expect(enabled).toBe(false); + }); + + it('trims whitespace around key/value before evaluating', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[` ${CxConstants.ASSIST_KEY} `, ' true ']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.cxOneAssistEnabled(); + expect(enabled).toBe(true); + }); +}); diff --git a/src/tests/StandaloneEnabledTest.test.ts b/src/tests/StandaloneEnabledTest.test.ts new file mode 100644 index 00000000..0153d442 --- /dev/null +++ b/src/tests/StandaloneEnabledTest.test.ts @@ -0,0 +1,53 @@ +import { CxWrapper } from '../main/wrapper/CxWrapper'; +import { BaseTest } from './BaseTest'; +import { ExecutionService } from '../main/wrapper/ExecutionService'; +import { CxConstants } from '../main/wrapper/CxConstants'; + +describe('standaloneEnabled tenant setting', () => { + const baseConfig = new BaseTest(); + + afterEach(() => { + jest.restoreAllMocks(); + }); + + it('returns true when standalone tenant flag is true (lowercase)', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[CxConstants.STANDALONE_KEY, 'true']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.standaloneEnabled(); + expect(enabled).toBe(true); + }); + + it('returns true when standalone tenant flag is TRUE (uppercase)', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[CxConstants.STANDALONE_KEY, 'TRUE']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.standaloneEnabled(); + expect(enabled).toBe(true); + }); + + it('returns false when standalone tenant flag is false', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[CxConstants.STANDALONE_KEY, 'false']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.standaloneEnabled(); + expect(enabled).toBe(false); + }); + + it('returns false when standalone tenant flag key is missing', async () => { + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[CxConstants.IDE_SCANS_KEY, 'true']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.standaloneEnabled(); + expect(enabled).toBe(false); + }); + + it('trims whitespace around key and value before evaluating', async () => { + // Simulate raw output map entries with leading/trailing spaces + jest.spyOn(ExecutionService.prototype, 'executeMapTenantOutputCommands') + .mockResolvedValue(new Map([[` ${CxConstants.STANDALONE_KEY} `, ' true ']])); + const wrapper = new CxWrapper(baseConfig); + const enabled = await wrapper.standaloneEnabled(); + expect(enabled).toBe(true); + }); +}); From 210b5d9aed5916812f0e1f32dadbdc49ecba3ef1 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:09:59 +0530 Subject: [PATCH 04/11] Update CxConstants.ts --- src/main/wrapper/CxConstants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/wrapper/CxConstants.ts b/src/main/wrapper/CxConstants.ts index 623f1946..4a71554f 100644 --- a/src/main/wrapper/CxConstants.ts +++ b/src/main/wrapper/CxConstants.ts @@ -116,7 +116,7 @@ export enum CxConstants { CMD_LEARN_MORE = "learn-more", IDE_SCANS_KEY = "scan.config.plugins.ideScans", AI_GUIDED_REMEDIATION_KEY = "scan.config.plugins.aiGuidedRemediation", - STANDALONE_KEY = "scan.config.plugins.standalone", + STANDALONE_KEY = "scan.config.plugins.cxdevassist", ASSIST_KEY = "scan.config.plugins.cxoneassist", AI_MCP_SERVER_KEY = "scan.config.plugins.aiMcpServer", TELEMETRY = "telemetry", From 89c7fc8cfe943a2e8c5f1e870ecc2c33804af386 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:37:11 +0530 Subject: [PATCH 05/11] Added agent name in each API call --- src/main/wrapper/CxConfig.ts | 1 + src/main/wrapper/CxWrapper.ts | 17 +++++++---------- src/tests/BaseTest.ts | 2 ++ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/wrapper/CxConfig.ts b/src/main/wrapper/CxConfig.ts index 1a01118f..41a98b64 100644 --- a/src/main/wrapper/CxConfig.ts +++ b/src/main/wrapper/CxConfig.ts @@ -7,4 +7,5 @@ export class CxConfig { apiKey: string; tenant: string; additionalParameters:string; + agentName: string; } diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index b487fca1..98b8c3e2 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -55,6 +55,9 @@ export class CxWrapper { if (cxScanConfig.additionalParameters) { this.config.additionalParameters = cxScanConfig.additionalParameters; } + if (cxScanConfig.agentName) { + this.config.agentName = cxScanConfig.agentName; + } } @@ -89,6 +92,10 @@ export class CxWrapper { list.push(param) }) } + if (this.config.agentName) { + list.push(CxConstants.AGENT); + list.push(this.config.agentName); + } if (formatRequired) { list.push(CxConstants.FORMAT); list.push(CxConstants.FORMAT_JSON); @@ -144,12 +151,6 @@ export class CxWrapper { commands.push(CxConstants.ASCA_UPDATE_VERSION); } - if (agent) { - commands.push(CxConstants.AGENT, agent); - } else { - commands.push(CxConstants.AGENT, '"js-wrapper"'); - } - if (ignoredFilePath) { commands.push(CxConstants.IGNORE__FILE_PATH, ignoredFilePath); } @@ -375,10 +376,6 @@ export class CxWrapper { commands.push(CxConstants.OUTPUT_PATH); commands.push(outputPath); } - if (agent) { - commands.push(CxConstants.AGENT); - commands.push(agent); - } commands.push(...this.initializeCommands(false)); return commands; } diff --git a/src/tests/BaseTest.ts b/src/tests/BaseTest.ts index 82c7e7c7..9ca8dda9 100644 --- a/src/tests/BaseTest.ts +++ b/src/tests/BaseTest.ts @@ -8,6 +8,7 @@ export class BaseTest { pathToExecutable: string; tenant: string; additionalParameters:string; + agentName:string; constructor() { this.baseUri = process.env["CX_BASE_URI"]; @@ -16,6 +17,7 @@ export class BaseTest { this.clientSecret = process.env["CX_CLIENT_SECRET"]; this.tenant = process.env["CX_TENANT"]; this.apiKey = process.env["CX_APIKEY"]; + this.agentName = "--agent" this.additionalParameters = "--debug" if (process.env["PATH_TO_EXECUTABLE"] !== null && process.env["PATH_TO_EXECUTABLE"] !== undefined) { this.pathToExecutable = process.env["PATH_TO_EXECUTABLE"]; From 4b6a3345d62c3b644619459d9705bd8d2fc37186 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:39:34 +0530 Subject: [PATCH 06/11] removed agent parameter --- src/main/wrapper/CxWrapper.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index 98b8c3e2..a842e03d 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -137,7 +137,6 @@ export class CxWrapper { async scanAsca( sourceFile: string, updateVersion = false, - agent?: string | null, ignoredFilePath?: string ): Promise { const commands: string[] = [ @@ -366,7 +365,7 @@ export class CxWrapper { return await exec.executeCommands(this.config.pathToExecutable, commands, CxConstants.CODE_BASHING_TYPE); } - resultsShow(scanId: string, reportFormat: string, outputFileName: string, outputPath: string, agent?: string | null): string[] { + resultsShow(scanId: string, reportFormat: string, outputFileName: string, outputPath: string): string[] { const commands: string[] = [CxConstants.CMD_RESULT, CxConstants.SUB_CMD_SHOW, CxConstants.SCAN_ID, scanId, CxConstants.REPORT_FORMAT, reportFormat]; if (outputFileName) { commands.push(CxConstants.OUTPUT_NAME); From f09bd441cb0de612051c7451c732031f06a8c1b0 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 1 Dec 2025 13:36:49 +0530 Subject: [PATCH 07/11] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62acdc4f..9d698acb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ permissions: jobs: delete: - uses: CheckmarxDev/ast-cli-javascript-wrapper/.github/workflows/delete-packages-and-releases.yml@main + uses: Checkmarx/ast-cli-javascript-wrapper/.github/workflows/delete-packages-and-releases.yml@main with: tag: ${{ inputs.jsTag }} secrets: inherit @@ -174,7 +174,7 @@ jobs: release_version: ${{ needs.release.outputs.TAG_NAME }} cli_release_version: ${{ needs.release.outputs.CLI_VERSION }} release_author: "Phoenix Team" - release_url: https://github.com/CheckmarxDev/ast-cli-javascript-wrapper/releases/tag/${{ needs.release.outputs.TAG_NAME }} + release_url: https://github.com/Checkmarx/ast-cli-javascript-wrapper/releases/tag/${{ needs.release.outputs.TAG_NAME }} jira_product_name: JAVASCRIPT_WRAPPER secrets: inherit From 18c961fc7e3b14506b17a0a55238422c762b5786 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 1 Dec 2025 13:43:58 +0530 Subject: [PATCH 08/11] fixed test cases --- src/main/wrapper/CxWrapper.ts | 4 ++-- src/tests/ScanTest.test.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index a842e03d..88b38d2d 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -352,8 +352,8 @@ export class CxWrapper { return exec.executeResultsCommandsFile(scanId, CxConstants.FORMAT_HTML, CxConstants.FORMAT_HTML_FILE, commands, this.config.pathToExecutable, fileName); } - async getResults(scanId: string, resultType: string, outputFileName: string, outputFilePath: string, agent?: string | null) { - const commands = this.resultsShow(scanId, resultType, outputFileName, outputFilePath, agent) + async getResults(scanId: string, resultType: string, outputFileName: string, outputFilePath: string) { + const commands = this.resultsShow(scanId, resultType, outputFileName, outputFilePath) const exec = new ExecutionService(); return await exec.executeCommands(this.config.pathToExecutable, commands); } diff --git a/src/tests/ScanTest.test.ts b/src/tests/ScanTest.test.ts index 7ec12696..360e2252 100644 --- a/src/tests/ScanTest.test.ts +++ b/src/tests/ScanTest.test.ts @@ -292,7 +292,6 @@ it.skip('ScanAsca with ignore file should filter one result', async () => { const cxCommandOutput: CxCommandOutput = await wrapper.scanAsca( sourcePath, false, - null, ignoreFile ); From 898ac250dd46d846f201388d8a499129323f0763 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 1 Dec 2025 13:47:33 +0530 Subject: [PATCH 09/11] fixed test cases --- src/tests/ResultTest.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/ResultTest.test.ts b/src/tests/ResultTest.test.ts index 2aff2d12..c282ab2c 100644 --- a/src/tests/ResultTest.test.ts +++ b/src/tests/ResultTest.test.ts @@ -20,7 +20,7 @@ describe("Results cases",() => { const cxCommandOutput: CxCommandOutput = await auth.scanList("statuses=Completed"); const sampleId = cxCommandOutput.payload.pop().id; - auth.getResults(sampleId,"json","jsonList", ".", "jswrapper").then(() => { + auth.getResults(sampleId,"json","jsonList", "jswrapper").then(() => { fileExists("./jsonList.json").then(file => expect(file).toBe(true)); }); }); From c72c93d6ebbe2f4ce77aed01c9eeac4df11da8ee Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 1 Dec 2025 14:38:04 +0530 Subject: [PATCH 10/11] fixed test cases --- src/main/wrapper/CxWrapper.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index 88b38d2d..1560d523 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -552,7 +552,6 @@ export class CxWrapper { CxConstants.TELEMETRY, CxConstants.SUB_CMD_TELEMETRY_AI, CxConstants.AI_PROVIDER, aiProvider, - CxConstants.AGENT, agent, CxConstants.TYPE, eventType, CxConstants.SUB_TYPE, subType, CxConstants.ENGINE, engine, From 763af231ef753b6835da72de6a46aebd8d561c95 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Mon, 1 Dec 2025 15:26:53 +0530 Subject: [PATCH 11/11] fixed test case issues --- src/main/wrapper/CxWrapper.ts | 2 +- src/tests/BaseTest.ts | 2 +- src/tests/TelemetryTest.test.ts | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/wrapper/CxWrapper.ts b/src/main/wrapper/CxWrapper.ts index 1560d523..d5eab111 100644 --- a/src/main/wrapper/CxWrapper.ts +++ b/src/main/wrapper/CxWrapper.ts @@ -547,7 +547,7 @@ export class CxWrapper { return new ExecutionService().executeCommands(this.config.pathToExecutable, commands, CxConstants.MASK_TYPE); } - telemetryAIEvent(aiProvider: string, agent: string, eventType: string, subType: string, engine: string, problemSeverity: string, scanType: string, status: string, totalCount: number): Promise { + telemetryAIEvent(aiProvider: string, eventType: string, subType: string, engine: string, problemSeverity: string, scanType: string, status: string, totalCount: number): Promise { const commands: string[] = [ CxConstants.TELEMETRY, CxConstants.SUB_CMD_TELEMETRY_AI, diff --git a/src/tests/BaseTest.ts b/src/tests/BaseTest.ts index 9ca8dda9..d054749b 100644 --- a/src/tests/BaseTest.ts +++ b/src/tests/BaseTest.ts @@ -17,7 +17,7 @@ export class BaseTest { this.clientSecret = process.env["CX_CLIENT_SECRET"]; this.tenant = process.env["CX_TENANT"]; this.apiKey = process.env["CX_APIKEY"]; - this.agentName = "--agent" + this.agentName = "VS Code" this.additionalParameters = "--debug" if (process.env["PATH_TO_EXECUTABLE"] !== null && process.env["PATH_TO_EXECUTABLE"] !== undefined) { this.pathToExecutable = process.env["PATH_TO_EXECUTABLE"]; diff --git a/src/tests/TelemetryTest.test.ts b/src/tests/TelemetryTest.test.ts index df100008..c0471769 100644 --- a/src/tests/TelemetryTest.test.ts +++ b/src/tests/TelemetryTest.test.ts @@ -9,7 +9,6 @@ describe("Telemetry cases", () => { const wrapper = new CxWrapper(cxScanConfig); const cxCommandOutput: CxCommandOutput = await wrapper.telemetryAIEvent( "Cursor", - "Cursos", "click", "ast-results.viewPackageDetails", "secrets", @@ -30,7 +29,6 @@ describe("Telemetry cases", () => { "", "", "", - "", "asca", "Critical", 10 @@ -43,8 +41,7 @@ describe("Telemetry cases", () => { it('TelemetryAIEvent Successful case with edge case parameters', async () => { const wrapper = new CxWrapper(cxScanConfig); const cxCommandOutput: CxCommandOutput = await wrapper.telemetryAIEvent( - "", - "", + "", "", "", "",