kaniscope 0.27.0 → 0.31.0

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/config.d.ts CHANGED
@@ -109,6 +109,12 @@ export interface ReviewConfig {
109
109
  reanchorFindings?: boolean;
110
110
  /** Re-review automatically when a PR gets new commits. Off by default: pushing is the inner loop, and every round costs a full review. Default: `false`. (`REVIEW_ON_UPDATE`) */
111
111
  reviewOnUpdate?: boolean;
112
+ /** Ask the backend for N independent reviews and union the findings. One review pass is a sample, not a sweep: on a frozen commit consecutive reviews shared only 61-74% of their findings. Costs N times the tokens and wall clock; buys recall. Default: `1`. (`REVIEW_SAMPLES`) */
113
+ reviewSamples?: number;
114
+ /** How far apart two samples may anchor the same issue and still merge. Set from measurement: the same issue was observed 1, 7, 10, 12 and 39 lines from where another run reported it. The reconciler uses the same window for the same reason, since both answer whether two descriptions are one issue. Default: `10`. (`SAMPLE_LINE_TOLERANCE`) */
115
+ sampleLineTolerance?: number;
116
+ /** How many samples must report a finding for it to survive the merge. One (plain union) by default, because recall is the measured problem; raising it buys precision with the discoveries only one sample made. Default: `1`. (`SAMPLE_MIN_AGREEMENT`) */
117
+ sampleMinAgreement?: number;
112
118
  /** Second skeptical pass that removes false positives and low-value nits. Default: `true`. (`SELF_CRITIQUE`) */
113
119
  selfCritique?: boolean;
114
120
  /** Name the enclosing function or symbol of each changed line, via tree-sitter, with no clone. Default: `true`. (`STRUCTURAL_CONTEXT`) */
package/config.js CHANGED
@@ -55,6 +55,9 @@ const CONFIG_ENV = {
55
55
  prBodyMaxChars: ["PR_BODY_MAX_CHARS", "Int"],
56
56
  reanchorFindings: ["REANCHOR_FINDINGS", "Bool"],
57
57
  reviewOnUpdate: ["REVIEW_ON_UPDATE", "Bool"],
58
+ reviewSamples: ["REVIEW_SAMPLES", "Int"],
59
+ sampleLineTolerance: ["SAMPLE_LINE_TOLERANCE", "Int"],
60
+ sampleMinAgreement: ["SAMPLE_MIN_AGREEMENT", "Int"],
58
61
  selfCritique: ["SELF_CRITIQUE", "Bool"],
59
62
  structuralContext: ["STRUCTURAL_CONTEXT", "Bool"],
60
63
  structuralMaxFiles: ["STRUCTURAL_MAX_FILES", "Int"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaniscope",
3
- "version": "0.27.0",
3
+ "version": "0.31.0",
4
4
  "description": "AI pull-request reviewer — line-anchored inline comments plus a summary, for GitHub, GitLab and Bitbucket. Ships a native binary; no Rust toolchain required.",
5
5
  "keywords": [
6
6
  "code-review",
@@ -34,10 +34,10 @@
34
34
  "README.md"
35
35
  ],
36
36
  "optionalDependencies": {
37
- "@nhatvu148/kaniscope-darwin-arm64": "0.27.0",
38
- "@nhatvu148/kaniscope-darwin-x64": "0.27.0",
39
- "@nhatvu148/kaniscope-linux-arm64": "0.27.0",
40
- "@nhatvu148/kaniscope-linux-x64": "0.27.0",
41
- "@nhatvu148/kaniscope-win32-x64": "0.27.0"
37
+ "@nhatvu148/kaniscope-darwin-arm64": "0.31.0",
38
+ "@nhatvu148/kaniscope-darwin-x64": "0.31.0",
39
+ "@nhatvu148/kaniscope-linux-arm64": "0.31.0",
40
+ "@nhatvu148/kaniscope-linux-x64": "0.31.0",
41
+ "@nhatvu148/kaniscope-win32-x64": "0.31.0"
42
42
  }
43
43
  }