Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

412 B
Raw Blame
import { parseActorReferences as parse } from "./content-segments.js";
import { CliError } from "./errors.js";

export function parseActorReferences(
  content: string,
  style: "message" | "comment" = "message",
): Record<string, unknown>[] {
  try {
    return parse(content, style);
  } catch {
    throw new CliError(
      "usage_error",
      "Actor reference must contain a valid Actor ID.",
    );
  }
}