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.

309 B
Raw Blame
import type { OfficeFormat } from "@pibot/office-contract/full";

export function officeFormat(name: string): OfficeFormat | undefined {
  const extension = name.split(".").at(-1)?.toLowerCase();
  return extension === "docx" || extension === "xlsx" || extension === "pptx"
    ? extension
    : undefined;
}