Skip to content

Bronto Visual Models 0.1.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@Ponchia Ponchia released this 15 Oct 09:21
· 43 commits to main since this release
9d8bd0e

Guarded previews and more reliable embedding

This release makes the standalone library easier to integrate into human-and-agent workflows without adding runtime dependencies or changing the stored model format.

New APIs and CLI

  • MemoryModelStore.preview(command, context) evaluates create, edit, undo and fork with the same validation, authority, idempotency and capacity checks as execution. It returns a candidate and bounded change summaries, but commits nothing and consumes no operation key.
  • previewFileCommand performs a read-only file preview without creating a parent directory, store, lock or temporary file.
  • CLI --dry-run, list and receipt, plus structured field-level validation reports. getReceipt(key) exposes owned historical receipts without resubmitting commands.
  • useVisualModel connects committed model updates to controlled React components through cached immutable snapshots. Custom hosts can implement the small VisualModelSource interface. SSR behavior is documented and tested.

Correctness fixes

Malformed snapshots such as JSON null are refused instead of being overwritten as a new store. Snapshot validation inspects descriptors before accessing untrusted values; aggregate snapshots keep the configured store budget while individual models retain their separate limits. File operations capture caller input before asynchronous I/O and check cancellation before publication. Subscriber re-registration cannot cause repeated delivery within the current commit.

React views no longer attach an old selection to a replacement element. Delayed drag refusals restore the newest host state, synchronous host errors are reported, and renderer errors recover on a newer model without resetting a healthy view on every edit.

Reference demo

Preview, inspect, apply or discard an agent command; test a preview that becomes stale; use guarded undo/redo; choose elements from the keyboard. Desktop panel columns no longer stretch the graph into blank space. Mobile starts with the complete graph visible, with zoom/pan available for closer inspection.

Try the verified demo · Preview guide · API

Verification and provenance

Source: 9d8bd0e40ea8dee0eef4e978e520a73c3ce452bc (PR #2). The attached archive is the exact npm-package artifact from successful main CI run 38711962958, not a separate local rebuild.

  • 109 unit/regression tests on Node 22 and Node 24.
  • Independent installed headless package and independently built React consumer.
  • Desktop/mobile Chromium flows, no overflow, no external data requests, and a separate adversarial React fixture covering StrictMode, stable snapshots, replaced targets and delayed/synchronous refusals.
  • CodeQL passed. Dependency audit reported zero known vulnerabilities when checked.
  • Archive SHA-256: e8460e8f3a32dc1705b7fc889345dc4286bd830e5f2aac6b5db86ceb2b81684a.

The attached release-evidence.json includes the npm integrity hash and browser assertion results. SHA256SUMS verifies the archive.

Install and boundaries

npm install https://github.com/Ponchia/bronto-visual-models/releases/download/v0.1.0-beta.2/ponchia-visual-models-0.1.0-beta.2.tgz

This is a GitHub Release distribution, not a claim of npm-registry publication. The package remains a beta. Model format is still version 2. A preview is neither a commit, a reservation nor an authorization grant: execution rechecks the original command against the latest state.

Standalone interactive views remain diagram/network/matrix and authored timeline. Other family contracts do not imply additional standalone editors. No distributed database or automatic external-data loading is added. Spatial's separately pinned beta.1 has not been changed or deployed by this release. The beta.1 archive is unchanged.