@mdwrk/extension-git-ops
v1.2.3
Published
First-party Git operations extension for MdWrk hosts that expose repository status, source-control actions, and Git settings through the extension system.
Readme
@mdwrk/extension-git-ops
First-party Git operations extension for MdWrk hosts that expose repository status, source-control actions, and Git settings through the extension system.
This package provides the bundled manifest, runtime entrypoint, commands, workspace module, action-rail item, and settings section used by MdWrk's Git-oriented workflow surface.
Why
Use it when Git workflows should be registered as a host extension instead of being hard-coded into the shell. The package owns the extension boundary; the host still supplies repository state, file operations, command execution, and persistence.
What
- Bundled extension metadata for the Git operations surface.
- A
createGitOpsBundledEntryfactory for registering commands, views, action-rail placement, and settings. - Typed host-facing options for integrating Git status and source-control panels.
Installation
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install @mdwrk/extension-git-ops @mdwrk/extension-runtimeUsage
Load it from a host that already provides the MdWrk extension runtime and workspace services.
import { createGitOpsBundledEntry } from "@mdwrk/extension-git-ops";
const gitOpsEntry = createGitOpsBundledEntry({
isActive: () => host.gitPanelOpen,
renderWorkspace: (props) => host.renderGitWorkspace(props),
renderExplorer: (props) => host.renderGitExplorer(props),
renderSettings: () => host.renderGitSettings(),
toggleGitOps: () => host.toggleGitPanel(),
});The package also exposes ./manifest, ./version, and ./bundled subpath exports for hosts that load extension metadata separately from bundled entry registration.
Related
- Packages index - family and package navigation
- Root README - repo overview
