fix(cli): rename setup schema scope prompt

This commit is contained in:
Andrey Avtomonov 2026-05-13 20:16:34 +02:00
parent 2266f91e05
commit 61f0881cee
2 changed files with 3 additions and 2 deletions

View file

@ -1032,7 +1032,7 @@ describe('setup databases step', () => {
expect(result.status).toBe('ready');
expect(listSchemas).toHaveBeenCalledWith(tempDir, 'postgres-warehouse');
expect(prompts.multiselect).toHaveBeenCalledWith({
message: expect.stringContaining('PostgreSQL schemas to scan'),
message: expect.stringContaining('PostgreSQL schemas to include'),
options: [
{ value: 'orbit_analytics', label: 'orbit_analytics' },
{ value: 'orbit_raw', label: 'orbit_raw' },
@ -1041,6 +1041,7 @@ describe('setup databases step', () => {
initialValues: ['orbit_analytics', 'orbit_raw'],
required: true,
});
expect(String(prompts.multiselect.mock.calls[0]?.[0].message)).not.toContain('to scan');
const config = parseKtxProjectConfig(await readFile(join(tempDir, 'ktx.yaml'), 'utf-8'));
expect(config.connections['postgres-warehouse']).toMatchObject({
schemas: ['orbit_analytics', 'orbit_raw'],

View file

@ -1248,7 +1248,7 @@ async function maybeConfigureSchemaScope(input: {
const initialValues = preconfigured.length > 0 ? preconfigured : spec.defaultSelection(discovered);
const choices = await input.prompts.multiselect({
message: withMultiselectNavigation(
`${spec.promptLabel} to scan\n` +
`${spec.promptLabel} to include\n` +
`KTX found multiple ${spec.nounPlural}. Select every ${spec.noun} agents should use.`,
),
options: discovered.map((v) => ({ value: v, label: v })),