import-source-types.mjs
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd
feat(calendar): enforce agent context tiers in retrieval AP…
Human
minor
⚠ breaking
1 day 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
2 commits
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd
feat(calendar): enforce agent context tiers in retrieval AP…
Human
minor
⚠
1 day ago
sha256:9103f98c89257ed2b01c237cea895dabb3e85ea337dccb1161c175e4422355b6
docs: accept Calendar Events v0 spec with Phase 0 security …
Human
1 day ago