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.

465 B
Raw Blame
import type { PptOperation } from "@pibot/protocol-base/office-ooxml";
import type { OfficePackage } from "../package.ts";
import { applyShapeOperation } from "./edit-shapes.ts";
import { applySlideOperation, isSlideOperation } from "./edit-slides.ts";

export async function applyPptOperation(pkg: OfficePackage, operation: PptOperation) {
  if (isSlideOperation(operation)) await applySlideOperation(pkg, operation);
  else applyShapeOperation(pkg, operation);
}