Skip to content

Read CLI version from package.json (was hardcoded 0.4.0) - #9

Merged
drepkovsky merged 1 commit into
mainfrom
fix/cli-version-from-package-json
Jun 14, 2026
Merged

Read CLI version from package.json (was hardcoded 0.4.0)#9
drepkovsky merged 1 commit into
mainfrom
fix/cli-version-from-package-json

Conversation

@drepkovsky

Copy link
Copy Markdown
Member

agent-board --version was hardcoded as .version("0.4.0") in src/index.ts and had drifted — package.json moved to 0.5.0 then 0.6.0, but --version still reported 0.4.0.

Reads the version from package.json at startup (import.meta.dir), so it tracks the real version and can't drift again. Verified: agent-board --version0.6.0. Types + 67 tests green.

🤖 Generated with Claude Code

The CLI .version() string was hardcoded and had drifted (0.4.0 while package.json moved to 0.5.0/0.6.0), so agent-board --version lied. Read it from package.json at startup via import.meta.dir so it can never drift again.
@drepkovsky
drepkovsky merged commit 62a2762 into main Jun 14, 2026
@drepkovsky
drepkovsky deleted the fix/cli-version-from-package-json branch June 14, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant