src / index.ts

// Locus for macOS, the LM Studio plugin (docs/build/MAC_REPORT.md). No hooks: no tools provider, prompt
// preprocessor, generator or config. main() runs when LM Studio starts (and at the plugin's install): it starts Locus,
// or installs it on the first run when the installer is on this machine.
import { startLocusMac } from "./start.ts";

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