ktx/docs-site/content/docs
Andrey Avtomonov 4578b2d3a9 fix(cli): guide setup away from foreign repos at the project dir
ktx owns the git repo rooted at the project dir and refuses to adopt one it
did not create (the Finding 3 isolation invariant). But setup steered users
straight into that failure: the interactive menu offers "Current directory"
first, and `--no-input --yes --project-dir <repo-root>` created directly in
place — both then threw a generic "Failed to initialize git repository:"
wrapper from deep in GitService.initialize().

Extract the ownership rule into a shared `classifyKtxRepoOwnership(dir)` used by
both GitService.initialize() (the invariant) and the setup wizard (pre-flight
guidance), so the decision derives from one rule. Setup now detects a foreign
repo before constructing GitService and: interactively re-prompts (the user
picks the existing `ktx-project` subfolder), or non-interactively returns a
clean missing-input with the actionable message. The typed foreign-repo error
is also surfaced verbatim instead of being buried under the generic wrapper.

Empty/non-repo current directories still work — only foreign repos are blocked.
2026-06-09 23:38:01 +02:00
..
cli-reference feat: add GitHub star nudges to CLI build view and docs sidebar (#271) 2026-06-08 16:14:56 +02:00
community docs: consolidate AI Resources into a single page (#274) 2026-06-09 00:28:56 -04:00
concepts docs: standardize fanout terminology (#218) 2026-05-25 11:09:33 -04:00
configuration docs: document isolated ktx project repos 2026-06-09 23:01:46 +02:00
getting-started fix(cli): guide setup away from foreign repos at the project dir 2026-06-09 23:38:01 +02:00
guides docs: document isolated ktx project repos 2026-06-09 23:01:46 +02:00
integrations feat(cli)!: remove fast mode; ktx ingest always builds enriched context (KLO-721) (#237) 2026-05-29 17:41:04 +02:00
meta.json docs: consolidate AI Resources into a single page (#274) 2026-06-09 00:28:56 -04:00