kodevu 0.1.4 → 0.1.5

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
@@ -4,7 +4,7 @@ A Node.js tool that polls new SVN revisions or Git commits, fetches each change
4
4
 
5
5
  ## Workflow
6
6
 
7
- 1. Detect the configured repository type, or use the explicit `vcs` setting.
7
+ 1. Detect the repository type automatically (Git or SVN).
8
8
  2. Read the latest change from `target`.
9
9
  3. Find changes that have not been reviewed yet.
10
10
  4. For each change:
@@ -64,7 +64,6 @@ npx kodevu --config ./config.current.json --once
64
64
  ## Config
65
65
 
66
66
  - `target`: required repository target
67
- - `vcs`: `auto`, `svn`, or `git`; default `auto`
68
67
  - `reviewer`: `codex` or `gemini`; default `codex`
69
68
  - `pollCron`: cron schedule, default every 10 minutes
70
69
  - `reviewPrompt`: saved into the report as review context
@@ -81,7 +80,7 @@ Internal defaults:
81
80
 
82
81
  - For SVN, `target` can be a working copy path or repository URL.
83
82
  - For Git, `target` must be a local repository path or a subdirectory inside a local repository.
84
- - When `vcs` is `auto`, the tool tries Git first for existing local paths, then falls back to SVN.
83
+ - The tool tries Git first for existing local paths, then falls back to SVN.
85
84
  - Legacy `svnTarget` is still accepted for backward compatibility.
86
85
 
87
86
  ## Notes
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "target": "C:/path/to/your/repository-or-subdirectory",
3
- "vcs": "auto",
4
3
  "reviewer": "codex",
5
4
  "pollCron": "*/10 * * * *",
6
5
  "reviewPrompt": "请严格审查当前变更,优先指出 bug、回归风险、兼容性问题、安全问题、边界条件缺陷和缺失测试。请使用简体中文输出 Markdown;如果没有明确缺陷,请写“未发现明确缺陷”,并补充剩余风险。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodevu",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "Poll SVN revisions or Git commits, send each change diff to a reviewer CLI, and write Markdown review reports.",
6
6
  "bin": {
package/src/config.js CHANGED
@@ -4,7 +4,6 @@ import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
 
6
6
  const defaultConfig = {
7
- vcs: "auto",
8
7
  reviewer: "codex",
9
8
  target: "",
10
9
  pollCron: "*/10 * * * *",
@@ -80,14 +79,9 @@ export async function loadConfig(configPath, cliArgs = {}) {
80
79
  throw new Error(`Missing required config field "target" (or legacy "svnTarget") in ${absoluteConfigPath}`);
81
80
  }
82
81
 
83
- config.vcs = String(config.vcs || "auto").toLowerCase();
84
82
  config.reviewer = String(config.reviewer || "codex").toLowerCase();
85
83
  config.debug = Boolean(cliArgs.debug);
86
84
 
87
- if (!["auto", "svn", "git"].includes(config.vcs)) {
88
- throw new Error(`"vcs" must be one of "auto", "svn", or "git" in ${absoluteConfigPath}`);
89
- }
90
-
91
85
  if (!["codex", "gemini"].includes(config.reviewer)) {
92
86
  throw new Error(`"reviewer" must be one of "codex" or "gemini" in ${absoluteConfigPath}`);
93
87
  }
@@ -126,7 +120,6 @@ Options:
126
120
  --help, -h Show help
127
121
 
128
122
  Config highlights:
129
- vcs auto | svn | git
130
123
  reviewer codex | gemini
131
124
  target Repository target path (Git) or SVN working copy / URL
132
125
  `);
package/src/index.js CHANGED
@@ -36,7 +36,6 @@ if (config.debug) {
36
36
  console.error(
37
37
  `[debug] Loaded config: ${JSON.stringify({
38
38
  configPath: config.configPath,
39
- vcs: config.vcs,
40
39
  reviewer: config.reviewer,
41
40
  target: config.target,
42
41
  pollCron: config.pollCron,
package/src/vcs-client.js CHANGED
@@ -144,20 +144,6 @@ const backends = {
144
144
  };
145
145
 
146
146
  export async function resolveRepositoryContext(config) {
147
- if (config.vcs === "svn") {
148
- return {
149
- backend: backends.svn,
150
- targetInfo: await backends.svn.getTargetInfo(config)
151
- };
152
- }
153
-
154
- if (config.vcs === "git") {
155
- return {
156
- backend: backends.git,
157
- targetInfo: await backends.git.getTargetInfo(config)
158
- };
159
- }
160
-
161
147
  const candidateTargetPath = path.resolve(config.baseDir, config.target);
162
148
 
163
149
  if (!isLikelyUrl(config.target) && (await pathExists(candidateTargetPath))) {