Member Junction
    Preparing search index...

    The runtime host abstracts all stdio. A plugin talks to the host through this interface; the host decides whether a call becomes a spinner line, a JSON event on stderr, or nothing — based on the active OutputFormat.

    interface IMJCLIRuntimeHost {
        Format: OutputFormat;
        Verbose: boolean;
        AnnounceRuntime(usage: PluginUsage): void;
        Emit(result: MJCLIResult): void;
        FailStep(label: string, detail?: string): void;
        Log(message: string, level?: LogLevel): void;
        StartStep(label: string): void;
        SucceedStep(label: string, detail?: string): void;
        UpdateStep(label: string): void;
    }

    Implemented by

    Index

    Properties

    Format: OutputFormat

    The active output format. Plugins gate human-only text rendering on this.

    Verbose: boolean

    Whether --verbose was set.

    Methods

    • Runtime advisory, emitted before work starts so an agent can budget its timeout (plan §5/§6). Text mode: a dim one-liner on stderr. JSON mode: a {event:'start', ...} line on stderr. Suppressed for fast commands.

      Parameters

      Returns void

    • Parameters

      • label: string
      • Optionaldetail: string

      Returns void

    • Parameters

      • label: string

      Returns void

    • Parameters

      • label: string
      • Optionaldetail: string

      Returns void

    • Parameters

      • label: string

      Returns void