code-agent-auto-commit 1.1.0 → 1.1.1
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 +6 -0
- package/dist/cli.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -89,6 +89,7 @@ Usage:
|
|
|
89
89
|
cac status [--scope project|global] [--worktree <path>] [--config <path>]
|
|
90
90
|
cac run [--tool opencode|codex|claude|manual] [--worktree <path>] [--config <path>] [--event-json <json>] [--event-stdin]
|
|
91
91
|
cac set-worktree <path> [--config <path>]
|
|
92
|
+
cac version
|
|
92
93
|
`);
|
|
93
94
|
}
|
|
94
95
|
async function commandInit(flags) {
|
|
@@ -248,6 +249,11 @@ async function main() {
|
|
|
248
249
|
printHelp();
|
|
249
250
|
return;
|
|
250
251
|
}
|
|
252
|
+
if (command === "version" || command === "--version" || command === "-v") {
|
|
253
|
+
const pkg = JSON.parse(node_fs_1.default.readFileSync(node_path_1.default.join(__dirname, "..", "package.json"), "utf-8"));
|
|
254
|
+
console.log(pkg.version);
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
251
257
|
if (command === "init") {
|
|
252
258
|
await commandInit(parsed.flags);
|
|
253
259
|
return;
|
package/package.json
CHANGED