bitbucket-gemini-action 1.0.7 → 1.0.8

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/dist/cli.js CHANGED
@@ -2268,7 +2268,19 @@ var CODE_REVIEW_SYSTEM_PROMPT = `You are an expert code reviewer assistant integ
2268
2268
  - 린터가 처리하는 스타일 이슈에 대해 지적하지 마세요
2269
2269
  - 주관적인 선호에 대한 변경을 요청하지 마세요
2270
2270
  - 실행 가능한 제안 없이 코멘트를 남기지 마세요
2271
- - 더 큰 문제가 있을 때 사소한 이슈에 집중하지 마세요`;
2271
+ - 더 큰 문제가 있을 때 사소한 이슈에 집중하지 마세요
2272
+ - **설정 파일(YAML, JSON, config)에 대해서는 명백한 오류가 아니면 코멘트하지 마세요**
2273
+ - **환경 변수 설정, 일반적인 코드 패턴에 대해 불필요한 조언을 하지 마세요**
2274
+ - **코드가 정상적으로 작동할 것 같으면 굳이 개선 제안을 하지 마세요**
2275
+
2276
+ ## When to Create Inline Comments
2277
+ 인라인 코멘트는 다음 경우에만 작성하세요:
2278
+ - \uD83D\uDC1B **버그**: 실제 버그나 런타임 오류가 발생할 코드
2279
+ - \uD83D\uDD12 **보안 문제**: 보안 취약점이 있는 코드
2280
+ - ⚠️ **심각한 문제**: 데이터 손실, 성능 저하 등 심각한 영향을 미치는 코드
2281
+ - \uD83D\uDCA1 **중요한 개선**: 코드 품질에 큰 영향을 미치는 개선점
2282
+
2283
+ **사소한 개선점이나 "더 좋을 수 있는" 정도의 제안은 하지 마세요.**`;
2272
2284
  var TAG_MODE_SYSTEM_PROMPT = `${CODE_REVIEW_SYSTEM_PROMPT}
2273
2285
 
2274
2286
  ## Tag Mode Behavior
@@ -2462,7 +2474,7 @@ ${presetPrompt}`;
2462
2474
  // src/gemini/tools.ts
2463
2475
  var createInlineCommentTool = {
2464
2476
  name: "create_inline_comment",
2465
- description: "Create an inline comment on a specific line of code in the pull request. Use this to provide targeted feedback on specific code changes.",
2477
+ description: "Create an inline comment on a specific line of code in the pull request. Use this ONLY for significant issues like bugs, security problems, or important improvements. Do NOT comment on minor style issues or obvious code.",
2466
2478
  parameters: {
2467
2479
  type: "object",
2468
2480
  properties: {
@@ -2472,11 +2484,11 @@ var createInlineCommentTool = {
2472
2484
  },
2473
2485
  line: {
2474
2486
  type: "number",
2475
- description: "The line number to comment on (1-indexed)"
2487
+ description: "The NEW file line number from the diff (the number after '+' in the diff). For example, in '@@ -0,0 +5,7 @@', if you want to comment on the line shown as '+ - step:', look at the line numbers in the NEW file section (right side). The first added line would be line 5, second would be 6, etc."
2476
2488
  },
2477
2489
  content: {
2478
2490
  type: "string",
2479
- description: "The comment content in markdown format. Be specific and actionable."
2491
+ description: "The comment content in markdown format. Be specific and actionable. Write in Korean."
2480
2492
  }
2481
2493
  },
2482
2494
  required: ["path", "line", "content"]
@@ -3368,7 +3368,19 @@ var CODE_REVIEW_SYSTEM_PROMPT = `You are an expert code reviewer assistant integ
3368
3368
  - 린터가 처리하는 스타일 이슈에 대해 지적하지 마세요
3369
3369
  - 주관적인 선호에 대한 변경을 요청하지 마세요
3370
3370
  - 실행 가능한 제안 없이 코멘트를 남기지 마세요
3371
- - 더 큰 문제가 있을 때 사소한 이슈에 집중하지 마세요`;
3371
+ - 더 큰 문제가 있을 때 사소한 이슈에 집중하지 마세요
3372
+ - **설정 파일(YAML, JSON, config)에 대해서는 명백한 오류가 아니면 코멘트하지 마세요**
3373
+ - **환경 변수 설정, 일반적인 코드 패턴에 대해 불필요한 조언을 하지 마세요**
3374
+ - **코드가 정상적으로 작동할 것 같으면 굳이 개선 제안을 하지 마세요**
3375
+
3376
+ ## When to Create Inline Comments
3377
+ 인라인 코멘트는 다음 경우에만 작성하세요:
3378
+ - \uD83D\uDC1B **버그**: 실제 버그나 런타임 오류가 발생할 코드
3379
+ - \uD83D\uDD12 **보안 문제**: 보안 취약점이 있는 코드
3380
+ - ⚠️ **심각한 문제**: 데이터 손실, 성능 저하 등 심각한 영향을 미치는 코드
3381
+ - \uD83D\uDCA1 **중요한 개선**: 코드 품질에 큰 영향을 미치는 개선점
3382
+
3383
+ **사소한 개선점이나 "더 좋을 수 있는" 정도의 제안은 하지 마세요.**`;
3372
3384
  var TAG_MODE_SYSTEM_PROMPT = `${CODE_REVIEW_SYSTEM_PROMPT}
3373
3385
 
3374
3386
  ## Tag Mode Behavior
@@ -3562,7 +3574,7 @@ ${presetPrompt}`;
3562
3574
  // src/gemini/tools.ts
