@synmux/claude-commit 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synmux/claude-commit",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Generate git commit messages with Claude, using your Claude Code subscription.",
5
5
  "main": "index.ts",
6
6
  "module": "index.ts",
package/src/cli.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  * non-interactive and interactive flows.
4
4
  */
5
5
  import { Command } from "commander";
6
+ import { getVersion } from "./utils";
6
7
  import {
7
8
  commit,
8
9
  getStagedDiff,
@@ -20,7 +21,7 @@ import { color } from "./ui/colors";
20
21
  import { ClaudeCommitError } from "./errors";
21
22
  import type { ModelConfig, PartialConfig } from "./types";
22
23
 
23
- export const VERSION = "0.1.0";
24
+ export const VERSION = getVersion();
24
25
 
25
26
  interface CliOptions {
26
27
  interactive?: boolean;
package/src/utils.ts ADDED
@@ -0,0 +1,5 @@
1
+ import packageJson from "../package.json";
2
+
3
+ export const getVersion = () => {
4
+ return packageJson.version;
5
+ };