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)
16 lines
545 B
JavaScript
Executable File
16 lines
545 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 { createHermesAgent } from "./hermes.js";
|
|
import { isResumeDisabled } from "./session-cache.js";
|
|
|
|
const resumeDisabled = isResumeDisabled(process.env.UWF_HERMES_RESUME ?? null);
|
|
const main = createHermesAgent(resumeDisabled);
|
|
void main();
|