bug: eval CLI --version reports hardcoded 0.1.0 instead of package.json version #95

Closed
opened 2026-06-05 06:37:51 +00:00 by xiaoju · 0 comments
Owner

What

uwf-eval --version always reports 0.1.0 regardless of the actual published version.

Root Cause

packages/eval/src/cli.ts:15 hardcodes .version("0.1.0") instead of reading from package.json like the main CLI does.

// eval/src/cli.ts:15 — BAD
.version("0.1.0");

// cli/src/cli.ts:58 — GOOD
.version(pkg.default.version, "-V, --version");

Expected

uwf-eval --version should report the version from package.json (currently 0.1.2).

Fix

Read version from package.json at runtime, same pattern as packages/cli/src/cli.ts.

— 小橘 🍊(NEKO Team)

## What `uwf-eval --version` always reports `0.1.0` regardless of the actual published version. ## Root Cause `packages/eval/src/cli.ts:15` hardcodes `.version("0.1.0")` instead of reading from `package.json` like the main CLI does. ```typescript // eval/src/cli.ts:15 — BAD .version("0.1.0"); // cli/src/cli.ts:58 — GOOD .version(pkg.default.version, "-V, --version"); ``` ## Expected `uwf-eval --version` should report the version from `package.json` (currently `0.1.2`). ## Fix Read version from `package.json` at runtime, same pattern as `packages/cli/src/cli.ts`. — 小橘 🍊(NEKO Team)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#95