ktx/packages/cli/test/context/core
Andrey Avtomonov 5d17469601
fix(telemetry): classify daemon query rejections as expected, not faults (#335)
* fix(telemetry): classify daemon query rejections as expected, not faults

Semantic-layer query rejections and warehouse-execution rejections from the
sl_query MCP tool were wrapped as generic Errors, so reportException filed them
as PostHog $exception faults indistinguishable from real ktx bugs.

The daemon already separates a caller rejection (planner ValueError -> exit 3 /
HTTP 400) from a crash. The Node runner now carries that distinction as a typed
KtxDaemonComputeError, and a shared throwClassifiedQueryError promotes daemon
input-rejections and warehouse rejections to KtxQueryError while daemon crashes
and native JS faults still reach Error Tracking. query_semantic_layer stops
report_exception-ing expected ValueErrors, and a missing 'file:' secret now
raises KtxExpectedError so absent .ktx/secrets/<conn>-password stops filing
faults.

* chore: sync uv.lock to ktx-daemon/ktx-sl 0.15.0
2026-07-03 22:39:34 +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 fix(telemetry): classify daemon query rejections as expected, not faults (#335) 2026-07-03 22:39:34 +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(git): disable gpg signing for ktx's own commits (#299) 2026-06-15 14:02:26 +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(git): disable gpg signing for ktx's own commits (#299) 2026-06-15 14:02:26 +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): survive ktx.yaml version skew and derive repo ownership from disk (#293) 2026-06-11 22:10:47 +02:00
session-worktree.service.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00