@pi-oxide/extension-js 0.10.2 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content-script.js +3 -2
- package/extension_js.d.ts +54 -43
- package/extension_js.js +63415 -16937
- package/index.js +1076 -726
- package/package.json +21 -8
- package/worker.js +992 -934
- package/content-script.d.ts +0 -7
- package/generated.d.ts +0 -251
- package/logger.d.ts +0 -16
- package/runner.d.ts +0 -17
- package/schemas.d.ts +0 -694
- package/tool-registry.d.ts +0 -115
package/extension_js.d.ts
CHANGED
|
@@ -359,61 +359,72 @@ export function setLogLevel(level: number): void;
|
|
|
359
359
|
|
|
360
360
|
export function takeCachedVfsWriteBase64(path: string): string | undefined;
|
|
361
361
|
|
|
362
|
+
/**
|
|
363
|
+
* Borrow-free OPFS read for use from inside runCellAsync (e.g. setFiles path resolver).
|
|
364
|
+
* fsReadBase64 is an impl ExtensionSession method and re-enters the wasm-bindgen borrow
|
|
365
|
+
* held by runCellAsync; this free function reads OPFS without touching any session object.
|
|
366
|
+
*/
|
|
367
|
+
export function webFsReadBase64(path: string): Promise<string>;
|
|
368
|
+
|
|
362
369
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
363
370
|
|
|
364
371
|
export interface InitOutput {
|
|
365
372
|
readonly memory: WebAssembly.Memory;
|
|
366
373
|
readonly __wbg_extensionsession_free: (a: number, b: number) => void;
|
|
367
|
-
readonly
|
|
368
|
-
readonly
|
|
369
|
-
readonly
|
|
370
|
-
readonly
|
|
371
|
-
readonly
|
|
372
|
-
readonly
|
|
373
|
-
readonly
|
|
374
|
-
readonly
|
|
375
|
-
readonly
|
|
376
|
-
readonly
|
|
377
|
-
readonly
|
|
378
|
-
readonly
|
|
379
|
-
readonly
|
|
380
|
-
readonly
|
|
381
|
-
readonly
|
|
382
|
-
readonly
|
|
383
|
-
readonly
|
|
384
|
-
readonly
|
|
385
|
-
readonly
|
|
386
|
-
readonly
|
|
387
|
-
readonly extensionsession_fsWriteText: (a: number, b: number) => number;
|
|
374
|
+
readonly extensionsession_apiDocs: (a: number, b: number, c: number) => [number, number, number, number];
|
|
375
|
+
readonly extensionsession_fsAppend: (a: number, b: any) => any;
|
|
376
|
+
readonly extensionsession_fsAppendBase64: (a: number, b: any) => any;
|
|
377
|
+
readonly extensionsession_fsAppendText: (a: number, b: any) => any;
|
|
378
|
+
readonly extensionsession_fsCopy: (a: number, b: any) => any;
|
|
379
|
+
readonly extensionsession_fsDelete: (a: number, b: any) => any;
|
|
380
|
+
readonly extensionsession_fsExists: (a: number, b: any) => any;
|
|
381
|
+
readonly extensionsession_fsHash: (a: number, b: any) => any;
|
|
382
|
+
readonly extensionsession_fsList: (a: number, b: any) => any;
|
|
383
|
+
readonly extensionsession_fsMkdir: (a: number, b: any) => any;
|
|
384
|
+
readonly extensionsession_fsMove: (a: number, b: any) => any;
|
|
385
|
+
readonly extensionsession_fsRead: (a: number, b: any) => any;
|
|
386
|
+
readonly extensionsession_fsReadBase64: (a: number, b: any) => any;
|
|
387
|
+
readonly extensionsession_fsReadRange: (a: number, b: any) => any;
|
|
388
|
+
readonly extensionsession_fsReadText: (a: number, b: any) => any;
|
|
389
|
+
readonly extensionsession_fsStat: (a: number, b: any) => any;
|
|
390
|
+
readonly extensionsession_fsUpdate: (a: number, b: any) => any;
|
|
391
|
+
readonly extensionsession_fsWrite: (a: number, b: any) => any;
|
|
392
|
+
readonly extensionsession_fsWriteBase64: (a: number, b: any) => any;
|
|
393
|
+
readonly extensionsession_fsWriteText: (a: number, b: any) => any;
|
|
388
394
|
readonly extensionsession_injectRegistryBindings: (a: number) => void;
|
|
389
|
-
readonly extensionsession_inspect_globals: (a: number) =>
|
|
390
|
-
readonly extensionsession_load_library: (a: number, b: number, c: number) =>
|
|
395
|
+
readonly extensionsession_inspect_globals: (a: number) => any;
|
|
396
|
+
readonly extensionsession_load_library: (a: number, b: number, c: number) => any;
|
|
391
397
|
readonly extensionsession_new: () => number;
|
|
392
398
|
readonly extensionsession_reset: (a: number) => void;
|
|
393
|
-
readonly extensionsession_runCellAsync: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) =>
|
|
399
|
+
readonly extensionsession_runCellAsync: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
394
400
|
readonly extensionsession_setAborted: (a: number, b: number) => void;
|
|
395
401
|
readonly extensionsession_set_fuel_limit: (a: number, b: number) => void;
|
|
396
402
|
readonly extensionsession_stopWith: (a: number) => void;
|
|
397
|
-
readonly freezeManifest: (a: number) => void;
|
|
398
|
-
readonly importManifestEntries: (a: number, b: number) => void;
|
|
399
|
-
readonly main: () => void;
|
|
400
|
-
readonly registerJsCall: (a: number, b: number, c: number) => void;
|
|
401
|
-
readonly registerJsCallBatch: (a: number, b: number) => void;
|
|
402
|
-
readonly registerSharedDispatch: (a: number, b: number) => void;
|
|
403
403
|
readonly setLogLevel: (a: number) => void;
|
|
404
|
-
readonly
|
|
405
|
-
readonly
|
|
406
|
-
readonly
|
|
407
|
-
readonly
|
|
408
|
-
readonly
|
|
409
|
-
readonly
|
|
410
|
-
readonly
|
|
411
|
-
readonly
|
|
412
|
-
readonly
|
|
413
|
-
readonly
|
|
414
|
-
readonly
|
|
415
|
-
readonly
|
|
416
|
-
readonly
|
|
404
|
+
readonly clearVfsWriteCache: () => void;
|
|
405
|
+
readonly freezeManifest: () => [number, number];
|
|
406
|
+
readonly importManifestEntries: (a: any) => [number, number];
|
|
407
|
+
readonly main: () => void;
|
|
408
|
+
readonly registerJsCall: (a: any, b: any) => [number, number];
|
|
409
|
+
readonly registerJsCallBatch: (a: any) => [number, number];
|
|
410
|
+
readonly registerSharedDispatch: (a: any) => [number, number];
|
|
411
|
+
readonly takeCachedVfsWriteBase64: (a: number, b: number) => [number, number];
|
|
412
|
+
readonly webFsReadBase64: (a: number, b: number) => any;
|
|
413
|
+
readonly collect_document: (a: any) => any;
|
|
414
|
+
readonly collect_element: (a: any, b: any) => any;
|
|
415
|
+
readonly format_snapshot_js: (a: any, b: number) => [number, number];
|
|
416
|
+
readonly wasm_bindgen__convert__closures_____invoke__h98d1e2b6e52d4bb6: (a: number, b: number, c: any) => [number, number];
|
|
417
|
+
readonly wasm_bindgen__convert__closures_____invoke__h8b86fd99daba3694: (a: number, b: number, c: any, d: any) => void;
|
|
418
|
+
readonly wasm_bindgen__convert__closures_____invoke__h27811ca8d75e2bba: (a: number, b: number) => number;
|
|
419
|
+
readonly wasm_bindgen__convert__closures_____invoke__h6d8d5445a5fade3d: (a: number, b: number) => void;
|
|
420
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
421
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
422
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
423
|
+
readonly __externref_table_alloc: () => number;
|
|
424
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
425
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
426
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
427
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
417
428
|
readonly __wbindgen_start: () => void;
|
|
418
429
|
}
|
|
419
430
|
|