From d01fa64838fc63acb3f5c6d25d5a1e81d50cce5f Mon Sep 17 00:00:00 2001 From: Andrey Avtomonov Date: Wed, 13 May 2026 19:47:16 +0200 Subject: [PATCH] fix: align setup next steps with unified ingest --- packages/cli/src/next-steps.test.ts | 10 ++++++---- packages/cli/src/next-steps.ts | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/cli/src/next-steps.test.ts b/packages/cli/src/next-steps.test.ts index facb4eb8..d7904555 100644 --- a/packages/cli/src/next-steps.test.ts +++ b/packages/cli/src/next-steps.test.ts @@ -10,8 +10,8 @@ describe('KTX demo next steps', () => { it('uses supported context-build commands before agent usage', () => { expect(KTX_CONTEXT_BUILD_COMMANDS).toEqual([ { - command: 'ktx setup', - description: 'Build or resume agent-ready context from configured sources', + command: 'ktx ingest --all', + description: 'Build or refresh agent-ready context from configured connections', }, { command: 'ktx status', @@ -64,8 +64,10 @@ describe('KTX demo next steps', () => { }).join('\n'); expect(rendered).toContain('Build KTX context next.'); - expect(rendered).toContain('primary-source scans and context-source ingests'); - expect(rendered).toContain('ktx setup'); + expect(rendered).toContain('Run ingest to build database schema context before context-source ingest.'); + expect(rendered).toContain('ktx ingest --all'); + expect(rendered).not.toContain('resume'); + expect(rendered).not.toContain('scan'); expect(rendered).toContain('ktx status'); expect(rendered).not.toContain('ktx agent context --json'); expect(rendered).not.toContain('ktx serve --mcp'); diff --git a/packages/cli/src/next-steps.ts b/packages/cli/src/next-steps.ts index ee7535d7..c36c5591 100644 --- a/packages/cli/src/next-steps.ts +++ b/packages/cli/src/next-steps.ts @@ -1,7 +1,7 @@ export const KTX_CONTEXT_BUILD_COMMANDS = [ { - command: 'ktx setup', - description: 'Build or resume agent-ready context from configured sources', + command: 'ktx ingest --all', + description: 'Build or refresh agent-ready context from configured connections', }, { command: 'ktx status', @@ -69,7 +69,7 @@ export function formatSetupNextStepLines(state: KtxSetupNextStepState, indent = if (!state.contextReady) { return [ `${indent}Build KTX context next.`, - `${indent}Preferred route: run the CLI build; it covers primary-source scans and context-source ingests.`, + `${indent}Run ingest to build database schema context before context-source ingest.`, ...commandLines(KTX_CONTEXT_BUILD_COMMANDS, indent), ]; }