OptionalafterAfter the dotenv context is resolved, initialize any clients/secrets or attach per-plugin state under ctx.plugins (by convention). Runs parent → children (pre-order).
Compositional children, with optional per-child overrides (e.g., ns). Installed after the parent per pre-order.
OptionalconfigZod schema for this plugin's config slice (from config.plugins[…]).
Namespace (required): the command name where this plugin is mounted.
Setup phase: register commands and wiring on the provided mount. Runs parent → children (pre-order). Return nothing (void).
Compose a child plugin with optional override (ns). Returns the parent to enable chaining.
Create a Commander option whose help-time description receives the resolved root help config and this plugin instance’s validated configuration slice.
The plugin configuration slice type.
The Commander usage string for the option flags.
The plugin mount used to associate the option with a realized mount path.
Commander option flags usage string.
Description builder receiving the resolved help config and the plugin config slice.
Optionalparser: (value: string, previous?: unknown) => unknownOptional argument parser.
OptionaldefaultValue: unknownOptional default value.
A Commander Option instance with a dynamic description.
Read the validated (and interpolated) configuration slice for this plugin instance.
The plugin mount (or any command under this mount) used to resolve the invocation context.
The plugin configuration slice, typed as TCfg.
Compile-time helper type: the plugin object returned by definePlugin always includes the instance-bound helpers as required members. Keeping the public interface optional preserves compatibility for ad-hoc/test plugins, while return types from definePlugin provide stronger DX for shipped/typed plugins.