Member Junction
    Preparing search index...

    Loads CLI plugin packages and composes the progressive-disclosure usage surface (mj usagemj <domain> usage) dynamically from each registered plugin's static Usage (plan §5, the linearis model). There is no central hardcoded help file — usage is whatever plugins are loaded, including third-party ones.

    Index

    Constructors

    Methods

    • Walks 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.

      Parameters

      • startDir: string = ...

      Returns Promise<PluginLoadResult>

    • Declares 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.

      Parameters

      • domain: string
      • summary: string

      Returns void