@gaunt-sloth/review 0.0.3 → 0.1.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 CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  Review and question-answering functionality for Gaunt Sloth.
4
4
 
5
+ ## Installation
6
+
7
+ This package does not include any AI provider packages. This is by design to
8
+ keep the install minimal and avoid pulling in providers you don't use. Install
9
+ the review package together with the provider required by your configuration:
10
+
11
+ ```bash
12
+ # OpenRouter / OpenAI
13
+ npm install -g @gaunt-sloth/review @langchain/openai
14
+
15
+ # Google (Vertex AI / AI Studio)
16
+ npm install -g @gaunt-sloth/review @langchain/google
17
+
18
+ # Anthropic
19
+ npm install -g @gaunt-sloth/review @langchain/anthropic
20
+
21
+ # Groq
22
+ npm install -g @gaunt-sloth/review @langchain/groq
23
+ ```
24
+
25
+ See [`@gaunt-sloth/core`](../core) for the full list of supported providers.
26
+
5
27
  ## Contents
6
28
 
7
29
  - Review module (`reviewModule`) — diff and content review orchestration
@@ -15,6 +37,24 @@ Review and question-answering functionality for Gaunt Sloth.
15
37
 
16
38
  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
39
 
40
+ ```bash
41
+ gaunt-sloth-review <pr-number> [requirement-ids...]
42
+ gaunt-sloth-review --version
43
+ ```
44
+
45
+ ### Identity profiles
46
+
47
+ To use a different config profile (e.g. separate provider/auth for CI vs local),
48
+ set the `GSLOTH_IDENTITY_PROFILE` environment variable:
49
+
50
+ ```bash
51
+ GSLOTH_IDENTITY_PROFILE=review gaunt-sloth-review 123
52
+ ```
53
+
54
+ This loads config from `.gsloth-settings/review/` instead of the default
55
+ `.gsloth/` directory. Useful when CI uses different credentials or a different
56
+ LLM provider than local development.
57
+
18
58
  ## Dependencies
19
59
 
20
60
  - `@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",
3
+ "version": "0.1.0",
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": ["ai", "agent", "llm", "code-review", "cli"],
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",
@@ -28,7 +34,7 @@
28
34
  "#src/*.js": "./dist/*.js"
29
35
  },
30
36
  "dependencies": {
31
- "@gaunt-sloth/core": "^0.0.3"
37
+ "@gaunt-sloth/core": "^0.1.0"
32
38
  },
33
39
  "peerDependencies": {
34
40
  "@gaunt-sloth/tools": "^0.0.1"
package/dist/config.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/config.js';
package/dist/config.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/config.js';
2
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/constants.js';
package/dist/constants.js DELETED
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/constants.js';
2
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- export { GthAgentRunner } from '@gaunt-sloth/core/core/GthAgentRunner.js';
@@ -1,2 +0,0 @@
1
- export { GthAgentRunner } from '@gaunt-sloth/core/core/GthAgentRunner.js';
2
- //# sourceMappingURL=GthAgentRunner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GthAgentRunner.js","sourceRoot":"","sources":["../../src/core/GthAgentRunner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/core/types.js';
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/core/types.js';
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/state/artifactStore.js';
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/state/artifactStore.js';
2
- //# sourceMappingURL=artifactStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifactStore.js","sourceRoot":"","sources":["../../src/state/artifactStore.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/ProgressIndicator.js';
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/ProgressIndicator.js';
2
- //# sourceMappingURL=ProgressIndicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProgressIndicator.js","sourceRoot":"","sources":["../../src/utils/ProgressIndicator.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/consoleUtils.js';
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/consoleUtils.js';
2
- //# sourceMappingURL=consoleUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consoleUtils.js","sourceRoot":"","sources":["../../src/utils/consoleUtils.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/debugUtils.js';
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/debugUtils.js';
2
- //# sourceMappingURL=debugUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debugUtils.js","sourceRoot":"","sources":["../../src/utils/debugUtils.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/llmUtils.js';
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/llmUtils.js';
2
- //# sourceMappingURL=llmUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"llmUtils.js","sourceRoot":"","sources":["../../src/utils/llmUtils.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/stringUtils.js';
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/stringUtils.js';
2
- //# sourceMappingURL=stringUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stringUtils.js","sourceRoot":"","sources":["../../src/utils/stringUtils.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}
@@ -1 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/systemUtils.js';
@@ -1,2 +0,0 @@
1
- export * from '@gaunt-sloth/core/utils/systemUtils.js';
2
- //# sourceMappingURL=systemUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"systemUtils.js","sourceRoot":"","sources":["../../src/utils/systemUtils.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}