Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

445 B
Raw Blame
/** A rejected external path/URL is different from an implementation bug. */
export class PolicyInputError extends Error {}

/** Stable checks for rejected target facts; never a filesystem or URL exception message. */
export class PolicyTargetError extends PolicyInputError {
  constructor(
    readonly check:
      | "path_resolution_failed"
      | "url_resolution_failed"
      | "target_realpath_unavailable",
  ) {
    super(check);
  }
}