Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c0e0e561f3 |
@@ -14,10 +14,7 @@ function _findCliVersion(): string {
|
||||
for (let i = 0; i < 5; i++) {
|
||||
const candidate = join(dir, "package.json");
|
||||
try {
|
||||
const pkg = JSON.parse(readFileSync(candidate, "utf-8")) as {
|
||||
name?: string;
|
||||
version?: string;
|
||||
};
|
||||
const pkg = JSON.parse(readFileSync(candidate, "utf-8")) as { name?: string; version?: string };
|
||||
if (pkg.name === "@united-workforce/cli") {
|
||||
return pkg.version ?? "0.0.0";
|
||||
}
|
||||
|
||||
@@ -443,6 +443,7 @@ export async function cmdSetup(args: SetupArgs): Promise<Record<string, unknown>
|
||||
writeFileSync(configPath, stringify(merged, { indent: 2 }), "utf8");
|
||||
|
||||
// Print config path to stderr (stdout is reserved for JSON output)
|
||||
// biome-ignore lint/nursery/noConsole: CLI user-facing output
|
||||
console.error(`Config saved to ${configPath} ✓`);
|
||||
|
||||
// Validate model connectivity
|
||||
@@ -452,6 +453,7 @@ export async function cmdSetup(args: SetupArgs): Promise<Record<string, unknown>
|
||||
const agentName = _agentNameFromBinary(args.agent ?? "hermes");
|
||||
const adapterWarnings = _checkAdapterAvailability(agentName);
|
||||
for (const w of adapterWarnings) {
|
||||
// biome-ignore lint/nursery/noConsole: CLI user-facing output
|
||||
console.error(`⚠ ${w}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user