794f9db568
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)
14 lines
397 B
JavaScript
Executable File
14 lines
397 B
JavaScript
Executable File
#!/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();
|
|
void main();
|