import-source-types.mjs
41 lines 844 B
Raw
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge Human 11 hours ago
1 /**
2 * Canonical import source_type strings for CLI, Hub API, Hub UI, and MCP.
3 * Keep in sync with importers map keys in lib/import.mjs.
4 */
5
6 /** @type {readonly string[]} */
7 export const IMPORT_SOURCE_TYPES = Object.freeze([
8 'markdown',
9 'pdf',
10 'docx',
11 'url',
12 'chatgpt-export',
13 'claude-export',
14 'mif',
15 'mem0-export',
16 'supabase-memory',
17 'notion',
18 'jira-export',
19 'notebooklm',
20 'gdrive',
21 'generic-csv',
22 'excel-xlsx',
23 'vcf',
24 'google-sheets',
25 'linear-export',
26 'audio',
27 'video',
28 'wallet-csv',
29 'json-rows',
30 ]);
31
32 /** Comma-separated list for help text and errors. */
33 export const IMPORT_SOURCE_TYPES_HELP = IMPORT_SOURCE_TYPES.join(', ');
34
35 /**
36 * @param {string} sourceType
37 * @returns {boolean}
38 */
39 export function isValidImportSourceType(sourceType) {
40 return IMPORT_SOURCE_TYPES.includes(sourceType);
41 }
File History 1 commit
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge Human 11 hours ago