Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
8a05c53
created new webviewpanel with name Checkmarx One Assist
cx-rahul-pidde Oct 14, 2025
eaeb242
CxOne Assist Standalone Changes
cx-rahul-pidde Oct 14, 2025
8131a67
Added onclick event to view ignored vulnerabilities
cx-rahul-pidde Oct 28, 2025
77ed416
After login show or hide UI screen
cx-rahul-pidde Oct 29, 2025
1151294
Refactored newly added code
cx-rahul-pidde Oct 29, 2025
eb685be
fixed lint issue
cx-rahul-pidde Nov 10, 2025
43ffdde
Added provomotionalView
cx-rahul-pidde Nov 10, 2025
4ac9eb7
displayed promotioncardview based on licence condition
cx-rahul-pidde Nov 10, 2025
5f9e174
Added kebab menu and handled click events
cx-rahul-pidde Nov 10, 2025
a2d1e8d
code changes
cx-rahul-pidde Nov 10, 2025
a7d6593
updated tooltip and fixed ignore vulnerability issue
cx-rahul-pidde Nov 10, 2025
83adc18
modified some conditions
cx-rahul-pidde Nov 10, 2025
8c8cd2f
hide view ignore vuln if standalone license is disabled
cx-rahul-pidde Nov 10, 2025
041c109
added duplicate view if standalone is disabled
cx-rahul-pidde Nov 11, 2025
a584b85
Used constants instead of hardcoded commands
cx-rahul-pidde Nov 11, 2025
b6ca0ae
refactred extension code
cx-rahul-pidde Nov 11, 2025
b6eb2b2
if standalone is disabled hide some icons available at vscode bottom
cx-rahul-pidde Nov 12, 2025
5a2a53c
if standalone is enabled then hide checkmarx scan
cx-rahul-pidde Nov 12, 2025
bb78faa
if standalone is enabled then hide some icons
cx-rahul-pidde Nov 12, 2025
486614e
removed space changes
cx-rahul-pidde Nov 12, 2025
bf3a24e
removed space changes
cx-rahul-pidde Nov 12, 2025
cfc4b30
if standalone enabled skip kics remediation and scan
cx-rahul-pidde Nov 13, 2025
fbf3fbb
if standalone enabled skip kics remediation and scan
cx-rahul-pidde Nov 13, 2025
b91972f
added duplicate view for scaAutosca to show when standalone is enabled
cx-rahul-pidde Nov 13, 2025
0394e27
added logic for ASPM
cx-rahul-pidde Nov 13, 2025
5076797
added constants and used
cx-rahul-pidde Nov 14, 2025
b8f744c
reused log output channel
cx-rahul-pidde Nov 14, 2025
77c1d2a
display ui if logout
cx-rahul-pidde Nov 14, 2025
0f2dd47
renamed file name and function name
cx-rahul-pidde Nov 14, 2025
07587bb
update code with some backend fixes
cx-rahul-pidde Nov 14, 2025
9410f6c
resolved creating new output channel
cx-rahul-pidde Nov 16, 2025
b1f4692
resolved creating new output channel
cx-rahul-pidde Nov 16, 2025
0ccc56d
cleared kicsdignostics if standalone is enabled
cx-rahul-pidde Nov 16, 2025
fc0b9b0
cleared kicsdignostics if standalone is enabled
cx-rahul-pidde Nov 16, 2025
04386c9
updated css,events to check different cnditions
cx-rahul-pidde Nov 17, 2025
fa8a4f5
removed comments
cx-rahul-pidde Nov 18, 2025
33b4758
updated code to get correct view not dummy view
cx-rahul-pidde Nov 18, 2025
345b763
updated standalone and cxonseassist as false
cx-rahul-pidde Nov 18, 2025
9b5a4c5
updated mock for testing
cx-rahul-pidde Nov 18, 2025
66ca080
skipped test
cx-rahul-pidde Nov 18, 2025
1c3d801
reverted changes
cx-rahul-pidde Nov 18, 2025
078955b
added unit tests for kics standalone license
cx-rahul-pidde Nov 18, 2025
89c5363
Merge branch 'main' into feature/AST-112336
cx-rahul-pidde Nov 19, 2025
9a669c9
skipped test should click on all group by-retry logic
cx-rahul-pidde Nov 19, 2025
3a36533
skipped test for checking
cx-rahul-pidde Nov 19, 2025
ac22205
skipped test for checking
cx-rahul-pidde Nov 19, 2025
718b800
reverted skipped test
cx-rahul-pidde Nov 19, 2025
d8c809c
reverted changes and added logs
cx-rahul-pidde Nov 19, 2025
e39cbb9
Added sleep
cx-rahul-pidde Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,182 changes: 3,182 additions & 0 deletions media/icons/cxone-assist-cube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 16 additions & 9 deletions media/riskManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,21 @@
break;
}
case "showLoader": {
document.getElementById("loading").classList.remove("hidden");
document
.getElementById("riskManagementContainer")
.classList.add("hidden");
const loadingEl = document.getElementById("loading");
const containerEl = document.getElementById("riskManagementContainer");
loadingEl && loadingEl.classList.remove("hidden");
if (containerEl) {
containerEl.classList.add("hidden");
}
break;
}
case "hideLoader": {
document.getElementById("loading").classList.add("hidden");
document
.getElementById("riskManagementContainer")
.classList.remove("hidden");
const loadingEl = document.getElementById("loading");
const containerEl = document.getElementById("riskManagementContainer");
loadingEl && loadingEl.classList.add("hidden");
if (containerEl) {
containerEl.classList.remove("hidden");
}
break;
}
}
Expand Down Expand Up @@ -495,7 +499,7 @@
function extractTraits(results) {
const traitsSet = new Set();

results.results.forEach((r) => {
results?.results.forEach((r) => {
if (r.traits && typeof r.traits === "object") {
Object.values(r.traits).forEach((t) => traitsSet.add(t));
}
Expand All @@ -513,6 +517,9 @@
return;
}

if(!submenu || !category) {
return;
}
submenu.classList.add("hidden");
category.classList.remove("hidden");
category.classList.remove("expanded");
Expand Down
2 changes: 1 addition & 1 deletion media/vscode.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {
font-size: var(--vscode-font-size);
font-weight: var(--vscode-font-weight);
font-family: var(--vscode-font-family);
background-color: var(--vscode-editor-background) !important;
background-color: var(--vscode-background) !important;
}

ol,
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 45 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@
"title": "Clear Results Selection",
"enablement": "ast-results.isValidCredentials"
},
{
"command": "ast-results.openIgnoredView",
"category": "ast-results",
"title": "View Ignored vulnerabilities",
"enablement": "ast-results.isValidCredentials && ast-results.isCxOneAssistEnabled"
},
{
"command": "ast-results.assistDocumentation",
"category": "ast-results",
"title": "Documentation"
},
{
"command": "ast-results.groupBySeverityActive",
"category": "ast-results",
Expand Down Expand Up @@ -810,10 +821,20 @@
"group": "@groupBy@7",
"when": "view == astResults && ast-results-groupByDirectDependency"
},
{
"command": "ast-results.openIgnoredView",
"group": "@settings@1",
"when": "view == astCxOneAssist"
},
{
"command": "ast-results.viewSettings",
"group": "@settings@2",
"when": "view == astResults || view==scaAutoScan"
"when": "view == astResults || view==scaAutoScan || view==astCxOneAssist || view==astResultsPromo || view==scaAutoScanPromo || view==riskManagement"
},
{
"command": "ast-results.assistDocumentation",
"group": "@settings@3",
"when": "view == astCxOneAssist"
},
{
"command": "ast-results.clear",
Expand Down Expand Up @@ -842,12 +863,31 @@
{
"id": "astResults",
"type": "tree",
"name": "Checkmarx One Results"
"name": "Checkmarx One Results",
"when": "!ast-results.isStandaloneEnabled"
},
{
"id": "astResultsPromo",
"type": "webview",
"name": "Checkmarx One Results",
"when": "ast-results.isStandaloneEnabled"
},
{
"id": "astCxOneAssist",
"type": "webview",
"name": "Checkmarx One Assist"
},
{
"id": "scaAutoScan",
"type": "tree",
"name": "Checkmarx SCA Realtime Scanner"
"name": "Checkmarx SCA Realtime Scanner",
"when": "!ast-results.isStandaloneEnabled"
},
{
"id": "scaAutoScanPromo",
"type": "webview",
"name": "Checkmarx SCA Realtime Scanner",
"when": "ast-results.isStandaloneEnabled"
},
{
"id": "riskManagement",
Expand Down Expand Up @@ -1059,7 +1099,7 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@checkmarxdev/ast-cli-javascript-wrapper": "0.0.146",
"@checkmarxdev/ast-cli-javascript-wrapper": "v0.0.147-rc-standalone-changes.0",
"@popperjs/core": "^2.11.8",
"@vscode/codicons": "^0.0.36",
"axios": "1.12.2",
Expand Down Expand Up @@ -1095,4 +1135,4 @@
"pre-commit": "lint-staged"
}
}
}
}
20 changes: 18 additions & 2 deletions src/commands/commonCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class CommonCommand {

public async executeCheckSettings() {

const isConfiguration = await cx.isValidConfiguration();
const isConfiguration = await cx.isValidConfiguration();
vscode.commands.executeCommand(
commands.setContext,
commands.isValidCredentials,
Expand All @@ -52,7 +52,7 @@ export class CommonCommand {
commands.isScaScanEnabled,
true);

this.executeCheckScanEnabled();
this.executeCheckScanEnabled();
}

public async executeCheckScanEnabled() {
Expand All @@ -63,6 +63,22 @@ export class CommonCommand {
);
}

public async executeCheckStandaloneEnabled() {
vscode.commands.executeCommand(
commands.setContext,
commands.isStandaloneEnabled,
await cx.isStandaloneEnabled(this.logs)
);
}

public async executeCheckCxOneAssistEnabled() {
vscode.commands.executeCommand(
commands.setContext,
commands.isCxOneAssistEnabled,
await cx.isCxOneAssistEnabled(this.logs)
);
}

public async executeCheckScaScanEnabled() {
vscode.commands.executeCommand(
commands.setContext,
Expand Down
11 changes: 10 additions & 1 deletion src/commands/kicsRealtimeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from "../utils/common/commands";
import { constants } from "../utils/common/constants";
import { messages } from "../utils/common/messages";
import { cx } from "../cx";

export class KICSRealtimeCommand {
context: vscode.ExtensionContext;
Expand Down Expand Up @@ -48,6 +49,9 @@ export class KICSRealtimeCommand {
fixAll,
fixLine
) => {
if (await cx.isStandaloneEnabled(this.logs)) {
return;
}
await this.kicsProvider.kicsRemediation(
fixedResults,
kicsResults,
Expand All @@ -66,7 +70,12 @@ export class KICSRealtimeCommand {
this.context.subscriptions.push(
vscode.commands.registerCommand(
commands.kicsRealtime,
async () => await this.kicsProvider.runKicsIfEnabled()
async () => {
if (await cx.isStandaloneEnabled(this.logs)) {
return;
}
await this.kicsProvider.runKicsIfEnabled();
}
)
);
}
Expand Down
7 changes: 4 additions & 3 deletions src/commands/scanSCACommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Logs } from "../models/logs";
import { commands } from "../utils/common/commands";
import { createSCAScan } from "../views/scaView/scaCreateScanProvider";
import { SCAResultsProvider } from "../views/scaView/scaResultsProvider";
import { cx } from "../cx";

export class ScanSCACommand {
context: vscode.ExtensionContext;
Expand All @@ -21,19 +22,19 @@ export class ScanSCACommand {
this.logs = logs;
}

public registerScaScans() {
public async registerScaScans() {
this.createScanCommand();
}

private createScanCommand() {
this.context.subscriptions.push(
vscode.commands.registerCommand(commands.createScaScan, async () => {
await createSCAScan(
!await cx.isStandaloneEnabled(this.logs) ? await createSCAScan(
this.context,
this.runSCAScanStatusBar,
this.logs,
this.scaResultsProvider
);
) : undefined;
})
);
}
Expand Down
3 changes: 3 additions & 0 deletions src/constants/documentation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const DOC_LINKS = {
devAssist: "https://docs.checkmarx.com/en/34965-405960-checkmarx-one-developer-assist.html",
};
Loading
Loading