@gaunt-sloth/review 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. package/README.md +8 -0
  2. package/cli.js +11 -2
  3. package/package.json +12 -2
package/README.md CHANGED
@@ -29,3 +29,11 @@ import { reviewModule } from '@gaunt-sloth/review/reviewModule.js';
29
29
  import { questionAnsweringModule } from '@gaunt-sloth/review/questionAnsweringModule.js';
30
30
  import { commandUtils } from '@gaunt-sloth/review/commandUtils.js';
31
31
  ```
32
+
33
+ ## Related packages
34
+
35
+ - [`@gaunt-sloth/core`](../core) — Core utilities, config, and agent infrastructure
36
+ - [`@gaunt-sloth/tools`](../tools) — Built-in tools, filesystem toolkit, and middleware registry
37
+ - [`@gaunt-sloth/api`](../api) — API server, AG-UI, MCP, and A2A integration
38
+ - [`@gaunt-sloth/review`](../review) — Review and Q&A modules with standalone CLI (this package)
39
+ - [`gaunt-sloth-assistant`](../assistant) — Main CLI application
package/cli.js CHANGED
@@ -8,6 +8,17 @@
8
8
  * When called without arguments, reads diff from stdin via the configured content provider.
9
9
  */
10
10
 
11
+ import { createRequire } from 'node:module';
12
+
13
+ const args = process.argv.slice(2);
14
+
15
+ if (args.includes('--version') || args.includes('-v')) {
16
+ const require = createRequire(import.meta.url);
17
+ const { version } = require('./package.json');
18
+ console.log(version);
19
+ process.exit(0);
20
+ }
21
+
11
22
  import { setEntryPoint } from '@gaunt-sloth/core/utils/systemUtils.js';
12
23
  setEntryPoint(import.meta.url);
13
24
 
@@ -17,8 +28,6 @@ import { displayError } from '@gaunt-sloth/core/utils/consoleUtils.js';
17
28
  import { getContentFromSource, getRequirementsFromSource } from '#src/commands/commandUtils.js';
18
29
  import { buildSystemMessages } from '@gaunt-sloth/core/utils/llmUtils.js';
19
30
 
20
- const args = process.argv.slice(2);
21
-
22
31
  async function main() {
23
32
  try {
24
33
  const config = await initConfig({});
package/package.json CHANGED
@@ -1,9 +1,19 @@
1
1
  {
2
2
  "name": "@gaunt-sloth/review",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Review functionality for Gaunt Sloth",
5
5
  "license": "MIT",
6
6
  "author": "Andrew Kondratev",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant.git",
10
+ "directory": "packages/review"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/issues"
14
+ },
15
+ "homepage": "https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/tree/main/packages/review#readme",
16
+ "keywords": ["ai", "agent", "llm", "code-review", "cli"],
7
17
  "type": "module",
8
18
  "main": "dist/index.js",
9
19
  "types": "dist/index.d.ts",
@@ -18,7 +28,7 @@
18
28
  "#src/*.js": "./dist/*.js"
19
29
  },
20
30
  "dependencies": {
21
- "@gaunt-sloth/core": "^0.0.2"
31
+ "@gaunt-sloth/core": "^0.0.3"
22
32
  },
23
33
  "peerDependencies": {
24
34
  "@gaunt-sloth/tools": "^0.0.1"