kodevu 0.1.39 → 0.1.40

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodevu",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Poll SVN revisions or Git commits, send each change diff to a reviewer CLI, and write configurable review reports.",
package/src/config.js CHANGED
@@ -1,8 +1,12 @@
1
1
  import fs from "node:fs/promises";
2
+ import { createRequire } from "node:module";
2
3
  import os from "node:os";
3
4
  import path from "node:path";
4
5
  import { findCommandOnPath } from "./shell.js";
5
6
 
7
+ const require = createRequire(import.meta.url);
8
+ const { version: packageVersion } = require("../package.json");
9
+
6
10
  const defaultStorageDir = path.join(os.homedir(), ".kodevu");
7
11
  const SUPPORTED_REVIEWERS = ["codex", "gemini", "copilot"];
8
12
 
@@ -256,7 +260,7 @@ export async function resolveConfig(cliArgs = {}) {
256
260
  }
257
261
 
258
262
  export function printHelp() {
259
- console.log(`Kodevu
263
+ console.log(`Kodevu v${packageVersion}
260
264
 
261
265
  Usage:
262
266
  npx kodevu [target] [options]