forgehive 0.7.4 → 0.7.5

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/cli.js +12 -9
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5915,10 +5915,10 @@ function groupByType(commits) {
5915
5915
  }
5916
5916
  return groups;
5917
5917
  }
5918
- function formatChangelog(commits, version) {
5918
+ function formatChangelog(commits, version2) {
5919
5919
  const date = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
5920
5920
  const lines = [];
5921
- lines.push(`## [${version}] \u2014 ${date}`);
5921
+ lines.push(`## [${version2}] \u2014 ${date}`);
5922
5922
  lines.push("");
5923
5923
  if (commits.length === 0) {
5924
5924
  lines.push("No changes.");
@@ -6644,16 +6644,19 @@ function listExistingDocs(projectRoot2) {
6644
6644
  }
6645
6645
 
6646
6646
  // src/cli.ts
6647
+ import { createRequire } from "node:module";
6648
+ var require2 = createRequire(import.meta.url);
6649
+ var { version } = require2("../package.json");
6647
6650
  var [, , command, subcommand, ...rest] = process.argv;
6648
6651
  var projectRoot = process.cwd();
6649
6652
  var forgehiveDir = path32.join(projectRoot, ".forgehive");
6650
6653
  if (command === "--version" || command === "-v") {
6651
- console.log("0.7.3");
6654
+ console.log(version);
6652
6655
  process.exit(0);
6653
6656
  }
6654
6657
  if (command === "--help" || command === "-h" || command === "help") {
6655
6658
  console.log(`
6656
- forgehive v0.7.3 \u2014 Context-aware AI development environment
6659
+ forgehive v${version} \u2014 Context-aware AI development environment
6657
6660
 
6658
6661
  USAGE
6659
6662
  fh <command> [subcommand] [options]
@@ -7440,16 +7443,16 @@ Setze diese Umgebungsvariablen:`);
7440
7443
  const since = sinceArg ?? getLatestTag(projectRoot) ?? void 0;
7441
7444
  const rawLog = getGitLogSince(projectRoot, since);
7442
7445
  const commits = parseGitLog(rawLog);
7443
- let version = "unreleased";
7446
+ let version2 = "unreleased";
7444
7447
  try {
7445
7448
  const pkgPath = path32.join(projectRoot, "package.json");
7446
7449
  if (fs31.existsSync(pkgPath)) {
7447
7450
  const pkg = JSON.parse(fs31.readFileSync(pkgPath, "utf8").replace(/^\s*\/\/.*$/gm, ""));
7448
- version = pkg.version ?? "unreleased";
7451
+ version2 = pkg.version ?? "unreleased";
7449
7452
  }
7450
7453
  } catch {
7451
7454
  }
7452
- const md = formatChangelog(commits, version);
7455
+ const md = formatChangelog(commits, version2);
7453
7456
  const outputPath = outputArg ?? path32.join(projectRoot, "CHANGELOG.md");
7454
7457
  let existing = "";
7455
7458
  if (fs31.existsSync(outputPath)) existing = fs31.readFileSync(outputPath, "utf8");
@@ -7662,8 +7665,8 @@ Setze diese Umgebungsvariablen:`);
7662
7665
  pkg = JSON.parse(fs31.readFileSync(path32.join(projectRoot, "package.json"), "utf8"));
7663
7666
  } catch {
7664
7667
  }
7665
- const version = pkg.version ?? "unreleased";
7666
- const md = formatChangelog(commits, version);
7668
+ const version2 = pkg.version ?? "unreleased";
7669
+ const md = formatChangelog(commits, version2);
7667
7670
  const outputPath = outputArg ?? path32.join(projectRoot, "CHANGELOG.md");
7668
7671
  let existing = "";
7669
7672
  if (fs31.existsSync(outputPath)) existing = fs31.readFileSync(outputPath, "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgehive",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Context-aware AI development environment — one binary, your stack.",
5
5
  "type": "module",
6
6
  "bin": {