cciwon-code-review-cli 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/code-review.js +1 -1
- package/lib/chat-mode.js +3 -1
- package/package.json +1 -1
package/bin/code-review.js
CHANGED
|
@@ -16,7 +16,7 @@ program
|
|
|
16
16
|
.version('1.0.0');
|
|
17
17
|
|
|
18
18
|
// 서버 URL 설정 (환경변수 또는 기본값)
|
|
19
|
-
const SERVER_URL = process.env.CODE_REVIEW_SERVER || 'http://
|
|
19
|
+
const SERVER_URL = process.env.CODE_REVIEW_SERVER || 'http://211.56.247.71:8000';
|
|
20
20
|
const client = new CodeReviewClient(SERVER_URL);
|
|
21
21
|
|
|
22
22
|
// ==========================================
|
package/lib/chat-mode.js
CHANGED
|
@@ -7,7 +7,9 @@ const CodeReviewClient = require('./api-client');
|
|
|
7
7
|
class ChatMode {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.fileReader = new FileReader();
|
|
10
|
-
|
|
10
|
+
// 환경변수가 있으면 사용, 없으면 기본값 사용
|
|
11
|
+
const serverUrl = process.env.CODE_REVIEW_SERVER;
|
|
12
|
+
this.client = serverUrl ? new CodeReviewClient(serverUrl) : new CodeReviewClient();
|
|
11
13
|
this.projectFiles = [];
|
|
12
14
|
this.filesContent = {};
|
|
13
15
|
this.rl = null;
|