Skip to content

Commit 714a4b5

Browse files
committed
sdk - Version 0.1.0-SNAPSHOT
1 parent 587cb59 commit 714a4b5

123 files changed

Lines changed: 6372 additions & 19 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,39 @@
1-
# Compiled class file
2-
*.class
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
!**/src/main/**/target/
4+
!**/src/test/**/target/
35

4-
# Log file
5-
*.log
6+
### IntelliJ IDEA ###
7+
.idea/modules.xml
8+
.idea/jarRepositories.xml
9+
.idea/compiler.xml
10+
.idea/libraries/
11+
*.iws
12+
*.iml
13+
*.ipr
614

7-
# BlueJ files
8-
*.ctxt
15+
### Eclipse ###
16+
.apt_generated
17+
.classpath
18+
.factorypath
19+
.project
20+
.settings
21+
.springBeans
22+
.sts4-cache
923

10-
# Mobile Tools for Java (J2ME)
11-
.mtj.tmp/
24+
### NetBeans ###
25+
/nbproject/private/
26+
/nbbuild/
27+
/dist/
28+
/nbdist/
29+
/.nb-gradle/
30+
build/
31+
!**/src/main/**/build/
32+
!**/src/test/**/build/
1233

13-
# Package Files #
14-
*.jar
15-
*.war
16-
*.nar
17-
*.ear
18-
*.zip
19-
*.tar.gz
20-
*.rar
34+
### VS Code ###
35+
.vscode/
2136

22-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23-
hs_err_pid*
24-
replay_pid*
37+
### Mac OS ###
38+
.DS_Store
39+
/.idea/

.mvn/.gitkeep

Whitespace-only changes.

docs/comment-styles.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Output Style Guidelines
2+
3+
## FRIENDLY
4+
5+
- **Description**: Human-like, conversational style.
6+
- **Form**: Friendly, natural, and professional.
7+
- **Used In**: GitHub PRs, Markdown reports, and public CLI.
8+
- **Purpose**: Presentation and human interaction.
9+
- **Example**:
10+
> Human like, friendly, natural, and professional tone; ideal for PRs, reports, and communication.
11+
12+
---
13+
14+
## STRUCTURED
15+
16+
- **Description**: Formal, strictly structured, and machine-readable.
17+
- **Form**: Concise, explicit, and well-organized.
18+
- **Used In**: CI pipelines, JSON outputs, and integrations.
19+
- **Purpose**: Parsing by CI, analyzers, dashboards.
20+
- **Example**:
21+
> Strictly structured and concise, for machine consumption and integrations.
22+
23+
---
24+
25+
## COMPACT
26+
27+
- **Description**: Very brief, technical, and to-the-point.
28+
- **Form**: One-line, concise output.
29+
- **Used In**: Terminal, IDE, and log files.
30+
- **Purpose**: Compact display in console or logs.
31+
- **Example**:
32+
> Brief, technical, one-line output for terminals, IDEs, or logs.

