openspec-stat 1.3.1 → 1.3.2
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/dist/cjs/cli.js +1 -1
- package/dist/cjs/git-analyzer.js +3 -1
- package/dist/esm/cli.js +1 -1
- package/dist/esm/git-analyzer.js +2 -1
- package/package.json +1 -1
package/dist/cjs/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ var import_single = require("./commands/single.js");
|
|
|
6
6
|
var import_multi = require("./commands/multi.js");
|
|
7
7
|
var import_init = require("./commands/init.js");
|
|
8
8
|
var program = new import_commander.Command();
|
|
9
|
-
program.name("openspec-stat").description("Track team members' OpenSpec proposals and code changes in Git repositories").version("1.3.
|
|
9
|
+
program.name("openspec-stat").description("Track team members' OpenSpec proposals and code changes in Git repositories").version("1.3.2").enablePositionalOptions().passThroughOptions();
|
|
10
10
|
program.argument("[repo]", "Repository path", ".").option("-r, --repo <path>", "Repository path (alternative)", ".").option("-b, --branches <branches>", "Branch list, comma-separated").option("--no-interactive", "Disable interactive branch selection").option("-s, --since <datetime>", "Start time (default: yesterday 20:00)").option("-u, --until <datetime>", "End time (default: today 20:00)").option("-a, --author <name>", "Filter by specific author").option("--json", "Output in JSON format").option("--csv", "Output in CSV format").option("--markdown", "Output in Markdown format").option("-c, --config <path>", "Configuration file path").option("-v, --verbose", "Verbose output mode").option("-l, --lang <language>", "Language for output (en, zh-CN)", "en").option("--no-fetch", "Skip fetching remote branches").action(async (repo, options) => {
|
|
11
11
|
await (0, import_single.runSingleRepoCommand)({ ...options, repo: repo || options.repo || "." });
|
|
12
12
|
});
|
package/dist/cjs/git-analyzer.js
CHANGED
|
@@ -50,7 +50,9 @@ var GitAnalyzer = class {
|
|
|
50
50
|
const untilStr = until.toISOString();
|
|
51
51
|
const logOptions = {
|
|
52
52
|
"--since": sinceStr,
|
|
53
|
-
"--until": untilStr
|
|
53
|
+
"--until": untilStr,
|
|
54
|
+
"--no-merges": null
|
|
55
|
+
// 排除 merge commits 避免重复统计
|
|
54
56
|
};
|
|
55
57
|
if (branches.length > 0) {
|
|
56
58
|
delete logOptions["--all"];
|
package/dist/esm/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import { runSingleRepoCommand } from "./commands/single.js";
|
|
|
13
13
|
import { runMultiRepoCommand } from "./commands/multi.js";
|
|
14
14
|
import { runInitCommand } from "./commands/init.js";
|
|
15
15
|
var program = new Command();
|
|
16
|
-
program.name('openspec-stat').description("Track team members' OpenSpec proposals and code changes in Git repositories").version("1.3.
|
|
16
|
+
program.name('openspec-stat').description("Track team members' OpenSpec proposals and code changes in Git repositories").version("1.3.2").enablePositionalOptions().passThroughOptions();
|
|
17
17
|
|
|
18
18
|
// Default command for single-repository mode (for backward compatibility)
|
|
19
19
|
program.argument('[repo]', 'Repository path', '.').option('-r, --repo <path>', 'Repository path (alternative)', '.').option('-b, --branches <branches>', 'Branch list, comma-separated').option('--no-interactive', 'Disable interactive branch selection').option('-s, --since <datetime>', 'Start time (default: yesterday 20:00)').option('-u, --until <datetime>', 'End time (default: today 20:00)').option('-a, --author <name>', 'Filter by specific author').option('--json', 'Output in JSON format').option('--csv', 'Output in CSV format').option('--markdown', 'Output in Markdown format').option('-c, --config <path>', 'Configuration file path').option('-v, --verbose', 'Verbose output mode').option('-l, --lang <language>', 'Language for output (en, zh-CN)', 'en').option('--no-fetch', 'Skip fetching remote branches').action( /*#__PURE__*/function () {
|
package/dist/esm/git-analyzer.js
CHANGED
|
@@ -64,7 +64,8 @@ export var GitAnalyzer = /*#__PURE__*/function () {
|
|
|
64
64
|
untilStr = until.toISOString();
|
|
65
65
|
logOptions = {
|
|
66
66
|
'--since': sinceStr,
|
|
67
|
-
'--until': untilStr
|
|
67
|
+
'--until': untilStr,
|
|
68
|
+
'--no-merges': null // 排除 merge commits 避免重复统计
|
|
68
69
|
};
|
|
69
70
|
if (branches.length > 0) {
|
|
70
71
|
delete logOptions['--all'];
|