ktx/packages/context/src
Andrey Avtomonov f8db99811a
feat(context): add driver-discriminated connection schemas (#96)
* refactor(context): export and describe mapping shape schemas

* feat(context): add driver-schemas module with warehouse drivers

* feat(context): add metabase, looker, lookml driver schemas with mappings

* feat(context): add notion, dbt, metricflow driver schemas

* refactor(context): make connectionSchema a driver-discriminated union

* chore(context): re-export KtxConnectionConfig from project package

* docs(context): add connection driver schema plan

* chore(secrets): allowlist example credentials in driver-schemas fixtures

* test(cli): align metabase fixtures with required api_url field

The driver-discriminated union added in this branch now requires api_url
for metabase connections and a known driver for warehouses. Update slow
CLI test fixtures and assertions so they exercise the new schema:
- ingest.test-utils.ts: add api_url to the prod-metabase fixture.
- setup.test.ts: switch metabase fixture from 'url' to 'api_url'.
- local-scan-connectors.test.ts: invalid-driver/missing-driver tests now
  expect the schema error from loadKtxProject (parse-time rejection).
2026-05-15 00:08:11 +02:00
..
agent feat: merge ingest and scan 2026-05-14 01:43:06 +02:00
connections feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
core feat(context): add warehouse verification tools (#46) 2026-05-13 13:43:23 +02:00
daemon rename klo to ktx 2026-05-10 23:51:24 +02:00
ingest feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
llm fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
mcp fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
memory fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
project feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
prompts rename klo to ktx 2026-05-10 23:51:24 +02:00
scan fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
search fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
skills feat: rename project wiki directory (#66) 2026-05-13 16:05:58 +02:00
sl fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
sql-analysis feat: add sql analysis batch port 2026-05-11 17:03:22 +02:00
test rename klo to ktx 2026-05-10 23:51:24 +02:00
tools refactor: remove legacy compatibility paths (#64) 2026-05-13 15:55:00 +02:00
wiki fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
index.test.ts rename klo to ktx 2026-05-10 23:51:24 +02:00
index.ts fix(llm): wire prompt caching through all Anthropic call sites (#90) 2026-05-14 15:36:27 +02:00
package-exports.test.ts fix(llm): wire prompt caching through all Anthropic call sites (#90) 2026-05-14 15:36:27 +02:00