ktx/packages/cli/test/context
Andrey Avtomonov 1a6da14f62 fix(git): give each ktx project its own git repo root
A ktx project assumes its config dir is its own git working-tree root: writes,
session worktrees, squash-merges, and reindex scans all resolve relative to it.
GitService.initialize() gated on checkIsRepo() (IN_TREE), which is also
satisfied by an *enclosing* repository — so a project nested inside another git
working tree silently operated against the outer repo. Worktree/ingest writes
landed at the outer root (e.g. <outer>/wiki/global/) while reindex scanned
<projectDir>/wiki/global/, so the wiki was seeded but never indexed:
wiki_search returned nothing and knowledge_pages stayed empty, with no error.
Semantic-layer and raw-sources had the same divergence.

Gate initialization on checkIsRepo('root') instead: require the repo root to be
the config dir itself, and initialize a dedicated repository there when it is
not (logging clearly when nesting inside an existing repo). This restores the
one-repo-per-project invariant at the shared git layer, fixing all artifacts at
once, and keeps ktx's commits out of the enclosing repository.
2026-06-09 12:14:07 +02:00
..
connections feat(setup): apply per-role LLM model presets, remove --llm-model (#268) 2026-06-08 15:30:48 +02:00
core fix(git): give each ktx project its own git repo root 2026-06-09 12:14:07 +02:00
daemon test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
index-sync test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
ingest feat(setup): apply per-role LLM model presets, remove --llm-model (#268) 2026-06-08 15:30:48 +02:00
llm fix(ingest): drive work-unit progress from tool calls, not turn counts (#269) 2026-06-08 15:30:35 +02:00
mcp feat(telemetry): collect PostHog $exception error reports in CLI and daemon (#262) 2026-06-05 19:36:21 +02:00
memory test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
project fix(git): give each ktx project its own git repo root 2026-06-09 12:14:07 +02:00
prompts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
scan test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
search test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
skills test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
sl fix(sl): stop baking drift-prone counts into overlay summaries (#270) 2026-06-08 15:58:12 +02:00
sql-analysis feat(query-history): scope mining to modeled schemas by default (#258) 2026-06-03 17:19:42 +02:00
test test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
tools test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
wiki feat(cli): shell completion for commands, flags, and entity names (#244) 2026-05-31 23:44:33 +02:00