mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-13 08:15:14 +02:00
perf(setup): speed up conductor setup and make it rerun-safe
Drop the duplicate `pnpm run build` (artifacts:build already builds every package). Run package builds in parallel topology via one recursive pnpm invocation. Enable incremental tsc and keep the cli's tsbuildinfo outside its dist (moved the dist wipe into a separate `clean` script). Run the final `ktx status` doctor from a temp dir so it stops walking up into a parent ktx.yaml and failing the script. Conductor setup drops from ~26s to ~9.8s cold and ~4.4s warm.
This commit is contained in:
parent
b759a4a286
commit
03f4e32143
7 changed files with 38 additions and 59 deletions
|
|
@ -133,13 +133,15 @@ pnpm install --frozen-lockfile --prefer-offline
|
|||
echo "Rebuilding native JS dependencies..."
|
||||
pnpm run native:rebuild
|
||||
|
||||
echo "Building KTX packages..."
|
||||
pnpm run build
|
||||
|
||||
echo "Building KTX runtime artifacts..."
|
||||
# Builds every internal package (llm/context/connectors/cli) before producing
|
||||
# the wheel + npm tarball, so a separate `pnpm run build` would be redundant.
|
||||
pnpm run artifacts:build
|
||||
|
||||
echo "Running KTX setup doctor..."
|
||||
node packages/cli/dist/bin.js status --no-input
|
||||
# Run from a temp dir so `ktx status` doesn't walk up into a parent ktx.yaml
|
||||
# (e.g. ~/ktx.yaml) and report on an unrelated project.
|
||||
KTX_CLI_BIN="$PWD/packages/cli/dist/bin.js"
|
||||
( cd "${TMPDIR:-/tmp}" && node "$KTX_CLI_BIN" status --no-input )
|
||||
|
||||
echo "=== Setup complete ==="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue