bitbucket-gemini-action 1.0.10 → 1.0.11

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
@@ -2320,7 +2320,11 @@ ${formatComments(context.comments)}` : ""}
2320
2320
 
2321
2321
  **모든 코멘트와 피드백은 반드시 한국어로 작성하세요.**
2322
2322
 
2323
- 특정 라인에 인라인 코멘트를 남기고, 전체적인 피드백은 요약 코멘트로 작성하세요.`;
2323
+ ## 중요: 도구 사용 방법
2324
+ 1. **create_inline_comment**: 코드의 특정 라인에 피드백을 남길 때 반드시 이 도구를 사용하세요. 개선이 필요한 각 코드 라인마다 개별적으로 호출하세요.
2325
+ 2. **create_pr_comment**: 전체적인 요약만 이 도구로 작성하세요.
2326
+
2327
+ 피드백이 있는 모든 코드 라인에 대해 create_inline_comment를 사용해야 합니다.`;
2324
2328
  }
2325
2329
  function buildTagModePrompt(context, userMessage, mentionAuthor) {
2326
2330
  const filesSummary = context.files.map((f) => `- ${f.path} (${f.status}): +${f.additions}/-${f.deletions}`).join(`
@@ -2462,7 +2466,7 @@ ${presetPrompt}`;
2462
2466
  // src/gemini/tools.ts
2463
2467
  var createInlineCommentTool = {
2464
2468
  name: "create_inline_comment",
2465
- 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.",
2469
+ description: "Create an inline comment on a specific line of code in the pull request. Use this tool for each line where you have feedback. This is the PRIMARY tool for code review comments.",
2466
2470
  parameters: {
2467
2471
  type: "object",
2468
2472
  properties: {
@@ -3420,7 +3420,11 @@ ${formatComments2(context.comments)}` : ""}
3420
3420
 
3421
3421
  **모든 코멘트와 피드백은 반드시 한국어로 작성하세요.**
3422
3422
 
3423
- 특정 라인에 인라인 코멘트를 남기고, 전체적인 피드백은 요약 코멘트로 작성하세요.`;
3423
+ ## 중요: 도구 사용 방법
3424
+ 1. **create_inline_comment**: 코드의 특정 라인에 피드백을 남길 때 반드시 이 도구를 사용하세요. 개선이 필요한 각 코드 라인마다 개별적으로 호출하세요.
3425
+ 2. **create_pr_comment**: 전체적인 요약만 이 도구로 작성하세요.
3426
+
3427
+ 피드백이 있는 모든 코드 라인에 대해 create_inline_comment를 사용해야 합니다.`;
3424
3428
  }
3425
3429
  function buildTagModePrompt(context, userMessage, mentionAuthor) {
3426
3430
  const filesSummary = context.files.map((f) => `- ${f.path} (${f.status}): +${f.additions}/-${f.deletions}`).join(`
@@ -3562,7 +3566,7 @@ ${presetPrompt}`;
3562
3566
  // src/gemini/tools.ts
3563
3567
  var createInlineCommentTool = {
3564
3568
  name: "create_inline_comment",
3565
- 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.",
3569
+ description: "Create an inline comment on a specific line of code in the pull request. Use this tool for each line where you have feedback. This is the PRIMARY tool for code review comments.",
3566
3570
  parameters: {
3567
3571
  type: "object",
3568
3572
  properties: {
@@ -2319,7 +2319,11 @@ ${formatComments(context.comments)}` : ""}
2319
2319
 
2320
2320
  **모든 코멘트와 피드백은 반드시 한국어로 작성하세요.**
2321
2321
 
2322
- 특정 라인에 인라인 코멘트를 남기고, 전체적인 피드백은 요약 코멘트로 작성하세요.`;
2322
+ ## 중요: 도구 사용 방법
2323
+ 1. **create_inline_comment**: 코드의 특정 라인에 피드백을 남길 때 반드시 이 도구를 사용하세요. 개선이 필요한 각 코드 라인마다 개별적으로 호출하세요.
2324
+ 2. **create_pr_comment**: 전체적인 요약만 이 도구로 작성하세요.
2325
+
2326
+ 피드백이 있는 모든 코드 라인에 대해 create_inline_comment를 사용해야 합니다.`;
2323
2327
  }
2324
2328
  function buildTagModePrompt(context, userMessage, mentionAuthor) {
2325
2329
  const filesSummary = context.files.map((f) => `- ${f.path} (${f.status}): +${f.additions}/-${f.deletions}`).join(`
@@ -2461,7 +2465,7 @@ ${presetPrompt}`;
2461
2465
  // src/gemini/tools.ts
2462
2466
  var createInlineCommentTool = {
2463
2467
  name: "create_inline_comment",
2464
- 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.",
2468
+ description: "Create an inline comment on a specific line of code in the pull request. Use this tool for each line where you have feedback. This is the PRIMARY tool for code review comments.",
2465
2469
  parameters: {
2466
2470
  type: "object",
2467
2471
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbucket-gemini-action",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Bitbucket Pipeline action for AI-powered code review using Google Gemini",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",