feat(cli): kai command + rename distribution to kai-security#100
Open
aktasbatuhan wants to merge 1 commit into
Open
feat(cli): kai command + rename distribution to kai-security#100aktasbatuhan wants to merge 1 commit into
aktasbatuhan wants to merge 1 commit into
Conversation
This was referenced Jun 8, 2026
Collaborator
|
this one lgtm |
andthattoo
reviewed
Jun 9, 2026
Add a unified `kai` console entry point that dispatches the friendly verbs over the existing modules: kai audit <repo> -> setup -> exploit pipeline (kai.main pipeline) kai view <run_dir> -> interactive HTML run viewer (kai.viewer) kai report <run_dir> -> findings report, Markdown or --format html (kai.report) `kai pipeline` / `kai agent` remain as direct aliases into kai.main. Packaging: publish the distribution as `kai-security` while keeping the import package and the command named `kai` (uv build-backend module-name override). The bare `kai` name on PyPI is reserved for the future umbrella dispatcher. Document the CLI in the README and add dispatcher tests.
Member
Author
|
@andthattoo it already supports the full set: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #99 → #98. Retarget to
masteras the stack lands.What this does
Adds the unified
kaicommand and the packaging/naming setup.CLI
A thin dispatcher (
kai.cli:main) over existing modules — no logic duplicated:kai audit <repo>kai.main pipelinekai view <run_dir>kai.viewer(#98)kai report <run_dir> [--format html]kai.report(#99)kai pipeline/kai agentremain as direct aliases;python -m kai.main …still works.Packaging
kai→kai-security; the import packages and the command staykai.kai(domain) andra(framework) via[tool.uv.build-backend] module-name = ["kai", "ra"]. This is required —kaiimportsra, so a wheel containing onlykaiis broken. (Caught by building the wheel and importing it; the prior single-module config would have published an uninstallable package.)kaion PyPI is reserved for the future umbrella dispatcher.Verification
uv build→kai_security-0.1.0wheel; confirmed top-level packages arekai+ra(incl.ra/viewer).uv run kai --help/view/report/audit -hall work; unknown command → exit 2.ty/ruffclean;pytestgreen (CLI dispatcher tests).