pom.xml

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.quasarbyte.llm.codereview</groupId>
8+
<artifactId>sdk</artifactId>
9+
<version>0.1.0-SNAPSHOT</version>
10+
<url>https://github.com/QuasarByte/llm-codereview-sdk</url>
11+
12+
<name>LLM Code Review SDK</name>
13+
<description>Java SDK for AI-powered automated code review using LLMs</description>
14+
<licenses>
15+
<license>
16+
<name>Apache License, Version 2.0</name>
17+
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
18+
</license>
19+
</licenses>
20+
<developers>
21+
<developer>
22+
<id>taluyev</id>
23+
<name>Roman Taluyev</name>
24+
<email>taluyev@gmail.com</email>
25+
<organization>Roman Taluyev</organization>
26+
<url>https://www.linkedin.com/in/taluyev/</url>
27+
</developer>
28+
</developers>
29+
30+
<scm>
31+
<connection>scm:git:git://github.com/QuasarByte/llm-codereview-sdk.git</connection>
32+
<developerConnection>scm:git:ssh://github.com:QuasarByte/llm-codereview-sdk.git</developerConnection>
33+
<url>https://github.com/QuasarByte/llm-codereview-sdk</url>
34+
</scm>
35+
36+
<properties>
37+
<maven.compiler.source>1.8</maven.compiler.source>
38+
<maven.compiler.target>1.8</maven.compiler.target>
39+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40+
<junit.jupiter.version>5.11.4</junit.jupiter.version>
41+
<mockito.version>4.11.0</mockito.version>
42+
</properties>
43+
44+
<dependencies>
45+
<dependency>
46+
<groupId>com.openai</groupId>
47+
<artifactId>openai-java</artifactId>
48+
<version>2.2.0</version>
49+
</dependency>
50+
<!-- https://mvnrepository.com/artifact/org.mozilla/rhino -->
51+
<dependency>
52+
<groupId>org.mozilla</groupId>
53+
<artifactId>rhino</artifactId>
54+
<version>1.7.15</version>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.slf4j</groupId>
58+
<artifactId>slf4j-api</artifactId>
59+
<version>2.0.17</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>org.junit.jupiter</groupId>
63+
<artifactId>junit-jupiter-engine</artifactId>
64+
<version>${junit.jupiter.version}</version>
65+
<scope>test</scope>
66+
</dependency>
67+
<dependency>
68+
<groupId>org.junit.jupiter</groupId>
69+
<artifactId>junit-jupiter-api</artifactId>
70+
<version>${junit.jupiter.version}</version>
71+
<scope>test</scope>
72+
</dependency>
73+
<dependency>
74+
<groupId>org.mockito</groupId>
75+
<artifactId>mockito-core</artifactId>
76+
<version>${mockito.version}</version>
77+
<scope>test</scope>
78+
</dependency>
79+
<dependency>
80+
<groupId>org.mockito</groupId>
81+
<artifactId>mockito-junit-jupiter</artifactId>
82+
<version>${mockito.version}</version>
83+
<scope>test</scope>
84+
</dependency>
85+
</dependencies>
86+
87+
<build>
88+
<plugins>
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-surefire-plugin</artifactId>
92+
<version>3.5.3</version>
93+
<configuration>
94+
<includes>
95+
<include>**/*Test.java</include>
96+
</includes>
97+
</configuration>
98+
</plugin>
99+
<plugin>
100+
<groupId>org.apache.maven.plugins</groupId>
101+
<artifactId>maven-failsafe-plugin</artifactId>
102+
<version>3.5.3</version>
103+
<configuration>
104+
<includes>
105+
<include>**/*IT.java</include>
106+
</includes>
107+
</configuration>
108+
<executions>
109+
<execution>
110+
<goals>
111+
<goal>integration-test</goal>
112+
<goal>verify</goal>
113+
</goals>
114+
</execution>
115+
</executions>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-source-plugin</artifactId>
120+
<version>3.3.1</version>
121+
<executions>
122+
<execution>
123+
<id>attach-sources</id>
124+
<phase>verify</phase>
125+
<goals>
126+
<goal>jar</goal>
127+
</goals>
128+
</execution>
129+
</executions>
130+
</plugin>
131+
</plugins>
132+
</build>
133+
134+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.quasarbyte.llm.codereview.sdk.exception;
2+
3+
public class CannotReadFileException extends LLMCodeReviewException {
4+
public CannotReadFileException(String message, Throwable cause) {
5+
super(message, cause);
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.quasarbyte.llm.codereview.sdk.exception;
2+
3+
public class CannotReadResourceException extends LLMCodeReviewException {
4+
public CannotReadResourceException(String message, Throwable cause) {
5+
super(message, cause);
6+
}
7+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.quasarbyte.llm.codereview.sdk.exception;
2+
3+
public class LLMCodeReviewException extends RuntimeException {
4+
public LLMCodeReviewException(String message) {
5+
super(message);
6+
}
7+
8+
public LLMCodeReviewException(String message, Throwable cause) {
9+
super(message, cause);
10+
}
11+
12+
public LLMCodeReviewException(Throwable cause) {
13+
super(cause);
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.quasarbyte.llm.codereview.sdk.exception;
2+
3+
public class LLMCodeReviewRhinoException extends LLMCodeReviewException {
4+
public LLMCodeReviewRhinoException(String message) {
5+
super(message);
6+
}
7+
8+
public LLMCodeReviewRhinoException(String message, Throwable cause) {
9+
super(message, cause);
10+
}
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.quasarbyte.llm.codereview.sdk.exception;
2+
3+
public class LlmRequestQuotaException extends LLMCodeReviewException {
4+
public LlmRequestQuotaException(String message) {
5+
super(message);
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.quasarbyte.llm.codereview.sdk.exception;
2+
3+
public class TargetResolutionException extends LLMCodeReviewException {
4+
public TargetResolutionException(String message, Throwable cause) {
5+
super(message, cause);
6+
}
7+
}

0 commit comments

Comments
 (0)