ktx/packages
Andrey Avtomonov 38376eece4 fix(cli): resolve managed-embeddings daemon URL at project boundary
A clean `ktx setup` was failing verification because the managed
local-embeddings daemon URL was passed library-side through
`process.env[KTX_MANAGED_SENTENCE_TRANSFORMERS_BASE_URL]`, and the setup
flow never wrote that variable. With no resolved URL the embedding
provider was null, the deep scan emitted
`scan_enrichment_backend_not_configured`, descriptions + embeddings
stayed `skipped`, and the agent-readiness check exited 1.

Replace the env-var indirection with CLI-side substitution at the
project-load boundary. New `loadKtxCliProject` wraps `loadKtxProject`,
ensures the managed daemon when `managed:local-embeddings` is present in
`config.ingest.embeddings` or `config.scan.enrichment.embeddings`, and
substitutes the resolved baseUrl into the in-memory config. Runtime
entry points (scan, ingest, public-ingest, admin-reindex) use the new
loader; setup-time persistence paths keep raw `loadKtxProject` so the
on-disk `ktx.yaml` keeps the portable sentinel.

Cleanup follows from the new design: drop
`MANAGED_SENTENCE_TRANSFORMERS_BASE_URL_ENV`, remove the env-var lookup
branch in `resolveSentenceTransformersBaseUrl`, drop the `env` field
from `ManagedLocalEmbeddingsDaemon`, and collapse the manual
daemon-ensure dance in `admin-reindex.ts`.
2026-05-20 14:38:23 +02:00
..
cli fix(cli): resolve managed-embeddings daemon URL at project boundary 2026-05-20 14:38:23 +02:00
connector-bigquery feat(context): add driver-discriminated connection schemas (#96) 2026-05-15 00:08:11 +02:00
connector-clickhouse fix: align release provenance metadata 2026-05-19 16:10:30 +02:00
connector-mysql ci: add codecov coverage reporting (#82) 2026-05-14 01:13:31 +02:00
connector-postgres ci: add codecov coverage reporting (#82) 2026-05-14 01:13:31 +02:00
connector-snowflake ci: add codecov coverage reporting (#82) 2026-05-14 01:13:31 +02:00
connector-sqlite fix: clean up ktx yaml config parameters (#75) 2026-05-14 01:27:31 +02:00
connector-sqlserver ci: add codecov coverage reporting (#82) 2026-05-14 01:13:31 +02:00
context fix(cli): resolve managed-embeddings daemon URL at project boundary 2026-05-20 14:38:23 +02:00
llm fix: sanitize no_proxy for managed embeddings (#153) 2026-05-19 18:18:56 +02:00