kodevu 0.1.7 → 0.1.8

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
@@ -92,7 +92,7 @@ Internal defaults:
92
92
  - Large diffs are truncated before being sent to the reviewer or written into the report once they exceed the configured line or character limits.
93
93
  - For Git targets and local SVN working copies, the reviewer command runs from the repository workspace so it can inspect related files beyond the diff when needed.
94
94
  - For remote SVN URLs without a local working copy, the review still relies on the diff and change metadata only.
95
- - SVN reports keep the `r123.md` naming style.
96
- - Git reports are written as `git-<short-commit-hash>.md`.
95
+ - SVN reports are written as `<YYYYMMDD-HHmmss>-svn-r<revision>.md`.
96
+ - Git reports are written as `<YYYYMMDD-HHmmss>-git-<short-commit-hash>.md`.
97
97
  - `~/.kodevu/state.json` stores per-project checkpoints keyed by repository identity; only the v2 multi-project structure is supported.
98
98
  - If the reviewer command exits non-zero or times out, the report is still written, but the state is not advanced so the change can be retried later.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodevu",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
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": {
@@ -13,7 +13,6 @@
13
13
  ],
14
14
  "scripts": {
15
15
  "start": "node src/index.js",
16
- "once": "node src/index.js",
17
16
  "check": "node --check src/index.js && node --check src/config.js && node --check src/review-runner.js && node --check src/svn-client.js && node --check src/git-client.js && node --check src/vcs-client.js && node --check src/shell.js"
18
17
  },
19
18
  "engines": {
package/src/vcs-client.js CHANGED
@@ -25,8 +25,17 @@ function createSvnBackend() {
25
25
  return `r${revision}`;
26
26
  },
27
27
  getReportFileName(revision) {
28
- return `r${revision}.md`;
28
+ const now = new Date();
29
+ const datePrefix = now.getFullYear() +
30
+ String(now.getMonth() + 1).padStart(2, '0') +
31
+ String(now.getDate()).padStart(2, '0') +
32
+ '-' +
33
+ String(now.getHours()).padStart(2, '0') +
34
+ String(now.getMinutes()).padStart(2, '0') +
35
+ String(now.getSeconds()).padStart(2, '0');
36
+ return `${datePrefix}-svn-r${revision}.md`;
29
37
  },
38
+
30
39
  async getTargetInfo(config) {
31
40
  return await svnClient.getTargetInfo(config);
32
41
  },
@@ -86,8 +95,17 @@ function createGitBackend() {
86
95
  return commitHash.slice(0, 12);
87
96
  },
88
97
  getReportFileName(commitHash) {
89
- return `git-${commitHash.slice(0, 12)}.md`;
98
+ const now = new Date();
99
+ const datePrefix = now.getFullYear() +
100
+ String(now.getMonth() + 1).padStart(2, '0') +
101
+ String(now.getDate()).padStart(2, '0') +
102
+ '-' +
103
+ String(now.getHours()).padStart(2, '0') +
104
+ String(now.getMinutes()).padStart(2, '0') +
105
+ String(now.getSeconds()).padStart(2, '0');
106
+ return `${datePrefix}-git-${commitHash.slice(0, 12)}.md`;
90
107
  },
108
+
91
109
  async getTargetInfo(config) {
92
110
  return await gitClient.getTargetInfo(config);
93
111
  },