ktx/packages/cli/src/context/scan
Andrey Avtomonov ec7edf8f50
fix(telemetry): preserve driver error class and code in connection_test (#260)
Native connector test failures were flattened to `new Error(message)`,
collapsing every driver's error class to `Error` and dropping `.code` /
`.number`. connection_test telemetry could therefore not tell a SQL Server
login rejection (ELOGIN / 18456) apart from a network or TLS error, and the
only field that varied was a raw message.

Connectors now return `connectorTestFailure(error)`, which preserves the
original driver error as `cause`, and `testNativeConnection` re-throws that
cause. `scrubErrorClass` then records the real class (e.g. ConnectionError)
and `formatErrorDetail` keeps the code prefix (e.g. "ELOGIN: ..."). The
helper is the single source of truth for the failure shape across all seven
native connectors. User-facing terminal output is unchanged.
2026-06-04 14:51:14 +02:00
..
constraint-discovery.ts feat(connectors): generalize readiness and constraint handling (#212) 2026-05-24 19:30:06 +02:00
credentials.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
data-dictionary.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
description-generation.ts fix(snowflake): unblock multi-schema ingest and relationship discovery (#204) 2026-05-23 10:41:30 +02:00
embedding-text.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
enabled-tables.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
enrichment-state.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
enrichment-summary.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
enrichment-types.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
entity-details.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
local-enrichment-artifacts.ts fix(snowflake): unblock multi-schema ingest and relationship discovery (#204) 2026-05-23 10:41:30 +02:00
local-enrichment.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
local-scan.ts feat(connectors): generalize readiness and constraint handling (#212) 2026-05-24 19:30:06 +02:00
local-structural-artifacts.ts feat(connectors): generalize readiness and constraint handling (#212) 2026-05-24 19:30:06 +02:00
relationship-benchmark-report.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-benchmarks.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-budget.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-candidates.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-composite-candidates.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-diagnostics.ts fix(snowflake): unblock multi-schema ingest and relationship discovery (#204) 2026-05-23 10:41:30 +02:00
relationship-discovery.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-formal-metadata.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-graph-resolver.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-llm-proposal.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-locality.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-name-similarity.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-profiling.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-scoring.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
relationship-validation.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
sqlite-local-enrichment-state-store.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
table-ref.ts refactor: remove legacy ktx compatibility shims (#211) 2026-05-24 16:57:23 +02:00
type-normalization.ts chore(workspace): gate dead-code with knip production mode (#196) 2026-05-21 15:28:58 +02:00
types.ts fix(telemetry): preserve driver error class and code in connection_test (#260) 2026-06-04 14:51:14 +02:00
warehouse-catalog.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00