Skip to content

feat(cli): let ktx setup --agents choose an install directory#298

Merged
andreybavt merged 1 commit into
mainfrom
ktx-setup-agents-config-dirs
Jun 12, 2026
Merged

feat(cli): let ktx setup --agents choose an install directory#298
andreybavt merged 1 commit into
mainfrom
ktx-setup-agents-config-dirs

Conversation

@andreybavt

Copy link
Copy Markdown
Contributor

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.

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.
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ktx-docs-site Ready Ready Preview, Comment Jun 12, 2026 10:43pm

Request Review

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.41975% with 11 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/cli/src/setup-agents.ts 85.91% 1 Missing and 9 partials ⚠️
packages/cli/src/setup.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@andreybavt andreybavt merged commit 4e61020 into main Jun 12, 2026
9 checks passed
@andreybavt andreybavt deleted the ktx-setup-agents-config-dirs branch June 12, 2026 22:46
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.

2 participants