mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-13 08:15:14 +02:00
The 34 `index.ts` re-export barrels inside `packages/cli/src/` were holdovers from the pre-fold multi-workspace structure. Post-fold-in they served no production purpose: external consumers go through the single package main entry, and in-repo callers mostly imported through them only because the path was short. Internally, knip flagged most barrel re-exports as production-dead (only reached via tests). This change: - Deletes every internal barrel except `packages/cli/src/index.ts` (the published package entry). - Rewrites ~270 source/test files to import each name directly from the file that defines it. - Moves `tools/warehouse-verification/index.ts` to `create-warehouse-verification-tools.ts` (the function it defined locally) and updates its single consumer. - Renames `search/backend-conformance.ts` → `.test-utils.ts` to match the existing test-helper file convention. - Deletes 13 dead test-only chains (dbt-descriptions/*, live-database/extracted-schema, live-database/structural-sync, relationship-* feedback/review chain) plus their tests and a cascading orphan integration test. - Updates test mocks that pointed at deleted barrel paths (notion-client, connector barrels in scan/local-scan-connectors tests) to mock the source files instead. - Points the maintainer benchmark script (`scripts/relationship-benchmark-report.mjs`) at source files instead of `dist/context/scan/index.js`. - Drops the barrel `!` entries from `knip.json`; adds explicit production entries only for the benchmark code reached via dist by the maintainer script. Net: 413 files changed, ~1.2k insertions, ~9.4k deletions. `pnpm run dead-code` (Biome + knip default + knip production) and `pnpm run type-check` are clean; 2277 tests pass. |
||
|---|---|---|
| .. | ||
| acquire-public-benchmark-fixtures.mjs | ||
| acquire-public-benchmark-fixtures.test.mjs | ||
| adventureworks-oltp-source.json | ||
| adventureworks-oltp-source.test.mjs | ||
| anti-fixture-conditional.test.mjs | ||
| build-adventureworks-oltp-fixture.mjs | ||
| build-benchmark-snapshot.mjs | ||
| build-benchmark-snapshot.test.mjs | ||
| build-evidence-fusion-adversarial-fixtures.mjs | ||
| build-public-npm-package.mjs | ||
| build-public-npm-package.test.mjs | ||
| build-python-runtime-wheel.mjs | ||
| build-python-runtime-wheel.test.mjs | ||
| check-boundaries.mjs | ||
| check-boundaries.test.mjs | ||
| ci-artifact-upload.test.mjs | ||
| conductor-run.sh | ||
| conductor-scripts.test.mjs | ||
| conductor-setup.sh | ||
| examples-docs.test.mjs | ||
| installed-live-database-smoke.mjs | ||
| installed-live-database-smoke.test.mjs | ||
| link-dev-cli.mjs | ||
| link-dev-cli.test.mjs | ||
| local-embeddings-runtime-smoke.mjs | ||
| local-embeddings-runtime-smoke.test.mjs | ||
| normalize-lcov-paths.mjs | ||
| normalize-lcov-paths.test.mjs | ||
| package-artifacts.mjs | ||
| package-artifacts.test.mjs | ||
| pglite-hybrid-search-spike.mjs | ||
| pglite-owner-process-prototype.mjs | ||
| pglite-sl-search-prototype.mjs | ||
| prepare-cli-bin.mjs | ||
| public-benchmark-manifest.json | ||
| public-npm-release-metadata.mjs | ||
| public-npm-release-metadata.test.mjs | ||
| published-package-smoke-config.mjs | ||
| published-package-smoke.mjs | ||
| published-package-smoke.test.mjs | ||
| relationship-benchmark-report.mjs | ||
| relationship-orbit-verification.mjs | ||
| relationship-orbit-verification.test.mjs | ||
| release-readiness.mjs | ||
| release-readiness.test.mjs | ||
| release-workflow.test.mjs | ||
| run-ktx.mjs | ||
| run-ktx.test.mjs | ||
| semantic-release-config.cjs | ||
| semantic-release-config.test.mjs | ||
| setup-dev.mjs | ||
| setup-dev.test.mjs | ||
| standalone-ci-workflow.test.mjs | ||
| test-tiering.test.mjs | ||
| update-public-release-version.mjs | ||
| update-public-release-version.test.mjs | ||
| validate-llm-debug-jsonl.mjs | ||
| validate-llm-debug-jsonl.test.mjs | ||