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 CHANGED
@@ -24,6 +24,12 @@
24
24
  pnpm add -g code-agent-auto-commit
25
25
  ```
26
26
 
27
+ To update to the latest version:
28
+
29
+ ```bash
30
+ pnpm update -g code-agent-auto-commit
31
+ ```
32
+
27
33
  Then use the short command:
28
34
 
29
35
  ```bash
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-agent-auto-commit",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CAC provides configurable AI auto-commit(using your git account) for OpenCode, Claude Code, Codex, and other AI code agents",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",