forge-workflow 1.4.4 → 1.4.6

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/bin/forge.js +13 -7
  2. package/package.json +1 -1
package/bin/forge.js CHANGED
@@ -1,9 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Forge v1.4.3 - Universal AI Agent Workflow
4
+ * Forge - Universal AI Agent Workflow
5
5
  * https://github.com/harshanandak/forge
6
6
  *
7
+ * Version is automatically read from package.json
8
+ *
7
9
  * Usage:
8
10
  * npm install forge-workflow -> Minimal install (AGENTS.md + docs)
9
11
  * npx forge setup -> Interactive agent configuration
@@ -35,9 +37,13 @@ const path = require('path');
35
37
  const readline = require('readline');
36
38
  const { execSync } = require('child_process');
37
39
 
38
- // Get the project root and package directory
39
- const projectRoot = process.env.INIT_CWD || process.cwd();
40
+ // Get version from package.json (single source of truth)
40
41
  const packageDir = path.dirname(__dirname);
42
+ const packageJson = require(path.join(packageDir, 'package.json'));
43
+ const VERSION = packageJson.version;
44
+
45
+ // Get the project root
46
+ const projectRoot = process.env.INIT_CWD || process.cwd();
41
47
  const args = process.argv.slice(2);
42
48
 
43
49
  // Detected package manager
@@ -1458,7 +1464,7 @@ function showBanner(subtitle = 'Universal AI Agent Workflow') {
1458
1464
  console.log(' ██╔══╝ ██║ ██║██╔══██╗██║ ██║██╔══╝ ');
1459
1465
  console.log(' ██║ ╚██████╔╝██║ ██║╚██████╔╝███████╗');
1460
1466
  console.log(' ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝');
1461
- console.log(' v1.4.4');
1467
+ console.log(` v${VERSION}`);
1462
1468
  console.log('');
1463
1469
  if (subtitle) {
1464
1470
  console.log(` ${subtitle}`);
@@ -1964,7 +1970,7 @@ async function interactiveSetup() {
1964
1970
  // =============================================
1965
1971
  console.log('');
1966
1972
  console.log('==============================================');
1967
- console.log(' Forge v1.4.3 Setup Complete!');
1973
+ console.log(` Forge v${VERSION} Setup Complete!`);
1968
1974
  console.log('==============================================');
1969
1975
  console.log('');
1970
1976
  console.log('What\'s installed:');
@@ -2207,7 +2213,7 @@ async function quickSetup(selectedAgents, skipExternal) {
2207
2213
  // Final summary
2208
2214
  console.log('');
2209
2215
  console.log('==============================================');
2210
- console.log(' Forge v1.4.3 Quick Setup Complete!');
2216
+ console.log(` Forge v${VERSION} Quick Setup Complete!`);
2211
2217
  console.log('==============================================');
2212
2218
  console.log('');
2213
2219
  console.log('Next steps:');
@@ -2467,7 +2473,7 @@ async function interactiveSetupWithFlags(flags) {
2467
2473
  // =============================================
2468
2474
  console.log('');
2469
2475
  console.log('==============================================');
2470
- console.log(' Forge v1.4.3 Setup Complete!');
2476
+ console.log(` Forge v${VERSION} Setup Complete!`);
2471
2477
  console.log('==============================================');
2472
2478
  console.log('');
2473
2479
  console.log('What\'s installed:');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-workflow",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "9-stage TDD workflow for ALL AI coding agents (Claude, Cursor, Windsurf, Kilo, OpenCode, Copilot, Cline, Roo, Aider, Continue, Antigravity)",
5
5
  "bin": {
6
6
  "forge": "bin/forge.js"