Files
template-app/modules/documents/index.ts
T

36 lines
1.1 KiB
TypeScript

// The documents module's public entry: its manifest, its catalogues and the ports a composition
// root binds. A page imports `./ui`; another module imports `./contract`.
export {
DOCUMENT_EXCLUDED_PAGE_CLASSES,
DOCUMENT_MODEL,
EXTRACT_PROMPT_VERSION,
EXTRACT_SYSTEM_PROMPT,
LOW_TRUST_NOTE,
MODEL_GATEWAY,
type ModelExtractorOptions,
modelLineExtractor,
PAGE_TEXT_CLOSE,
PAGE_TEXT_OPEN,
} from "./adapters/model-extractor.js"
export { type SdkOcrOptions, sdkDocumentOcr } from "./adapters/ocr.js"
export * from "./contract/index.js"
export { planPage, promptTextOf } from "./core/page-plan.js"
export {
type CandidateLine,
DOCUMENT_OCR,
DOCUMENTS_SCOPE,
type DocumentOcr,
type Extraction,
ExtractionFailed,
type ExtractionInput,
type LineExtractor,
OcrJobFailed,
type PageImage,
type ReadDocument,
type SkippedPage,
} from "./core/ports.js"
export { noCache, type StageCache, stageCache } from "./core/stage-cache.js"
export { foldForComparison, isWeakPage, locateQuote, quoteIsOnPage } from "./core/verify.js"
export { documentsModule } from "./module.js"