@polka-codes/runner 0.9.24 → 0.9.25
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/index.js +40 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30458,7 +30458,7 @@ var {
|
|
|
30458
30458
|
Help
|
|
30459
30459
|
} = import__.default;
|
|
30460
30460
|
// package.json
|
|
30461
|
-
var version = "0.9.
|
|
30461
|
+
var version = "0.9.25";
|
|
30462
30462
|
|
|
30463
30463
|
// src/runner.ts
|
|
30464
30464
|
import { execSync } from "node:child_process";
|
|
@@ -67952,7 +67952,7 @@ var toolInfo15 = {
|
|
|
67952
67952
|
return val;
|
|
67953
67953
|
}, exports_external.boolean().optional().default(false)).describe("Get staged changes instead of unstaged changes."),
|
|
67954
67954
|
commitRange: exports_external.string().optional().describe('The commit range to get the diff for (e.g., "main...HEAD").'),
|
|
67955
|
-
file: exports_external.string().
|
|
67955
|
+
file: exports_external.string().describe("Get the diff for a specific file."),
|
|
67956
67956
|
contextLines: exports_external.coerce.number().optional().default(5).describe("Number of context lines to include around changes."),
|
|
67957
67957
|
includeLineNumbers: exports_external.preprocess((val) => {
|
|
67958
67958
|
if (typeof val === "string") {
|
|
@@ -68049,42 +68049,58 @@ var prompt5 = `
|
|
|
68049
68049
|
You are a senior software engineer reviewing code changes.
|
|
68050
68050
|
|
|
68051
68051
|
## Critical Instructions
|
|
68052
|
-
**ONLY review the actual changes shown in the diff.** Do not comment on existing code that wasn't modified.
|
|
68052
|
+
- **ONLY review the actual changes shown in the diff.** Do not comment on existing code that wasn't modified.
|
|
68053
|
+
- **ONLY run git_diff on files that are reviewable source/config files** per the "File Selection for git_diff" rules below. Do not pass excluded files to git_diff.
|
|
68054
|
+
|
|
68055
|
+
## File Selection for git_diff
|
|
68056
|
+
Use <file_status> to decide which files to diff. Include only files likely to contain human-authored source or meaningful configuration.
|
|
68057
|
+
|
|
68058
|
+
Include (run git_diff):
|
|
68059
|
+
- Application/source code
|
|
68060
|
+
- UI/templates/assets code
|
|
68061
|
+
- Infra/config that affects behavior
|
|
68062
|
+
|
|
68063
|
+
Exclude (do NOT run git_diff; do not review):
|
|
68064
|
+
- Lockfiles
|
|
68065
|
+
- Generated/build artifacts & deps
|
|
68066
|
+
- Test artifacts/snapshots
|
|
68067
|
+
- Data and fixtures
|
|
68068
|
+
- Binary/media/minified/maps
|
|
68053
68069
|
|
|
68054
68070
|
## Viewing Changes
|
|
68055
|
-
- **
|
|
68056
|
-
- **Pull request
|
|
68057
|
-
- **Local changes
|
|
68058
|
-
- The diff will include line number annotations: [Line N] for additions and [Line N removed] for deletions
|
|
68059
|
-
-
|
|
68071
|
+
- For each included file, **use git_diff** to inspect the actual code changes:
|
|
68072
|
+
- **Pull request:** use the provided commit range for the git_diff tool with contextLines: 5 and includeLineNumbers: true, but only surface and review the included files.
|
|
68073
|
+
- **Local changes:** diff staged or unstaged included files using git_diff with contextLines: 5 and includeLineNumbers: true.
|
|
68074
|
+
- The diff will include line number annotations: [Line N] for additions and [Line N removed] for deletions.
|
|
68075
|
+
- You may receive:
|
|
68060
68076
|
- <pr_title>
|
|
68061
68077
|
- <pr_description>
|
|
68062
68078
|
- <commit_messages>
|
|
68063
68079
|
- A <review_instructions> tag tells you the focus of the review.
|
|
68064
|
-
-
|
|
68080
|
+
- Use <file_status> to understand which files were modified, added, deleted, or renamed and to apply the inclusion/exclusion rules above.
|
|
68065
68081
|
|
|
68066
68082
|
## Line Number Reporting
|
|
68067
|
-
-
|
|
68068
|
-
- For additions:
|
|
68069
|
-
- For deletions:
|
|
68070
|
-
- For modifications:
|
|
68071
|
-
- Report single lines as "N" and ranges as "N-M"
|
|
68083
|
+
- Use the line numbers from the annotations in the diff output.
|
|
68084
|
+
- For additions: use the number from the [Line N] annotation after the + line.
|
|
68085
|
+
- For deletions: use the number from the [Line N removed] annotation after the - line.
|
|
68086
|
+
- For modifications: report the line number of the new/current code (from [Line N]).
|
|
68087
|
+
- Report single lines as "N" and ranges as "N-M".
|
|
68072
68088
|
|
|
68073
68089
|
## Review Guidelines
|
|
68074
68090
|
Focus exclusively on the changed lines (+ additions, - deletions, modified lines):
|
|
68075
|
-
- **Specific issues
|
|
68076
|
-
- **Actionable fixes
|
|
68077
|
-
- **Clear reasoning
|
|
68078
|
-
- **Avoid generic advice
|
|
68091
|
+
- **Specific issues:** Point to exact problems in the changed code with accurate line references from the annotations.
|
|
68092
|
+
- **Actionable fixes:** Provide concrete solutions, not vague suggestions.
|
|
68093
|
+
- **Clear reasoning:** Explain why each issue matters and how to fix it.
|
|
68094
|
+
- **Avoid generic advice** unless directly tied to a specific problem visible in the diff.
|
|
68079
68095
|
|
|
68080
68096
|
## What NOT to review
|
|
68081
|
-
-
|
|
68082
|
-
-
|
|
68083
|
-
-
|
|
68084
|
-
- Missing features or functionality not part of this diff
|
|
68097
|
+
- Files excluded by the "File Selection for git_diff" rules (do not diff or comment on them).
|
|
68098
|
+
- Existing unchanged code.
|
|
68099
|
+
- Overall project structure/architecture unless directly impacted by the changes.
|
|
68100
|
+
- Missing features or functionality not part of this diff.
|
|
68085
68101
|
|
|
68086
68102
|
## Output Format
|
|
68087
|
-
Do
|
|
68103
|
+
Do not include praise or positive feedback.
|
|
68088
68104
|
Only include reviews for actual issues found in the changed code.
|
|
68089
68105
|
|
|
68090
68106
|
Return your review as a JSON object inside a \`\`\`json block, wrapped like:
|
|
@@ -68092,7 +68108,7 @@ Return your review as a JSON object inside a \`\`\`json block, wrapped like:
|
|
|
68092
68108
|
<tool_parameter_result>
|
|
68093
68109
|
\`\`\`json
|
|
68094
68110
|
{
|
|
68095
|
-
"overview": "Summary of specific issues found in the diff changes,
|
|
68111
|
+
"overview": "Summary of specific issues found in the diff changes, 'No issues found', or 'No reviewable changes' if all modified files were excluded.",
|
|
68096
68112
|
"specificReviews": [
|
|
68097
68113
|
{
|
|
68098
68114
|
"file": "path/filename.ext",
|