feat(cli): let ktx setup --agents choose an install directory#298
Merged
Conversation
Split the fused directory concept into projectDir (what the agent config references) and installRoot (where project-scoped files are written), so users can install .claude/, .mcp.json, skills, and rules where they open their agent instead of only in the ktx project directory. - Add --install-dir <path> (resolved against cwd, created if missing, mutually exclusive with --global/--local, rejected for claude-desktop). - Add an interactive directory menu: ktx project dir / Current directory (hidden when it equals the project dir) / Custom directory… / Global scope (shown only when every target supports it). - Expand a leading ~ in typed/quoted paths so the ~/… menu hints round-trip. - Record installRoot in the install manifest and merge key; thread it through file planning, MCP config paths, summaries, and next actions. - Refresh uv.lock to 0.12.0 for the editable ktx-sl and ktx-daemon packages.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Splits the fused directory concept in `ktx setup --agents` into `projectDir` (what the agent config references) and `installRoot` (where project-scoped files land), so users can install `.claude/`, `.mcp.json`, skills, and rules where they open their coding agent rather than only in the ktx project directory. Adds a `--install-dir ` flag (resolved against cwd, created if missing, mutually exclusive with `--global`/`--local`, rejected for `claude-desktop`) and an interactive directory menu (ktx project dir / Current directory, hidden when it equals the project dir / Custom directory… / Global scope, shown only when every target supports it). A leading `
` in typed or quoted paths is expanded so the `/…` menu hints round-trip, and `installRoot` is recorded in the install manifest and threaded through file planning, MCP config paths, summaries, and next-action lines. Docs in `ktx-setup.mdx` and `agent-clients.mdx` are updated, and `uv.lock` is refreshed to 0.12.0 for the editable `ktx-sl`/`ktx-daemon` packages. Verified with type-check, the full CLI suite (2912 tests), dead-code, and pre-commit.