src / index.ts

// MSI chat starter plugin for LM Studio. No hooks: no tools provider, prompt preprocessor, generator or
// config (M0: a hook-less plugin loads and its main() runs at install and at daemon start).
// main() only starts MSI chat when the owner allowed it (start_with_lmstudio) and it is not already running.
import { startMsiChat } from "./start.ts";

export async function main(context: unknown): Promise<void> {
  void context;
  try {
    await startMsiChat();
  } catch {
    // main() never throws: startMsiChat() already turns every failure into "error" in plugin.jsonl.
  }
}