mlx-bun library API
    Preparing search index...

    Live parts of a module, created by activate. Each key names a declared spec.

    interface ModuleRuntime {
        jobs?: Readonly<Record<string, JobRunner>>;
        routes?: Readonly<Record<string, RouteHandler>>;
        sockets?: Readonly<Record<string, SocketHandler>>;
        verbs?: Readonly<Record<string, CliVerbHandler>>;
        dispose?(): void | Promise<void>;
        status?(): Readonly<Record<string, number | string | boolean | null>>;
    }
    Index
    jobs?: Readonly<Record<string, JobRunner>>
    routes?: Readonly<Record<string, RouteHandler>>
    sockets?: Readonly<Record<string, SocketHandler>>
    verbs?: Readonly<Record<string, CliVerbHandler>>
    • Called once when the host stops the module, after its in-flight work drains.

      Returns void | Promise<void>

    • Live counters for the host's health and stats surfaces. Never loads a model.

      Returns Readonly<Record<string, number | string | boolean | null>>