Repository navigation
verso-v1.0.5
·
276 commits
to main
since this release
Feature release adding a cell interaction API for bidirectional communication between rendered output and extensions, .dib (Polyglot Notebook) import support, session recovery with autosave, smarter extension assembly scanning, and variable/event handling improvements.
Cell Interaction API
- New
ICellInteractionHandlerinterface lets extensions respond to user interactions originating from rendered cell output (e.g. button clicks, link navigation) CellInteractionContextmodel carries the cell ID,CellRegion, interaction type, and payload so handlers have full contextIVersoContext.UpdateOutputAsyncenables extensions to patch cell output in place without re-executing the cell- Host-to-client wiring via
InteractionHandler, protocol method names, and DTOs; Blazor services (Server and WASM) raiseOnOutputUpdatedevents and apply output patches ExtensionHostregisters and resolves interaction handlers by extension- Full test coverage including
FakeCellInteractionHandler, handler tests, and interface contract tests
.dib (Polyglot Notebook) Import
- Import-only support for Polyglot Notebook (
.dib) files via the newDibSerializer - Parses
#!metablocks and magic directives, maps languages and directives to Verso cell types, and produces aNotebookModel .dibregistered as a recognized notebook file type in the VS Code extension- Jupyter import post-processors updated to accept
formatId/filePathfor.dibcompatibility
Session Recovery and Autosave
- Notebooks are auto-saved to
sessionStorageevery 30 seconds so unsaved work survives disconnects and browser reloads - On reconnect or page load, the
recoverquery parameter triggers automatic restoration from the saved file path or stored content - Blazor reconnection UX improved: tuned retry timing, reconnect overlay, and visibility-change reload when disconnected
- Recovery state is cleared on normal new/open/save operations to prevent stale restores
Extension Assembly Scanning
- Auto-discovery now filters co-located assemblies by checking for a
Verso.Abstractionsreference instead of globbingVerso.*.dll - Skips already-scanned, test, and resource assemblies to avoid redundant loading
- Invalid extension types are silently skipped during discovery instead of throwing, improving resilience when third-party DLLs are present
Variable Explorer and Event Handling
- New
INotebookService.RefreshVariablesAsyncAPI lets the UI request an explicit variable refresh from the host - Variable Explorer Refresh button wired to trigger a host round-trip; errors are surfaced in the panel
- Variables and extension status changes now use event subscriptions (
OnVariablesChanged,OnExtensionStatusChanged) with properIDisposablecleanup - Safe refresh wrapper (
RefreshVariablesSafeAsync) called automatically after executions, cell actions, initialization, and notification handling