@mdwrk/extension-host
v1.0.5
Published
Stable host API, lifecycle, and context contracts for MdWrk extensions.
Maintainers
Readme
@mdwrk/extension-host
Host API surface for MdWrk extensions
This package defines the host APIs that MdWrk extensions can use for commands, views, action rail items, settings, notifications, theme access, editor access, workspace access, i18n, diagnostics, and logging.
Why
Use it when you are implementing an extension or a host and need a stable boundary between the two.
What
- Type contracts for extension lifecycle and registration.
- Host APIs for editor, workspace, theme, views, settings, notifications, diagnostics, and logging.
- Primitive interfaces shared by the runtime and bundled extensions.
Installation
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install @mdwrk/extension-hostUsage
import type { ExtensionHost } from "@mdwrk/extension-host";
export function boot(host: ExtensionHost) {
return host.commands.list();
}Related
- Packages index - family and package navigation
- Root README - repo overview
