codeforge-cli 0.1.1 → 0.1.3

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": "codeforge-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Terminal-first AI coding agent that works with any IDE. Think Cursor, but for your terminal.",
5
5
  "keywords": [
6
6
  "ai",
@@ -13,7 +13,8 @@ const { execSync } = require('child_process');
13
13
 
14
14
  // Configuration - Use Cloudflare R2 as CDN
15
15
  const DOWNLOAD_BASE = process.env.FORGE_DOWNLOAD_URL || 'https://pub-63b4afd13ea24e6f94f86d0b7f3a802c.r2.dev/forge-cli';
16
- const VERSION = require('../package.json').version;
16
+ // Always download from 'latest' - the release workflow updates this folder
17
+ const VERSION = 'latest';
17
18
  const BIN_DIR = path.join(__dirname, '..', 'bin');
18
19
  const LIB_DIR = path.join(__dirname, '..', 'lib');
19
20
 
@@ -134,7 +135,8 @@ async function main() {
134
135
  // Construct download URL
135
136
  const ext = platform === 'windows' ? 'zip' : 'tar.gz';
136
137
  const archiveName = `forge-${platform}-${arch}.${ext}`;
137
- const downloadUrl = `${DOWNLOAD_BASE}/v${VERSION}/${archiveName}`;
138
+ // Use 'latest' folder directly (no 'v' prefix)
139
+ const downloadUrl = `${DOWNLOAD_BASE}/${VERSION}/${archiveName}`;
138
140
  const archivePath = path.join(LIB_DIR, archiveName);
139
141
 
140
142
  // Download