@gaunt-sloth/review 0.0.3 → 0.0.4
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 +18 -0
- package/cli.js +3 -1
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -15,6 +15,24 @@ Review and question-answering functionality for Gaunt Sloth.
|
|
|
15
15
|
|
|
16
16
|
The package ships a standalone binary `gaunt-sloth-review` for CI-friendly reviews that does not depend on `commander`. This makes it suitable for embedding in pipelines where a minimal footprint is preferred.
|
|
17
17
|
|
|
18
|
+
```bash
|
|
19
|
+
gaunt-sloth-review <pr-number> [requirement-ids...]
|
|
20
|
+
gaunt-sloth-review --version
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Identity profiles
|
|
24
|
+
|
|
25
|
+
To use a different config profile (e.g. separate provider/auth for CI vs local),
|
|
26
|
+
set the `GSLOTH_IDENTITY_PROFILE` environment variable:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
GSLOTH_IDENTITY_PROFILE=review gaunt-sloth-review 123
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
This loads config from `.gsloth-settings/review/` instead of the default
|
|
33
|
+
`.gsloth/` directory. Useful when CI uses different credentials or a different
|
|
34
|
+
LLM provider than local development.
|
|
35
|
+
|
|
18
36
|
## Dependencies
|
|
19
37
|
|
|
20
38
|
- `@gaunt-sloth/core` (required)
|
package/cli.js
CHANGED
|
@@ -30,7 +30,9 @@ import { buildSystemMessages } from '@gaunt-sloth/core/utils/llmUtils.js';
|
|
|
30
30
|
|
|
31
31
|
async function main() {
|
|
32
32
|
try {
|
|
33
|
-
const config = await initConfig({
|
|
33
|
+
const config = await initConfig({
|
|
34
|
+
identityProfile: process.env.GSLOTH_IDENTITY_PROFILE,
|
|
35
|
+
});
|
|
34
36
|
|
|
35
37
|
// First arg is content (e.g. PR number), rest are requirements
|
|
36
38
|
const contentArg = args[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaunt-sloth/review",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Review functionality for Gaunt Sloth",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Andrew Kondratev",
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
"url": "https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/issues"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/tree/main/packages/review#readme",
|
|
16
|
-
"keywords": [
|
|
16
|
+
"keywords": [
|
|
17
|
+
"ai",
|
|
18
|
+
"agent",
|
|
19
|
+
"llm",
|
|
20
|
+
"code-review",
|
|
21
|
+
"cli"
|
|
22
|
+
],
|
|
17
23
|
"type": "module",
|
|
18
24
|
"main": "dist/index.js",
|
|
19
25
|
"types": "dist/index.d.ts",
|