Skip to content

fix(cli): read kctx version from package metadata - #59

Merged
deandevz merged 2 commits into
mainfrom
fix/kctx-version-metadata
Jun 5, 2026
Merged

deandevz merged 2 commits into
mainfrom
fix/kctx-version-metadata

Conversation

@deandevz

@deandevz deandevz commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Summary

kctx --version was hardcoded to "kctx 0.1.0" while the package is 0.4.0. It now reads the installed package metadata. Also fixes a stale docstring in db.py (threshold is 0.3, not 0.5) and updates the package description to the retrieval layer framing.

Scope

  • src/context_cli/cli.py: _kctx_version() via importlib.metadata, with a fallback when metadata is missing
  • src/king_context/db.py: docstring threshold corrected from 0.5 to 0.3
  • pyproject.toml: description updated, "cli" keyword added

How to test

.venv/bin/kctx --version   # kctx 0.4.0
pytest -q                  # 818 passed

@deandevz deandevz added the bug Something isn't working label Jun 5, 2026
@deandevz
deandevz merged commit 2e82144 into main Jun 5, 2026
2 checks passed
@deandevz
deandevz deleted the fix/kctx-version-metadata branch June 5, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant