ktx/packages/cli/test/context/core
Andrey Avtomonov 2553b05554 fix(cli): keep classifyKtxRepoOwnership total for non-directory paths
The setup ownership guard runs before the existing not-a-directory check, so
pointing a custom/--project-dir path at a file made classifyKtxRepoOwnership
lstat `<file>/.git`, hit ENOTDIR, and throw — crashing the setup step instead
of returning the friendly "path exists and is not a directory" result.

A path that is a file (or missing) holds no git repo for ktx to avoid, so treat
ENOTDIR like ENOENT and return 'unowned'. The downstream existingFolderState
check still rejects a non-directory with its friendly message, and the
classifier no longer throws raw errno for any caller.
2026-06-09 23:49:15 +02:00
..
abort.test.ts feat(cli): add ingest LLM rate-limit governor with paced retries (#261) 2026-06-05 12:10:27 +02:00
config-reference.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
git.service.assert-worktree-clean.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
git.service.delete-directories.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
git.service.init-identity.test.ts fix(cli): isolate ktx project git repos 2026-06-09 22:58:35 +02:00
git.service.patch.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
git.service.repo-isolation.test.ts fix(cli): keep classifyKtxRepoOwnership total for non-directory paths 2026-06-09 23:49:15 +02:00
git.service.reset-hard.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
git.service.test.ts fix(cli): isolate ktx project git repos 2026-06-09 22:58:35 +02:00
session-worktree.service.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00