StaticAsWraps a tier payload in the universal MJCLIResult shape.
StaticBuildTier-2: every command in domain with summary, flags, examples, runtime.
StaticBuildTier-1: the domain map — each domain + one-line summary + runtime class.
StaticGetEvery command's usage metadata, de-duplicated by command key: the registered
plugins' static Usage first, then anything declared via
CLIPluginRegistry.RegisterUsage.
StaticLoadWalks up from startDir looking for mj-cli-plugins.json, then
dynamic-imports each listed entry point so its @RegisterClass(BaseCLIPlugin, …)
decorators populate the ClassFactory. Safe to call repeatedly — imports are
cached by the module loader. Returns the list of specifiers it loaded.
StaticRegisterDeclares the tier-1 summary for a whole domain, overriding the line CLIPluginRegistry.domainSummary would otherwise synthesize from its commands.
Worth having because the synthesized line degrades badly once a domain has more
than a couple of commands — mj test's 16 commands would render as one command's
summary plus "(+15 more commands)", which tells an agent nothing about what the
domain is FOR. A domain with no registered summary keeps the synthesized line, so
this is an opt-in improvement rather than a new requirement.
First registration wins, matching CLIPluginRegistry.RegisterUsage.
StaticRegister
Loads CLI plugin packages and composes the progressive-disclosure usage surface (
mj usage→mj <domain> usage) dynamically from each registered plugin'sstatic Usage(plan §5, the linearis model). There is no central hardcoded help file — usage is whatever plugins are loaded, including third-party ones.