import-source-types.mjs
41 lines 844 B
Raw
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0 feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes… Human minor ⚠ breaking 11 days 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:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882 fix(test): align Band B landing assertion with desktop MCP … Human 11 days ago