ktx/packages/context/src/project
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
..
config.test.ts feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
config.ts feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
driver-schemas.test.ts feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
driver-schemas.ts feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
index.ts feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
local-git-file-store.test.ts feat: rename project wiki directory (#66) 2026-05-13 16:05:58 +02:00
local-git-file-store.ts rename klo to ktx 2026-05-10 23:51:24 +02:00
local-state-db.ts rename klo to ktx 2026-05-10 23:51:24 +02:00
mappings-yaml-schema.test.ts feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
mappings-yaml-schema.ts feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
project.test.ts fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
project.ts fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
setup-config.test.ts fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
setup-config.ts fix: store Metabase mappings in ktx.yaml (#61) 2026-05-13 13:55:21 +02:00