change-log-agent 1.2.1 → 1.2.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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { readFileSync } from "node:fs";
2
3
  import { Command } from "commander";
3
4
  import chalk from "chalk";
4
5
  import { execa } from "execa";
@@ -150,8 +151,9 @@ async function confirmPrompt(message) {
150
151
 
151
152
  //#endregion
152
153
  //#region src/index.ts
154
+ const { version } = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
153
155
  const program = new Command();
154
- program.name("log-agent").description("AI-Powered Agentic Documentation CLI").version("0.1.0");
156
+ program.name("log-agent").description("AI-Powered Agentic Documentation CLI").version(version);
155
157
  async function syncAction(options) {
156
158
  const { target: targetFile, since, dryRun, yes: autoYes } = options;
157
159
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "change-log-agent",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "AI-powered CLI that syncs git commit history to project documentation via Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",