Skip to main content

Crate brep_plugins

Crate brep_plugins 

Source
Expand description

Pinned JavaScript CAD packages on Boa, backed by exact kernel solids.

Trusted, explicitly provisioned packages. Saved pins never carry executable code.

A PackageBundle is validated and pinned by digest (PackageBundle::pin, PluginPin). Runtime::new installs bundles and builds the Registry of feature, action, workbench, panel, annotation and post descriptors; Registry::for_document selects a document’s exact pins. The runtime is the kernel’s extension provider: Runtime::execute_history and Runtime::with_provider scope it around kernel calls, and Runtime::execute_action, Runtime::execute_annotation and execute_script run callbacks. See the README for the JavaScript API and its limits.

Structs§

ActionPlan
ActionRegistration
AnnotationRegistration
FeatureRegistration
PackageBundle
PackageManifest
PanelRegistration
PluginPin
PostRegistration
A CAM post-processor a package ships: module names the package-local script (a post.define({...}) file for BREP_cam’s post host). The package runtime only registers it; the CAM workbench reads the module text and runs it on BREP_cam’s post runtime.
Registry
Runtime
WorkbenchRegistration

Enums§

DocumentCommand
PanelControl

Functions§

execute_script
Execute an explicitly submitted editor script without installing or pinning it. The source is a function body with cad (the action context) and ui.notify. Only the resulting document commands survive; built-in features replay normally.