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.

280 B
Raw Blame
import { z } from "zod";

const name = z.string().min(1);
export const SafeSecretSchema = name.refine(
  (value) => value === value.trim() && !/[\r\n]/.test(value) && !value.startsWith("!"),
  "Unsafe secret value",
);
export const WebUrlSchema = z.url({ protocol: /^https?$/ });