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.
Optionalparser: (value: string, previous?: unknown) => unknownOptionaldefaultValue: unknown
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.