ktx/scripts
Andrey Avtomonov a11b9e9757
refactor(release): drop release-policy.json runtime dep and next branch (#180)
* chore: standardize daemon naming on "KTX daemon"

Replace inconsistent names ("KTX Python daemon", "KTX local embeddings
daemon", "KTX managed daemon", "Python daemon") with the single name
"KTX daemon" in CLI output, errors, command descriptions, test
assertions, smoke scripts, docs, AGENTS.md, issue templates, and
codecov flags. The daemon is a portable compute server with endpoints
for SQL analysis, semantic layer, LookML, database introspection, and
embeddings; the previous labels misrepresented it as embeddings-only or
exposed implementation details ("Python", "managed").

The "KTX Python runtime" concept (installed interpreter + packages) is
deliberately left as-is — it is a separate concept from the daemon
process.

* refactor(release): drop release-policy.json runtime dep and next branch

Strips the release-policy.json fallback from release-version.ts so the CLI
reads its version straight from packages/cli/package.json. dev → 0.0.0-private,
installed @kaelio/ktx → the real semver baked into the published package.json.
KtxCliPackageInfo collapses to { name, version, contextPackageName }; /health
no longer depends on version files surviving past a CI run.

Replaces the dual-branch (main + next) semantic-release model with a single-
branch model on main. rcs and stables interleave on the same branch via
{ name: 'main', prerelease: 'rc', channel: 'next' } / ['main']. Drops
@semantic-release/git and @semantic-release/changelog (nothing is committed
back to the repo on any channel) and the workflow's "Prepare next prerelease
branch" step plus the KTX_PRERELEASE_BRANCH plumbing. The git tag plus the
published npm artifact carry the version forward.

Updates docs/release.md, removes the two now-unused devDeps, regenerates
pnpm-lock.yaml. 611/611 @ktx/cli tests, 173/173 script tests, type-check,
biome, knip all clean.

* fix(release): don't throw on non-main branches at config-load time

knip loads .releaserc.cjs on every PR run, where GITHUB_REF_NAME is the
merge ref (e.g. 180/merge). The previous version of releaseBranches threw
immediately when the branch wasn't main, which made knip fail to evaluate
the config and then mis-flag @semantic-release/exec as an unused dep.

semantic-release already refuses to publish when the current branch doesn't
match a configured release branch, so the explicit throw was redundant.
Drop it (and the unused currentBranch helper) and replace the
"rejects releases from non-main" assertion with one that exercises a CI-
shaped GITHUB_REF_NAME and confirms the config loads.
2026-05-20 13:53:14 +02:00
..
acquire-public-benchmark-fixtures.mjs Initial open-source release 2026-05-10 23:12:26 +02:00
acquire-public-benchmark-fixtures.test.mjs rename klo to ktx 2026-05-10 23:51:24 +02:00
adventureworks-oltp-source.json Initial open-source release 2026-05-10 23:12:26 +02:00
adventureworks-oltp-source.test.mjs Initial open-source release 2026-05-10 23:12:26 +02:00
anti-fixture-conditional.test.mjs rename klo to ktx 2026-05-10 23:51:24 +02:00
build-adventureworks-oltp-fixture.mjs fix: stop requiring readonly connection config (#71) 2026-05-13 19:37:25 +02:00
build-benchmark-snapshot.mjs Initial open-source release 2026-05-10 23:12:26 +02:00
build-benchmark-snapshot.test.mjs [codex] Add Conductor workspace scripts (#2) 2026-05-11 09:55:42 +02:00
build-evidence-fusion-adversarial-fixtures.mjs refactor: remove legacy compatibility paths (#64) 2026-05-13 15:55:00 +02:00
build-public-npm-package.mjs fix: align release provenance metadata 2026-05-19 16:10:30 +02:00
build-public-npm-package.test.mjs fix: align release provenance metadata 2026-05-19 16:10:30 +02:00
build-python-runtime-wheel.mjs fix: improve setup wizard behavior (#127) 2026-05-17 19:15:09 +02:00
build-python-runtime-wheel.test.mjs fix: improve setup wizard behavior (#127) 2026-05-17 19:15:09 +02:00
check-boundaries.mjs fix(ci): publish the pre-built tarball instead of re-packing (#159) 2026-05-20 00:55:15 +02:00
check-boundaries.test.mjs fix(ci): publish the pre-built tarball instead of re-packing (#159) 2026-05-20 00:55:15 +02:00
ci-artifact-upload.test.mjs ci: parallelize KTX CI checks 2026-05-12 01:44:15 +02:00
conductor-run.sh [codex] Add Conductor workspace scripts (#2) 2026-05-11 09:55:42 +02:00
conductor-scripts.test.mjs perf(setup): speed up conductor setup and make it rerun-safe (#107) 2026-05-15 12:06:37 +02:00
conductor-setup.sh chore: preserve superpowers docs symlink in worktrees (#158) 2026-05-20 00:11:38 +02:00
examples-docs.test.mjs feat(cli): smart defaults and flatter command surface for ktx (#177) 2026-05-20 01:52:37 +02:00
installed-live-database-smoke.mjs feat(cli): add ktx admin reindex (#160) 2026-05-20 01:36:54 +02:00
installed-live-database-smoke.test.mjs fix: remove project from ktx config (#95) 2026-05-14 17:39:31 +02:00
link-dev-cli.mjs rename klo to ktx 2026-05-10 23:51:24 +02:00
link-dev-cli.test.mjs rename klo to ktx 2026-05-10 23:51:24 +02:00
local-embeddings-runtime-smoke.mjs refactor(release): drop release-policy.json runtime dep and next branch (#180) 2026-05-20 13:53:14 +02:00
local-embeddings-runtime-smoke.test.mjs refactor(release): drop release-policy.json runtime dep and next branch (#180) 2026-05-20 13:53:14 +02:00
normalize-lcov-paths.mjs ci: configure Codecov coverage uploads (#150) 2026-05-19 16:56:48 +02:00
normalize-lcov-paths.test.mjs ci: configure Codecov coverage uploads (#150) 2026-05-19 16:56:48 +02:00
package-artifacts.mjs refactor(release): drop release-policy.json runtime dep and next branch (#180) 2026-05-20 13:53:14 +02:00
package-artifacts.test.mjs refactor(release): drop release-policy.json runtime dep and next branch (#180) 2026-05-20 13:53:14 +02:00
prepare-cli-bin.mjs rename klo to ktx 2026-05-10 23:51:24 +02:00
public-benchmark-manifest.json ci: run pre-commit checks in CI (#74) 2026-05-13 19:49:25 +02:00
public-npm-release-metadata.mjs fix: improve setup wizard behavior (#127) 2026-05-17 19:15:09 +02:00
public-npm-release-metadata.test.mjs fix: improve setup wizard behavior (#127) 2026-05-17 19:15:09 +02:00
published-package-smoke-config.mjs fix(cli): remove ktx setup subcommands (#42) 2026-05-13 00:38:26 +02:00
published-package-smoke.mjs fix(release): repair next npm release workflow (#122) 2026-05-17 01:41:07 +02:00
published-package-smoke.test.mjs fix(release): repair next npm release workflow (#122) 2026-05-17 01:41:07 +02:00
relationship-orbit-verification.mjs feat: merge ingest and scan 2026-05-14 01:43:06 +02:00
relationship-orbit-verification.test.mjs feat: merge ingest and scan 2026-05-14 01:43:06 +02:00
release-readiness.mjs feat: add claude-code llm backend with runtime port (#115) 2026-05-16 12:06:34 +02:00
release-readiness.test.mjs fix: improve setup wizard behavior (#127) 2026-05-17 19:15:09 +02:00
release-workflow.test.mjs refactor(release): drop release-policy.json runtime dep and next branch (#180) 2026-05-20 13:53:14 +02:00
run-ktx.mjs perf(cli): cache pnpm run ktx builds against a stamp file (#113) 2026-05-15 15:49:39 +02:00
run-ktx.test.mjs perf(cli): cache pnpm run ktx builds against a stamp file (#113) 2026-05-15 15:49:39 +02:00
semantic-release-config.cjs refactor(release): drop release-policy.json runtime dep and next branch (#180) 2026-05-20 13:53:14 +02:00
semantic-release-config.test.mjs refactor(release): drop release-policy.json runtime dep and next branch (#180) 2026-05-20 13:53:14 +02:00
setup-dev.mjs fix(cli): build runtime assets during dev setup (#121) 2026-05-17 01:04:44 +02:00
setup-dev.test.mjs fix(cli): build runtime assets during dev setup (#121) 2026-05-17 01:04:44 +02:00
standalone-ci-workflow.test.mjs ci: run pre-commit checks in CI (#74) 2026-05-13 19:49:25 +02:00
test-tiering.test.mjs [codex] Add Conductor workspace scripts (#2) 2026-05-11 09:55:42 +02:00
update-public-release-version.mjs feat: add claude-code llm backend with runtime port (#115) 2026-05-16 12:06:34 +02:00
update-public-release-version.test.mjs feat: add claude-code llm backend with runtime port (#115) 2026-05-16 12:06:34 +02:00
validate-llm-debug-jsonl.mjs rename klo to ktx 2026-05-10 23:51:24 +02:00
validate-llm-debug-jsonl.test.mjs rename klo to ktx 2026-05-10 23:51:24 +02:00