Skip to content

Commit 1f197f5

Browse files
committed
Fix spelling: rename sdkexstension to sdkextension (AIML-230)
Correct package name spelling from 'sdkexstension' to 'sdkextension' throughout the codebase. Used git mv to preserve file history. Changes: - Renamed 49 Java files (package directories) - Updated package declarations in all moved files - Updated imports in 23 files that reference the package - Updated documentation (CLAUDE.md, plans) Verified: All 250 tests pass, compilation successful
1 parent a7812f6 commit 1f197f5

File tree

72 files changed

+143
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+143
-142
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ build/
4141
### Beads ###
4242
.beads/
4343
test-plan-*.md
44+
plans/

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This is an MCP (Model Context Protocol) server for Contrast Security that enable
4040
- `RouteCoverageService` - Route coverage analysis
4141
- `PromptService` - AI prompt management
4242

43-
**SDK Extensions**: Located in `sdkexstension/` package, these extend the Contrast SDK with enhanced data models and helper methods for better AI integration.
43+
**SDK Extensions**: Located in `sdkextension/` package, these extend the Contrast SDK with enhanced data models and helper methods for better AI integration.
4444

4545
**Data Models**: Comprehensive POJOs in `data/` package representing vulnerability information, library data, applications, and attack events.
4646

plans/attack-performance-concerns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The attack retrieval API has **severe performance issues** due to an N+1 query p
1717

1818
**Source References**:
1919
- MCP: `src/main/java/com/contrast/labs/ai/mcp/contrast/ADRService.java:150`
20-
- SDK: `src/main/java/com/contrast/labs/ai/mcp/contrast/sdkexstension/SDKExtension.java:373,378`
20+
- SDK: `src/main/java/com/contrast/labs/ai/mcp/contrast/sdkextension/SDKExtension.java:373,378`
2121
- TeamServer Controller: `teamserver-app/src/main/java/contrast/teamserver/rest/ng/rasp/discovery/attack/NgAttackRestController.java:266,275`
2222
- Assembler: `teamserver-app/src/main/java/contrast/teamserver/rest/ng/rasp/discovery/attack/resource/NgAttackResourceAssembler.java:101-187`
2323

@@ -315,7 +315,7 @@ Target metrics:
315315

316316
### MCP Server Code
317317
- `src/main/java/com/contrast/labs/ai/mcp/contrast/ADRService.java:138-169`
318-
- `src/main/java/com/contrast/labs/ai/mcp/contrast/sdkexstension/SDKExtension.java:368-425`
318+
- `src/main/java/com/contrast/labs/ai/mcp/contrast/sdkextension/SDKExtension.java:368-425`
319319

320320
### TeamServer Code
321321
- Controller: `teamserver-app/src/main/java/contrast/teamserver/rest/ng/rasp/discovery/attack/NgAttackRestController.java`

src/main/java/com/contrast/labs/ai/mcp/contrast/ADRService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
import com.contrast.labs.ai.mcp.contrast.data.AttackSummary;
1919
import com.contrast.labs.ai.mcp.contrast.data.PaginatedResponse;
20-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKExtension;
21-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKHelper;
22-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.ProtectData;
23-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.adr.Attack;
20+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKExtension;
21+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKHelper;
22+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.ProtectData;
23+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.adr.Attack;
2424
import com.contrast.labs.ai.mcp.contrast.utils.PaginationHandler;
2525
import java.io.IOException;
2626
import java.util.List;

src/main/java/com/contrast/labs/ai/mcp/contrast/AssessService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
import com.contrast.labs.ai.mcp.contrast.data.Vulnerability;
2525
import com.contrast.labs.ai.mcp.contrast.mapper.VulnerabilityContext;
2626
import com.contrast.labs.ai.mcp.contrast.mapper.VulnerabilityMapper;
27-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKExtension;
28-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKHelper;
29-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.LibraryExtended;
30-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.application.Application;
31-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.sca.LibraryObservation;
27+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKExtension;
28+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKHelper;
29+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.LibraryExtended;
30+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.application.Application;
31+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.sca.LibraryObservation;
3232
import com.contrast.labs.ai.mcp.contrast.utils.PaginationHandler;
3333
import com.contrastsecurity.http.TraceFilterForm;
3434
import com.contrastsecurity.models.MetadataFilterResponse;

src/main/java/com/contrast/labs/ai/mcp/contrast/AttackFilterParams.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package com.contrast.labs.ai.mcp.contrast;
1717

18-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.adr.AttacksFilterBody;
18+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.adr.AttacksFilterBody;
1919
import java.util.ArrayList;
2020
import java.util.List;
2121
import java.util.Set;

src/main/java/com/contrast/labs/ai/mcp/contrast/RouteCoverageService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.contrast.labs.ai.mcp.contrast;
22

3-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKExtension;
4-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKHelper;
5-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.routecoverage.Route;
6-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.routecoverage.RouteCoverageBySessionIDAndMetadataRequestExtended;
7-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.routecoverage.RouteCoverageResponse;
3+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKExtension;
4+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKHelper;
5+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.routecoverage.Route;
6+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.routecoverage.RouteCoverageBySessionIDAndMetadataRequestExtended;
7+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.routecoverage.RouteCoverageResponse;
88
import com.contrastsecurity.models.RouteCoverageMetadataLabelValues;
99
import java.io.IOException;
1010
import org.slf4j.Logger;

src/main/java/com/contrast/labs/ai/mcp/contrast/SCAService.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*/
1616
package com.contrast.labs.ai.mcp.contrast;
1717

18-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKExtension;
19-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKHelper;
20-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.App;
21-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.CveData;
22-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.Library;
23-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.LibraryExtended;
18+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKExtension;
19+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKHelper;
20+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.App;
21+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.CveData;
22+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.Library;
23+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.LibraryExtended;
2424
import com.contrastsecurity.http.LibraryFilterForm;
2525
import java.io.IOException;
2626
import java.util.List;

src/main/java/com/contrast/labs/ai/mcp/contrast/SastService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package com.contrast.labs.ai.mcp.contrast;
1717

18-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.SDKHelper;
18+
import com.contrast.labs.ai.mcp.contrast.sdkextension.SDKHelper;
1919
import com.contrastsecurity.sdk.scan.Project;
2020
import java.io.BufferedReader;
2121
import java.io.IOException;

src/main/java/com/contrast/labs/ai/mcp/contrast/data/AttackSummary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package com.contrast.labs.ai.mcp.contrast.data;
1717

1818
import com.contrast.labs.ai.mcp.contrast.FilterHelper;
19-
import com.contrast.labs.ai.mcp.contrast.sdkexstension.data.adr.Attack;
19+
import com.contrast.labs.ai.mcp.contrast.sdkextension.data.adr.Attack;
2020
import java.util.List;
2121
import java.util.Optional;
2222
import java.util.stream.Collectors;

0 commit comments

Comments
 (0)