diff --git a/packages/cli/src/setup-databases.test.ts b/packages/cli/src/setup-databases.test.ts index 656d3dad..544b1099 100644 --- a/packages/cli/src/setup-databases.test.ts +++ b/packages/cli/src/setup-databases.test.ts @@ -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'], diff --git a/packages/cli/src/setup-databases.ts b/packages/cli/src/setup-databases.ts index 8439830e..049ab179 100644 --- a/packages/cli/src/setup-databases.ts +++ b/packages/cli/src/setup-databases.ts @@ -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 })),