Skip to content

The open-source app everyone uses to manage agents at work

279 B
Raw Blame
export type RunFailureReportingMode = "off" | "unexpected" | "all";

export function readRunFailureReportingMode(): RunFailureReportingMode {
  const value = process.env.PAPERCLIP_SENTRY_RUN_FAILURES?.trim();
  return value === "unexpected" || value === "all" ? value : "off";
}