feat(domain): R4.2d attachment probe, import_pdf and SheetHandle.import_pdf on the wasm facade
locate_attachment (shared 16 MiB budget, JS-path steps in the TypeScript order, OD-3 cap hook off until measured), pdf::import, facade import_pdf with the PdfImportKind kinds (ts-rs exported). cargo: O7 144 inputs (locate, read, archive rows) and O8 51 cases equal to the R3 path, 3 OD-4 differences declared (lone surrogate in an overwritten duplicate value). Node through the shipped module: the same O8 outcomes, every reference PDF. Module 421.7 KB gzip (W1 budget 600 KB).
This commit is contained in:
1 parent
9850a8341a
commit
f8579bc19a
13 files changed
+813
-14
No files matched your search
@@ -41,6 +41,13 @@ impl SheetHandle {
|
||||
pub fn call(&self, op: &str, input: &str) -> String {
|
||||
faunosteo_core::facade::call_with_sheet(&self.sheet, op, input)
|
||||
}
|
||||
|
||||
/// Reads `bytes` as a Faunosteo PDF and imports its attachment onto this sheet (R4, plan
|
||||
/// §B.1.4): the envelope of `archive.import`, plus the reader's kinds (`PdfImportKind`).
|
||||
/// The bytes are copied once into the module's memory by the glue.
|
||||
pub fn import_pdf(&self, bytes: &[u8]) -> String {
|
||||
faunosteo_core::facade::import_pdf(&self.sheet, bytes)
|
||||
}
|
||||
}
|
||||
|
||||
/// R0 proof: on wasm32 a panic is a trap (panic = abort), reaching JavaScript as a
|
||||
|
||||
Reference in new issue
Block a user