feat(cli): surface docs and demo-warehouse links in ktx setup (#221)

Add a Clack note pointing to https://docs.kaelio.com/ktx right after the
setup intro, and a second note pointing to https://kaelio.com/start
above the database driver multiselect — mirroring the docs-site CTA
wording. Closes KLO-715 and KLO-716.
This commit is contained in:
Andrey Avtomonov 2026-05-26 13:42:52 +02:00 committed by GitHub
parent 1071f9d1c9
commit 62699bfe9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -35,6 +35,7 @@ import { isDemoConnection } from './telemetry/demo-detect.js';
import { emitTelemetryEvent } from './telemetry/index.js';
import {
createKtxSetupPromptAdapter,
createKtxSetupUiAdapter,
type KtxSetupPromptOption,
} from './setup-prompts.js';
@ -1780,6 +1781,11 @@ async function chooseDrivers(
return 'missing-input';
}
const initialValues = unique(options?.initialDrivers ?? []);
createKtxSetupUiAdapter().note(
'Get demo credentials at https://kaelio.com/start',
'🎁 Need a warehouse to play with?',
io,
);
const choices = await prompts.multiselect({
message: withMultiselectNavigation('Which databases should KTX connect to?'),
options: [...DRIVER_OPTIONS],

View file

@ -586,6 +586,7 @@ export async function runKtxSetup(args: KtxSetupArgs, io: KtxCliIo, deps: KtxSet
async function runKtxSetupInner(args: KtxSetupArgs, io: KtxCliIo, deps: KtxSetupDeps = {}): Promise<number> {
const setupUi = deps.setupUi ?? createKtxSetupUiAdapter();
setupUi.intro('KTX setup', io);
setupUi.note('https://docs.kaelio.com/ktx', '📚 Docs', io);
let entryAction: KtxSetupEntryAction | undefined;
let projectResult: Awaited<ReturnType<typeof runKtxSetupProjectStep>>;
let agentNextActions: string | undefined;