SDT
SDT (State, Dependencies, Type) interface represents the core data structure passed through the plugin pipeline to command modules.
SDT
Template
Type parameter for the state object’s structure
Template
Type parameter for dependencies interface
Example
Example
Remarks
- State is immutable and accumulated through the plugin chain
- Keys in state should be namespaced to avoid collisions
- Dependencies are injected and available throughout the pipeline
- Type information helps plugins make type-safe decisions
See
- CommandControlPlugin for plugin implementation
- CommandType for available command types
- Dependencies for dependency injection interface
Properties
deps
deps:
Dependencies
Instance of application dependencies
Source
module
module:
object
A copy of the current module that the plugin is running in.
description
description:
string
locals
locals:
Dictionary
meta
meta:
Dictionary
name
name:
string
Source
params?
optional
params:string
Optional parameters passed to the command
Source
state
state:
Record
<string
,unknown
>
Accumulated state data passed between plugins
Source
type
type:
CommandType
Command type identifier