import-source-types.mjs
sha256:b5f647cb9c409f563d4671fe3fc05ddea01fabfed9b41fc11cb923588e1c1baf
mirror: GitHub Phase A durable MCP OAuth (#270)
Human
minor
⚠ breaking
10 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
4 commits
sha256:b5f647cb9c409f563d4671fe3fc05ddea01fabfed9b41fc11cb923588e1c1baf
mirror: GitHub Phase A durable MCP OAuth (#270)
Human
minor
⚠
10 days ago
sha256:d8c648b20a4d53b2673c5c082ee7edfa7b2fc9b11080832da1f38807b6bf940b
fix(7C-L1b): route hosted delegation proposals through cani…
Human
minor
⚠
29 days ago
sha256:2827ba9e7632a4b141c50caf1e8f7d77abbc3515be20e7465f2bccb0ac4edf91
fix: repair endpoint now sets has_active_subscription when …
Human
minor
⚠
49 days ago
sha256:6a102aafafdfe7e70a24f4e59740200f0ee713ce7915f1b53e9d4ba5ee8b4410
Initial Muse snapshot
Human
82 days ago