3563
3575
  var createInlineCommentTool = {
3564
3576
  name: "create_inline_comment",
3565
- description: "Create an inline comment on a specific line of code in the pull request. Use this to provide targeted feedback on specific code changes.",
3577
+ description: "Create an inline comment on a specific line of code in the pull request. Use this ONLY for significant issues like bugs, security problems, or important improvements. Do NOT comment on minor style issues or obvious code.",
3566
3578
  parameters: {
3567
3579
  type: "object",
3568
3580
  properties: {
@@ -3572,11 +3584,11 @@ var createInlineCommentTool = {
3572
3584
  },
3573
3585
  line: {
3574
3586
  type: "number",
3575
- description: "The line number to comment on (1-indexed)"
3587
+ description: "The NEW file line number from the diff (the number after '+' in the diff). For example, in '@@ -0,0 +5,7 @@', if you want to comment on the line shown as '+ - step:', look at the line numbers in the NEW file section (right side). The first added line would be line 5, second would be 6, etc."
3576
3588
  },
3577
3589
  content: {
3578
3590
  type: "string",
3579
- description: "The comment content in markdown format. Be specific and actionable."
3591
+ description: "The comment content in markdown format. Be specific and actionable. Write in Korean."
3580
3592
  }
3581
3593
  },
3582
3594
  required: ["path", "line", "content"]
@@ -2267,7 +2267,19 @@ var CODE_REVIEW_SYSTEM_PROMPT = `You are an expert code reviewer assistant integ
2267
2267
  - 린터가 처리하는 스타일 이슈에 대해 지적하지 마세요
2268
2268
  - 주관적인 선호에 대한 변경을 요청하지 마세요
2269
2269
  - 실행 가능한 제안 없이 코멘트를 남기지 마세요
2270
- - 더 큰 문제가 있을 때 사소한 이슈에 집중하지 마세요`;
2270
+ - 더 큰 문제가 있을 때 사소한 이슈에 집중하지 마세요
2271
+ - **설정 파일(YAML, JSON, config)에 대해서는 명백한 오류가 아니면 코멘트하지 마세요**
2272
+ - **환경 변수 설정, 일반적인 코드 패턴에 대해 불필요한 조언을 하지 마세요**
2273
+ - **코드가 정상적으로 작동할 것 같으면 굳이 개선 제안을 하지 마세요**
2274
+
2275
+ ## When to Create Inline Comments
2276
+ 인라인 코멘트는 다음 경우에만 작성하세요:
2277
+ - \uD83D\uDC1B **버그**: 실제 버그나 런타임 오류가 발생할 코드
2278
+ - \uD83D\uDD12 **보안 문제**: 보안 취약점이 있는 코드
2279
+ - ⚠️ **심각한 문제**: 데이터 손실, 성능 저하 등 심각한 영향을 미치는 코드
2280
+ - \uD83D\uDCA1 **중요한 개선**: 코드 품질에 큰 영향을 미치는 개선점
2281
+
2282
+ **사소한 개선점이나 "더 좋을 수 있는" 정도의 제안은 하지 마세요.**`;
2271
2283
  var TAG_MODE_SYSTEM_PROMPT = `${CODE_REVIEW_SYSTEM_PROMPT}
2272
2284
 
2273
2285
  ## Tag Mode Behavior
@@ -2461,7 +2473,7 @@ ${presetPrompt}`;
2461
2473
  // src/gemini/tools.ts
2462
2474
  var createInlineCommentTool = {
2463
2475
  name: "create_inline_comment",
2464
- description: "Create an inline comment on a specific line of code in the pull request. Use this to provide targeted feedback on specific code changes.",
2476
+ description: "Create an inline comment on a specific line of code in the pull request. Use this ONLY for significant issues like bugs, security problems, or important improvements. Do NOT comment on minor style issues or obvious code.",
2465
2477
  parameters: {
2466
2478
  type: "object",
2467
2479
  properties: {
@@ -2471,11 +2483,11 @@ var createInlineCommentTool = {
2471
2483
  },
2472
2484
  line: {
2473
2485
  type: "number",
2474
- description: "The line number to comment on (1-indexed)"
2486
+ description: "The NEW file line number from the diff (the number after '+' in the diff). For example, in '@@ -0,0 +5,7 @@', if you want to comment on the line shown as '+ - step:', look at the line numbers in the NEW file section (right side). The first added line would be line 5, second would be 6, etc."
2475
2487
  },
2476
2488
  content: {
2477
2489
  type: "string",
2478
- description: "The comment content in markdown format. Be specific and actionable."
2490
+ description: "The comment content in markdown format. Be specific and actionable. Write in Korean."
2479
2491
  }
2480
2492
  },
2481
2493
  required: ["path", "line", "content"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbucket-gemini-action",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Bitbucket Pipeline action for AI-powered code review using Google Gemini",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",