Refine setup prompt choices

This commit is contained in:
Luca Martial 2026-05-11 15:49:52 -07:00
parent 523d6ab68a
commit 9f91c26752
3 changed files with 11 additions and 11 deletions

View file

@ -1187,10 +1187,10 @@ async function promptForInteractiveSource(
},
async (currentState) => {
const crawlMode = await prompts.select({
message: 'Notion crawl mode',
message: 'Which Notion pages should KTX ingest?',
options: [
{ value: 'selected_roots', label: 'Selected roots' },
{ value: 'all_accessible', label: 'All accessible pages' },
{ value: 'all_accessible', label: 'All pages the integration can access' },
{ value: 'selected_roots', label: 'Specific pages and their subpages (you\'ll paste page IDs)' },
{ value: 'back', label: 'Back' },
],
});
@ -1205,8 +1205,8 @@ async function promptForInteractiveSource(
? [
async (currentState: SourcePromptState) => {
const roots = await promptText(prompts, {
message: 'Notion root page ids',
placeholder: 'comma-separated ids',
message: 'Notion page IDs to ingest (each page includes all its subpages)',
placeholder: 'page-id-1, page-id-2',
});
if (roots === undefined) return 'back';
currentState.notionRootPageIds = roots