Files
docmd-io--docmd/packages/api/README.md
T
wehub-resource-sync 6db8fca185
docmd CI verification / verify (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:31:55 +08:00

27 lines
941 B
Markdown

# @docmd/api
Plugin API surface for docmd - hook registration, RPC dispatch, and source editing tools.
This package is the canonical home for the docmd plugin system. It provides:
- **Plugin Loader** - Validates, isolates, and registers plugins with capability-gated hooks
- **Action Dispatcher** - WebSocket RPC system for live-edit actions and fire-and-forget events
- **Source Tools** - Block-level markdown source editing (insert, replace, wrap, remove)
- **Type Definitions** - `PluginDescriptor`, `PluginModule`, `ActionContext`, `SourceTools`, and more
## Usage
```typescript
import { loadPlugins, createActionDispatcher, createSourceTools } from '@docmd/api';
import type { PluginDescriptor, PluginModule } from '@docmd/api';
```
Part of the **[docmd](https://github.com/docmd-io/docmd)** documentation engine.
## Documentation
See **[docs.docmd.io](https://docs.docmd.io)** for full usage and API reference.
## License
MIT