@foxden-app/foxclaw 0.5.16 → 0.5.17
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 +8 -0
- package/dist/main.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable FoxClaw changes are listed here. Each release note is bilingual so GitHub Releases and the npm package are useful to both Chinese and English readers.
|
|
4
4
|
|
|
5
|
+
## 0.5.17 - 2026-06-08
|
|
6
|
+
|
|
7
|
+
### 中文
|
|
8
|
+
- `foxclaw <subcommand> --help` / `-h` 现在只打印帮助,不再继续执行 `install-systemd`、`start`、`restart` 等带副作用的子命令,避免一次查帮助意外触发服务重启。
|
|
9
|
+
|
|
10
|
+
### English
|
|
11
|
+
- `foxclaw <subcommand> --help` / `-h` now prints usage and stops before running side-effecting subcommands such as `install-systemd`, `start`, or `restart`, preventing an accidental service restart while checking help.
|
|
12
|
+
|
|
5
13
|
## 0.5.16 - 2026-06-08
|
|
6
14
|
|
|
7
15
|
### 中文
|
package/dist/main.js
CHANGED
|
@@ -66,7 +66,7 @@ async function main() {
|
|
|
66
66
|
console.log(readPackageVersion());
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
if (isHelpCommand(command)) {
|
|
69
|
+
if (isHelpCommand(command) || hasHelpFlag()) {
|
|
70
70
|
printUsage();
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
@@ -149,6 +149,9 @@ function isVersionCommand(value) {
|
|
|
149
149
|
function isHelpCommand(value) {
|
|
150
150
|
return value === 'help' || value === '--help' || value === '-h';
|
|
151
151
|
}
|
|
152
|
+
function hasHelpFlag() {
|
|
153
|
+
return process.argv.slice(3).some(isHelpCommand);
|
|
154
|
+
}
|
|
152
155
|
function readPackageVersion() {
|
|
153
156
|
try {
|
|
154
157
|
const pkg = JSON.parse(fs.readFileSync(path.join(packageRoot, 'package.json'), 'utf8'));
|