@iservu-inc/adf-cli 0.5.3 → 0.5.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/CHANGELOG.md +41 -0
- package/bin/adf.js +16 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,47 @@ All notable changes to `@iservu-inc/adf-cli` will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.5.4] - 2025-10-05
|
|
9
|
+
|
|
10
|
+
### ✨ Enhanced Version & Help Display
|
|
11
|
+
|
|
12
|
+
**FIX:** Installation info now reliably shows when users run the CLI.
|
|
13
|
+
|
|
14
|
+
#### What Changed
|
|
15
|
+
|
|
16
|
+
The v0.5.2 postinstall script didn't reliably show during global installs/updates. Now installation info appears when users actually use the CLI:
|
|
17
|
+
|
|
18
|
+
**`adf --version` output:**
|
|
19
|
+
```
|
|
20
|
+
ADF CLI
|
|
21
|
+
Version: v0.5.4
|
|
22
|
+
Install Path: /usr/local/lib/node_modules/@iservu-inc/adf-cli
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**`adf --help` or `adf` (no args) output:**
|
|
26
|
+
```
|
|
27
|
+
ADF CLI v0.5.4
|
|
28
|
+
Install Path: /usr/local/lib/node_modules/@iservu-inc/adf-cli
|
|
29
|
+
|
|
30
|
+
Usage: adf [options] [command]
|
|
31
|
+
...
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
#### Why This Matters
|
|
35
|
+
|
|
36
|
+
- ✅ **Reliable**: Shows every time, not just during install
|
|
37
|
+
- ✅ **User-triggered**: Appears when users need it
|
|
38
|
+
- ✅ **Troubleshooting**: Easy to see version and install location
|
|
39
|
+
- ✅ **Better UX**: Works with `npm update -g` and `npm i -g`
|
|
40
|
+
|
|
41
|
+
#### Technical Changes
|
|
42
|
+
|
|
43
|
+
- Modified: `bin/adf.js` - Custom version handler + help text
|
|
44
|
+
- Kept: `lib/utils/postinstall.js` - Still shows for local installs
|
|
45
|
+
- Note: `postinstall` scripts are often suppressed in global installs for performance
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
8
49
|
## [0.5.3] - 2025-10-05
|
|
9
50
|
|
|
10
51
|
### 🔧 Dependency Updates & Warning Fixes
|
package/bin/adf.js
CHANGED
|
@@ -2,8 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
const { Command } = require('commander');
|
|
4
4
|
const chalk = require('chalk');
|
|
5
|
+
const path = require('path');
|
|
5
6
|
const packageJson = require('../package.json');
|
|
6
7
|
|
|
8
|
+
// Check for version flag before commander parses
|
|
9
|
+
if (process.argv.includes('-v') || process.argv.includes('--version')) {
|
|
10
|
+
const adfInstallPath = path.resolve(__dirname, '..');
|
|
11
|
+
console.log('');
|
|
12
|
+
console.log(chalk.cyan.bold('ADF CLI'));
|
|
13
|
+
console.log(chalk.gray('Version: ') + chalk.white.bold(`v${packageJson.version}`));
|
|
14
|
+
console.log(chalk.gray('Install Path:') + chalk.white(` ${adfInstallPath}`));
|
|
15
|
+
console.log('');
|
|
16
|
+
process.exit(0);
|
|
17
|
+
}
|
|
18
|
+
|
|
7
19
|
const initCommand = require('../lib/commands/init');
|
|
8
20
|
const deployCommand = require('../lib/commands/deploy');
|
|
9
21
|
const updateCommand = require('../lib/commands/update');
|
|
@@ -14,7 +26,10 @@ const program = new Command();
|
|
|
14
26
|
program
|
|
15
27
|
.name('adf')
|
|
16
28
|
.description('AgentDevFramework CLI - AI-assisted development framework')
|
|
17
|
-
.
|
|
29
|
+
.addHelpText('before', () => {
|
|
30
|
+
const adfInstallPath = path.resolve(__dirname, '..');
|
|
31
|
+
return `\n${chalk.cyan.bold('ADF CLI')} ${chalk.gray(`v${packageJson.version}`)}\n${chalk.gray('Install Path:')} ${chalk.white(adfInstallPath)}\n`;
|
|
32
|
+
});
|
|
18
33
|
|
|
19
34
|
// adf init
|
|
20
35
|
program
|
|
@@ -55,8 +70,3 @@ program.on('command:*', () => {
|
|
|
55
70
|
|
|
56
71
|
// Parse arguments
|
|
57
72
|
program.parse(process.argv);
|
|
58
|
-
|
|
59
|
-
// Show help if no command provided
|
|
60
|
-
if (!process.argv.slice(2).length) {
|
|
61
|
-
program.outputHelp();
|
|
62
|
-
}
|