Skip to content

verso-v1.0.5

Choose a tag to compare

@github-actions github-actions released this 01 Mar 01:20
· 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 ICellInteractionHandler interface lets extensions respond to user interactions originating from rendered cell output (e.g. button clicks, link navigation)
  • CellInteractionContext model carries the cell ID, CellRegion, interaction type, and payload so handlers have full context
  • IVersoContext.UpdateOutputAsync enables 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) raise OnOutputUpdated events and apply output patches
  • ExtensionHost registers 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 new DibSerializer
  • Parses #!meta blocks and magic directives, maps languages and directives to Verso cell types, and produces a NotebookModel
  • .dib registered as a recognized notebook file type in the VS Code extension
  • Jupyter import post-processors updated to accept formatId/filePath for .dib compatibility

Session Recovery and Autosave

  • Notebooks are auto-saved to sessionStorage every 30 seconds so unsaved work survives disconnects and browser reloads
  • On reconnect or page load, the recover query 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.Abstractions reference instead of globbing Verso.*.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.RefreshVariablesAsync API 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 proper IDisposable cleanup
  • Safe refresh wrapper (RefreshVariablesSafeAsync) called automatically after executions, cell actions, initialization, and notification handling