mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-22 08:38:08 +02:00
feat(cli): guide next action at end of ktx setup, not reruns (#256)
Re-running setup was the dominant action for installs that completed setup but never ingested. Classify completion (incomplete | needs-context | needs-agents | ready) and drive one obvious next action per state: route a config-complete project straight to the build, point unbuilt-context users at `ktx ingest` instead of re-running setup or dropping to a bare shell, and confirm readiness for fully-set-up projects rather than reopening the edit menu.
This commit is contained in:
parent
cb6a67c2d7
commit
45aa95d2cc
8 changed files with 360 additions and 59 deletions
|
|
@ -441,12 +441,10 @@ function writeMissingCapabilities(missing: string[], io: KtxCliIo): void {
|
|||
io.stderr.write('\nFix this in setup before building context.\n');
|
||||
}
|
||||
|
||||
function writeSkippedContext(projectDir: string, io: KtxCliIo): void {
|
||||
io.stdout.write('\nKTX is configured, but context has not been built yet.\n\n');
|
||||
io.stdout.write('Agents were not connected because KTX has not prepared searchable context for them.\n\n');
|
||||
io.stdout.write(`Resume setup:\n ktx setup --project-dir ${resolve(projectDir)}\n\n`);
|
||||
io.stdout.write(`Build context:\n ktx setup --project-dir ${resolve(projectDir)}\n\n`);
|
||||
io.stdout.write(`Check status:\n ktx status --project-dir ${resolve(projectDir)}\n`);
|
||||
function writeSkippedContext(io: KtxCliIo): void {
|
||||
// The setup completion screen owns "what to do next" (it points at `ktx ingest`),
|
||||
// so keep this to a short acknowledgement rather than a competing command list.
|
||||
io.stdout.write('\nLeaving context unbuilt for now.\n');
|
||||
}
|
||||
|
||||
function writeSuccess(
|
||||
|
|
@ -695,7 +693,7 @@ export async function runKtxSetupContextStep(
|
|||
return { status: 'back', projectDir: args.projectDir };
|
||||
}
|
||||
if (choice === 'skip') {
|
||||
writeSkippedContext(args.projectDir, io);
|
||||
writeSkippedContext(io);
|
||||
return { status: 'skipped', projectDir: args.projectDir };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue