ghagga-core 3.5.0 → 3.6.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/README.md +11 -11
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -17,28 +17,28 @@ import { reviewPipeline, DEFAULT_SETTINGS } from '@ghagga/core';
|
|
|
17
17
|
|
|
18
18
|
const result = await reviewPipeline({
|
|
19
19
|
diff: '...unified diff string...',
|
|
20
|
-
mode: 'simple',
|
|
21
|
-
provider: 'gateway',
|
|
20
|
+
mode: 'simple', // simple | workflow | consensus | diagnostic | fan-out | hybrid-4r
|
|
21
|
+
provider: 'gateway', // gateway | cli-bridge | ollama
|
|
22
22
|
model: 'auto',
|
|
23
23
|
apiKey: process.env.GHAGGA_API_KEY!,
|
|
24
24
|
settings: DEFAULT_SETTINGS,
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
console.log(result.status);
|
|
27
|
+
console.log(result.status); // 'PASSED' | 'FAILED' | 'NEEDS_HUMAN_REVIEW'
|
|
28
28
|
console.log(result.summary);
|
|
29
29
|
console.log(result.findings);
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Review Modes
|
|
33
33
|
|
|
34
|
-
| Mode
|
|
35
|
-
|
|
36
|
-
| **simple**
|
|
37
|
-
| **workflow**
|
|
38
|
-
| **consensus**
|
|
39
|
-
| **diagnostic** | varies
|
|
40
|
-
| **fan-out**
|
|
41
|
-
| **hybrid-4r**
|
|
34
|
+
| Mode | LLM Calls | Best For |
|
|
35
|
+
| -------------- | --------- | ---------------------------------------------------------------------- |
|
|
36
|
+
| **simple** | 1 | Small PRs, quick feedback |
|
|
37
|
+
| **workflow** | 6 | Thorough review with 5 specialist agents + synthesis |
|
|
38
|
+
| **consensus** | 3 | Three stances plus an algorithmic vote. A split vote is `INCONCLUSIVE` |
|
|
39
|
+
| **diagnostic** | varies | Ranked hypotheses with verification steps |
|
|
40
|
+
| **fan-out** | ~5 | Parallel lenses, merged by severity |
|
|
41
|
+
| **hybrid-4r** | ~5 | Fan-out with `pinLensesToFirst` forced on |
|
|
42
42
|
|
|
43
43
|
## Providers
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghagga-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Core review engine for GHAGGA — AI-powered multi-agent code reviewer",
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
"README.md"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@ai-sdk/openai": "^4.0.
|
|
44
|
-
"@ai-sdk/openai-compatible": "^3.0.
|
|
45
|
-
"@bufbuild/protobuf": "^2.
|
|
46
|
-
"@cursorless/tree-sitter-wasms": "^0.
|
|
43
|
+
"@ai-sdk/openai": "^4.0.99",
|
|
44
|
+
"@ai-sdk/openai-compatible": "^3.0.75",
|
|
45
|
+
"@bufbuild/protobuf": "^2.16.0",
|
|
46
|
+
"@cursorless/tree-sitter-wasms": "^0.12.0",
|
|
47
47
|
"@scip-code/scip": "^0.10.0",
|
|
48
|
-
"ai": "^7.0.
|
|
48
|
+
"ai": "^7.0.148",
|
|
49
49
|
"fts5-sql-bundle": "^1.0.2",
|
|
50
50
|
"minimatch": "^10.2.6",
|
|
51
|
-
"web-tree-sitter": "^0.27.
|
|
52
|
-
"zod": "^4.6.
|
|
51
|
+
"web-tree-sitter": "^0.27.1",
|
|
52
|
+
"zod": "^4.6.7"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@stryker-mutator/core": "^10.
|
|
56
|
-
"@stryker-mutator/vitest-runner": "^10.
|
|
55
|
+
"@stryker-mutator/core": "^10.1.1",
|
|
56
|
+
"@stryker-mutator/vitest-runner": "^10.1.1",
|
|
57
57
|
"@types/node": "^26.6.1",
|
|
58
58
|
"typescript": "^7.0.2",
|
|
59
|
-
"vitest": "^5.0.
|
|
59
|
+
"vitest": "^5.0.5"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsc && node scripts/copy-assets.mjs",
|