fix: add --version to adapter CLIs, read VERSION from package.json
CI / check (pull_request) Successful in 3m29s

- All uwf-* adapter CLIs now support --version / -V
- util VERSION constant reads from package.json at runtime
- agent-hermes ACP clientInfo uses dynamic VERSION

小橘 🍊(NEKO Team)
This commit is contained in:
2026-06-05 07:29:54 +00:00
parent cd585a26f1
commit 794f9db568
6 changed files with 39 additions and 3 deletions
+7
View File
@@ -1,5 +1,12 @@
#!/usr/bin/env node
// eslint-disable-next-line -- dynamic import for version
const pkg = await import("../package.json", { with: { type: "json" } });
if (process.argv.includes("--version") || process.argv.includes("-V")) {
process.stdout.write(`${pkg.default.version}\n`);
process.exit(0);
}
import { createBuiltinAgent } from "./agent.js";
const main = createBuiltinAgent();