feat: add local OneNote and ONEPKG reader

This commit is contained in:
2026-07-22 17:06:03 +02:00
commit f581cbdced
93 changed files with 14949 additions and 0 deletions

10
src/source-file.ts Normal file
View File

@@ -0,0 +1,10 @@
import type { SourceKind } from './worker/onenote.client.js';
export const MAX_SOURCE_FILE_BYTES = 512 * 1024 * 1024;
export function sourceKindFromFileName(fileName: string): SourceKind | null {
const normalized = fileName.toLocaleLowerCase('en-US');
if (normalized.endsWith('.onepkg')) return 'onepkg';
if (normalized.endsWith('.one')) return 'one';
return null;
}