feat(domain): R4.6 ExportSession (incremental export, OD-2): rasters decoded and written on arrival, chunked file handed out in parts, views composed by the core, raster_size_of (O4); wasm ExportSession and CoreExportSession; R4 digests re-frozen (catalog and page tree written last, B2)

This commit is contained in:
bchanot committed 2026-10-19 01:15:43 +02:00
1 parent 8d16be577c
commit 9e688b6801
38 files changed
+2421 -354

No files matched your search

+16
View File
@@ -24,6 +24,22 @@ export interface GlueModule {
call(op: string, input: string): string
SheetHandle: new (bundle: string) => GlueSheetHandle
FileBytes: new (expected: number) => GlueFileBytes
/** R4.6: the incremental export; the constructor throws `<kind>: <detail>` on a refused input. */
ExportSession: new (inputJson: string) => GlueExportSession
}
/** The export session of the module (crates/wasm `ExportSession`): outcome envelopes out. */
export interface GlueExportSession {
next_step(): string
add_raster(key: string, png: Uint8Array): string
raster_failed(key: string): string
/** Throws `<kind>: <detail>` (`out_of_order`, `self_check_failed`); the parts count otherwise. */
finish(): number
/** The next part of the finished file (copied out, freed in the module), `undefined` at the end. */
take_part(): Uint8Array | undefined
warnings(): string
written(): number
free(): void
}
export interface GlueSheetHandle {