Repository layout
Import direction
Public Plugin API
Theplugin-api package defines the stable, framework-neutral surface plugins build against:
- Manifest schema (
platforms,capabilities,dependsOn). PluginContextwithregister.*disposables.- Typed APIs:
vault,workspace,editor,metadata,objects,search,storage. - View renderer contract:
mount(container, props, ctx) -> dispose.
ctx.internal is avoided as a normal pattern — if a core plugin needs private access, document the missing API and either add a narrow Platform API or a temporary explicit bridge.
Source
Full package & API design on GitHub.